configure 951 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440
  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. WAYLAND_SCANNER_CODE_MODE
  601. WAYLAND_SCANNER
  602. EXTRA_LDFLAGS
  603. BUILD_LDFLAGS
  604. EXTRA_CFLAGS
  605. BUILD_CFLAGS
  606. SDLTEST_OBJECTS
  607. SDLMAIN_OBJECTS
  608. VERSION_OBJECTS
  609. GEN_OBJECTS
  610. GEN_HEADERS
  611. OBJECTS
  612. INCLUDE
  613. ac_aux_dir
  614. ENABLE_STATIC_FALSE
  615. ENABLE_STATIC_TRUE
  616. ENABLE_SHARED_FALSE
  617. ENABLE_SHARED_TRUE
  618. PKGCONFIG_LIBS_PRIV
  619. SDL_RLD_FLAGS
  620. SDL_STATIC_LIBS
  621. SDL_LIBS
  622. SDL_CFLAGS
  623. bin_prefix_relpath
  624. cmake_prefix_relpath
  625. INSTALL_SDL2_CONFIG
  626. LIBUSB_LIBS
  627. LIBUSB_CFLAGS
  628. IBUS_LIBS
  629. IBUS_CFLAGS
  630. DBUS_LIBS
  631. DBUS_CFLAGS
  632. LIBGBM_LIBS
  633. LIBGBM_CFLAGS
  634. LIBDRM_LIBS
  635. LIBDRM_CFLAGS
  636. DIRECTFB_LIBS
  637. DIRECTFB_CFLAGS
  638. X_EXTRA_LIBS
  639. X_LIBS
  640. X_PRE_LIBS
  641. X_CFLAGS
  642. XMKMF
  643. RPI_LIBS
  644. RPI_CFLAGS
  645. DECOR_LIBS
  646. DECOR_CFLAGS
  647. FUSIONSOUND_LIBS
  648. FUSIONSOUND_CFLAGS
  649. ARTSCONFIG
  650. PULSEAUDIO_LIBS
  651. PULSEAUDIO_CFLAGS
  652. PIPEWIRE_LIBS
  653. PIPEWIRE_CFLAGS
  654. ESD_LIBS
  655. ESD_CFLAGS
  656. ESD_CONFIG
  657. JACK_LIBS
  658. JACK_CFLAGS
  659. ALSA_LIBS
  660. ALSA_CFLAGS
  661. POW_LIB
  662. LIBOBJS
  663. ALLOCA
  664. CPP
  665. LIBTOOLLINKERTAG
  666. LINKER
  667. PKG_CONFIG_LIBDIR
  668. PKG_CONFIG_PATH
  669. PKG_CONFIG
  670. SET_MAKE
  671. INSTALL_DATA
  672. INSTALL_SCRIPT
  673. INSTALL_PROGRAM
  674. CXXCPP
  675. ac_ct_CXX
  676. CXXFLAGS
  677. CXX
  678. LT_AGE
  679. LT_REVISION
  680. LT_CURRENT
  681. LT_RELEASE
  682. RC
  683. LT_SYS_LIBRARY_PATH
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. MANIFEST_TOOL
  690. AWK
  691. RANLIB
  692. STRIP
  693. ac_ct_AR
  694. AR
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. EGREP
  702. GREP
  703. SED
  704. OBJEXT
  705. EXEEXT
  706. ac_ct_CC
  707. CPPFLAGS
  708. LDFLAGS
  709. CFLAGS
  710. CC
  711. host_os
  712. host_vendor
  713. host_cpu
  714. host
  715. build_os
  716. build_vendor
  717. build_cpu
  718. build
  719. LIBTOOL
  720. OBJDUMP
  721. DLLTOOL
  722. AS
  723. SDL_VERSION
  724. SDL_BINARY_AGE
  725. SDL_INTERFACE_AGE
  726. SDL_MICRO_VERSION
  727. SDL_MINOR_VERSION
  728. SDL_MAJOR_VERSION
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. runstatedir
  749. localstatedir
  750. sharedstatedir
  751. sysconfdir
  752. datadir
  753. datarootdir
  754. libexecdir
  755. sbindir
  756. bindir
  757. program_transform_name
  758. prefix
  759. exec_prefix
  760. PACKAGE_URL
  761. PACKAGE_BUGREPORT
  762. PACKAGE_STRING
  763. PACKAGE_VERSION
  764. PACKAGE_TARNAME
  765. PACKAGE_NAME
  766. PATH_SEPARATOR
  767. SHELL'
  768. ac_subst_files=''
  769. ac_user_opts='
  770. enable_option_checking
  771. enable_shared
  772. enable_static
  773. with_pic
  774. enable_fast_install
  775. with_aix_soname
  776. with_gnu_ld
  777. with_sysroot
  778. enable_libtool_lock
  779. enable_largefile
  780. enable_assertions
  781. enable_dependency_tracking
  782. enable_libc
  783. enable_gcc_atomics
  784. enable_atomic
  785. enable_audio
  786. enable_video
  787. enable_render
  788. enable_events
  789. enable_joystick
  790. enable_haptic
  791. enable_hidapi
  792. enable_sensor
  793. enable_power
  794. enable_filesystem
  795. enable_timers
  796. enable_file
  797. enable_misc
  798. enable_locale
  799. enable_loadso
  800. enable_cpuinfo
  801. enable_assembly
  802. enable_ssemath
  803. enable_mmx
  804. enable_3dnow
  805. enable_sse
  806. enable_sse2
  807. enable_sse3
  808. enable_altivec
  809. enable_lsx
  810. enable_lasx
  811. enable_oss
  812. enable_alsa
  813. with_alsa_prefix
  814. with_alsa_inc_prefix
  815. enable_alsatest
  816. enable_alsa_shared
  817. enable_jack
  818. enable_jack_shared
  819. enable_esd
  820. with_esd_prefix
  821. with_esd_exec_prefix
  822. enable_esdtest
  823. enable_esd_shared
  824. enable_pipewire
  825. enable_pipewire_shared
  826. enable_pulseaudio
  827. enable_pulseaudio_shared
  828. enable_arts
  829. enable_arts_shared
  830. enable_nas
  831. enable_nas_shared
  832. enable_sndio
  833. enable_sndio_shared
  834. enable_fusionsound
  835. enable_fusionsound_shared
  836. enable_diskaudio
  837. enable_dummyaudio
  838. enable_libsamplerate
  839. enable_libsamplerate_shared
  840. enable_arm_simd
  841. enable_arm_neon
  842. enable_video_wayland
  843. enable_video_wayland_qt_touch
  844. enable_wayland_shared
  845. enable_libdecor
  846. enable_libdecor_shared
  847. enable_video_rpi
  848. enable_video_x11
  849. with_x
  850. enable_x11_shared
  851. enable_video_x11_xcursor
  852. enable_video_x11_xdbe
  853. enable_video_x11_xinput
  854. enable_video_x11_xfixes
  855. enable_video_x11_xrandr
  856. enable_video_x11_scrnsaver
  857. enable_video_x11_xshape
  858. enable_video_vivante
  859. enable_video_cocoa
  860. enable_video_metal
  861. enable_render_metal
  862. enable_video_directfb
  863. enable_directfb_shared
  864. enable_video_kmsdrm
  865. enable_kmsdrm_shared
  866. enable_video_dummy
  867. enable_video_offscreen
  868. enable_video_opengl
  869. enable_video_opengles
  870. enable_video_opengles1
  871. enable_video_opengles2
  872. enable_video_vulkan
  873. enable_libudev
  874. enable_dbus
  875. enable_ime
  876. enable_ibus
  877. enable_fcitx
  878. enable_joystick_mfi
  879. enable_pthreads
  880. enable_pthread_sem
  881. enable_directx
  882. enable_xinput
  883. enable_wasapi
  884. enable_hidapi_joystick
  885. enable_hidapi_libusb
  886. enable_clock_gettime
  887. enable_rpath
  888. enable_backgrounding_signal
  889. enable_foregrounding_signal
  890. enable_joystick_virtual
  891. enable_render_d3d
  892. enable_sdl2_config
  893. '
  894. ac_precious_vars='build_alias
  895. host_alias
  896. target_alias
  897. CC
  898. CFLAGS
  899. LDFLAGS
  900. LIBS
  901. CPPFLAGS
  902. LT_SYS_LIBRARY_PATH
  903. CXX
  904. CXXFLAGS
  905. CCC
  906. CXXCPP
  907. PKG_CONFIG
  908. PKG_CONFIG_PATH
  909. PKG_CONFIG_LIBDIR
  910. CPP
  911. JACK_CFLAGS
  912. JACK_LIBS
  913. PIPEWIRE_CFLAGS
  914. PIPEWIRE_LIBS
  915. PULSEAUDIO_CFLAGS
  916. PULSEAUDIO_LIBS
  917. FUSIONSOUND_CFLAGS
  918. FUSIONSOUND_LIBS
  919. DECOR_CFLAGS
  920. DECOR_LIBS
  921. RPI_CFLAGS
  922. RPI_LIBS
  923. XMKMF
  924. DIRECTFB_CFLAGS
  925. DIRECTFB_LIBS
  926. LIBDRM_CFLAGS
  927. LIBDRM_LIBS
  928. LIBGBM_CFLAGS
  929. LIBGBM_LIBS
  930. DBUS_CFLAGS
  931. DBUS_LIBS
  932. IBUS_CFLAGS
  933. IBUS_LIBS
  934. LIBUSB_CFLAGS
  935. LIBUSB_LIBS'
  936. # Initialize some variables set by options.
  937. ac_init_help=
  938. ac_init_version=false
  939. ac_unrecognized_opts=
  940. ac_unrecognized_sep=
  941. # The variables have the same names as the options, with
  942. # dashes changed to underlines.
  943. cache_file=/dev/null
  944. exec_prefix=NONE
  945. no_create=
  946. no_recursion=
  947. prefix=NONE
  948. program_prefix=NONE
  949. program_suffix=NONE
  950. program_transform_name=s,x,x,
  951. silent=
  952. site=
  953. srcdir=
  954. verbose=
  955. x_includes=NONE
  956. x_libraries=NONE
  957. # Installation directory options.
  958. # These are left unexpanded so users can "make install exec_prefix=/foo"
  959. # and all the variables that are supposed to be based on exec_prefix
  960. # by default will actually change.
  961. # Use braces instead of parens because sh, perl, etc. also accept them.
  962. # (The list follows the same order as the GNU Coding Standards.)
  963. bindir='${exec_prefix}/bin'
  964. sbindir='${exec_prefix}/sbin'
  965. libexecdir='${exec_prefix}/libexec'
  966. datarootdir='${prefix}/share'
  967. datadir='${datarootdir}'
  968. sysconfdir='${prefix}/etc'
  969. sharedstatedir='${prefix}/com'
  970. localstatedir='${prefix}/var'
  971. runstatedir='${localstatedir}/run'
  972. includedir='${prefix}/include'
  973. oldincludedir='/usr/include'
  974. docdir='${datarootdir}/doc/${PACKAGE}'
  975. infodir='${datarootdir}/info'
  976. htmldir='${docdir}'
  977. dvidir='${docdir}'
  978. pdfdir='${docdir}'
  979. psdir='${docdir}'
  980. libdir='${exec_prefix}/lib'
  981. localedir='${datarootdir}/locale'
  982. mandir='${datarootdir}/man'
  983. ac_prev=
  984. ac_dashdash=
  985. for ac_option
  986. do
  987. # If the previous option needs an argument, assign it.
  988. if test -n "$ac_prev"; then
  989. eval $ac_prev=\$ac_option
  990. ac_prev=
  991. continue
  992. fi
  993. case $ac_option in
  994. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  995. *=) ac_optarg= ;;
  996. *) ac_optarg=yes ;;
  997. esac
  998. case $ac_dashdash$ac_option in
  999. --)
  1000. ac_dashdash=yes ;;
  1001. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1002. ac_prev=bindir ;;
  1003. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1004. bindir=$ac_optarg ;;
  1005. -build | --build | --buil | --bui | --bu)
  1006. ac_prev=build_alias ;;
  1007. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1008. build_alias=$ac_optarg ;;
  1009. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1010. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1011. ac_prev=cache_file ;;
  1012. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1013. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1014. cache_file=$ac_optarg ;;
  1015. --config-cache | -C)
  1016. cache_file=config.cache ;;
  1017. -datadir | --datadir | --datadi | --datad)
  1018. ac_prev=datadir ;;
  1019. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1020. datadir=$ac_optarg ;;
  1021. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1022. | --dataroo | --dataro | --datar)
  1023. ac_prev=datarootdir ;;
  1024. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1025. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1026. datarootdir=$ac_optarg ;;
  1027. -disable-* | --disable-*)
  1028. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1029. # Reject names that are not valid shell variable names.
  1030. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1031. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1032. ac_useropt_orig=$ac_useropt
  1033. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1034. case $ac_user_opts in
  1035. *"
  1036. "enable_$ac_useropt"
  1037. "*) ;;
  1038. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1039. ac_unrecognized_sep=', ';;
  1040. esac
  1041. eval enable_$ac_useropt=no ;;
  1042. -docdir | --docdir | --docdi | --doc | --do)
  1043. ac_prev=docdir ;;
  1044. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1045. docdir=$ac_optarg ;;
  1046. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1047. ac_prev=dvidir ;;
  1048. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1049. dvidir=$ac_optarg ;;
  1050. -enable-* | --enable-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "enable_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval enable_$ac_useropt=\$ac_optarg ;;
  1065. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1066. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1067. | --exec | --exe | --ex)
  1068. ac_prev=exec_prefix ;;
  1069. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1070. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1071. | --exec=* | --exe=* | --ex=*)
  1072. exec_prefix=$ac_optarg ;;
  1073. -gas | --gas | --ga | --g)
  1074. # Obsolete; use --with-gas.
  1075. with_gas=yes ;;
  1076. -help | --help | --hel | --he | -h)
  1077. ac_init_help=long ;;
  1078. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1079. ac_init_help=recursive ;;
  1080. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1081. ac_init_help=short ;;
  1082. -host | --host | --hos | --ho)
  1083. ac_prev=host_alias ;;
  1084. -host=* | --host=* | --hos=* | --ho=*)
  1085. host_alias=$ac_optarg ;;
  1086. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1087. ac_prev=htmldir ;;
  1088. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1089. | --ht=*)
  1090. htmldir=$ac_optarg ;;
  1091. -includedir | --includedir | --includedi | --included | --include \
  1092. | --includ | --inclu | --incl | --inc)
  1093. ac_prev=includedir ;;
  1094. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1095. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1096. includedir=$ac_optarg ;;
  1097. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1098. ac_prev=infodir ;;
  1099. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1100. infodir=$ac_optarg ;;
  1101. -libdir | --libdir | --libdi | --libd)
  1102. ac_prev=libdir ;;
  1103. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1104. libdir=$ac_optarg ;;
  1105. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1106. | --libexe | --libex | --libe)
  1107. ac_prev=libexecdir ;;
  1108. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1109. | --libexe=* | --libex=* | --libe=*)
  1110. libexecdir=$ac_optarg ;;
  1111. -localedir | --localedir | --localedi | --localed | --locale)
  1112. ac_prev=localedir ;;
  1113. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1114. localedir=$ac_optarg ;;
  1115. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1116. | --localstate | --localstat | --localsta | --localst | --locals)
  1117. ac_prev=localstatedir ;;
  1118. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1119. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1120. localstatedir=$ac_optarg ;;
  1121. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1122. ac_prev=mandir ;;
  1123. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1124. mandir=$ac_optarg ;;
  1125. -nfp | --nfp | --nf)
  1126. # Obsolete; use --without-fp.
  1127. with_fp=no ;;
  1128. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1129. | --no-cr | --no-c | -n)
  1130. no_create=yes ;;
  1131. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1132. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1133. no_recursion=yes ;;
  1134. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1135. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1136. | --oldin | --oldi | --old | --ol | --o)
  1137. ac_prev=oldincludedir ;;
  1138. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1139. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1140. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1141. oldincludedir=$ac_optarg ;;
  1142. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1143. ac_prev=prefix ;;
  1144. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1145. prefix=$ac_optarg ;;
  1146. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1147. | --program-pre | --program-pr | --program-p)
  1148. ac_prev=program_prefix ;;
  1149. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1150. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1151. program_prefix=$ac_optarg ;;
  1152. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1153. | --program-suf | --program-su | --program-s)
  1154. ac_prev=program_suffix ;;
  1155. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1156. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1157. program_suffix=$ac_optarg ;;
  1158. -program-transform-name | --program-transform-name \
  1159. | --program-transform-nam | --program-transform-na \
  1160. | --program-transform-n | --program-transform- \
  1161. | --program-transform | --program-transfor \
  1162. | --program-transfo | --program-transf \
  1163. | --program-trans | --program-tran \
  1164. | --progr-tra | --program-tr | --program-t)
  1165. ac_prev=program_transform_name ;;
  1166. -program-transform-name=* | --program-transform-name=* \
  1167. | --program-transform-nam=* | --program-transform-na=* \
  1168. | --program-transform-n=* | --program-transform-=* \
  1169. | --program-transform=* | --program-transfor=* \
  1170. | --program-transfo=* | --program-transf=* \
  1171. | --program-trans=* | --program-tran=* \
  1172. | --progr-tra=* | --program-tr=* | --program-t=*)
  1173. program_transform_name=$ac_optarg ;;
  1174. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1175. ac_prev=pdfdir ;;
  1176. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1177. pdfdir=$ac_optarg ;;
  1178. -psdir | --psdir | --psdi | --psd | --ps)
  1179. ac_prev=psdir ;;
  1180. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1181. psdir=$ac_optarg ;;
  1182. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1183. | -silent | --silent | --silen | --sile | --sil)
  1184. silent=yes ;;
  1185. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1186. | --runstate | --runstat | --runsta | --runst | --runs \
  1187. | --run | --ru | --r)
  1188. ac_prev=runstatedir ;;
  1189. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1190. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1191. | --run=* | --ru=* | --r=*)
  1192. runstatedir=$ac_optarg ;;
  1193. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1194. ac_prev=sbindir ;;
  1195. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1196. | --sbi=* | --sb=*)
  1197. sbindir=$ac_optarg ;;
  1198. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1199. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1200. | --sharedst | --shareds | --shared | --share | --shar \
  1201. | --sha | --sh)
  1202. ac_prev=sharedstatedir ;;
  1203. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1204. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1205. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1206. | --sha=* | --sh=*)
  1207. sharedstatedir=$ac_optarg ;;
  1208. -site | --site | --sit)
  1209. ac_prev=site ;;
  1210. -site=* | --site=* | --sit=*)
  1211. site=$ac_optarg ;;
  1212. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1213. ac_prev=srcdir ;;
  1214. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1215. srcdir=$ac_optarg ;;
  1216. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1217. | --syscon | --sysco | --sysc | --sys | --sy)
  1218. ac_prev=sysconfdir ;;
  1219. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1220. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1221. sysconfdir=$ac_optarg ;;
  1222. -target | --target | --targe | --targ | --tar | --ta | --t)
  1223. ac_prev=target_alias ;;
  1224. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1225. target_alias=$ac_optarg ;;
  1226. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1227. verbose=yes ;;
  1228. -version | --version | --versio | --versi | --vers | -V)
  1229. ac_init_version=: ;;
  1230. -with-* | --with-*)
  1231. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1232. # Reject names that are not valid shell variable names.
  1233. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1234. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1235. ac_useropt_orig=$ac_useropt
  1236. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1237. case $ac_user_opts in
  1238. *"
  1239. "with_$ac_useropt"
  1240. "*) ;;
  1241. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1242. ac_unrecognized_sep=', ';;
  1243. esac
  1244. eval with_$ac_useropt=\$ac_optarg ;;
  1245. -without-* | --without-*)
  1246. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1247. # Reject names that are not valid shell variable names.
  1248. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1249. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1250. ac_useropt_orig=$ac_useropt
  1251. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1252. case $ac_user_opts in
  1253. *"
  1254. "with_$ac_useropt"
  1255. "*) ;;
  1256. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1257. ac_unrecognized_sep=', ';;
  1258. esac
  1259. eval with_$ac_useropt=no ;;
  1260. --x)
  1261. # Obsolete; use --with-x.
  1262. with_x=yes ;;
  1263. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1264. | --x-incl | --x-inc | --x-in | --x-i)
  1265. ac_prev=x_includes ;;
  1266. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1267. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1268. x_includes=$ac_optarg ;;
  1269. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1270. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1271. ac_prev=x_libraries ;;
  1272. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1273. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1274. x_libraries=$ac_optarg ;;
  1275. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1276. Try \`$0 --help' for more information"
  1277. ;;
  1278. *=*)
  1279. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1280. # Reject names that are not valid shell variable names.
  1281. case $ac_envvar in #(
  1282. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1283. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1284. esac
  1285. eval $ac_envvar=\$ac_optarg
  1286. export $ac_envvar ;;
  1287. *)
  1288. # FIXME: should be removed in autoconf 3.0.
  1289. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1290. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1291. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1292. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1293. ;;
  1294. esac
  1295. done
  1296. if test -n "$ac_prev"; then
  1297. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1298. as_fn_error $? "missing argument to $ac_option"
  1299. fi
  1300. if test -n "$ac_unrecognized_opts"; then
  1301. case $enable_option_checking in
  1302. no) ;;
  1303. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1304. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1305. esac
  1306. fi
  1307. # Check all directory arguments for consistency.
  1308. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1309. datadir sysconfdir sharedstatedir localstatedir includedir \
  1310. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1311. libdir localedir mandir runstatedir
  1312. do
  1313. eval ac_val=\$$ac_var
  1314. # Remove trailing slashes.
  1315. case $ac_val in
  1316. */ )
  1317. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1318. eval $ac_var=\$ac_val;;
  1319. esac
  1320. # Be sure to have absolute directory names.
  1321. case $ac_val in
  1322. [\\/$]* | ?:[\\/]* ) continue;;
  1323. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1324. esac
  1325. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1326. done
  1327. # There might be people who depend on the old broken behavior: `$host'
  1328. # used to hold the argument of --host etc.
  1329. # FIXME: To remove some day.
  1330. build=$build_alias
  1331. host=$host_alias
  1332. target=$target_alias
  1333. # FIXME: To remove some day.
  1334. if test "x$host_alias" != x; then
  1335. if test "x$build_alias" = x; then
  1336. cross_compiling=maybe
  1337. elif test "x$build_alias" != "x$host_alias"; then
  1338. cross_compiling=yes
  1339. fi
  1340. fi
  1341. ac_tool_prefix=
  1342. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1343. test "$silent" = yes && exec 6>/dev/null
  1344. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1345. ac_ls_di=`ls -di .` &&
  1346. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1347. as_fn_error $? "working directory cannot be determined"
  1348. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1349. as_fn_error $? "pwd does not report name of working directory"
  1350. # Find the source files, if location was not specified.
  1351. if test -z "$srcdir"; then
  1352. ac_srcdir_defaulted=yes
  1353. # Try the directory containing this script, then the parent directory.
  1354. ac_confdir=`$as_dirname -- "$as_myself" ||
  1355. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1356. X"$as_myself" : 'X\(//\)[^/]' \| \
  1357. X"$as_myself" : 'X\(//\)$' \| \
  1358. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1359. printf "%s\n" X"$as_myself" |
  1360. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1361. s//\1/
  1362. q
  1363. }
  1364. /^X\(\/\/\)[^/].*/{
  1365. s//\1/
  1366. q
  1367. }
  1368. /^X\(\/\/\)$/{
  1369. s//\1/
  1370. q
  1371. }
  1372. /^X\(\/\).*/{
  1373. s//\1/
  1374. q
  1375. }
  1376. s/.*/./; q'`
  1377. srcdir=$ac_confdir
  1378. if test ! -r "$srcdir/$ac_unique_file"; then
  1379. srcdir=..
  1380. fi
  1381. else
  1382. ac_srcdir_defaulted=no
  1383. fi
  1384. if test ! -r "$srcdir/$ac_unique_file"; then
  1385. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1386. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1387. fi
  1388. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1389. ac_abs_confdir=`(
  1390. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1391. pwd)`
  1392. # When building in place, set srcdir=.
  1393. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1394. srcdir=.
  1395. fi
  1396. # Remove unnecessary trailing slashes from srcdir.
  1397. # Double slashes in file names in object file debugging info
  1398. # mess up M-x gdb in Emacs.
  1399. case $srcdir in
  1400. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1401. esac
  1402. for ac_var in $ac_precious_vars; do
  1403. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1404. eval ac_env_${ac_var}_value=\$${ac_var}
  1405. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1406. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1407. done
  1408. #
  1409. # Report the --help message.
  1410. #
  1411. if test "$ac_init_help" = "long"; then
  1412. # Omit some internal or obsolete options to make the list less imposing.
  1413. # This message is too long to be a string in the A/UX 3.1 sh.
  1414. cat <<_ACEOF
  1415. \`configure' configures this package to adapt to many kinds of systems.
  1416. Usage: $0 [OPTION]... [VAR=VALUE]...
  1417. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1418. VAR=VALUE. See below for descriptions of some of the useful variables.
  1419. Defaults for the options are specified in brackets.
  1420. Configuration:
  1421. -h, --help display this help and exit
  1422. --help=short display options specific to this package
  1423. --help=recursive display the short help of all the included packages
  1424. -V, --version display version information and exit
  1425. -q, --quiet, --silent do not print \`checking ...' messages
  1426. --cache-file=FILE cache test results in FILE [disabled]
  1427. -C, --config-cache alias for \`--cache-file=config.cache'
  1428. -n, --no-create do not create output files
  1429. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1430. Installation directories:
  1431. --prefix=PREFIX install architecture-independent files in PREFIX
  1432. [$ac_default_prefix]
  1433. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1434. [PREFIX]
  1435. By default, \`make install' will install all the files in
  1436. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1437. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1438. for instance \`--prefix=\$HOME'.
  1439. For better control, use the options below.
  1440. Fine tuning of the installation directories:
  1441. --bindir=DIR user executables [EPREFIX/bin]
  1442. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1443. --libexecdir=DIR program executables [EPREFIX/libexec]
  1444. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1445. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1446. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1447. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1448. --libdir=DIR object code libraries [EPREFIX/lib]
  1449. --includedir=DIR C header files [PREFIX/include]
  1450. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1451. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1452. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1453. --infodir=DIR info documentation [DATAROOTDIR/info]
  1454. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1455. --mandir=DIR man documentation [DATAROOTDIR/man]
  1456. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1457. --htmldir=DIR html documentation [DOCDIR]
  1458. --dvidir=DIR dvi documentation [DOCDIR]
  1459. --pdfdir=DIR pdf documentation [DOCDIR]
  1460. --psdir=DIR ps documentation [DOCDIR]
  1461. _ACEOF
  1462. cat <<\_ACEOF
  1463. X features:
  1464. --x-includes=DIR X include files are in DIR
  1465. --x-libraries=DIR X library files are in DIR
  1466. System types:
  1467. --build=BUILD configure for building on BUILD [guessed]
  1468. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1469. _ACEOF
  1470. fi
  1471. if test -n "$ac_init_help"; then
  1472. cat <<\_ACEOF
  1473. Optional Features:
  1474. --disable-option-checking ignore unrecognized --enable/--with options
  1475. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1476. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1477. --enable-shared[=PKGS] build shared libraries [default=yes]
  1478. --enable-static[=PKGS] build static libraries [default=yes]
  1479. --enable-fast-install[=PKGS]
  1480. optimize for fast installation [default=yes]
  1481. --disable-libtool-lock avoid locking (might break parallel builds)
  1482. --disable-largefile omit support for large files
  1483. --enable-assertions Enable internal sanity checks
  1484. (auto/disabled/release/enabled/paranoid)
  1485. [default=auto]
  1486. --enable-dependency-tracking
  1487. Use gcc -MMD -MT dependency tracking [default=yes]
  1488. --enable-libc Use the system C library [default=yes]
  1489. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1490. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1491. --enable-audio Enable the audio subsystem [default=yes]
  1492. --enable-video Enable the video subsystem [default=yes]
  1493. --enable-render Enable the render subsystem [default=yes]
  1494. --enable-events Enable the events subsystem [default=yes]
  1495. --enable-joystick Enable the joystick subsystem [default=yes]
  1496. --enable-haptic Enable the haptic (force feedback) subsystem
  1497. [default=yes]
  1498. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1499. --enable-sensor Enable the sensor subsystem [default=yes]
  1500. --enable-power Enable the power subsystem [default=yes]
  1501. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1502. --enable-timers Enable the timer subsystem [default=yes]
  1503. --enable-file Enable the file subsystem [default=yes]
  1504. --enable-misc Enable the misc subsystem [default=yes]
  1505. --enable-locale Enable the locale subsystem [default=yes]
  1506. --enable-loadso Enable the shared object loading subsystem
  1507. [default=yes]
  1508. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1509. --enable-assembly Enable assembly routines [default=yes]
  1510. --enable-ssemath Allow GCC to use SSE floating point math
  1511. [default=maybe]
  1512. --enable-mmx use MMX assembly routines [default=yes]
  1513. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1514. --enable-sse use SSE assembly routines [default=yes]
  1515. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1516. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1517. --enable-altivec use Altivec assembly routines [default=yes]
  1518. --enable-lsx use LSX assembly routines [default=yes]
  1519. --enable-lasx use LASX assembly routines [default=yes]
  1520. --enable-oss support the OSS audio API [default=maybe]
  1521. --enable-alsa support the ALSA audio API [default=yes]
  1522. --disable-alsatest Do not try to compile and run a test Alsa program
  1523. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1524. --enable-jack use JACK audio [default=yes]
  1525. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1526. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1527. --disable-esdtest Do not try to compile and run a test ESD program
  1528. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1529. --enable-pipewire use Pipewire audio [default=yes]
  1530. --enable-pipewire-shared
  1531. dynamically load Pipewire support [default=yes]
  1532. --enable-pulseaudio use PulseAudio [default=yes]
  1533. --enable-pulseaudio-shared
  1534. dynamically load PulseAudio support [default=yes]
  1535. --enable-arts support the Analog Real Time Synthesizer
  1536. [default=yes]
  1537. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1538. --enable-nas support the NAS audio API [default=yes]
  1539. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1540. --enable-sndio support the sndio audio API [default=yes]
  1541. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1542. --enable-fusionsound use FusionSound audio driver [default=no]
  1543. --enable-fusionsound-shared
  1544. dynamically load fusionsound audio support
  1545. [default=yes]
  1546. --enable-diskaudio support the disk writer audio driver [default=yes]
  1547. --enable-dummyaudio support the dummy audio driver [default=yes]
  1548. --enable-libsamplerate use libsamplerate for audio rate conversion
  1549. [default=yes]
  1550. --enable-libsamplerate-shared
  1551. dynamically load libsamplerate [default=yes]
  1552. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1553. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1554. --enable-video-wayland use Wayland video driver [default=yes]
  1555. --enable-video-wayland-qt-touch
  1556. QtWayland server support for Wayland video driver
  1557. [default=yes]
  1558. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1559. --enable-libdecor use libdecor for Wayland client-side decorations
  1560. [default=yes]
  1561. --enable-libdecor-shared
  1562. dynamically load libdecor [default=yes]
  1563. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1564. --enable-video-x11 use X11 video driver [default=yes]
  1565. --enable-x11-shared dynamically load X11 support [default=maybe]
  1566. --enable-video-x11-xcursor
  1567. enable X11 Xcursor support [default=yes]
  1568. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1569. --enable-video-x11-xinput
  1570. enable X11 XInput extension for manymouse, tablets,
  1571. etc [default=yes]
  1572. --enable-video-x11-xfixes
  1573. enable X11 Xfixes support [default=yes]
  1574. --enable-video-x11-xrandr
  1575. enable X11 Xrandr extension for fullscreen
  1576. [default=yes]
  1577. --enable-video-x11-scrnsaver
  1578. enable X11 screensaver extension [default=yes]
  1579. --enable-video-x11-xshape
  1580. enable X11 XShape support [default=yes]
  1581. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1582. --enable-video-cocoa use Cocoa video driver [default=yes]
  1583. --enable-video-metal include Metal support [default=yes]
  1584. --enable-render-metal enable the Metal render driver [default=yes]
  1585. --enable-video-directfb use DirectFB video driver [default=no]
  1586. --enable-directfb-shared
  1587. dynamically load directfb support [default=yes]
  1588. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1589. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1590. --enable-video-dummy use dummy video driver [default=yes]
  1591. --enable-video-offscreen
  1592. use offscreen video driver [default=no]
  1593. --enable-video-opengl include OpenGL support [default=yes]
  1594. --enable-video-opengles include OpenGL ES support [default=yes]
  1595. --enable-video-opengles1
  1596. include OpenGL ES 1.1 support [default=yes]
  1597. --enable-video-opengles2
  1598. include OpenGL ES 2.0 support [default=yes]
  1599. --enable-video-vulkan include Vulkan support [default=yes]
  1600. --enable-libudev enable libudev support [default=yes]
  1601. --enable-dbus enable D-Bus support [default=yes]
  1602. --enable-ime enable IME support [default=yes]
  1603. --enable-ibus enable IBus support [default=yes]
  1604. --enable-fcitx enable fcitx support [default=yes]
  1605. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1606. --enable-pthreads use POSIX threads for multi-threading
  1607. [default=maybe]
  1608. --enable-pthread-sem use pthread semaphores [default=maybe]
  1609. --enable-directx use DirectX for Windows audio/video [default=yes]
  1610. --enable-xinput use Xinput for Windows [default=yes]
  1611. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1612. --enable-hidapi-joystick
  1613. use HIDAPI for low level joystick drivers
  1614. [default=yes]
  1615. --enable-hidapi-libusb use libusb for low level joystick drivers
  1616. [default=maybe]
  1617. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1618. UNIX [default=yes]
  1619. --enable-rpath use an rpath when linking SDL [default=yes]
  1620. --enable-backgrounding-signal
  1621. number to use for magic backgrounding signal or 'no'
  1622. [default=no]
  1623. --enable-foregrounding-signal
  1624. number to use for magic foregrounding signal or 'no'
  1625. [default=no]
  1626. --enable-joystick-virtual
  1627. enable virtual joystick APIs [default=yes]
  1628. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1629. --enable-sdl2-config Install sdl2-config [default=yes]
  1630. Optional Packages:
  1631. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1632. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1633. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1634. both]
  1635. --with-aix-soname=aix|svr4|both
  1636. shared library versioning (aka "SONAME") variant to
  1637. provide on AIX, [default=aix].
  1638. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1639. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1640. compiler's sysroot if not specified).
  1641. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1642. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1643. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1644. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1645. --with-x use the X Window System
  1646. Some influential environment variables:
  1647. CC C compiler command
  1648. CFLAGS C compiler flags
  1649. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1650. nonstandard directory <lib dir>
  1651. LIBS libraries to pass to the linker, e.g. -l<library>
  1652. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1653. you have headers in a nonstandard directory <include dir>
  1654. LT_SYS_LIBRARY_PATH
  1655. User-defined run-time library search path.
  1656. CXX C++ compiler command
  1657. CXXFLAGS C++ compiler flags
  1658. CXXCPP C++ preprocessor
  1659. PKG_CONFIG path to pkg-config utility
  1660. PKG_CONFIG_PATH
  1661. directories to add to pkg-config's search path
  1662. PKG_CONFIG_LIBDIR
  1663. path overriding pkg-config's built-in search path
  1664. CPP C preprocessor
  1665. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1666. JACK_LIBS linker flags for JACK, overriding pkg-config
  1667. PIPEWIRE_CFLAGS
  1668. C compiler flags for PIPEWIRE, overriding pkg-config
  1669. PIPEWIRE_LIBS
  1670. linker flags for PIPEWIRE, overriding pkg-config
  1671. PULSEAUDIO_CFLAGS
  1672. C compiler flags for PULSEAUDIO, overriding pkg-config
  1673. PULSEAUDIO_LIBS
  1674. linker flags for PULSEAUDIO, overriding pkg-config
  1675. FUSIONSOUND_CFLAGS
  1676. C compiler flags for FUSIONSOUND, overriding pkg-config
  1677. FUSIONSOUND_LIBS
  1678. linker flags for FUSIONSOUND, overriding pkg-config
  1679. DECOR_CFLAGS
  1680. C compiler flags for DECOR, overriding pkg-config
  1681. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1682. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1683. RPI_LIBS linker flags for RPI, overriding pkg-config
  1684. XMKMF Path to xmkmf, Makefile generator for X Window System
  1685. DIRECTFB_CFLAGS
  1686. C compiler flags for DIRECTFB, overriding pkg-config
  1687. DIRECTFB_LIBS
  1688. linker flags for DIRECTFB, overriding pkg-config
  1689. LIBDRM_CFLAGS
  1690. C compiler flags for LIBDRM, overriding pkg-config
  1691. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1692. LIBGBM_CFLAGS
  1693. C compiler flags for LIBGBM, overriding pkg-config
  1694. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1695. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1696. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1697. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1698. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1699. LIBUSB_CFLAGS
  1700. C compiler flags for LIBUSB, overriding pkg-config
  1701. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1702. Use these variables to override the choices made by `configure' or to help
  1703. it to find libraries and programs with nonstandard names/locations.
  1704. Report bugs to the package provider.
  1705. _ACEOF
  1706. ac_status=$?
  1707. fi
  1708. if test "$ac_init_help" = "recursive"; then
  1709. # If there are subdirs, report their specific --help.
  1710. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1711. test -d "$ac_dir" ||
  1712. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1713. continue
  1714. ac_builddir=.
  1715. case "$ac_dir" in
  1716. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1717. *)
  1718. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1719. # A ".." for each directory in $ac_dir_suffix.
  1720. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1721. case $ac_top_builddir_sub in
  1722. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1723. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1724. esac ;;
  1725. esac
  1726. ac_abs_top_builddir=$ac_pwd
  1727. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1728. # for backward compatibility:
  1729. ac_top_builddir=$ac_top_build_prefix
  1730. case $srcdir in
  1731. .) # We are building in place.
  1732. ac_srcdir=.
  1733. ac_top_srcdir=$ac_top_builddir_sub
  1734. ac_abs_top_srcdir=$ac_pwd ;;
  1735. [\\/]* | ?:[\\/]* ) # Absolute name.
  1736. ac_srcdir=$srcdir$ac_dir_suffix;
  1737. ac_top_srcdir=$srcdir
  1738. ac_abs_top_srcdir=$srcdir ;;
  1739. *) # Relative name.
  1740. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1741. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1742. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1743. esac
  1744. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1745. cd "$ac_dir" || { ac_status=$?; continue; }
  1746. # Check for configure.gnu first; this name is used for a wrapper for
  1747. # Metaconfig's "Configure" on case-insensitive file systems.
  1748. if test -f "$ac_srcdir/configure.gnu"; then
  1749. echo &&
  1750. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1751. elif test -f "$ac_srcdir/configure"; then
  1752. echo &&
  1753. $SHELL "$ac_srcdir/configure" --help=recursive
  1754. else
  1755. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1756. fi || ac_status=$?
  1757. cd "$ac_pwd" || { ac_status=$?; break; }
  1758. done
  1759. fi
  1760. test -n "$ac_init_help" && exit $ac_status
  1761. if $ac_init_version; then
  1762. cat <<\_ACEOF
  1763. configure
  1764. generated by GNU Autoconf 2.71
  1765. Copyright (C) 2021 Free Software Foundation, Inc.
  1766. This configure script is free software; the Free Software Foundation
  1767. gives unlimited permission to copy, distribute and modify it.
  1768. _ACEOF
  1769. exit
  1770. fi
  1771. ## ------------------------ ##
  1772. ## Autoconf initialization. ##
  1773. ## ------------------------ ##
  1774. # ac_fn_c_try_compile LINENO
  1775. # --------------------------
  1776. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1777. ac_fn_c_try_compile ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. rm -f conftest.$ac_objext conftest.beam
  1781. if { { ac_try="$ac_compile"
  1782. case "(($ac_try" in
  1783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1784. *) ac_try_echo=$ac_try;;
  1785. esac
  1786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1787. printf "%s\n" "$ac_try_echo"; } >&5
  1788. (eval "$ac_compile") 2>conftest.err
  1789. ac_status=$?
  1790. if test -s conftest.err; then
  1791. grep -v '^ *+' conftest.err >conftest.er1
  1792. cat conftest.er1 >&5
  1793. mv -f conftest.er1 conftest.err
  1794. fi
  1795. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1796. test $ac_status = 0; } && {
  1797. test -z "$ac_c_werror_flag" ||
  1798. test ! -s conftest.err
  1799. } && test -s conftest.$ac_objext
  1800. then :
  1801. ac_retval=0
  1802. else $as_nop
  1803. printf "%s\n" "$as_me: failed program was:" >&5
  1804. sed 's/^/| /' conftest.$ac_ext >&5
  1805. ac_retval=1
  1806. fi
  1807. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1808. as_fn_set_status $ac_retval
  1809. } # ac_fn_c_try_compile
  1810. # ac_fn_c_try_link LINENO
  1811. # -----------------------
  1812. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1813. ac_fn_c_try_link ()
  1814. {
  1815. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1816. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1817. if { { ac_try="$ac_link"
  1818. case "(($ac_try" in
  1819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1820. *) ac_try_echo=$ac_try;;
  1821. esac
  1822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1823. printf "%s\n" "$ac_try_echo"; } >&5
  1824. (eval "$ac_link") 2>conftest.err
  1825. ac_status=$?
  1826. if test -s conftest.err; then
  1827. grep -v '^ *+' conftest.err >conftest.er1
  1828. cat conftest.er1 >&5
  1829. mv -f conftest.er1 conftest.err
  1830. fi
  1831. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1832. test $ac_status = 0; } && {
  1833. test -z "$ac_c_werror_flag" ||
  1834. test ! -s conftest.err
  1835. } && test -s conftest$ac_exeext && {
  1836. test "$cross_compiling" = yes ||
  1837. test -x conftest$ac_exeext
  1838. }
  1839. then :
  1840. ac_retval=0
  1841. else $as_nop
  1842. printf "%s\n" "$as_me: failed program was:" >&5
  1843. sed 's/^/| /' conftest.$ac_ext >&5
  1844. ac_retval=1
  1845. fi
  1846. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1847. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1848. # interfere with the next link command; also delete a directory that is
  1849. # left behind by Apple's compiler. We do this before executing the actions.
  1850. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1851. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1852. as_fn_set_status $ac_retval
  1853. } # ac_fn_c_try_link
  1854. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1855. # -------------------------------------------------------
  1856. # Tests whether HEADER exists and can be compiled using the include files in
  1857. # INCLUDES, setting the cache variable VAR accordingly.
  1858. ac_fn_c_check_header_compile ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1862. printf %s "checking for $2... " >&6; }
  1863. if eval test \${$3+y}
  1864. then :
  1865. printf %s "(cached) " >&6
  1866. else $as_nop
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $4
  1870. #include <$2>
  1871. _ACEOF
  1872. if ac_fn_c_try_compile "$LINENO"
  1873. then :
  1874. eval "$3=yes"
  1875. else $as_nop
  1876. eval "$3=no"
  1877. fi
  1878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1879. fi
  1880. eval ac_res=\$$3
  1881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1882. printf "%s\n" "$ac_res" >&6; }
  1883. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1884. } # ac_fn_c_check_header_compile
  1885. # ac_fn_c_check_func LINENO FUNC VAR
  1886. # ----------------------------------
  1887. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1888. ac_fn_c_check_func ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1892. printf %s "checking for $2... " >&6; }
  1893. if eval test \${$3+y}
  1894. then :
  1895. printf %s "(cached) " >&6
  1896. else $as_nop
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1900. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1901. #define $2 innocuous_$2
  1902. /* System header to define __stub macros and hopefully few prototypes,
  1903. which can conflict with char $2 (); below. */
  1904. #include <limits.h>
  1905. #undef $2
  1906. /* Override any GCC internal prototype to avoid an error.
  1907. Use char because int might match the return type of a GCC
  1908. builtin and then its argument prototype would still apply. */
  1909. #ifdef __cplusplus
  1910. extern "C"
  1911. #endif
  1912. char $2 ();
  1913. /* The GNU C library defines this for functions which it implements
  1914. to always fail with ENOSYS. Some functions are actually named
  1915. something starting with __ and the normal name is an alias. */
  1916. #if defined __stub_$2 || defined __stub___$2
  1917. choke me
  1918. #endif
  1919. int
  1920. main (void)
  1921. {
  1922. return $2 ();
  1923. ;
  1924. return 0;
  1925. }
  1926. _ACEOF
  1927. if ac_fn_c_try_link "$LINENO"
  1928. then :
  1929. eval "$3=yes"
  1930. else $as_nop
  1931. eval "$3=no"
  1932. fi
  1933. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1934. conftest$ac_exeext conftest.$ac_ext
  1935. fi
  1936. eval ac_res=\$$3
  1937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1938. printf "%s\n" "$ac_res" >&6; }
  1939. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1940. } # ac_fn_c_check_func
  1941. # ac_fn_cxx_try_compile LINENO
  1942. # ----------------------------
  1943. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1944. ac_fn_cxx_try_compile ()
  1945. {
  1946. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947. rm -f conftest.$ac_objext conftest.beam
  1948. if { { ac_try="$ac_compile"
  1949. case "(($ac_try" in
  1950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1951. *) ac_try_echo=$ac_try;;
  1952. esac
  1953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1954. printf "%s\n" "$ac_try_echo"; } >&5
  1955. (eval "$ac_compile") 2>conftest.err
  1956. ac_status=$?
  1957. if test -s conftest.err; then
  1958. grep -v '^ *+' conftest.err >conftest.er1
  1959. cat conftest.er1 >&5
  1960. mv -f conftest.er1 conftest.err
  1961. fi
  1962. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1963. test $ac_status = 0; } && {
  1964. test -z "$ac_cxx_werror_flag" ||
  1965. test ! -s conftest.err
  1966. } && test -s conftest.$ac_objext
  1967. then :
  1968. ac_retval=0
  1969. else $as_nop
  1970. printf "%s\n" "$as_me: failed program was:" >&5
  1971. sed 's/^/| /' conftest.$ac_ext >&5
  1972. ac_retval=1
  1973. fi
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. as_fn_set_status $ac_retval
  1976. } # ac_fn_cxx_try_compile
  1977. # ac_fn_cxx_try_cpp LINENO
  1978. # ------------------------
  1979. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1980. ac_fn_cxx_try_cpp ()
  1981. {
  1982. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1983. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1984. case "(($ac_try" in
  1985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1986. *) ac_try_echo=$ac_try;;
  1987. esac
  1988. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1989. printf "%s\n" "$ac_try_echo"; } >&5
  1990. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1991. ac_status=$?
  1992. if test -s conftest.err; then
  1993. grep -v '^ *+' conftest.err >conftest.er1
  1994. cat conftest.er1 >&5
  1995. mv -f conftest.er1 conftest.err
  1996. fi
  1997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1998. test $ac_status = 0; } > conftest.i && {
  1999. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2000. test ! -s conftest.err
  2001. }
  2002. then :
  2003. ac_retval=0
  2004. else $as_nop
  2005. printf "%s\n" "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. ac_retval=1
  2008. fi
  2009. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2010. as_fn_set_status $ac_retval
  2011. } # ac_fn_cxx_try_cpp
  2012. # ac_fn_cxx_try_link LINENO
  2013. # -------------------------
  2014. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2015. ac_fn_cxx_try_link ()
  2016. {
  2017. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2018. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2019. if { { ac_try="$ac_link"
  2020. case "(($ac_try" in
  2021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2022. *) ac_try_echo=$ac_try;;
  2023. esac
  2024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2025. printf "%s\n" "$ac_try_echo"; } >&5
  2026. (eval "$ac_link") 2>conftest.err
  2027. ac_status=$?
  2028. if test -s conftest.err; then
  2029. grep -v '^ *+' conftest.err >conftest.er1
  2030. cat conftest.er1 >&5
  2031. mv -f conftest.er1 conftest.err
  2032. fi
  2033. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2034. test $ac_status = 0; } && {
  2035. test -z "$ac_cxx_werror_flag" ||
  2036. test ! -s conftest.err
  2037. } && test -s conftest$ac_exeext && {
  2038. test "$cross_compiling" = yes ||
  2039. test -x conftest$ac_exeext
  2040. }
  2041. then :
  2042. ac_retval=0
  2043. else $as_nop
  2044. printf "%s\n" "$as_me: failed program was:" >&5
  2045. sed 's/^/| /' conftest.$ac_ext >&5
  2046. ac_retval=1
  2047. fi
  2048. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2049. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2050. # interfere with the next link command; also delete a directory that is
  2051. # left behind by Apple's compiler. We do this before executing the actions.
  2052. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2053. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2054. as_fn_set_status $ac_retval
  2055. } # ac_fn_cxx_try_link
  2056. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2057. # -------------------------------------------
  2058. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2059. # variable VAR accordingly.
  2060. ac_fn_c_check_type ()
  2061. {
  2062. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2064. printf %s "checking for $2... " >&6; }
  2065. if eval test \${$3+y}
  2066. then :
  2067. printf %s "(cached) " >&6
  2068. else $as_nop
  2069. eval "$3=no"
  2070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2071. /* end confdefs.h. */
  2072. $4
  2073. int
  2074. main (void)
  2075. {
  2076. if (sizeof ($2))
  2077. return 0;
  2078. ;
  2079. return 0;
  2080. }
  2081. _ACEOF
  2082. if ac_fn_c_try_compile "$LINENO"
  2083. then :
  2084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2085. /* end confdefs.h. */
  2086. $4
  2087. int
  2088. main (void)
  2089. {
  2090. if (sizeof (($2)))
  2091. return 0;
  2092. ;
  2093. return 0;
  2094. }
  2095. _ACEOF
  2096. if ac_fn_c_try_compile "$LINENO"
  2097. then :
  2098. else $as_nop
  2099. eval "$3=yes"
  2100. fi
  2101. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2104. fi
  2105. eval ac_res=\$$3
  2106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2107. printf "%s\n" "$ac_res" >&6; }
  2108. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2109. } # ac_fn_c_check_type
  2110. # ac_fn_c_try_cpp LINENO
  2111. # ----------------------
  2112. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2113. ac_fn_c_try_cpp ()
  2114. {
  2115. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2116. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2117. case "(($ac_try" in
  2118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2119. *) ac_try_echo=$ac_try;;
  2120. esac
  2121. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2122. printf "%s\n" "$ac_try_echo"; } >&5
  2123. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2124. ac_status=$?
  2125. if test -s conftest.err; then
  2126. grep -v '^ *+' conftest.err >conftest.er1
  2127. cat conftest.er1 >&5
  2128. mv -f conftest.er1 conftest.err
  2129. fi
  2130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2131. test $ac_status = 0; } > conftest.i && {
  2132. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2133. test ! -s conftest.err
  2134. }
  2135. then :
  2136. ac_retval=0
  2137. else $as_nop
  2138. printf "%s\n" "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. ac_retval=1
  2141. fi
  2142. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2143. as_fn_set_status $ac_retval
  2144. } # ac_fn_c_try_cpp
  2145. # ac_fn_c_try_run LINENO
  2146. # ----------------------
  2147. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2148. # executables *can* be run.
  2149. ac_fn_c_try_run ()
  2150. {
  2151. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2152. if { { ac_try="$ac_link"
  2153. case "(($ac_try" in
  2154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2155. *) ac_try_echo=$ac_try;;
  2156. esac
  2157. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2158. printf "%s\n" "$ac_try_echo"; } >&5
  2159. (eval "$ac_link") 2>&5
  2160. ac_status=$?
  2161. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2162. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2163. { { case "(($ac_try" in
  2164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2165. *) ac_try_echo=$ac_try;;
  2166. esac
  2167. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2168. printf "%s\n" "$ac_try_echo"; } >&5
  2169. (eval "$ac_try") 2>&5
  2170. ac_status=$?
  2171. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2172. test $ac_status = 0; }; }
  2173. then :
  2174. ac_retval=0
  2175. else $as_nop
  2176. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2177. printf "%s\n" "$as_me: failed program was:" >&5
  2178. sed 's/^/| /' conftest.$ac_ext >&5
  2179. ac_retval=$ac_status
  2180. fi
  2181. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2182. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2183. as_fn_set_status $ac_retval
  2184. } # ac_fn_c_try_run
  2185. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2186. # ----------------------------------------------------
  2187. # Tries to find if the field MEMBER exists in type AGGR, after including
  2188. # INCLUDES, setting cache variable VAR accordingly.
  2189. ac_fn_c_check_member ()
  2190. {
  2191. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2193. printf %s "checking for $2.$3... " >&6; }
  2194. if eval test \${$4+y}
  2195. then :
  2196. printf %s "(cached) " >&6
  2197. else $as_nop
  2198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2199. /* end confdefs.h. */
  2200. $5
  2201. int
  2202. main (void)
  2203. {
  2204. static $2 ac_aggr;
  2205. if (ac_aggr.$3)
  2206. return 0;
  2207. ;
  2208. return 0;
  2209. }
  2210. _ACEOF
  2211. if ac_fn_c_try_compile "$LINENO"
  2212. then :
  2213. eval "$4=yes"
  2214. else $as_nop
  2215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2216. /* end confdefs.h. */
  2217. $5
  2218. int
  2219. main (void)
  2220. {
  2221. static $2 ac_aggr;
  2222. if (sizeof ac_aggr.$3)
  2223. return 0;
  2224. ;
  2225. return 0;
  2226. }
  2227. _ACEOF
  2228. if ac_fn_c_try_compile "$LINENO"
  2229. then :
  2230. eval "$4=yes"
  2231. else $as_nop
  2232. eval "$4=no"
  2233. fi
  2234. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2235. fi
  2236. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2237. fi
  2238. eval ac_res=\$$4
  2239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2240. printf "%s\n" "$ac_res" >&6; }
  2241. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2242. } # ac_fn_c_check_member
  2243. ac_configure_args_raw=
  2244. for ac_arg
  2245. do
  2246. case $ac_arg in
  2247. *\'*)
  2248. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2249. esac
  2250. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2251. done
  2252. case $ac_configure_args_raw in
  2253. *$as_nl*)
  2254. ac_safe_unquote= ;;
  2255. *)
  2256. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2257. ac_unsafe_a="$ac_unsafe_z#~"
  2258. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2259. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2260. esac
  2261. cat >config.log <<_ACEOF
  2262. This file contains any messages produced by compilers while
  2263. running configure, to aid debugging if configure makes a mistake.
  2264. It was created by $as_me, which was
  2265. generated by GNU Autoconf 2.71. Invocation command line was
  2266. $ $0$ac_configure_args_raw
  2267. _ACEOF
  2268. exec 5>>config.log
  2269. {
  2270. cat <<_ASUNAME
  2271. ## --------- ##
  2272. ## Platform. ##
  2273. ## --------- ##
  2274. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2275. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2276. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2277. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2278. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2279. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2280. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2281. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2282. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2283. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2284. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2285. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2286. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2287. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2288. _ASUNAME
  2289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2290. for as_dir in $PATH
  2291. do
  2292. IFS=$as_save_IFS
  2293. case $as_dir in #(((
  2294. '') as_dir=./ ;;
  2295. */) ;;
  2296. *) as_dir=$as_dir/ ;;
  2297. esac
  2298. printf "%s\n" "PATH: $as_dir"
  2299. done
  2300. IFS=$as_save_IFS
  2301. } >&5
  2302. cat >&5 <<_ACEOF
  2303. ## ----------- ##
  2304. ## Core tests. ##
  2305. ## ----------- ##
  2306. _ACEOF
  2307. # Keep a trace of the command line.
  2308. # Strip out --no-create and --no-recursion so they do not pile up.
  2309. # Strip out --silent because we don't want to record it for future runs.
  2310. # Also quote any args containing shell meta-characters.
  2311. # Make two passes to allow for proper duplicate-argument suppression.
  2312. ac_configure_args=
  2313. ac_configure_args0=
  2314. ac_configure_args1=
  2315. ac_must_keep_next=false
  2316. for ac_pass in 1 2
  2317. do
  2318. for ac_arg
  2319. do
  2320. case $ac_arg in
  2321. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2322. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2323. | -silent | --silent | --silen | --sile | --sil)
  2324. continue ;;
  2325. *\'*)
  2326. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2327. esac
  2328. case $ac_pass in
  2329. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2330. 2)
  2331. as_fn_append ac_configure_args1 " '$ac_arg'"
  2332. if test $ac_must_keep_next = true; then
  2333. ac_must_keep_next=false # Got value, back to normal.
  2334. else
  2335. case $ac_arg in
  2336. *=* | --config-cache | -C | -disable-* | --disable-* \
  2337. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2338. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2339. | -with-* | --with-* | -without-* | --without-* | --x)
  2340. case "$ac_configure_args0 " in
  2341. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2342. esac
  2343. ;;
  2344. -* ) ac_must_keep_next=true ;;
  2345. esac
  2346. fi
  2347. as_fn_append ac_configure_args " '$ac_arg'"
  2348. ;;
  2349. esac
  2350. done
  2351. done
  2352. { ac_configure_args0=; unset ac_configure_args0;}
  2353. { ac_configure_args1=; unset ac_configure_args1;}
  2354. # When interrupted or exit'd, cleanup temporary files, and complete
  2355. # config.log. We remove comments because anyway the quotes in there
  2356. # would cause problems or look ugly.
  2357. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2358. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2359. trap 'exit_status=$?
  2360. # Sanitize IFS.
  2361. IFS=" "" $as_nl"
  2362. # Save into config.log some information that might help in debugging.
  2363. {
  2364. echo
  2365. printf "%s\n" "## ---------------- ##
  2366. ## Cache variables. ##
  2367. ## ---------------- ##"
  2368. echo
  2369. # The following way of writing the cache mishandles newlines in values,
  2370. (
  2371. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2372. eval ac_val=\$$ac_var
  2373. case $ac_val in #(
  2374. *${as_nl}*)
  2375. case $ac_var in #(
  2376. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2377. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2378. esac
  2379. case $ac_var in #(
  2380. _ | IFS | as_nl) ;; #(
  2381. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2382. *) { eval $ac_var=; unset $ac_var;} ;;
  2383. esac ;;
  2384. esac
  2385. done
  2386. (set) 2>&1 |
  2387. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2388. *${as_nl}ac_space=\ *)
  2389. sed -n \
  2390. "s/'\''/'\''\\\\'\'''\''/g;
  2391. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2392. ;; #(
  2393. *)
  2394. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2395. ;;
  2396. esac |
  2397. sort
  2398. )
  2399. echo
  2400. printf "%s\n" "## ----------------- ##
  2401. ## Output variables. ##
  2402. ## ----------------- ##"
  2403. echo
  2404. for ac_var in $ac_subst_vars
  2405. do
  2406. eval ac_val=\$$ac_var
  2407. case $ac_val in
  2408. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2409. esac
  2410. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2411. done | sort
  2412. echo
  2413. if test -n "$ac_subst_files"; then
  2414. printf "%s\n" "## ------------------- ##
  2415. ## File substitutions. ##
  2416. ## ------------------- ##"
  2417. echo
  2418. for ac_var in $ac_subst_files
  2419. do
  2420. eval ac_val=\$$ac_var
  2421. case $ac_val in
  2422. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2423. esac
  2424. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2425. done | sort
  2426. echo
  2427. fi
  2428. if test -s confdefs.h; then
  2429. printf "%s\n" "## ----------- ##
  2430. ## confdefs.h. ##
  2431. ## ----------- ##"
  2432. echo
  2433. cat confdefs.h
  2434. echo
  2435. fi
  2436. test "$ac_signal" != 0 &&
  2437. printf "%s\n" "$as_me: caught signal $ac_signal"
  2438. printf "%s\n" "$as_me: exit $exit_status"
  2439. } >&5
  2440. rm -f core *.core core.conftest.* &&
  2441. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2442. exit $exit_status
  2443. ' 0
  2444. for ac_signal in 1 2 13 15; do
  2445. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2446. done
  2447. ac_signal=0
  2448. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2449. rm -f -r conftest* confdefs.h
  2450. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2451. # Predefined preprocessor variables.
  2452. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2453. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2454. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2455. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2456. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2457. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2458. # Let the site file select an alternate cache file if it wants to.
  2459. # Prefer an explicitly selected file to automatically selected ones.
  2460. if test -n "$CONFIG_SITE"; then
  2461. ac_site_files="$CONFIG_SITE"
  2462. elif test "x$prefix" != xNONE; then
  2463. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2464. else
  2465. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2466. fi
  2467. for ac_site_file in $ac_site_files
  2468. do
  2469. case $ac_site_file in #(
  2470. */*) :
  2471. ;; #(
  2472. *) :
  2473. ac_site_file=./$ac_site_file ;;
  2474. esac
  2475. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2477. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2478. sed 's/^/| /' "$ac_site_file" >&5
  2479. . "$ac_site_file" \
  2480. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2481. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2482. as_fn_error $? "failed to load site script $ac_site_file
  2483. See \`config.log' for more details" "$LINENO" 5; }
  2484. fi
  2485. done
  2486. if test -r "$cache_file"; then
  2487. # Some versions of bash will fail to source /dev/null (special files
  2488. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2489. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2491. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2492. case $cache_file in
  2493. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2494. *) . "./$cache_file";;
  2495. esac
  2496. fi
  2497. else
  2498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2499. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2500. >$cache_file
  2501. fi
  2502. # Test code for whether the C compiler supports C89 (global declarations)
  2503. ac_c_conftest_c89_globals='
  2504. /* Does the compiler advertise C89 conformance?
  2505. Do not test the value of __STDC__, because some compilers set it to 0
  2506. while being otherwise adequately conformant. */
  2507. #if !defined __STDC__
  2508. # error "Compiler does not advertise C89 conformance"
  2509. #endif
  2510. #include <stddef.h>
  2511. #include <stdarg.h>
  2512. struct stat;
  2513. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2514. struct buf { int x; };
  2515. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2516. static char *e (p, i)
  2517. char **p;
  2518. int i;
  2519. {
  2520. return p[i];
  2521. }
  2522. static char *f (char * (*g) (char **, int), char **p, ...)
  2523. {
  2524. char *s;
  2525. va_list v;
  2526. va_start (v,p);
  2527. s = g (p, va_arg (v,int));
  2528. va_end (v);
  2529. return s;
  2530. }
  2531. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2532. function prototypes and stuff, but not \xHH hex character constants.
  2533. These do not provoke an error unfortunately, instead are silently treated
  2534. as an "x". The following induces an error, until -std is added to get
  2535. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2536. array size at least. It is necessary to write \x00 == 0 to get something
  2537. that is true only with -std. */
  2538. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2539. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2540. inside strings and character constants. */
  2541. #define FOO(x) '\''x'\''
  2542. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2543. int test (int i, double x);
  2544. struct s1 {int (*f) (int a);};
  2545. struct s2 {int (*f) (double a);};
  2546. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2547. int, int);'
  2548. # Test code for whether the C compiler supports C89 (body of main).
  2549. ac_c_conftest_c89_main='
  2550. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2551. '
  2552. # Test code for whether the C compiler supports C99 (global declarations)
  2553. ac_c_conftest_c99_globals='
  2554. // Does the compiler advertise C99 conformance?
  2555. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2556. # error "Compiler does not advertise C99 conformance"
  2557. #endif
  2558. #include <stdbool.h>
  2559. extern int puts (const char *);
  2560. extern int printf (const char *, ...);
  2561. extern int dprintf (int, const char *, ...);
  2562. extern void *malloc (size_t);
  2563. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2564. // dprintf is used instead of fprintf to avoid needing to declare
  2565. // FILE and stderr.
  2566. #define debug(...) dprintf (2, __VA_ARGS__)
  2567. #define showlist(...) puts (#__VA_ARGS__)
  2568. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2569. static void
  2570. test_varargs_macros (void)
  2571. {
  2572. int x = 1234;
  2573. int y = 5678;
  2574. debug ("Flag");
  2575. debug ("X = %d\n", x);
  2576. showlist (The first, second, and third items.);
  2577. report (x>y, "x is %d but y is %d", x, y);
  2578. }
  2579. // Check long long types.
  2580. #define BIG64 18446744073709551615ull
  2581. #define BIG32 4294967295ul
  2582. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2583. #if !BIG_OK
  2584. #error "your preprocessor is broken"
  2585. #endif
  2586. #if BIG_OK
  2587. #else
  2588. #error "your preprocessor is broken"
  2589. #endif
  2590. static long long int bignum = -9223372036854775807LL;
  2591. static unsigned long long int ubignum = BIG64;
  2592. struct incomplete_array
  2593. {
  2594. int datasize;
  2595. double data[];
  2596. };
  2597. struct named_init {
  2598. int number;
  2599. const wchar_t *name;
  2600. double average;
  2601. };
  2602. typedef const char *ccp;
  2603. static inline int
  2604. test_restrict (ccp restrict text)
  2605. {
  2606. // See if C++-style comments work.
  2607. // Iterate through items via the restricted pointer.
  2608. // Also check for declarations in for loops.
  2609. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2610. continue;
  2611. return 0;
  2612. }
  2613. // Check varargs and va_copy.
  2614. static bool
  2615. test_varargs (const char *format, ...)
  2616. {
  2617. va_list args;
  2618. va_start (args, format);
  2619. va_list args_copy;
  2620. va_copy (args_copy, args);
  2621. const char *str = "";
  2622. int number = 0;
  2623. float fnumber = 0;
  2624. while (*format)
  2625. {
  2626. switch (*format++)
  2627. {
  2628. case '\''s'\'': // string
  2629. str = va_arg (args_copy, const char *);
  2630. break;
  2631. case '\''d'\'': // int
  2632. number = va_arg (args_copy, int);
  2633. break;
  2634. case '\''f'\'': // float
  2635. fnumber = va_arg (args_copy, double);
  2636. break;
  2637. default:
  2638. break;
  2639. }
  2640. }
  2641. va_end (args_copy);
  2642. va_end (args);
  2643. return *str && number && fnumber;
  2644. }
  2645. '
  2646. # Test code for whether the C compiler supports C99 (body of main).
  2647. ac_c_conftest_c99_main='
  2648. // Check bool.
  2649. _Bool success = false;
  2650. success |= (argc != 0);
  2651. // Check restrict.
  2652. if (test_restrict ("String literal") == 0)
  2653. success = true;
  2654. char *restrict newvar = "Another string";
  2655. // Check varargs.
  2656. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2657. test_varargs_macros ();
  2658. // Check flexible array members.
  2659. struct incomplete_array *ia =
  2660. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2661. ia->datasize = 10;
  2662. for (int i = 0; i < ia->datasize; ++i)
  2663. ia->data[i] = i * 1.234;
  2664. // Check named initializers.
  2665. struct named_init ni = {
  2666. .number = 34,
  2667. .name = L"Test wide string",
  2668. .average = 543.34343,
  2669. };
  2670. ni.number = 58;
  2671. int dynamic_array[ni.number];
  2672. dynamic_array[0] = argv[0][0];
  2673. dynamic_array[ni.number - 1] = 543;
  2674. // work around unused variable warnings
  2675. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2676. || dynamic_array[ni.number - 1] != 543);
  2677. '
  2678. # Test code for whether the C compiler supports C11 (global declarations)
  2679. ac_c_conftest_c11_globals='
  2680. // Does the compiler advertise C11 conformance?
  2681. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2682. # error "Compiler does not advertise C11 conformance"
  2683. #endif
  2684. // Check _Alignas.
  2685. char _Alignas (double) aligned_as_double;
  2686. char _Alignas (0) no_special_alignment;
  2687. extern char aligned_as_int;
  2688. char _Alignas (0) _Alignas (int) aligned_as_int;
  2689. // Check _Alignof.
  2690. enum
  2691. {
  2692. int_alignment = _Alignof (int),
  2693. int_array_alignment = _Alignof (int[100]),
  2694. char_alignment = _Alignof (char)
  2695. };
  2696. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2697. // Check _Noreturn.
  2698. int _Noreturn does_not_return (void) { for (;;) continue; }
  2699. // Check _Static_assert.
  2700. struct test_static_assert
  2701. {
  2702. int x;
  2703. _Static_assert (sizeof (int) <= sizeof (long int),
  2704. "_Static_assert does not work in struct");
  2705. long int y;
  2706. };
  2707. // Check UTF-8 literals.
  2708. #define u8 syntax error!
  2709. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2710. // Check duplicate typedefs.
  2711. typedef long *long_ptr;
  2712. typedef long int *long_ptr;
  2713. typedef long_ptr long_ptr;
  2714. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2715. struct anonymous
  2716. {
  2717. union {
  2718. struct { int i; int j; };
  2719. struct { int k; long int l; } w;
  2720. };
  2721. int m;
  2722. } v1;
  2723. '
  2724. # Test code for whether the C compiler supports C11 (body of main).
  2725. ac_c_conftest_c11_main='
  2726. _Static_assert ((offsetof (struct anonymous, i)
  2727. == offsetof (struct anonymous, w.k)),
  2728. "Anonymous union alignment botch");
  2729. v1.i = 2;
  2730. v1.w.k = 5;
  2731. ok |= v1.i != 5;
  2732. '
  2733. # Test code for whether the C compiler supports C11 (complete).
  2734. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2735. ${ac_c_conftest_c99_globals}
  2736. ${ac_c_conftest_c11_globals}
  2737. int
  2738. main (int argc, char **argv)
  2739. {
  2740. int ok = 0;
  2741. ${ac_c_conftest_c89_main}
  2742. ${ac_c_conftest_c99_main}
  2743. ${ac_c_conftest_c11_main}
  2744. return ok;
  2745. }
  2746. "
  2747. # Test code for whether the C compiler supports C99 (complete).
  2748. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2749. ${ac_c_conftest_c99_globals}
  2750. int
  2751. main (int argc, char **argv)
  2752. {
  2753. int ok = 0;
  2754. ${ac_c_conftest_c89_main}
  2755. ${ac_c_conftest_c99_main}
  2756. return ok;
  2757. }
  2758. "
  2759. # Test code for whether the C compiler supports C89 (complete).
  2760. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2761. int
  2762. main (int argc, char **argv)
  2763. {
  2764. int ok = 0;
  2765. ${ac_c_conftest_c89_main}
  2766. return ok;
  2767. }
  2768. "
  2769. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2770. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2771. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2772. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2773. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2774. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2775. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2776. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2777. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2778. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2779. ac_cxx_conftest_cxx98_globals='
  2780. // Does the compiler advertise C++98 conformance?
  2781. #if !defined __cplusplus || __cplusplus < 199711L
  2782. # error "Compiler does not advertise C++98 conformance"
  2783. #endif
  2784. // These inclusions are to reject old compilers that
  2785. // lack the unsuffixed header files.
  2786. #include <cstdlib>
  2787. #include <exception>
  2788. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2789. extern void assert (int);
  2790. namespace std {
  2791. extern int strcmp (const char *, const char *);
  2792. }
  2793. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2794. using std::exception;
  2795. using std::strcmp;
  2796. namespace {
  2797. void test_exception_syntax()
  2798. {
  2799. try {
  2800. throw "test";
  2801. } catch (const char *s) {
  2802. // Extra parentheses suppress a warning when building autoconf itself,
  2803. // due to lint rules shared with more typical C programs.
  2804. assert (!(strcmp) (s, "test"));
  2805. }
  2806. }
  2807. template <typename T> struct test_template
  2808. {
  2809. T const val;
  2810. explicit test_template(T t) : val(t) {}
  2811. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2812. };
  2813. } // anonymous namespace
  2814. '
  2815. # Test code for whether the C++ compiler supports C++98 (body of main)
  2816. ac_cxx_conftest_cxx98_main='
  2817. assert (argc);
  2818. assert (! argv[0]);
  2819. {
  2820. test_exception_syntax ();
  2821. test_template<double> tt (2.0);
  2822. assert (tt.add (4) == 6.0);
  2823. assert (true && !false);
  2824. }
  2825. '
  2826. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2827. ac_cxx_conftest_cxx11_globals='
  2828. // Does the compiler advertise C++ 2011 conformance?
  2829. #if !defined __cplusplus || __cplusplus < 201103L
  2830. # error "Compiler does not advertise C++11 conformance"
  2831. #endif
  2832. namespace cxx11test
  2833. {
  2834. constexpr int get_val() { return 20; }
  2835. struct testinit
  2836. {
  2837. int i;
  2838. double d;
  2839. };
  2840. class delegate
  2841. {
  2842. public:
  2843. delegate(int n) : n(n) {}
  2844. delegate(): delegate(2354) {}
  2845. virtual int getval() { return this->n; };
  2846. protected:
  2847. int n;
  2848. };
  2849. class overridden : public delegate
  2850. {
  2851. public:
  2852. overridden(int n): delegate(n) {}
  2853. virtual int getval() override final { return this->n * 2; }
  2854. };
  2855. class nocopy
  2856. {
  2857. public:
  2858. nocopy(int i): i(i) {}
  2859. nocopy() = default;
  2860. nocopy(const nocopy&) = delete;
  2861. nocopy & operator=(const nocopy&) = delete;
  2862. private:
  2863. int i;
  2864. };
  2865. // for testing lambda expressions
  2866. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2867. {
  2868. return f(v);
  2869. }
  2870. // for testing variadic templates and trailing return types
  2871. template <typename V> auto sum(V first) -> V
  2872. {
  2873. return first;
  2874. }
  2875. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2876. {
  2877. return first + sum(rest...);
  2878. }
  2879. }
  2880. '
  2881. # Test code for whether the C++ compiler supports C++11 (body of main)
  2882. ac_cxx_conftest_cxx11_main='
  2883. {
  2884. // Test auto and decltype
  2885. auto a1 = 6538;
  2886. auto a2 = 48573953.4;
  2887. auto a3 = "String literal";
  2888. int total = 0;
  2889. for (auto i = a3; *i; ++i) { total += *i; }
  2890. decltype(a2) a4 = 34895.034;
  2891. }
  2892. {
  2893. // Test constexpr
  2894. short sa[cxx11test::get_val()] = { 0 };
  2895. }
  2896. {
  2897. // Test initializer lists
  2898. cxx11test::testinit il = { 4323, 435234.23544 };
  2899. }
  2900. {
  2901. // Test range-based for
  2902. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2903. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2904. for (auto &x : array) { x += 23; }
  2905. }
  2906. {
  2907. // Test lambda expressions
  2908. using cxx11test::eval;
  2909. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2910. double d = 2.0;
  2911. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2912. assert (d == 5.0);
  2913. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2914. assert (d == 5.0);
  2915. }
  2916. {
  2917. // Test use of variadic templates
  2918. using cxx11test::sum;
  2919. auto a = sum(1);
  2920. auto b = sum(1, 2);
  2921. auto c = sum(1.0, 2.0, 3.0);
  2922. }
  2923. {
  2924. // Test constructor delegation
  2925. cxx11test::delegate d1;
  2926. cxx11test::delegate d2();
  2927. cxx11test::delegate d3(45);
  2928. }
  2929. {
  2930. // Test override and final
  2931. cxx11test::overridden o1(55464);
  2932. }
  2933. {
  2934. // Test nullptr
  2935. char *c = nullptr;
  2936. }
  2937. {
  2938. // Test template brackets
  2939. test_template<::test_template<int>> v(test_template<int>(12));
  2940. }
  2941. {
  2942. // Unicode literals
  2943. char const *utf8 = u8"UTF-8 string \u2500";
  2944. char16_t const *utf16 = u"UTF-8 string \u2500";
  2945. char32_t const *utf32 = U"UTF-32 string \u2500";
  2946. }
  2947. '
  2948. # Test code for whether the C compiler supports C++11 (complete).
  2949. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2950. ${ac_cxx_conftest_cxx11_globals}
  2951. int
  2952. main (int argc, char **argv)
  2953. {
  2954. int ok = 0;
  2955. ${ac_cxx_conftest_cxx98_main}
  2956. ${ac_cxx_conftest_cxx11_main}
  2957. return ok;
  2958. }
  2959. "
  2960. # Test code for whether the C compiler supports C++98 (complete).
  2961. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2962. int
  2963. main (int argc, char **argv)
  2964. {
  2965. int ok = 0;
  2966. ${ac_cxx_conftest_cxx98_main}
  2967. return ok;
  2968. }
  2969. "
  2970. # Auxiliary files required by this configure script.
  2971. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2972. # Locations in which to look for auxiliary files.
  2973. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2974. # Search for a directory containing all of the required auxiliary files,
  2975. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2976. # If we don't find one directory that contains all the files we need,
  2977. # we report the set of missing files from the *first* directory in
  2978. # $ac_aux_dir_candidates and give up.
  2979. ac_missing_aux_files=""
  2980. ac_first_candidate=:
  2981. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2983. as_found=false
  2984. for as_dir in $ac_aux_dir_candidates
  2985. do
  2986. IFS=$as_save_IFS
  2987. case $as_dir in #(((
  2988. '') as_dir=./ ;;
  2989. */) ;;
  2990. *) as_dir=$as_dir/ ;;
  2991. esac
  2992. as_found=:
  2993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2994. ac_aux_dir_found=yes
  2995. ac_install_sh=
  2996. for ac_aux in $ac_aux_files
  2997. do
  2998. # As a special case, if "install-sh" is required, that requirement
  2999. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3000. # and $ac_install_sh is set appropriately for whichever one is found.
  3001. if test x"$ac_aux" = x"install-sh"
  3002. then
  3003. if test -f "${as_dir}install-sh"; then
  3004. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3005. ac_install_sh="${as_dir}install-sh -c"
  3006. elif test -f "${as_dir}install.sh"; then
  3007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3008. ac_install_sh="${as_dir}install.sh -c"
  3009. elif test -f "${as_dir}shtool"; then
  3010. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3011. ac_install_sh="${as_dir}shtool install -c"
  3012. else
  3013. ac_aux_dir_found=no
  3014. if $ac_first_candidate; then
  3015. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3016. else
  3017. break
  3018. fi
  3019. fi
  3020. else
  3021. if test -f "${as_dir}${ac_aux}"; then
  3022. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3023. else
  3024. ac_aux_dir_found=no
  3025. if $ac_first_candidate; then
  3026. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3027. else
  3028. break
  3029. fi
  3030. fi
  3031. fi
  3032. done
  3033. if test "$ac_aux_dir_found" = yes; then
  3034. ac_aux_dir="$as_dir"
  3035. break
  3036. fi
  3037. ac_first_candidate=false
  3038. as_found=false
  3039. done
  3040. IFS=$as_save_IFS
  3041. if $as_found
  3042. then :
  3043. else $as_nop
  3044. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3045. fi
  3046. # These three variables are undocumented and unsupported,
  3047. # and are intended to be withdrawn in a future Autoconf release.
  3048. # They can cause serious problems if a builder's source tree is in a directory
  3049. # whose full name contains unusual characters.
  3050. if test -f "${ac_aux_dir}config.guess"; then
  3051. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3052. fi
  3053. if test -f "${ac_aux_dir}config.sub"; then
  3054. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3055. fi
  3056. if test -f "$ac_aux_dir/configure"; then
  3057. ac_configure="$SHELL ${ac_aux_dir}configure"
  3058. fi
  3059. # Check that the precious variables saved in the cache have kept the same
  3060. # value.
  3061. ac_cache_corrupted=false
  3062. for ac_var in $ac_precious_vars; do
  3063. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3064. eval ac_new_set=\$ac_env_${ac_var}_set
  3065. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3066. eval ac_new_val=\$ac_env_${ac_var}_value
  3067. case $ac_old_set,$ac_new_set in
  3068. set,)
  3069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3070. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3071. ac_cache_corrupted=: ;;
  3072. ,set)
  3073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3074. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3075. ac_cache_corrupted=: ;;
  3076. ,);;
  3077. *)
  3078. if test "x$ac_old_val" != "x$ac_new_val"; then
  3079. # differences in whitespace do not lead to failure.
  3080. ac_old_val_w=`echo x $ac_old_val`
  3081. ac_new_val_w=`echo x $ac_new_val`
  3082. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3084. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3085. ac_cache_corrupted=:
  3086. else
  3087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3088. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3089. eval $ac_var=\$ac_old_val
  3090. fi
  3091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3092. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3094. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3095. fi;;
  3096. esac
  3097. # Pass precious variables to config.status.
  3098. if test "$ac_new_set" = set; then
  3099. case $ac_new_val in
  3100. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3101. *) ac_arg=$ac_var=$ac_new_val ;;
  3102. esac
  3103. case " $ac_configure_args " in
  3104. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3105. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3106. esac
  3107. fi
  3108. done
  3109. if $ac_cache_corrupted; then
  3110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3111. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3113. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3114. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3115. and start over" "$LINENO" 5
  3116. fi
  3117. ## -------------------- ##
  3118. ## Main body of script. ##
  3119. ## -------------------- ##
  3120. ac_ext=c
  3121. ac_cpp='$CPP $CPPFLAGS'
  3122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3125. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3126. orig_CFLAGS="$CFLAGS"
  3127. # See docs/release_checklist.md
  3128. SDL_MAJOR_VERSION=2
  3129. SDL_MINOR_VERSION=23
  3130. SDL_MICRO_VERSION=2
  3131. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3132. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3133. case "$SDL_MINOR_VERSION" in #(
  3134. *[02468]) :
  3135. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3136. *) :
  3137. SDL_INTERFACE_AGE=0 ;; #(
  3138. *) :
  3139. ;;
  3140. esac
  3141. # libtool versioning
  3142. case `pwd` in
  3143. *\ * | *\ *)
  3144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3145. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3146. esac
  3147. macro_version='2.4.6'
  3148. macro_revision='2.4.6'
  3149. ltmain=$ac_aux_dir/ltmain.sh
  3150. # Make sure we can run config.sub.
  3151. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3152. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3154. printf %s "checking build system type... " >&6; }
  3155. if test ${ac_cv_build+y}
  3156. then :
  3157. printf %s "(cached) " >&6
  3158. else $as_nop
  3159. ac_build_alias=$build_alias
  3160. test "x$ac_build_alias" = x &&
  3161. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3162. test "x$ac_build_alias" = x &&
  3163. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3164. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3165. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3166. fi
  3167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3168. printf "%s\n" "$ac_cv_build" >&6; }
  3169. case $ac_cv_build in
  3170. *-*-*) ;;
  3171. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3172. esac
  3173. build=$ac_cv_build
  3174. ac_save_IFS=$IFS; IFS='-'
  3175. set x $ac_cv_build
  3176. shift
  3177. build_cpu=$1
  3178. build_vendor=$2
  3179. shift; shift
  3180. # Remember, the first character of IFS is used to create $*,
  3181. # except with old shells:
  3182. build_os=$*
  3183. IFS=$ac_save_IFS
  3184. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3186. printf %s "checking host system type... " >&6; }
  3187. if test ${ac_cv_host+y}
  3188. then :
  3189. printf %s "(cached) " >&6
  3190. else $as_nop
  3191. if test "x$host_alias" = x; then
  3192. ac_cv_host=$ac_cv_build
  3193. else
  3194. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3195. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3196. fi
  3197. fi
  3198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3199. printf "%s\n" "$ac_cv_host" >&6; }
  3200. case $ac_cv_host in
  3201. *-*-*) ;;
  3202. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3203. esac
  3204. host=$ac_cv_host
  3205. ac_save_IFS=$IFS; IFS='-'
  3206. set x $ac_cv_host
  3207. shift
  3208. host_cpu=$1
  3209. host_vendor=$2
  3210. shift; shift
  3211. # Remember, the first character of IFS is used to create $*,
  3212. # except with old shells:
  3213. host_os=$*
  3214. IFS=$ac_save_IFS
  3215. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3216. # Backslashify metacharacters that are still active within
  3217. # double-quoted strings.
  3218. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3219. # Same as above, but do not quote variable references.
  3220. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3221. # Sed substitution to delay expansion of an escaped shell variable in a
  3222. # double_quote_subst'ed string.
  3223. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3224. # Sed substitution to delay expansion of an escaped single quote.
  3225. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3226. # Sed substitution to avoid accidental globbing in evaled expressions
  3227. no_glob_subst='s/\*/\\\*/g'
  3228. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3229. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3230. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3232. printf %s "checking how to print strings... " >&6; }
  3233. # Test print first, because it will be a builtin if present.
  3234. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3235. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3236. ECHO='print -r --'
  3237. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3238. ECHO='printf %s\n'
  3239. else
  3240. # Use this function as a fallback that always works.
  3241. func_fallback_echo ()
  3242. {
  3243. eval 'cat <<_LTECHO_EOF
  3244. $1
  3245. _LTECHO_EOF'
  3246. }
  3247. ECHO='func_fallback_echo'
  3248. fi
  3249. # func_echo_all arg...
  3250. # Invoke $ECHO with all args, space-separated.
  3251. func_echo_all ()
  3252. {
  3253. $ECHO ""
  3254. }
  3255. case $ECHO in
  3256. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3257. printf "%s\n" "printf" >&6; } ;;
  3258. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3259. printf "%s\n" "print -r" >&6; } ;;
  3260. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3261. printf "%s\n" "cat" >&6; } ;;
  3262. esac
  3263. ac_ext=c
  3264. ac_cpp='$CPP $CPPFLAGS'
  3265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3268. if test -n "$ac_tool_prefix"; then
  3269. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3270. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3272. printf %s "checking for $ac_word... " >&6; }
  3273. if test ${ac_cv_prog_CC+y}
  3274. then :
  3275. printf %s "(cached) " >&6
  3276. else $as_nop
  3277. if test -n "$CC"; then
  3278. ac_cv_prog_CC="$CC" # Let the user override the test.
  3279. else
  3280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3281. for as_dir in $PATH
  3282. do
  3283. IFS=$as_save_IFS
  3284. case $as_dir in #(((
  3285. '') as_dir=./ ;;
  3286. */) ;;
  3287. *) as_dir=$as_dir/ ;;
  3288. esac
  3289. for ac_exec_ext in '' $ac_executable_extensions; do
  3290. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3291. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3293. break 2
  3294. fi
  3295. done
  3296. done
  3297. IFS=$as_save_IFS
  3298. fi
  3299. fi
  3300. CC=$ac_cv_prog_CC
  3301. if test -n "$CC"; then
  3302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3303. printf "%s\n" "$CC" >&6; }
  3304. else
  3305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3306. printf "%s\n" "no" >&6; }
  3307. fi
  3308. fi
  3309. if test -z "$ac_cv_prog_CC"; then
  3310. ac_ct_CC=$CC
  3311. # Extract the first word of "gcc", so it can be a program name with args.
  3312. set dummy gcc; ac_word=$2
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3314. printf %s "checking for $ac_word... " >&6; }
  3315. if test ${ac_cv_prog_ac_ct_CC+y}
  3316. then :
  3317. printf %s "(cached) " >&6
  3318. else $as_nop
  3319. if test -n "$ac_ct_CC"; then
  3320. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3321. else
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH
  3324. do
  3325. IFS=$as_save_IFS
  3326. case $as_dir in #(((
  3327. '') as_dir=./ ;;
  3328. */) ;;
  3329. *) as_dir=$as_dir/ ;;
  3330. esac
  3331. for ac_exec_ext in '' $ac_executable_extensions; do
  3332. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3333. ac_cv_prog_ac_ct_CC="gcc"
  3334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3335. break 2
  3336. fi
  3337. done
  3338. done
  3339. IFS=$as_save_IFS
  3340. fi
  3341. fi
  3342. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3343. if test -n "$ac_ct_CC"; then
  3344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3345. printf "%s\n" "$ac_ct_CC" >&6; }
  3346. else
  3347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3348. printf "%s\n" "no" >&6; }
  3349. fi
  3350. if test "x$ac_ct_CC" = x; then
  3351. CC=""
  3352. else
  3353. case $cross_compiling:$ac_tool_warned in
  3354. yes:)
  3355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3356. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3357. ac_tool_warned=yes ;;
  3358. esac
  3359. CC=$ac_ct_CC
  3360. fi
  3361. else
  3362. CC="$ac_cv_prog_CC"
  3363. fi
  3364. if test -z "$CC"; then
  3365. if test -n "$ac_tool_prefix"; then
  3366. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3367. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3369. printf %s "checking for $ac_word... " >&6; }
  3370. if test ${ac_cv_prog_CC+y}
  3371. then :
  3372. printf %s "(cached) " >&6
  3373. else $as_nop
  3374. if test -n "$CC"; then
  3375. ac_cv_prog_CC="$CC" # Let the user override the test.
  3376. else
  3377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3378. for as_dir in $PATH
  3379. do
  3380. IFS=$as_save_IFS
  3381. case $as_dir in #(((
  3382. '') as_dir=./ ;;
  3383. */) ;;
  3384. *) as_dir=$as_dir/ ;;
  3385. esac
  3386. for ac_exec_ext in '' $ac_executable_extensions; do
  3387. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3388. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3389. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3390. break 2
  3391. fi
  3392. done
  3393. done
  3394. IFS=$as_save_IFS
  3395. fi
  3396. fi
  3397. CC=$ac_cv_prog_CC
  3398. if test -n "$CC"; then
  3399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3400. printf "%s\n" "$CC" >&6; }
  3401. else
  3402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403. printf "%s\n" "no" >&6; }
  3404. fi
  3405. fi
  3406. fi
  3407. if test -z "$CC"; then
  3408. # Extract the first word of "cc", so it can be a program name with args.
  3409. set dummy cc; ac_word=$2
  3410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3411. printf %s "checking for $ac_word... " >&6; }
  3412. if test ${ac_cv_prog_CC+y}
  3413. then :
  3414. printf %s "(cached) " >&6
  3415. else $as_nop
  3416. if test -n "$CC"; then
  3417. ac_cv_prog_CC="$CC" # Let the user override the test.
  3418. else
  3419. ac_prog_rejected=no
  3420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3421. for as_dir in $PATH
  3422. do
  3423. IFS=$as_save_IFS
  3424. case $as_dir in #(((
  3425. '') as_dir=./ ;;
  3426. */) ;;
  3427. *) as_dir=$as_dir/ ;;
  3428. esac
  3429. for ac_exec_ext in '' $ac_executable_extensions; do
  3430. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3431. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3432. ac_prog_rejected=yes
  3433. continue
  3434. fi
  3435. ac_cv_prog_CC="cc"
  3436. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3437. break 2
  3438. fi
  3439. done
  3440. done
  3441. IFS=$as_save_IFS
  3442. if test $ac_prog_rejected = yes; then
  3443. # We found a bogon in the path, so make sure we never use it.
  3444. set dummy $ac_cv_prog_CC
  3445. shift
  3446. if test $# != 0; then
  3447. # We chose a different compiler from the bogus one.
  3448. # However, it has the same basename, so the bogon will be chosen
  3449. # first if we set CC to just the basename; use the full file name.
  3450. shift
  3451. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3452. fi
  3453. fi
  3454. fi
  3455. fi
  3456. CC=$ac_cv_prog_CC
  3457. if test -n "$CC"; then
  3458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3459. printf "%s\n" "$CC" >&6; }
  3460. else
  3461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3462. printf "%s\n" "no" >&6; }
  3463. fi
  3464. fi
  3465. if test -z "$CC"; then
  3466. if test -n "$ac_tool_prefix"; then
  3467. for ac_prog in cl.exe
  3468. do
  3469. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3470. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3472. printf %s "checking for $ac_word... " >&6; }
  3473. if test ${ac_cv_prog_CC+y}
  3474. then :
  3475. printf %s "(cached) " >&6
  3476. else $as_nop
  3477. if test -n "$CC"; then
  3478. ac_cv_prog_CC="$CC" # Let the user override the test.
  3479. else
  3480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3481. for as_dir in $PATH
  3482. do
  3483. IFS=$as_save_IFS
  3484. case $as_dir in #(((
  3485. '') as_dir=./ ;;
  3486. */) ;;
  3487. *) as_dir=$as_dir/ ;;
  3488. esac
  3489. for ac_exec_ext in '' $ac_executable_extensions; do
  3490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3491. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3493. break 2
  3494. fi
  3495. done
  3496. done
  3497. IFS=$as_save_IFS
  3498. fi
  3499. fi
  3500. CC=$ac_cv_prog_CC
  3501. if test -n "$CC"; then
  3502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3503. printf "%s\n" "$CC" >&6; }
  3504. else
  3505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3506. printf "%s\n" "no" >&6; }
  3507. fi
  3508. test -n "$CC" && break
  3509. done
  3510. fi
  3511. if test -z "$CC"; then
  3512. ac_ct_CC=$CC
  3513. for ac_prog in cl.exe
  3514. do
  3515. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3516. set dummy $ac_prog; ac_word=$2
  3517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3518. printf %s "checking for $ac_word... " >&6; }
  3519. if test ${ac_cv_prog_ac_ct_CC+y}
  3520. then :
  3521. printf %s "(cached) " >&6
  3522. else $as_nop
  3523. if test -n "$ac_ct_CC"; then
  3524. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3525. else
  3526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3527. for as_dir in $PATH
  3528. do
  3529. IFS=$as_save_IFS
  3530. case $as_dir in #(((
  3531. '') as_dir=./ ;;
  3532. */) ;;
  3533. *) as_dir=$as_dir/ ;;
  3534. esac
  3535. for ac_exec_ext in '' $ac_executable_extensions; do
  3536. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3537. ac_cv_prog_ac_ct_CC="$ac_prog"
  3538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3539. break 2
  3540. fi
  3541. done
  3542. done
  3543. IFS=$as_save_IFS
  3544. fi
  3545. fi
  3546. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3547. if test -n "$ac_ct_CC"; then
  3548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3549. printf "%s\n" "$ac_ct_CC" >&6; }
  3550. else
  3551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3552. printf "%s\n" "no" >&6; }
  3553. fi
  3554. test -n "$ac_ct_CC" && break
  3555. done
  3556. if test "x$ac_ct_CC" = x; then
  3557. CC=""
  3558. else
  3559. case $cross_compiling:$ac_tool_warned in
  3560. yes:)
  3561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3562. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3563. ac_tool_warned=yes ;;
  3564. esac
  3565. CC=$ac_ct_CC
  3566. fi
  3567. fi
  3568. fi
  3569. if test -z "$CC"; then
  3570. if test -n "$ac_tool_prefix"; then
  3571. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3572. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3574. printf %s "checking for $ac_word... " >&6; }
  3575. if test ${ac_cv_prog_CC+y}
  3576. then :
  3577. printf %s "(cached) " >&6
  3578. else $as_nop
  3579. if test -n "$CC"; then
  3580. ac_cv_prog_CC="$CC" # Let the user override the test.
  3581. else
  3582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3583. for as_dir in $PATH
  3584. do
  3585. IFS=$as_save_IFS
  3586. case $as_dir in #(((
  3587. '') as_dir=./ ;;
  3588. */) ;;
  3589. *) as_dir=$as_dir/ ;;
  3590. esac
  3591. for ac_exec_ext in '' $ac_executable_extensions; do
  3592. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3593. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3595. break 2
  3596. fi
  3597. done
  3598. done
  3599. IFS=$as_save_IFS
  3600. fi
  3601. fi
  3602. CC=$ac_cv_prog_CC
  3603. if test -n "$CC"; then
  3604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3605. printf "%s\n" "$CC" >&6; }
  3606. else
  3607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3608. printf "%s\n" "no" >&6; }
  3609. fi
  3610. fi
  3611. if test -z "$ac_cv_prog_CC"; then
  3612. ac_ct_CC=$CC
  3613. # Extract the first word of "clang", so it can be a program name with args.
  3614. set dummy clang; ac_word=$2
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3616. printf %s "checking for $ac_word... " >&6; }
  3617. if test ${ac_cv_prog_ac_ct_CC+y}
  3618. then :
  3619. printf %s "(cached) " >&6
  3620. else $as_nop
  3621. if test -n "$ac_ct_CC"; then
  3622. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3623. else
  3624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625. for as_dir in $PATH
  3626. do
  3627. IFS=$as_save_IFS
  3628. case $as_dir in #(((
  3629. '') as_dir=./ ;;
  3630. */) ;;
  3631. *) as_dir=$as_dir/ ;;
  3632. esac
  3633. for ac_exec_ext in '' $ac_executable_extensions; do
  3634. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3635. ac_cv_prog_ac_ct_CC="clang"
  3636. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3637. break 2
  3638. fi
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. fi
  3643. fi
  3644. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3645. if test -n "$ac_ct_CC"; then
  3646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3647. printf "%s\n" "$ac_ct_CC" >&6; }
  3648. else
  3649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3650. printf "%s\n" "no" >&6; }
  3651. fi
  3652. if test "x$ac_ct_CC" = x; then
  3653. CC=""
  3654. else
  3655. case $cross_compiling:$ac_tool_warned in
  3656. yes:)
  3657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3658. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3659. ac_tool_warned=yes ;;
  3660. esac
  3661. CC=$ac_ct_CC
  3662. fi
  3663. else
  3664. CC="$ac_cv_prog_CC"
  3665. fi
  3666. fi
  3667. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3668. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3669. as_fn_error $? "no acceptable C compiler found in \$PATH
  3670. See \`config.log' for more details" "$LINENO" 5; }
  3671. # Provide some information about the compiler.
  3672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3673. set X $ac_compile
  3674. ac_compiler=$2
  3675. for ac_option in --version -v -V -qversion -version; do
  3676. { { ac_try="$ac_compiler $ac_option >&5"
  3677. case "(($ac_try" in
  3678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3679. *) ac_try_echo=$ac_try;;
  3680. esac
  3681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3682. printf "%s\n" "$ac_try_echo"; } >&5
  3683. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3684. ac_status=$?
  3685. if test -s conftest.err; then
  3686. sed '10a\
  3687. ... rest of stderr output deleted ...
  3688. 10q' conftest.err >conftest.er1
  3689. cat conftest.er1 >&5
  3690. fi
  3691. rm -f conftest.er1 conftest.err
  3692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3693. test $ac_status = 0; }
  3694. done
  3695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3696. /* end confdefs.h. */
  3697. int
  3698. main (void)
  3699. {
  3700. ;
  3701. return 0;
  3702. }
  3703. _ACEOF
  3704. ac_clean_files_save=$ac_clean_files
  3705. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3706. # Try to create an executable without -o first, disregard a.out.
  3707. # It will help us diagnose broken compilers, and finding out an intuition
  3708. # of exeext.
  3709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3710. printf %s "checking whether the C compiler works... " >&6; }
  3711. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3712. # The possible output files:
  3713. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3714. ac_rmfiles=
  3715. for ac_file in $ac_files
  3716. do
  3717. case $ac_file in
  3718. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3719. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3720. esac
  3721. done
  3722. rm -f $ac_rmfiles
  3723. if { { ac_try="$ac_link_default"
  3724. case "(($ac_try" in
  3725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3726. *) ac_try_echo=$ac_try;;
  3727. esac
  3728. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3729. printf "%s\n" "$ac_try_echo"; } >&5
  3730. (eval "$ac_link_default") 2>&5
  3731. ac_status=$?
  3732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3733. test $ac_status = 0; }
  3734. then :
  3735. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3736. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3737. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3738. # so that the user can short-circuit this test for compilers unknown to
  3739. # Autoconf.
  3740. for ac_file in $ac_files ''
  3741. do
  3742. test -f "$ac_file" || continue
  3743. case $ac_file in
  3744. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3745. ;;
  3746. [ab].out )
  3747. # We found the default executable, but exeext='' is most
  3748. # certainly right.
  3749. break;;
  3750. *.* )
  3751. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3752. then :; else
  3753. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3754. fi
  3755. # We set ac_cv_exeext here because the later test for it is not
  3756. # safe: cross compilers may not add the suffix if given an `-o'
  3757. # argument, so we may need to know it at that point already.
  3758. # Even if this section looks crufty: it has the advantage of
  3759. # actually working.
  3760. break;;
  3761. * )
  3762. break;;
  3763. esac
  3764. done
  3765. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3766. else $as_nop
  3767. ac_file=''
  3768. fi
  3769. if test -z "$ac_file"
  3770. then :
  3771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3772. printf "%s\n" "no" >&6; }
  3773. printf "%s\n" "$as_me: failed program was:" >&5
  3774. sed 's/^/| /' conftest.$ac_ext >&5
  3775. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3776. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3777. as_fn_error 77 "C compiler cannot create executables
  3778. See \`config.log' for more details" "$LINENO" 5; }
  3779. else $as_nop
  3780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3781. printf "%s\n" "yes" >&6; }
  3782. fi
  3783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3784. printf %s "checking for C compiler default output file name... " >&6; }
  3785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3786. printf "%s\n" "$ac_file" >&6; }
  3787. ac_exeext=$ac_cv_exeext
  3788. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3789. ac_clean_files=$ac_clean_files_save
  3790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3791. printf %s "checking for suffix of executables... " >&6; }
  3792. if { { ac_try="$ac_link"
  3793. case "(($ac_try" in
  3794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3795. *) ac_try_echo=$ac_try;;
  3796. esac
  3797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3798. printf "%s\n" "$ac_try_echo"; } >&5
  3799. (eval "$ac_link") 2>&5
  3800. ac_status=$?
  3801. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3802. test $ac_status = 0; }
  3803. then :
  3804. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3805. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3806. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3807. # `rm'.
  3808. for ac_file in conftest.exe conftest conftest.*; do
  3809. test -f "$ac_file" || continue
  3810. case $ac_file in
  3811. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3812. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3813. break;;
  3814. * ) break;;
  3815. esac
  3816. done
  3817. else $as_nop
  3818. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3819. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3820. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3821. See \`config.log' for more details" "$LINENO" 5; }
  3822. fi
  3823. rm -f conftest conftest$ac_cv_exeext
  3824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3825. printf "%s\n" "$ac_cv_exeext" >&6; }
  3826. rm -f conftest.$ac_ext
  3827. EXEEXT=$ac_cv_exeext
  3828. ac_exeext=$EXEEXT
  3829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3830. /* end confdefs.h. */
  3831. #include <stdio.h>
  3832. int
  3833. main (void)
  3834. {
  3835. FILE *f = fopen ("conftest.out", "w");
  3836. return ferror (f) || fclose (f) != 0;
  3837. ;
  3838. return 0;
  3839. }
  3840. _ACEOF
  3841. ac_clean_files="$ac_clean_files conftest.out"
  3842. # Check that the compiler produces executables we can run. If not, either
  3843. # the compiler is broken, or we cross compile.
  3844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3845. printf %s "checking whether we are cross compiling... " >&6; }
  3846. if test "$cross_compiling" != yes; then
  3847. { { ac_try="$ac_link"
  3848. case "(($ac_try" in
  3849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3850. *) ac_try_echo=$ac_try;;
  3851. esac
  3852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3853. printf "%s\n" "$ac_try_echo"; } >&5
  3854. (eval "$ac_link") 2>&5
  3855. ac_status=$?
  3856. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3857. test $ac_status = 0; }
  3858. if { ac_try='./conftest$ac_cv_exeext'
  3859. { { case "(($ac_try" in
  3860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3861. *) ac_try_echo=$ac_try;;
  3862. esac
  3863. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3864. printf "%s\n" "$ac_try_echo"; } >&5
  3865. (eval "$ac_try") 2>&5
  3866. ac_status=$?
  3867. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3868. test $ac_status = 0; }; }; then
  3869. cross_compiling=no
  3870. else
  3871. if test "$cross_compiling" = maybe; then
  3872. cross_compiling=yes
  3873. else
  3874. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3875. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3876. as_fn_error 77 "cannot run C compiled programs.
  3877. If you meant to cross compile, use \`--host'.
  3878. See \`config.log' for more details" "$LINENO" 5; }
  3879. fi
  3880. fi
  3881. fi
  3882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3883. printf "%s\n" "$cross_compiling" >&6; }
  3884. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3885. ac_clean_files=$ac_clean_files_save
  3886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3887. printf %s "checking for suffix of object files... " >&6; }
  3888. if test ${ac_cv_objext+y}
  3889. then :
  3890. printf %s "(cached) " >&6
  3891. else $as_nop
  3892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3893. /* end confdefs.h. */
  3894. int
  3895. main (void)
  3896. {
  3897. ;
  3898. return 0;
  3899. }
  3900. _ACEOF
  3901. rm -f conftest.o conftest.obj
  3902. if { { ac_try="$ac_compile"
  3903. case "(($ac_try" in
  3904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3905. *) ac_try_echo=$ac_try;;
  3906. esac
  3907. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3908. printf "%s\n" "$ac_try_echo"; } >&5
  3909. (eval "$ac_compile") 2>&5
  3910. ac_status=$?
  3911. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3912. test $ac_status = 0; }
  3913. then :
  3914. for ac_file in conftest.o conftest.obj conftest.*; do
  3915. test -f "$ac_file" || continue;
  3916. case $ac_file in
  3917. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3918. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3919. break;;
  3920. esac
  3921. done
  3922. else $as_nop
  3923. printf "%s\n" "$as_me: failed program was:" >&5
  3924. sed 's/^/| /' conftest.$ac_ext >&5
  3925. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3926. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3927. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3928. See \`config.log' for more details" "$LINENO" 5; }
  3929. fi
  3930. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3931. fi
  3932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3933. printf "%s\n" "$ac_cv_objext" >&6; }
  3934. OBJEXT=$ac_cv_objext
  3935. ac_objext=$OBJEXT
  3936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3937. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3938. if test ${ac_cv_c_compiler_gnu+y}
  3939. then :
  3940. printf %s "(cached) " >&6
  3941. else $as_nop
  3942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3943. /* end confdefs.h. */
  3944. int
  3945. main (void)
  3946. {
  3947. #ifndef __GNUC__
  3948. choke me
  3949. #endif
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. if ac_fn_c_try_compile "$LINENO"
  3955. then :
  3956. ac_compiler_gnu=yes
  3957. else $as_nop
  3958. ac_compiler_gnu=no
  3959. fi
  3960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3961. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3962. fi
  3963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3964. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3966. if test $ac_compiler_gnu = yes; then
  3967. GCC=yes
  3968. else
  3969. GCC=
  3970. fi
  3971. ac_test_CFLAGS=${CFLAGS+y}
  3972. ac_save_CFLAGS=$CFLAGS
  3973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3974. printf %s "checking whether $CC accepts -g... " >&6; }
  3975. if test ${ac_cv_prog_cc_g+y}
  3976. then :
  3977. printf %s "(cached) " >&6
  3978. else $as_nop
  3979. ac_save_c_werror_flag=$ac_c_werror_flag
  3980. ac_c_werror_flag=yes
  3981. ac_cv_prog_cc_g=no
  3982. CFLAGS="-g"
  3983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3984. /* end confdefs.h. */
  3985. int
  3986. main (void)
  3987. {
  3988. ;
  3989. return 0;
  3990. }
  3991. _ACEOF
  3992. if ac_fn_c_try_compile "$LINENO"
  3993. then :
  3994. ac_cv_prog_cc_g=yes
  3995. else $as_nop
  3996. CFLAGS=""
  3997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3998. /* end confdefs.h. */
  3999. int
  4000. main (void)
  4001. {
  4002. ;
  4003. return 0;
  4004. }
  4005. _ACEOF
  4006. if ac_fn_c_try_compile "$LINENO"
  4007. then :
  4008. else $as_nop
  4009. ac_c_werror_flag=$ac_save_c_werror_flag
  4010. CFLAGS="-g"
  4011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4012. /* end confdefs.h. */
  4013. int
  4014. main (void)
  4015. {
  4016. ;
  4017. return 0;
  4018. }
  4019. _ACEOF
  4020. if ac_fn_c_try_compile "$LINENO"
  4021. then :
  4022. ac_cv_prog_cc_g=yes
  4023. fi
  4024. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4025. fi
  4026. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4027. fi
  4028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4029. ac_c_werror_flag=$ac_save_c_werror_flag
  4030. fi
  4031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4032. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4033. if test $ac_test_CFLAGS; then
  4034. CFLAGS=$ac_save_CFLAGS
  4035. elif test $ac_cv_prog_cc_g = yes; then
  4036. if test "$GCC" = yes; then
  4037. CFLAGS="-g -O2"
  4038. else
  4039. CFLAGS="-g"
  4040. fi
  4041. else
  4042. if test "$GCC" = yes; then
  4043. CFLAGS="-O2"
  4044. else
  4045. CFLAGS=
  4046. fi
  4047. fi
  4048. ac_prog_cc_stdc=no
  4049. if test x$ac_prog_cc_stdc = xno
  4050. then :
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4052. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4053. if test ${ac_cv_prog_cc_c11+y}
  4054. then :
  4055. printf %s "(cached) " >&6
  4056. else $as_nop
  4057. ac_cv_prog_cc_c11=no
  4058. ac_save_CC=$CC
  4059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4060. /* end confdefs.h. */
  4061. $ac_c_conftest_c11_program
  4062. _ACEOF
  4063. for ac_arg in '' -std=gnu11
  4064. do
  4065. CC="$ac_save_CC $ac_arg"
  4066. if ac_fn_c_try_compile "$LINENO"
  4067. then :
  4068. ac_cv_prog_cc_c11=$ac_arg
  4069. fi
  4070. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4071. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4072. done
  4073. rm -f conftest.$ac_ext
  4074. CC=$ac_save_CC
  4075. fi
  4076. if test "x$ac_cv_prog_cc_c11" = xno
  4077. then :
  4078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4079. printf "%s\n" "unsupported" >&6; }
  4080. else $as_nop
  4081. if test "x$ac_cv_prog_cc_c11" = x
  4082. then :
  4083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4084. printf "%s\n" "none needed" >&6; }
  4085. else $as_nop
  4086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4087. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4088. CC="$CC $ac_cv_prog_cc_c11"
  4089. fi
  4090. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4091. ac_prog_cc_stdc=c11
  4092. fi
  4093. fi
  4094. if test x$ac_prog_cc_stdc = xno
  4095. then :
  4096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4097. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4098. if test ${ac_cv_prog_cc_c99+y}
  4099. then :
  4100. printf %s "(cached) " >&6
  4101. else $as_nop
  4102. ac_cv_prog_cc_c99=no
  4103. ac_save_CC=$CC
  4104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4105. /* end confdefs.h. */
  4106. $ac_c_conftest_c99_program
  4107. _ACEOF
  4108. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4109. do
  4110. CC="$ac_save_CC $ac_arg"
  4111. if ac_fn_c_try_compile "$LINENO"
  4112. then :
  4113. ac_cv_prog_cc_c99=$ac_arg
  4114. fi
  4115. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4116. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4117. done
  4118. rm -f conftest.$ac_ext
  4119. CC=$ac_save_CC
  4120. fi
  4121. if test "x$ac_cv_prog_cc_c99" = xno
  4122. then :
  4123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4124. printf "%s\n" "unsupported" >&6; }
  4125. else $as_nop
  4126. if test "x$ac_cv_prog_cc_c99" = x
  4127. then :
  4128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4129. printf "%s\n" "none needed" >&6; }
  4130. else $as_nop
  4131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4132. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4133. CC="$CC $ac_cv_prog_cc_c99"
  4134. fi
  4135. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4136. ac_prog_cc_stdc=c99
  4137. fi
  4138. fi
  4139. if test x$ac_prog_cc_stdc = xno
  4140. then :
  4141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4142. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4143. if test ${ac_cv_prog_cc_c89+y}
  4144. then :
  4145. printf %s "(cached) " >&6
  4146. else $as_nop
  4147. ac_cv_prog_cc_c89=no
  4148. ac_save_CC=$CC
  4149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4150. /* end confdefs.h. */
  4151. $ac_c_conftest_c89_program
  4152. _ACEOF
  4153. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4154. do
  4155. CC="$ac_save_CC $ac_arg"
  4156. if ac_fn_c_try_compile "$LINENO"
  4157. then :
  4158. ac_cv_prog_cc_c89=$ac_arg
  4159. fi
  4160. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4161. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4162. done
  4163. rm -f conftest.$ac_ext
  4164. CC=$ac_save_CC
  4165. fi
  4166. if test "x$ac_cv_prog_cc_c89" = xno
  4167. then :
  4168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4169. printf "%s\n" "unsupported" >&6; }
  4170. else $as_nop
  4171. if test "x$ac_cv_prog_cc_c89" = x
  4172. then :
  4173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4174. printf "%s\n" "none needed" >&6; }
  4175. else $as_nop
  4176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4177. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4178. CC="$CC $ac_cv_prog_cc_c89"
  4179. fi
  4180. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4181. ac_prog_cc_stdc=c89
  4182. fi
  4183. fi
  4184. ac_ext=c
  4185. ac_cpp='$CPP $CPPFLAGS'
  4186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4190. printf %s "checking for a sed that does not truncate output... " >&6; }
  4191. if test ${ac_cv_path_SED+y}
  4192. then :
  4193. printf %s "(cached) " >&6
  4194. else $as_nop
  4195. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4196. for ac_i in 1 2 3 4 5 6 7; do
  4197. ac_script="$ac_script$as_nl$ac_script"
  4198. done
  4199. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4200. { ac_script=; unset ac_script;}
  4201. if test -z "$SED"; then
  4202. ac_path_SED_found=false
  4203. # Loop through the user's path and test for each of PROGNAME-LIST
  4204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4205. for as_dir in $PATH
  4206. do
  4207. IFS=$as_save_IFS
  4208. case $as_dir in #(((
  4209. '') as_dir=./ ;;
  4210. */) ;;
  4211. *) as_dir=$as_dir/ ;;
  4212. esac
  4213. for ac_prog in sed gsed
  4214. do
  4215. for ac_exec_ext in '' $ac_executable_extensions; do
  4216. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4217. as_fn_executable_p "$ac_path_SED" || continue
  4218. # Check for GNU ac_path_SED and select it if it is found.
  4219. # Check for GNU $ac_path_SED
  4220. case `"$ac_path_SED" --version 2>&1` in
  4221. *GNU*)
  4222. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4223. *)
  4224. ac_count=0
  4225. printf %s 0123456789 >"conftest.in"
  4226. while :
  4227. do
  4228. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4229. mv "conftest.tmp" "conftest.in"
  4230. cp "conftest.in" "conftest.nl"
  4231. printf "%s\n" '' >> "conftest.nl"
  4232. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4233. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4234. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4235. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4236. # Best one so far, save it but keep looking for a better one
  4237. ac_cv_path_SED="$ac_path_SED"
  4238. ac_path_SED_max=$ac_count
  4239. fi
  4240. # 10*(2^10) chars as input seems more than enough
  4241. test $ac_count -gt 10 && break
  4242. done
  4243. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4244. esac
  4245. $ac_path_SED_found && break 3
  4246. done
  4247. done
  4248. done
  4249. IFS=$as_save_IFS
  4250. if test -z "$ac_cv_path_SED"; then
  4251. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4252. fi
  4253. else
  4254. ac_cv_path_SED=$SED
  4255. fi
  4256. fi
  4257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4258. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4259. SED="$ac_cv_path_SED"
  4260. rm -f conftest.sed
  4261. test -z "$SED" && SED=sed
  4262. Xsed="$SED -e 1s/^X//"
  4263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4264. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4265. if test ${ac_cv_path_GREP+y}
  4266. then :
  4267. printf %s "(cached) " >&6
  4268. else $as_nop
  4269. if test -z "$GREP"; then
  4270. ac_path_GREP_found=false
  4271. # Loop through the user's path and test for each of PROGNAME-LIST
  4272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4273. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4274. do
  4275. IFS=$as_save_IFS
  4276. case $as_dir in #(((
  4277. '') as_dir=./ ;;
  4278. */) ;;
  4279. *) as_dir=$as_dir/ ;;
  4280. esac
  4281. for ac_prog in grep ggrep
  4282. do
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4285. as_fn_executable_p "$ac_path_GREP" || continue
  4286. # Check for GNU ac_path_GREP and select it if it is found.
  4287. # Check for GNU $ac_path_GREP
  4288. case `"$ac_path_GREP" --version 2>&1` in
  4289. *GNU*)
  4290. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4291. *)
  4292. ac_count=0
  4293. printf %s 0123456789 >"conftest.in"
  4294. while :
  4295. do
  4296. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4297. mv "conftest.tmp" "conftest.in"
  4298. cp "conftest.in" "conftest.nl"
  4299. printf "%s\n" 'GREP' >> "conftest.nl"
  4300. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4301. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4302. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4303. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4304. # Best one so far, save it but keep looking for a better one
  4305. ac_cv_path_GREP="$ac_path_GREP"
  4306. ac_path_GREP_max=$ac_count
  4307. fi
  4308. # 10*(2^10) chars as input seems more than enough
  4309. test $ac_count -gt 10 && break
  4310. done
  4311. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4312. esac
  4313. $ac_path_GREP_found && break 3
  4314. done
  4315. done
  4316. done
  4317. IFS=$as_save_IFS
  4318. if test -z "$ac_cv_path_GREP"; then
  4319. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4320. fi
  4321. else
  4322. ac_cv_path_GREP=$GREP
  4323. fi
  4324. fi
  4325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4326. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4327. GREP="$ac_cv_path_GREP"
  4328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4329. printf %s "checking for egrep... " >&6; }
  4330. if test ${ac_cv_path_EGREP+y}
  4331. then :
  4332. printf %s "(cached) " >&6
  4333. else $as_nop
  4334. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4335. then ac_cv_path_EGREP="$GREP -E"
  4336. else
  4337. if test -z "$EGREP"; then
  4338. ac_path_EGREP_found=false
  4339. # Loop through the user's path and test for each of PROGNAME-LIST
  4340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4341. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4342. do
  4343. IFS=$as_save_IFS
  4344. case $as_dir in #(((
  4345. '') as_dir=./ ;;
  4346. */) ;;
  4347. *) as_dir=$as_dir/ ;;
  4348. esac
  4349. for ac_prog in egrep
  4350. do
  4351. for ac_exec_ext in '' $ac_executable_extensions; do
  4352. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4353. as_fn_executable_p "$ac_path_EGREP" || continue
  4354. # Check for GNU ac_path_EGREP and select it if it is found.
  4355. # Check for GNU $ac_path_EGREP
  4356. case `"$ac_path_EGREP" --version 2>&1` in
  4357. *GNU*)
  4358. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4359. *)
  4360. ac_count=0
  4361. printf %s 0123456789 >"conftest.in"
  4362. while :
  4363. do
  4364. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4365. mv "conftest.tmp" "conftest.in"
  4366. cp "conftest.in" "conftest.nl"
  4367. printf "%s\n" 'EGREP' >> "conftest.nl"
  4368. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4369. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4370. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4371. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4372. # Best one so far, save it but keep looking for a better one
  4373. ac_cv_path_EGREP="$ac_path_EGREP"
  4374. ac_path_EGREP_max=$ac_count
  4375. fi
  4376. # 10*(2^10) chars as input seems more than enough
  4377. test $ac_count -gt 10 && break
  4378. done
  4379. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4380. esac
  4381. $ac_path_EGREP_found && break 3
  4382. done
  4383. done
  4384. done
  4385. IFS=$as_save_IFS
  4386. if test -z "$ac_cv_path_EGREP"; then
  4387. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4388. fi
  4389. else
  4390. ac_cv_path_EGREP=$EGREP
  4391. fi
  4392. fi
  4393. fi
  4394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4395. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4396. EGREP="$ac_cv_path_EGREP"
  4397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4398. printf %s "checking for fgrep... " >&6; }
  4399. if test ${ac_cv_path_FGREP+y}
  4400. then :
  4401. printf %s "(cached) " >&6
  4402. else $as_nop
  4403. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4404. then ac_cv_path_FGREP="$GREP -F"
  4405. else
  4406. if test -z "$FGREP"; then
  4407. ac_path_FGREP_found=false
  4408. # Loop through the user's path and test for each of PROGNAME-LIST
  4409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4410. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4411. do
  4412. IFS=$as_save_IFS
  4413. case $as_dir in #(((
  4414. '') as_dir=./ ;;
  4415. */) ;;
  4416. *) as_dir=$as_dir/ ;;
  4417. esac
  4418. for ac_prog in fgrep
  4419. do
  4420. for ac_exec_ext in '' $ac_executable_extensions; do
  4421. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4422. as_fn_executable_p "$ac_path_FGREP" || continue
  4423. # Check for GNU ac_path_FGREP and select it if it is found.
  4424. # Check for GNU $ac_path_FGREP
  4425. case `"$ac_path_FGREP" --version 2>&1` in
  4426. *GNU*)
  4427. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4428. *)
  4429. ac_count=0
  4430. printf %s 0123456789 >"conftest.in"
  4431. while :
  4432. do
  4433. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4434. mv "conftest.tmp" "conftest.in"
  4435. cp "conftest.in" "conftest.nl"
  4436. printf "%s\n" 'FGREP' >> "conftest.nl"
  4437. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4438. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4439. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4440. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4441. # Best one so far, save it but keep looking for a better one
  4442. ac_cv_path_FGREP="$ac_path_FGREP"
  4443. ac_path_FGREP_max=$ac_count
  4444. fi
  4445. # 10*(2^10) chars as input seems more than enough
  4446. test $ac_count -gt 10 && break
  4447. done
  4448. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4449. esac
  4450. $ac_path_FGREP_found && break 3
  4451. done
  4452. done
  4453. done
  4454. IFS=$as_save_IFS
  4455. if test -z "$ac_cv_path_FGREP"; then
  4456. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4457. fi
  4458. else
  4459. ac_cv_path_FGREP=$FGREP
  4460. fi
  4461. fi
  4462. fi
  4463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4464. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4465. FGREP="$ac_cv_path_FGREP"
  4466. test -z "$GREP" && GREP=grep
  4467. # Check whether --with-gnu-ld was given.
  4468. if test ${with_gnu_ld+y}
  4469. then :
  4470. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4471. else $as_nop
  4472. with_gnu_ld=no
  4473. fi
  4474. ac_prog=ld
  4475. if test yes = "$GCC"; then
  4476. # Check if gcc -print-prog-name=ld gives a path.
  4477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4478. printf %s "checking for ld used by $CC... " >&6; }
  4479. case $host in
  4480. *-*-mingw*)
  4481. # gcc leaves a trailing carriage return, which upsets mingw
  4482. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4483. *)
  4484. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4485. esac
  4486. case $ac_prog in
  4487. # Accept absolute paths.
  4488. [\\/]* | ?:[\\/]*)
  4489. re_direlt='/[^/][^/]*/\.\./'
  4490. # Canonicalize the pathname of ld
  4491. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4492. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4493. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4494. done
  4495. test -z "$LD" && LD=$ac_prog
  4496. ;;
  4497. "")
  4498. # If it fails, then pretend we aren't using GCC.
  4499. ac_prog=ld
  4500. ;;
  4501. *)
  4502. # If it is relative, then search for the first ld in PATH.
  4503. with_gnu_ld=unknown
  4504. ;;
  4505. esac
  4506. elif test yes = "$with_gnu_ld"; then
  4507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4508. printf %s "checking for GNU ld... " >&6; }
  4509. else
  4510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4511. printf %s "checking for non-GNU ld... " >&6; }
  4512. fi
  4513. if test ${lt_cv_path_LD+y}
  4514. then :
  4515. printf %s "(cached) " >&6
  4516. else $as_nop
  4517. if test -z "$LD"; then
  4518. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4519. for ac_dir in $PATH; do
  4520. IFS=$lt_save_ifs
  4521. test -z "$ac_dir" && ac_dir=.
  4522. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4523. lt_cv_path_LD=$ac_dir/$ac_prog
  4524. # Check to see if the program is GNU ld. I'd rather use --version,
  4525. # but apparently some variants of GNU ld only accept -v.
  4526. # Break only if it was the GNU/non-GNU ld that we prefer.
  4527. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4528. *GNU* | *'with BFD'*)
  4529. test no != "$with_gnu_ld" && break
  4530. ;;
  4531. *)
  4532. test yes != "$with_gnu_ld" && break
  4533. ;;
  4534. esac
  4535. fi
  4536. done
  4537. IFS=$lt_save_ifs
  4538. else
  4539. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4540. fi
  4541. fi
  4542. LD=$lt_cv_path_LD
  4543. if test -n "$LD"; then
  4544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4545. printf "%s\n" "$LD" >&6; }
  4546. else
  4547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4548. printf "%s\n" "no" >&6; }
  4549. fi
  4550. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4552. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4553. if test ${lt_cv_prog_gnu_ld+y}
  4554. then :
  4555. printf %s "(cached) " >&6
  4556. else $as_nop
  4557. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4558. case `$LD -v 2>&1 </dev/null` in
  4559. *GNU* | *'with BFD'*)
  4560. lt_cv_prog_gnu_ld=yes
  4561. ;;
  4562. *)
  4563. lt_cv_prog_gnu_ld=no
  4564. ;;
  4565. esac
  4566. fi
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4568. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4569. with_gnu_ld=$lt_cv_prog_gnu_ld
  4570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4571. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4572. if test ${lt_cv_path_NM+y}
  4573. then :
  4574. printf %s "(cached) " >&6
  4575. else $as_nop
  4576. if test -n "$NM"; then
  4577. # Let the user override the test.
  4578. lt_cv_path_NM=$NM
  4579. else
  4580. lt_nm_to_check=${ac_tool_prefix}nm
  4581. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4582. lt_nm_to_check="$lt_nm_to_check nm"
  4583. fi
  4584. for lt_tmp_nm in $lt_nm_to_check; do
  4585. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4586. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4587. IFS=$lt_save_ifs
  4588. test -z "$ac_dir" && ac_dir=.
  4589. tmp_nm=$ac_dir/$lt_tmp_nm
  4590. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4591. # Check to see if the nm accepts a BSD-compat flag.
  4592. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4593. # nm: unknown option "B" ignored
  4594. # Tru64's nm complains that /dev/null is an invalid object file
  4595. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4596. case $build_os in
  4597. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4598. *) lt_bad_file=/dev/null ;;
  4599. esac
  4600. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4601. *$lt_bad_file* | *'Invalid file or object type'*)
  4602. lt_cv_path_NM="$tmp_nm -B"
  4603. break 2
  4604. ;;
  4605. *)
  4606. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4607. */dev/null*)
  4608. lt_cv_path_NM="$tmp_nm -p"
  4609. break 2
  4610. ;;
  4611. *)
  4612. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4613. continue # so that we can try to find one that supports BSD flags
  4614. ;;
  4615. esac
  4616. ;;
  4617. esac
  4618. fi
  4619. done
  4620. IFS=$lt_save_ifs
  4621. done
  4622. : ${lt_cv_path_NM=no}
  4623. fi
  4624. fi
  4625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4626. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4627. if test no != "$lt_cv_path_NM"; then
  4628. NM=$lt_cv_path_NM
  4629. else
  4630. # Didn't find any BSD compatible name lister, look for dumpbin.
  4631. if test -n "$DUMPBIN"; then :
  4632. # Let the user override the test.
  4633. else
  4634. if test -n "$ac_tool_prefix"; then
  4635. for ac_prog in dumpbin "link -dump"
  4636. do
  4637. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4638. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4640. printf %s "checking for $ac_word... " >&6; }
  4641. if test ${ac_cv_prog_DUMPBIN+y}
  4642. then :
  4643. printf %s "(cached) " >&6
  4644. else $as_nop
  4645. if test -n "$DUMPBIN"; then
  4646. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4647. else
  4648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4649. for as_dir in $PATH
  4650. do
  4651. IFS=$as_save_IFS
  4652. case $as_dir in #(((
  4653. '') as_dir=./ ;;
  4654. */) ;;
  4655. *) as_dir=$as_dir/ ;;
  4656. esac
  4657. for ac_exec_ext in '' $ac_executable_extensions; do
  4658. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4659. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4661. break 2
  4662. fi
  4663. done
  4664. done
  4665. IFS=$as_save_IFS
  4666. fi
  4667. fi
  4668. DUMPBIN=$ac_cv_prog_DUMPBIN
  4669. if test -n "$DUMPBIN"; then
  4670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4671. printf "%s\n" "$DUMPBIN" >&6; }
  4672. else
  4673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4674. printf "%s\n" "no" >&6; }
  4675. fi
  4676. test -n "$DUMPBIN" && break
  4677. done
  4678. fi
  4679. if test -z "$DUMPBIN"; then
  4680. ac_ct_DUMPBIN=$DUMPBIN
  4681. for ac_prog in dumpbin "link -dump"
  4682. do
  4683. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4684. set dummy $ac_prog; ac_word=$2
  4685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4686. printf %s "checking for $ac_word... " >&6; }
  4687. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4688. then :
  4689. printf %s "(cached) " >&6
  4690. else $as_nop
  4691. if test -n "$ac_ct_DUMPBIN"; then
  4692. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. case $as_dir in #(((
  4699. '') as_dir=./ ;;
  4700. */) ;;
  4701. *) as_dir=$as_dir/ ;;
  4702. esac
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4705. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4706. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. IFS=$as_save_IFS
  4712. fi
  4713. fi
  4714. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4715. if test -n "$ac_ct_DUMPBIN"; then
  4716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4717. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4718. else
  4719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4720. printf "%s\n" "no" >&6; }
  4721. fi
  4722. test -n "$ac_ct_DUMPBIN" && break
  4723. done
  4724. if test "x$ac_ct_DUMPBIN" = x; then
  4725. DUMPBIN=":"
  4726. else
  4727. case $cross_compiling:$ac_tool_warned in
  4728. yes:)
  4729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4730. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4731. ac_tool_warned=yes ;;
  4732. esac
  4733. DUMPBIN=$ac_ct_DUMPBIN
  4734. fi
  4735. fi
  4736. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4737. *COFF*)
  4738. DUMPBIN="$DUMPBIN -symbols -headers"
  4739. ;;
  4740. *)
  4741. DUMPBIN=:
  4742. ;;
  4743. esac
  4744. fi
  4745. if test : != "$DUMPBIN"; then
  4746. NM=$DUMPBIN
  4747. fi
  4748. fi
  4749. test -z "$NM" && NM=nm
  4750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4751. printf %s "checking the name lister ($NM) interface... " >&6; }
  4752. if test ${lt_cv_nm_interface+y}
  4753. then :
  4754. printf %s "(cached) " >&6
  4755. else $as_nop
  4756. lt_cv_nm_interface="BSD nm"
  4757. echo "int some_variable = 0;" > conftest.$ac_ext
  4758. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4759. (eval "$ac_compile" 2>conftest.err)
  4760. cat conftest.err >&5
  4761. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4762. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4763. cat conftest.err >&5
  4764. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4765. cat conftest.out >&5
  4766. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4767. lt_cv_nm_interface="MS dumpbin"
  4768. fi
  4769. rm -f conftest*
  4770. fi
  4771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4772. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4774. printf %s "checking whether ln -s works... " >&6; }
  4775. LN_S=$as_ln_s
  4776. if test "$LN_S" = "ln -s"; then
  4777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4778. printf "%s\n" "yes" >&6; }
  4779. else
  4780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4781. printf "%s\n" "no, using $LN_S" >&6; }
  4782. fi
  4783. # find the maximum length of command line arguments
  4784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4785. printf %s "checking the maximum length of command line arguments... " >&6; }
  4786. if test ${lt_cv_sys_max_cmd_len+y}
  4787. then :
  4788. printf %s "(cached) " >&6
  4789. else $as_nop
  4790. i=0
  4791. teststring=ABCD
  4792. case $build_os in
  4793. msdosdjgpp*)
  4794. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4795. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4796. # during glob expansion). Even if it were fixed, the result of this
  4797. # check would be larger than it should be.
  4798. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4799. ;;
  4800. gnu*)
  4801. # Under GNU Hurd, this test is not required because there is
  4802. # no limit to the length of command line arguments.
  4803. # Libtool will interpret -1 as no limit whatsoever
  4804. lt_cv_sys_max_cmd_len=-1;
  4805. ;;
  4806. cygwin* | mingw* | cegcc*)
  4807. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4808. # about 5 minutes as the teststring grows exponentially.
  4809. # Worse, since 9x/ME are not pre-emptively multitasking,
  4810. # you end up with a "frozen" computer, even though with patience
  4811. # the test eventually succeeds (with a max line length of 256k).
  4812. # Instead, let's just punt: use the minimum linelength reported by
  4813. # all of the supported platforms: 8192 (on NT/2K/XP).
  4814. lt_cv_sys_max_cmd_len=8192;
  4815. ;;
  4816. mint*)
  4817. # On MiNT this can take a long time and run out of memory.
  4818. lt_cv_sys_max_cmd_len=8192;
  4819. ;;
  4820. amigaos*)
  4821. # On AmigaOS with pdksh, this test takes hours, literally.
  4822. # So we just punt and use a minimum line length of 8192.
  4823. lt_cv_sys_max_cmd_len=8192;
  4824. ;;
  4825. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4826. # This has been around since 386BSD, at least. Likely further.
  4827. if test -x /sbin/sysctl; then
  4828. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4829. elif test -x /usr/sbin/sysctl; then
  4830. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4831. else
  4832. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4833. fi
  4834. # And add a safety zone
  4835. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4836. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4837. ;;
  4838. interix*)
  4839. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4840. lt_cv_sys_max_cmd_len=196608
  4841. ;;
  4842. os2*)
  4843. # The test takes a long time on OS/2.
  4844. lt_cv_sys_max_cmd_len=8192
  4845. ;;
  4846. osf*)
  4847. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4848. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4849. # nice to cause kernel panics so lets avoid the loop below.
  4850. # First set a reasonable default.
  4851. lt_cv_sys_max_cmd_len=16384
  4852. #
  4853. if test -x /sbin/sysconfig; then
  4854. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4855. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4856. esac
  4857. fi
  4858. ;;
  4859. sco3.2v5*)
  4860. lt_cv_sys_max_cmd_len=102400
  4861. ;;
  4862. sysv5* | sco5v6* | sysv4.2uw2*)
  4863. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4864. if test -n "$kargmax"; then
  4865. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4866. else
  4867. lt_cv_sys_max_cmd_len=32768
  4868. fi
  4869. ;;
  4870. *)
  4871. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4872. if test -n "$lt_cv_sys_max_cmd_len" && \
  4873. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4874. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4875. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4876. else
  4877. # Make teststring a little bigger before we do anything with it.
  4878. # a 1K string should be a reasonable start.
  4879. for i in 1 2 3 4 5 6 7 8; do
  4880. teststring=$teststring$teststring
  4881. done
  4882. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4883. # If test is not a shell built-in, we'll probably end up computing a
  4884. # maximum length that is only half of the actual maximum length, but
  4885. # we can't tell.
  4886. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4887. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4888. test 17 != "$i" # 1/2 MB should be enough
  4889. do
  4890. i=`expr $i + 1`
  4891. teststring=$teststring$teststring
  4892. done
  4893. # Only check the string length outside the loop.
  4894. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4895. teststring=
  4896. # Add a significant safety factor because C++ compilers can tack on
  4897. # massive amounts of additional arguments before passing them to the
  4898. # linker. It appears as though 1/2 is a usable value.
  4899. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4900. fi
  4901. ;;
  4902. esac
  4903. fi
  4904. if test -n "$lt_cv_sys_max_cmd_len"; then
  4905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4906. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4907. else
  4908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4909. printf "%s\n" "none" >&6; }
  4910. fi
  4911. max_cmd_len=$lt_cv_sys_max_cmd_len
  4912. : ${CP="cp -f"}
  4913. : ${MV="mv -f"}
  4914. : ${RM="rm -f"}
  4915. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4916. lt_unset=unset
  4917. else
  4918. lt_unset=false
  4919. fi
  4920. # test EBCDIC or ASCII
  4921. case `echo X|tr X '\101'` in
  4922. A) # ASCII based system
  4923. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4924. lt_SP2NL='tr \040 \012'
  4925. lt_NL2SP='tr \015\012 \040\040'
  4926. ;;
  4927. *) # EBCDIC based system
  4928. lt_SP2NL='tr \100 \n'
  4929. lt_NL2SP='tr \r\n \100\100'
  4930. ;;
  4931. esac
  4932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4933. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4934. if test ${lt_cv_to_host_file_cmd+y}
  4935. then :
  4936. printf %s "(cached) " >&6
  4937. else $as_nop
  4938. case $host in
  4939. *-*-mingw* )
  4940. case $build in
  4941. *-*-mingw* ) # actually msys
  4942. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4943. ;;
  4944. *-*-cygwin* )
  4945. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4946. ;;
  4947. * ) # otherwise, assume *nix
  4948. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4949. ;;
  4950. esac
  4951. ;;
  4952. *-*-cygwin* )
  4953. case $build in
  4954. *-*-mingw* ) # actually msys
  4955. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4956. ;;
  4957. *-*-cygwin* )
  4958. lt_cv_to_host_file_cmd=func_convert_file_noop
  4959. ;;
  4960. * ) # otherwise, assume *nix
  4961. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4962. ;;
  4963. esac
  4964. ;;
  4965. * ) # unhandled hosts (and "normal" native builds)
  4966. lt_cv_to_host_file_cmd=func_convert_file_noop
  4967. ;;
  4968. esac
  4969. fi
  4970. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4972. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4974. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4975. if test ${lt_cv_to_tool_file_cmd+y}
  4976. then :
  4977. printf %s "(cached) " >&6
  4978. else $as_nop
  4979. #assume ordinary cross tools, or native build.
  4980. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4981. case $host in
  4982. *-*-mingw* )
  4983. case $build in
  4984. *-*-mingw* ) # actually msys
  4985. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4986. ;;
  4987. esac
  4988. ;;
  4989. esac
  4990. fi
  4991. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4993. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4995. printf %s "checking for $LD option to reload object files... " >&6; }
  4996. if test ${lt_cv_ld_reload_flag+y}
  4997. then :
  4998. printf %s "(cached) " >&6
  4999. else $as_nop
  5000. lt_cv_ld_reload_flag='-r'
  5001. fi
  5002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5003. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5004. reload_flag=$lt_cv_ld_reload_flag
  5005. case $reload_flag in
  5006. "" | " "*) ;;
  5007. *) reload_flag=" $reload_flag" ;;
  5008. esac
  5009. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5010. case $host_os in
  5011. cygwin* | mingw* | pw32* | cegcc*)
  5012. if test yes != "$GCC"; then
  5013. reload_cmds=false
  5014. fi
  5015. ;;
  5016. darwin*)
  5017. if test yes = "$GCC"; then
  5018. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5019. else
  5020. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5021. fi
  5022. ;;
  5023. esac
  5024. if test -n "$ac_tool_prefix"; then
  5025. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5026. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5028. printf %s "checking for $ac_word... " >&6; }
  5029. if test ${ac_cv_prog_OBJDUMP+y}
  5030. then :
  5031. printf %s "(cached) " >&6
  5032. else $as_nop
  5033. if test -n "$OBJDUMP"; then
  5034. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5035. else
  5036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5037. for as_dir in $PATH
  5038. do
  5039. IFS=$as_save_IFS
  5040. case $as_dir in #(((
  5041. '') as_dir=./ ;;
  5042. */) ;;
  5043. *) as_dir=$as_dir/ ;;
  5044. esac
  5045. for ac_exec_ext in '' $ac_executable_extensions; do
  5046. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5047. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5048. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5049. break 2
  5050. fi
  5051. done
  5052. done
  5053. IFS=$as_save_IFS
  5054. fi
  5055. fi
  5056. OBJDUMP=$ac_cv_prog_OBJDUMP
  5057. if test -n "$OBJDUMP"; then
  5058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5059. printf "%s\n" "$OBJDUMP" >&6; }
  5060. else
  5061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5062. printf "%s\n" "no" >&6; }
  5063. fi
  5064. fi
  5065. if test -z "$ac_cv_prog_OBJDUMP"; then
  5066. ac_ct_OBJDUMP=$OBJDUMP
  5067. # Extract the first word of "objdump", so it can be a program name with args.
  5068. set dummy objdump; ac_word=$2
  5069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5070. printf %s "checking for $ac_word... " >&6; }
  5071. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5072. then :
  5073. printf %s "(cached) " >&6
  5074. else $as_nop
  5075. if test -n "$ac_ct_OBJDUMP"; then
  5076. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5077. else
  5078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5079. for as_dir in $PATH
  5080. do
  5081. IFS=$as_save_IFS
  5082. case $as_dir in #(((
  5083. '') as_dir=./ ;;
  5084. */) ;;
  5085. *) as_dir=$as_dir/ ;;
  5086. esac
  5087. for ac_exec_ext in '' $ac_executable_extensions; do
  5088. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5089. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5090. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5091. break 2
  5092. fi
  5093. done
  5094. done
  5095. IFS=$as_save_IFS
  5096. fi
  5097. fi
  5098. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5099. if test -n "$ac_ct_OBJDUMP"; then
  5100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5101. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5102. else
  5103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5104. printf "%s\n" "no" >&6; }
  5105. fi
  5106. if test "x$ac_ct_OBJDUMP" = x; then
  5107. OBJDUMP="false"
  5108. else
  5109. case $cross_compiling:$ac_tool_warned in
  5110. yes:)
  5111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5112. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5113. ac_tool_warned=yes ;;
  5114. esac
  5115. OBJDUMP=$ac_ct_OBJDUMP
  5116. fi
  5117. else
  5118. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5119. fi
  5120. test -z "$OBJDUMP" && OBJDUMP=objdump
  5121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5122. printf %s "checking how to recognize dependent libraries... " >&6; }
  5123. if test ${lt_cv_deplibs_check_method+y}
  5124. then :
  5125. printf %s "(cached) " >&6
  5126. else $as_nop
  5127. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5128. lt_cv_file_magic_test_file=
  5129. lt_cv_deplibs_check_method='unknown'
  5130. # Need to set the preceding variable on all platforms that support
  5131. # interlibrary dependencies.
  5132. # 'none' -- dependencies not supported.
  5133. # 'unknown' -- same as none, but documents that we really don't know.
  5134. # 'pass_all' -- all dependencies passed with no checks.
  5135. # 'test_compile' -- check by making test program.
  5136. # 'file_magic [[regex]]' -- check by looking for files in library path
  5137. # that responds to the $file_magic_cmd with a given extended regex.
  5138. # If you have 'file' or equivalent on your system and you're not sure
  5139. # whether 'pass_all' will *always* work, you probably want this one.
  5140. case $host_os in
  5141. aix[4-9]*)
  5142. lt_cv_deplibs_check_method=pass_all
  5143. ;;
  5144. beos*)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. bsdi[45]*)
  5148. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5149. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5150. lt_cv_file_magic_test_file=/shlib/libc.so
  5151. ;;
  5152. cygwin*)
  5153. # func_win32_libid is a shell function defined in ltmain.sh
  5154. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5155. lt_cv_file_magic_cmd='func_win32_libid'
  5156. lt_cv_deplibs_check_method=pass_all # SDL customization
  5157. ;;
  5158. mingw* | pw32*)
  5159. # Base MSYS/MinGW do not provide the 'file' command needed by
  5160. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5161. # unless we find 'file', for example because we are cross-compiling.
  5162. if ( file / ) >/dev/null 2>&1; then
  5163. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5164. lt_cv_file_magic_cmd='func_win32_libid'
  5165. else
  5166. # Keep this pattern in sync with the one in func_win32_libid.
  5167. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5168. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5169. fi
  5170. lt_cv_deplibs_check_method=pass_all # SDL customization
  5171. ;;
  5172. cegcc*)
  5173. # use the weaker test based on 'objdump'. See mingw*.
  5174. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5175. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5176. ;;
  5177. darwin* | rhapsody*)
  5178. lt_cv_deplibs_check_method=pass_all
  5179. ;;
  5180. freebsd* | dragonfly* | midnightbsd*)
  5181. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5182. case $host_cpu in
  5183. i*86 )
  5184. # Not sure whether the presence of OpenBSD here was a mistake.
  5185. # Let's accept both of them until this is cleared up.
  5186. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5187. lt_cv_file_magic_cmd=/usr/bin/file
  5188. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5189. ;;
  5190. esac
  5191. else
  5192. lt_cv_deplibs_check_method=pass_all
  5193. fi
  5194. ;;
  5195. haiku*)
  5196. lt_cv_deplibs_check_method=pass_all
  5197. ;;
  5198. hpux10.20* | hpux11*)
  5199. lt_cv_file_magic_cmd=/usr/bin/file
  5200. case $host_cpu in
  5201. ia64*)
  5202. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5203. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5204. ;;
  5205. hppa*64*)
  5206. 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]'
  5207. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5208. ;;
  5209. *)
  5210. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5211. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5212. ;;
  5213. esac
  5214. ;;
  5215. interix[3-9]*)
  5216. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5217. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5218. ;;
  5219. irix5* | irix6* | nonstopux*)
  5220. case $LD in
  5221. *-32|*"-32 ") libmagic=32-bit;;
  5222. *-n32|*"-n32 ") libmagic=N32;;
  5223. *-64|*"-64 ") libmagic=64-bit;;
  5224. *) libmagic=never-match;;
  5225. esac
  5226. lt_cv_deplibs_check_method=pass_all
  5227. ;;
  5228. # This must be glibc/ELF.
  5229. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. netbsd*)
  5233. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5234. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5235. else
  5236. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5237. fi
  5238. ;;
  5239. newos6*)
  5240. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5241. lt_cv_file_magic_cmd=/usr/bin/file
  5242. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5243. ;;
  5244. *nto* | *qnx*)
  5245. lt_cv_deplibs_check_method=pass_all
  5246. ;;
  5247. openbsd* | bitrig*)
  5248. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5249. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5250. else
  5251. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5252. fi
  5253. ;;
  5254. osf3* | osf4* | osf5*)
  5255. lt_cv_deplibs_check_method=pass_all
  5256. ;;
  5257. rdos*)
  5258. lt_cv_deplibs_check_method=pass_all
  5259. ;;
  5260. solaris*)
  5261. lt_cv_deplibs_check_method=pass_all
  5262. ;;
  5263. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5264. lt_cv_deplibs_check_method=pass_all
  5265. ;;
  5266. sysv4 | sysv4.3*)
  5267. case $host_vendor in
  5268. motorola)
  5269. 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]'
  5270. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5271. ;;
  5272. ncr)
  5273. lt_cv_deplibs_check_method=pass_all
  5274. ;;
  5275. sequent)
  5276. lt_cv_file_magic_cmd='/bin/file'
  5277. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5278. ;;
  5279. sni)
  5280. lt_cv_file_magic_cmd='/bin/file'
  5281. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5282. lt_cv_file_magic_test_file=/lib/libc.so
  5283. ;;
  5284. siemens)
  5285. lt_cv_deplibs_check_method=pass_all
  5286. ;;
  5287. pc)
  5288. lt_cv_deplibs_check_method=pass_all
  5289. ;;
  5290. esac
  5291. ;;
  5292. tpf*)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. os2*)
  5296. lt_cv_deplibs_check_method=pass_all
  5297. ;;
  5298. esac
  5299. fi
  5300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5301. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5302. file_magic_glob=
  5303. want_nocaseglob=no
  5304. if test "$build" = "$host"; then
  5305. case $host_os in
  5306. mingw* | pw32*)
  5307. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5308. want_nocaseglob=yes
  5309. else
  5310. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5311. fi
  5312. ;;
  5313. esac
  5314. fi
  5315. file_magic_cmd=$lt_cv_file_magic_cmd
  5316. deplibs_check_method=$lt_cv_deplibs_check_method
  5317. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5318. if test -n "$ac_tool_prefix"; then
  5319. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5320. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5322. printf %s "checking for $ac_word... " >&6; }
  5323. if test ${ac_cv_prog_DLLTOOL+y}
  5324. then :
  5325. printf %s "(cached) " >&6
  5326. else $as_nop
  5327. if test -n "$DLLTOOL"; then
  5328. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5329. else
  5330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5331. for as_dir in $PATH
  5332. do
  5333. IFS=$as_save_IFS
  5334. case $as_dir in #(((
  5335. '') as_dir=./ ;;
  5336. */) ;;
  5337. *) as_dir=$as_dir/ ;;
  5338. esac
  5339. for ac_exec_ext in '' $ac_executable_extensions; do
  5340. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5341. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5342. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5343. break 2
  5344. fi
  5345. done
  5346. done
  5347. IFS=$as_save_IFS
  5348. fi
  5349. fi
  5350. DLLTOOL=$ac_cv_prog_DLLTOOL
  5351. if test -n "$DLLTOOL"; then
  5352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5353. printf "%s\n" "$DLLTOOL" >&6; }
  5354. else
  5355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5356. printf "%s\n" "no" >&6; }
  5357. fi
  5358. fi
  5359. if test -z "$ac_cv_prog_DLLTOOL"; then
  5360. ac_ct_DLLTOOL=$DLLTOOL
  5361. # Extract the first word of "dlltool", so it can be a program name with args.
  5362. set dummy dlltool; ac_word=$2
  5363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5364. printf %s "checking for $ac_word... " >&6; }
  5365. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5366. then :
  5367. printf %s "(cached) " >&6
  5368. else $as_nop
  5369. if test -n "$ac_ct_DLLTOOL"; then
  5370. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5371. else
  5372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5373. for as_dir in $PATH
  5374. do
  5375. IFS=$as_save_IFS
  5376. case $as_dir in #(((
  5377. '') as_dir=./ ;;
  5378. */) ;;
  5379. *) as_dir=$as_dir/ ;;
  5380. esac
  5381. for ac_exec_ext in '' $ac_executable_extensions; do
  5382. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5383. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5384. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5385. break 2
  5386. fi
  5387. done
  5388. done
  5389. IFS=$as_save_IFS
  5390. fi
  5391. fi
  5392. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5393. if test -n "$ac_ct_DLLTOOL"; then
  5394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5395. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5396. else
  5397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5398. printf "%s\n" "no" >&6; }
  5399. fi
  5400. if test "x$ac_ct_DLLTOOL" = x; then
  5401. DLLTOOL="false"
  5402. else
  5403. case $cross_compiling:$ac_tool_warned in
  5404. yes:)
  5405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5406. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5407. ac_tool_warned=yes ;;
  5408. esac
  5409. DLLTOOL=$ac_ct_DLLTOOL
  5410. fi
  5411. else
  5412. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5413. fi
  5414. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5416. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5417. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5418. then :
  5419. printf %s "(cached) " >&6
  5420. else $as_nop
  5421. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5422. case $host_os in
  5423. cygwin* | mingw* | pw32* | cegcc*)
  5424. # two different shell functions defined in ltmain.sh;
  5425. # decide which one to use based on capabilities of $DLLTOOL
  5426. case `$DLLTOOL --help 2>&1` in
  5427. *--identify-strict*)
  5428. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5429. ;;
  5430. *)
  5431. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5432. ;;
  5433. esac
  5434. ;;
  5435. *)
  5436. # fallback: assume linklib IS sharedlib
  5437. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5438. ;;
  5439. esac
  5440. fi
  5441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5442. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5443. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5444. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5445. if test -n "$ac_tool_prefix"; then
  5446. for ac_prog in ar
  5447. do
  5448. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5449. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5451. printf %s "checking for $ac_word... " >&6; }
  5452. if test ${ac_cv_prog_AR+y}
  5453. then :
  5454. printf %s "(cached) " >&6
  5455. else $as_nop
  5456. if test -n "$AR"; then
  5457. ac_cv_prog_AR="$AR" # Let the user override the test.
  5458. else
  5459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5460. for as_dir in $PATH
  5461. do
  5462. IFS=$as_save_IFS
  5463. case $as_dir in #(((
  5464. '') as_dir=./ ;;
  5465. */) ;;
  5466. *) as_dir=$as_dir/ ;;
  5467. esac
  5468. for ac_exec_ext in '' $ac_executable_extensions; do
  5469. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5470. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5471. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5472. break 2
  5473. fi
  5474. done
  5475. done
  5476. IFS=$as_save_IFS
  5477. fi
  5478. fi
  5479. AR=$ac_cv_prog_AR
  5480. if test -n "$AR"; then
  5481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5482. printf "%s\n" "$AR" >&6; }
  5483. else
  5484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5485. printf "%s\n" "no" >&6; }
  5486. fi
  5487. test -n "$AR" && break
  5488. done
  5489. fi
  5490. if test -z "$AR"; then
  5491. ac_ct_AR=$AR
  5492. for ac_prog in ar
  5493. do
  5494. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5495. set dummy $ac_prog; ac_word=$2
  5496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. printf %s "checking for $ac_word... " >&6; }
  5498. if test ${ac_cv_prog_ac_ct_AR+y}
  5499. then :
  5500. printf %s "(cached) " >&6
  5501. else $as_nop
  5502. if test -n "$ac_ct_AR"; then
  5503. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5504. else
  5505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5506. for as_dir in $PATH
  5507. do
  5508. IFS=$as_save_IFS
  5509. case $as_dir in #(((
  5510. '') as_dir=./ ;;
  5511. */) ;;
  5512. *) as_dir=$as_dir/ ;;
  5513. esac
  5514. for ac_exec_ext in '' $ac_executable_extensions; do
  5515. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5516. ac_cv_prog_ac_ct_AR="$ac_prog"
  5517. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5518. break 2
  5519. fi
  5520. done
  5521. done
  5522. IFS=$as_save_IFS
  5523. fi
  5524. fi
  5525. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5526. if test -n "$ac_ct_AR"; then
  5527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5528. printf "%s\n" "$ac_ct_AR" >&6; }
  5529. else
  5530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5531. printf "%s\n" "no" >&6; }
  5532. fi
  5533. test -n "$ac_ct_AR" && break
  5534. done
  5535. if test "x$ac_ct_AR" = x; then
  5536. AR="false"
  5537. else
  5538. case $cross_compiling:$ac_tool_warned in
  5539. yes:)
  5540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5541. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5542. ac_tool_warned=yes ;;
  5543. esac
  5544. AR=$ac_ct_AR
  5545. fi
  5546. fi
  5547. : ${AR=ar}
  5548. : ${AR_FLAGS=cru}
  5549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5550. printf %s "checking for archiver @FILE support... " >&6; }
  5551. if test ${lt_cv_ar_at_file+y}
  5552. then :
  5553. printf %s "(cached) " >&6
  5554. else $as_nop
  5555. lt_cv_ar_at_file=no
  5556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5557. /* end confdefs.h. */
  5558. int
  5559. main (void)
  5560. {
  5561. ;
  5562. return 0;
  5563. }
  5564. _ACEOF
  5565. if ac_fn_c_try_compile "$LINENO"
  5566. then :
  5567. echo conftest.$ac_objext > conftest.lst
  5568. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5569. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5570. (eval $lt_ar_try) 2>&5
  5571. ac_status=$?
  5572. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5573. test $ac_status = 0; }
  5574. if test 0 -eq "$ac_status"; then
  5575. # Ensure the archiver fails upon bogus file names.
  5576. rm -f conftest.$ac_objext libconftest.a
  5577. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5578. (eval $lt_ar_try) 2>&5
  5579. ac_status=$?
  5580. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5581. test $ac_status = 0; }
  5582. if test 0 -ne "$ac_status"; then
  5583. lt_cv_ar_at_file=@
  5584. fi
  5585. fi
  5586. rm -f conftest.* libconftest.a
  5587. fi
  5588. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5589. fi
  5590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5591. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5592. if test no = "$lt_cv_ar_at_file"; then
  5593. archiver_list_spec=
  5594. else
  5595. archiver_list_spec=$lt_cv_ar_at_file
  5596. fi
  5597. if test -n "$ac_tool_prefix"; then
  5598. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5599. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. printf %s "checking for $ac_word... " >&6; }
  5602. if test ${ac_cv_prog_STRIP+y}
  5603. then :
  5604. printf %s "(cached) " >&6
  5605. else $as_nop
  5606. if test -n "$STRIP"; then
  5607. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5608. else
  5609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5610. for as_dir in $PATH
  5611. do
  5612. IFS=$as_save_IFS
  5613. case $as_dir in #(((
  5614. '') as_dir=./ ;;
  5615. */) ;;
  5616. *) as_dir=$as_dir/ ;;
  5617. esac
  5618. for ac_exec_ext in '' $ac_executable_extensions; do
  5619. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5620. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5621. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5622. break 2
  5623. fi
  5624. done
  5625. done
  5626. IFS=$as_save_IFS
  5627. fi
  5628. fi
  5629. STRIP=$ac_cv_prog_STRIP
  5630. if test -n "$STRIP"; then
  5631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5632. printf "%s\n" "$STRIP" >&6; }
  5633. else
  5634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5635. printf "%s\n" "no" >&6; }
  5636. fi
  5637. fi
  5638. if test -z "$ac_cv_prog_STRIP"; then
  5639. ac_ct_STRIP=$STRIP
  5640. # Extract the first word of "strip", so it can be a program name with args.
  5641. set dummy strip; ac_word=$2
  5642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5643. printf %s "checking for $ac_word... " >&6; }
  5644. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5645. then :
  5646. printf %s "(cached) " >&6
  5647. else $as_nop
  5648. if test -n "$ac_ct_STRIP"; then
  5649. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5650. else
  5651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5652. for as_dir in $PATH
  5653. do
  5654. IFS=$as_save_IFS
  5655. case $as_dir in #(((
  5656. '') as_dir=./ ;;
  5657. */) ;;
  5658. *) as_dir=$as_dir/ ;;
  5659. esac
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_STRIP="strip"
  5663. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5672. if test -n "$ac_ct_STRIP"; then
  5673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5674. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5675. else
  5676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. printf "%s\n" "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_STRIP" = x; then
  5680. STRIP=":"
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. STRIP=$ac_ct_STRIP
  5689. fi
  5690. else
  5691. STRIP="$ac_cv_prog_STRIP"
  5692. fi
  5693. test -z "$STRIP" && STRIP=:
  5694. if test -n "$ac_tool_prefix"; then
  5695. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5696. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5698. printf %s "checking for $ac_word... " >&6; }
  5699. if test ${ac_cv_prog_RANLIB+y}
  5700. then :
  5701. printf %s "(cached) " >&6
  5702. else $as_nop
  5703. if test -n "$RANLIB"; then
  5704. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. case $as_dir in #(((
  5711. '') as_dir=./ ;;
  5712. */) ;;
  5713. *) as_dir=$as_dir/ ;;
  5714. esac
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5717. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. RANLIB=$ac_cv_prog_RANLIB
  5727. if test -n "$RANLIB"; then
  5728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5729. printf "%s\n" "$RANLIB" >&6; }
  5730. else
  5731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. printf "%s\n" "no" >&6; }
  5733. fi
  5734. fi
  5735. if test -z "$ac_cv_prog_RANLIB"; then
  5736. ac_ct_RANLIB=$RANLIB
  5737. # Extract the first word of "ranlib", so it can be a program name with args.
  5738. set dummy ranlib; ac_word=$2
  5739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5740. printf %s "checking for $ac_word... " >&6; }
  5741. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5742. then :
  5743. printf %s "(cached) " >&6
  5744. else $as_nop
  5745. if test -n "$ac_ct_RANLIB"; then
  5746. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5747. else
  5748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5749. for as_dir in $PATH
  5750. do
  5751. IFS=$as_save_IFS
  5752. case $as_dir in #(((
  5753. '') as_dir=./ ;;
  5754. */) ;;
  5755. *) as_dir=$as_dir/ ;;
  5756. esac
  5757. for ac_exec_ext in '' $ac_executable_extensions; do
  5758. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5759. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5761. break 2
  5762. fi
  5763. done
  5764. done
  5765. IFS=$as_save_IFS
  5766. fi
  5767. fi
  5768. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5769. if test -n "$ac_ct_RANLIB"; then
  5770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5771. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5772. else
  5773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5774. printf "%s\n" "no" >&6; }
  5775. fi
  5776. if test "x$ac_ct_RANLIB" = x; then
  5777. RANLIB=":"
  5778. else
  5779. case $cross_compiling:$ac_tool_warned in
  5780. yes:)
  5781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5782. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5783. ac_tool_warned=yes ;;
  5784. esac
  5785. RANLIB=$ac_ct_RANLIB
  5786. fi
  5787. else
  5788. RANLIB="$ac_cv_prog_RANLIB"
  5789. fi
  5790. test -z "$RANLIB" && RANLIB=:
  5791. # Determine commands to create old-style static archives.
  5792. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5793. old_postinstall_cmds='chmod 644 $oldlib'
  5794. old_postuninstall_cmds=
  5795. if test -n "$RANLIB"; then
  5796. case $host_os in
  5797. bitrig* | openbsd*)
  5798. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5799. ;;
  5800. *)
  5801. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5802. ;;
  5803. esac
  5804. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5805. fi
  5806. case $host_os in
  5807. darwin*)
  5808. lock_old_archive_extraction=yes ;;
  5809. *)
  5810. lock_old_archive_extraction=no ;;
  5811. esac
  5812. for ac_prog in gawk mawk nawk awk
  5813. do
  5814. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5815. set dummy $ac_prog; ac_word=$2
  5816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. printf %s "checking for $ac_word... " >&6; }
  5818. if test ${ac_cv_prog_AWK+y}
  5819. then :
  5820. printf %s "(cached) " >&6
  5821. else $as_nop
  5822. if test -n "$AWK"; then
  5823. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5824. else
  5825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5826. for as_dir in $PATH
  5827. do
  5828. IFS=$as_save_IFS
  5829. case $as_dir in #(((
  5830. '') as_dir=./ ;;
  5831. */) ;;
  5832. *) as_dir=$as_dir/ ;;
  5833. esac
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5836. ac_cv_prog_AWK="$ac_prog"
  5837. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. fi
  5844. fi
  5845. AWK=$ac_cv_prog_AWK
  5846. if test -n "$AWK"; then
  5847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5848. printf "%s\n" "$AWK" >&6; }
  5849. else
  5850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5851. printf "%s\n" "no" >&6; }
  5852. fi
  5853. test -n "$AWK" && break
  5854. done
  5855. # If no C compiler was specified, use CC.
  5856. LTCC=${LTCC-"$CC"}
  5857. # If no C compiler flags were specified, use CFLAGS.
  5858. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5859. # Allow CC to be a program name with arguments.
  5860. compiler=$CC
  5861. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5863. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5864. if test ${lt_cv_sys_global_symbol_pipe+y}
  5865. then :
  5866. printf %s "(cached) " >&6
  5867. else $as_nop
  5868. # These are sane defaults that work on at least a few old systems.
  5869. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5870. # Character class describing NM global symbol codes.
  5871. symcode='[BCDEGRST]'
  5872. # Regexp to match symbols that can be accessed directly from C.
  5873. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5874. # Define system-specific variables.
  5875. case $host_os in
  5876. aix*)
  5877. symcode='[BCDT]'
  5878. ;;
  5879. cygwin* | mingw* | pw32* | cegcc*)
  5880. symcode='[ABCDGISTW]'
  5881. ;;
  5882. hpux*)
  5883. if test ia64 = "$host_cpu"; then
  5884. symcode='[ABCDEGRST]'
  5885. fi
  5886. ;;
  5887. irix* | nonstopux*)
  5888. symcode='[BCDEGRST]'
  5889. ;;
  5890. osf*)
  5891. symcode='[BCDEGQRST]'
  5892. ;;
  5893. solaris*)
  5894. symcode='[BCDRT]'
  5895. ;;
  5896. sco3.2v5*)
  5897. symcode='[DT]'
  5898. ;;
  5899. sysv4.2uw2*)
  5900. symcode='[DT]'
  5901. ;;
  5902. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5903. symcode='[ABDT]'
  5904. ;;
  5905. sysv4)
  5906. symcode='[DFNSTU]'
  5907. ;;
  5908. esac
  5909. # If we're using GNU nm, then use its standard symbol codes.
  5910. case `$NM -V 2>&1` in
  5911. *GNU* | *'with BFD'*)
  5912. symcode='[ABCDGIRSTW]' ;;
  5913. esac
  5914. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5915. # Gets list of data symbols to import.
  5916. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5917. # Adjust the below global symbol transforms to fixup imported variables.
  5918. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5919. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5920. lt_c_name_lib_hook="\
  5921. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5922. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5923. else
  5924. # Disable hooks by default.
  5925. lt_cv_sys_global_symbol_to_import=
  5926. lt_cdecl_hook=
  5927. lt_c_name_hook=
  5928. lt_c_name_lib_hook=
  5929. fi
  5930. # Transform an extracted symbol line into a proper C declaration.
  5931. # Some systems (esp. on ia64) link data and code symbols differently,
  5932. # so use this general approach.
  5933. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5934. $lt_cdecl_hook\
  5935. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5936. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5937. # Transform an extracted symbol line into symbol name and symbol address
  5938. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5939. $lt_c_name_hook\
  5940. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5941. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5942. # Transform an extracted symbol line into symbol name with lib prefix and
  5943. # symbol address.
  5944. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5945. $lt_c_name_lib_hook\
  5946. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5947. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5948. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5949. # Handle CRLF in mingw tool chain
  5950. opt_cr=
  5951. case $build_os in
  5952. mingw*)
  5953. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5954. ;;
  5955. esac
  5956. # Try without a prefix underscore, then with it.
  5957. for ac_symprfx in "" "_"; do
  5958. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5959. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5960. # Write the raw and C identifiers.
  5961. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5962. # Fake it for dumpbin and say T for any non-static function,
  5963. # D for any global variable and I for any imported variable.
  5964. # Also find C++ and __fastcall symbols from MSVC++,
  5965. # which start with @ or ?.
  5966. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5967. " {last_section=section; section=\$ 3};"\
  5968. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5969. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5970. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5971. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5972. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5973. " \$ 0!~/External *\|/{next};"\
  5974. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5975. " {if(hide[section]) next};"\
  5976. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5977. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5978. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5979. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5980. " ' prfx=^$ac_symprfx"
  5981. else
  5982. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5983. fi
  5984. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5985. # Check to see that the pipe works correctly.
  5986. pipe_works=no
  5987. rm -f conftest*
  5988. cat > conftest.$ac_ext <<_LT_EOF
  5989. #ifdef __cplusplus
  5990. extern "C" {
  5991. #endif
  5992. char nm_test_var;
  5993. void nm_test_func(void);
  5994. void nm_test_func(void){}
  5995. #ifdef __cplusplus
  5996. }
  5997. #endif
  5998. int main(){nm_test_var='a';nm_test_func();return(0);}
  5999. _LT_EOF
  6000. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6001. (eval $ac_compile) 2>&5
  6002. ac_status=$?
  6003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6004. test $ac_status = 0; }; then
  6005. # Now try to grab the symbols.
  6006. nlist=conftest.nm
  6007. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6008. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6009. ac_status=$?
  6010. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6011. test $ac_status = 0; } && test -s "$nlist"; then
  6012. # Try sorting and uniquifying the output.
  6013. if sort "$nlist" | uniq > "$nlist"T; then
  6014. mv -f "$nlist"T "$nlist"
  6015. else
  6016. rm -f "$nlist"T
  6017. fi
  6018. # Make sure that we snagged all the symbols we need.
  6019. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6020. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6021. cat <<_LT_EOF > conftest.$ac_ext
  6022. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6023. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6024. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6025. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6026. # define LT_DLSYM_CONST
  6027. #elif defined __osf__
  6028. /* This system does not cope well with relocations in const data. */
  6029. # define LT_DLSYM_CONST
  6030. #else
  6031. # define LT_DLSYM_CONST const
  6032. #endif
  6033. #ifdef __cplusplus
  6034. extern "C" {
  6035. #endif
  6036. _LT_EOF
  6037. # Now generate the symbol file.
  6038. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6039. cat <<_LT_EOF >> conftest.$ac_ext
  6040. /* The mapping between symbol names and symbols. */
  6041. LT_DLSYM_CONST struct {
  6042. const char *name;
  6043. void *address;
  6044. }
  6045. lt__PROGRAM__LTX_preloaded_symbols[] =
  6046. {
  6047. { "@PROGRAM@", (void *) 0 },
  6048. _LT_EOF
  6049. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6050. cat <<\_LT_EOF >> conftest.$ac_ext
  6051. {0, (void *) 0}
  6052. };
  6053. /* This works around a problem in FreeBSD linker */
  6054. #ifdef FREEBSD_WORKAROUND
  6055. static const void *lt_preloaded_setup() {
  6056. return lt__PROGRAM__LTX_preloaded_symbols;
  6057. }
  6058. #endif
  6059. #ifdef __cplusplus
  6060. }
  6061. #endif
  6062. _LT_EOF
  6063. # Now try linking the two files.
  6064. mv conftest.$ac_objext conftstm.$ac_objext
  6065. lt_globsym_save_LIBS=$LIBS
  6066. lt_globsym_save_CFLAGS=$CFLAGS
  6067. LIBS=conftstm.$ac_objext
  6068. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6069. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6070. (eval $ac_link) 2>&5
  6071. ac_status=$?
  6072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6073. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6074. pipe_works=yes
  6075. fi
  6076. LIBS=$lt_globsym_save_LIBS
  6077. CFLAGS=$lt_globsym_save_CFLAGS
  6078. else
  6079. echo "cannot find nm_test_func in $nlist" >&5
  6080. fi
  6081. else
  6082. echo "cannot find nm_test_var in $nlist" >&5
  6083. fi
  6084. else
  6085. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6086. fi
  6087. else
  6088. echo "$progname: failed program was:" >&5
  6089. cat conftest.$ac_ext >&5
  6090. fi
  6091. rm -rf conftest* conftst*
  6092. # Do not use the global_symbol_pipe unless it works.
  6093. if test yes = "$pipe_works"; then
  6094. break
  6095. else
  6096. lt_cv_sys_global_symbol_pipe=
  6097. fi
  6098. done
  6099. fi
  6100. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6101. lt_cv_sys_global_symbol_to_cdecl=
  6102. fi
  6103. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6105. printf "%s\n" "failed" >&6; }
  6106. else
  6107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6108. printf "%s\n" "ok" >&6; }
  6109. fi
  6110. # Response file support.
  6111. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6112. nm_file_list_spec='@'
  6113. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6114. nm_file_list_spec='@'
  6115. fi
  6116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6117. printf %s "checking for sysroot... " >&6; }
  6118. # Check whether --with-sysroot was given.
  6119. if test ${with_sysroot+y}
  6120. then :
  6121. withval=$with_sysroot;
  6122. else $as_nop
  6123. with_sysroot=no
  6124. fi
  6125. lt_sysroot=
  6126. case $with_sysroot in #(
  6127. yes)
  6128. if test yes = "$GCC"; then
  6129. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6130. fi
  6131. ;; #(
  6132. /*)
  6133. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6134. ;; #(
  6135. no|'')
  6136. ;; #(
  6137. *)
  6138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6139. printf "%s\n" "$with_sysroot" >&6; }
  6140. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6141. ;;
  6142. esac
  6143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6144. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6146. printf %s "checking for a working dd... " >&6; }
  6147. if test ${ac_cv_path_lt_DD+y}
  6148. then :
  6149. printf %s "(cached) " >&6
  6150. else $as_nop
  6151. printf 0123456789abcdef0123456789abcdef >conftest.i
  6152. cat conftest.i conftest.i >conftest2.i
  6153. : ${lt_DD:=$DD}
  6154. if test -z "$lt_DD"; then
  6155. ac_path_lt_DD_found=false
  6156. # Loop through the user's path and test for each of PROGNAME-LIST
  6157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6158. for as_dir in $PATH
  6159. do
  6160. IFS=$as_save_IFS
  6161. case $as_dir in #(((
  6162. '') as_dir=./ ;;
  6163. */) ;;
  6164. *) as_dir=$as_dir/ ;;
  6165. esac
  6166. for ac_prog in dd
  6167. do
  6168. for ac_exec_ext in '' $ac_executable_extensions; do
  6169. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6170. as_fn_executable_p "$ac_path_lt_DD" || continue
  6171. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6172. cmp -s conftest.i conftest.out \
  6173. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6174. fi
  6175. $ac_path_lt_DD_found && break 3
  6176. done
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. if test -z "$ac_cv_path_lt_DD"; then
  6181. :
  6182. fi
  6183. else
  6184. ac_cv_path_lt_DD=$lt_DD
  6185. fi
  6186. rm -f conftest.i conftest2.i conftest.out
  6187. fi
  6188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6189. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6191. printf %s "checking how to truncate binary pipes... " >&6; }
  6192. if test ${lt_cv_truncate_bin+y}
  6193. then :
  6194. printf %s "(cached) " >&6
  6195. else $as_nop
  6196. printf 0123456789abcdef0123456789abcdef >conftest.i
  6197. cat conftest.i conftest.i >conftest2.i
  6198. lt_cv_truncate_bin=
  6199. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6200. cmp -s conftest.i conftest.out \
  6201. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6202. fi
  6203. rm -f conftest.i conftest2.i conftest.out
  6204. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6205. fi
  6206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6207. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6208. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6209. func_cc_basename ()
  6210. {
  6211. for cc_temp in $*""; do
  6212. case $cc_temp in
  6213. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6214. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6215. \-*) ;;
  6216. *) break;;
  6217. esac
  6218. done
  6219. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6220. }
  6221. # Check whether --enable-libtool-lock was given.
  6222. if test ${enable_libtool_lock+y}
  6223. then :
  6224. enableval=$enable_libtool_lock;
  6225. fi
  6226. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6227. # Some flags need to be propagated to the compiler or linker for good
  6228. # libtool support.
  6229. case $host in
  6230. ia64-*-hpux*)
  6231. # Find out what ABI is being produced by ac_compile, and set mode
  6232. # options accordingly.
  6233. echo 'int i;' > conftest.$ac_ext
  6234. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6235. (eval $ac_compile) 2>&5
  6236. ac_status=$?
  6237. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6238. test $ac_status = 0; }; then
  6239. case `/usr/bin/file conftest.$ac_objext` in
  6240. *ELF-32*)
  6241. HPUX_IA64_MODE=32
  6242. ;;
  6243. *ELF-64*)
  6244. HPUX_IA64_MODE=64
  6245. ;;
  6246. esac
  6247. fi
  6248. rm -rf conftest*
  6249. ;;
  6250. *-*-irix6*)
  6251. # Find out what ABI is being produced by ac_compile, and set linker
  6252. # options accordingly.
  6253. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6254. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6255. (eval $ac_compile) 2>&5
  6256. ac_status=$?
  6257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6258. test $ac_status = 0; }; then
  6259. if test yes = "$lt_cv_prog_gnu_ld"; then
  6260. case `/usr/bin/file conftest.$ac_objext` in
  6261. *32-bit*)
  6262. LD="${LD-ld} -melf32bsmip"
  6263. ;;
  6264. *N32*)
  6265. LD="${LD-ld} -melf32bmipn32"
  6266. ;;
  6267. *64-bit*)
  6268. LD="${LD-ld} -melf64bmip"
  6269. ;;
  6270. esac
  6271. else
  6272. case `/usr/bin/file conftest.$ac_objext` in
  6273. *32-bit*)
  6274. LD="${LD-ld} -32"
  6275. ;;
  6276. *N32*)
  6277. LD="${LD-ld} -n32"
  6278. ;;
  6279. *64-bit*)
  6280. LD="${LD-ld} -64"
  6281. ;;
  6282. esac
  6283. fi
  6284. fi
  6285. rm -rf conftest*
  6286. ;;
  6287. mips64*-*linux*)
  6288. # Find out what ABI is being produced by ac_compile, and set linker
  6289. # options accordingly.
  6290. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6291. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6292. (eval $ac_compile) 2>&5
  6293. ac_status=$?
  6294. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6295. test $ac_status = 0; }; then
  6296. emul=elf
  6297. case `/usr/bin/file conftest.$ac_objext` in
  6298. *32-bit*)
  6299. emul="${emul}32"
  6300. ;;
  6301. *64-bit*)
  6302. emul="${emul}64"
  6303. ;;
  6304. esac
  6305. case `/usr/bin/file conftest.$ac_objext` in
  6306. *MSB*)
  6307. emul="${emul}btsmip"
  6308. ;;
  6309. *LSB*)
  6310. emul="${emul}ltsmip"
  6311. ;;
  6312. esac
  6313. case `/usr/bin/file conftest.$ac_objext` in
  6314. *N32*)
  6315. emul="${emul}n32"
  6316. ;;
  6317. esac
  6318. LD="${LD-ld} -m $emul"
  6319. fi
  6320. rm -rf conftest*
  6321. ;;
  6322. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6323. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6324. # Find out what ABI is being produced by ac_compile, and set linker
  6325. # options accordingly. Note that the listed cases only cover the
  6326. # situations where additional linker options are needed (such as when
  6327. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6328. # vice versa); the common cases where no linker options are needed do
  6329. # not appear in the list.
  6330. echo 'int i;' > conftest.$ac_ext
  6331. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6332. (eval $ac_compile) 2>&5
  6333. ac_status=$?
  6334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6335. test $ac_status = 0; }; then
  6336. case `/usr/bin/file conftest.o` in
  6337. *32-bit*)
  6338. case $host in
  6339. x86_64-*kfreebsd*-gnu)
  6340. LD="${LD-ld} -m elf_i386_fbsd"
  6341. ;;
  6342. x86_64-*linux*)
  6343. case `/usr/bin/file conftest.o` in
  6344. *x86-64*)
  6345. LD="${LD-ld} -m elf32_x86_64"
  6346. ;;
  6347. *)
  6348. LD="${LD-ld} -m elf_i386"
  6349. ;;
  6350. esac
  6351. ;;
  6352. powerpc64le-*linux*)
  6353. LD="${LD-ld} -m elf32lppclinux"
  6354. ;;
  6355. powerpc64-*linux*)
  6356. LD="${LD-ld} -m elf32ppclinux"
  6357. ;;
  6358. s390x-*linux*)
  6359. LD="${LD-ld} -m elf_s390"
  6360. ;;
  6361. sparc64-*linux*)
  6362. LD="${LD-ld} -m elf32_sparc"
  6363. ;;
  6364. esac
  6365. ;;
  6366. *64-bit*)
  6367. case $host in
  6368. x86_64-*kfreebsd*-gnu)
  6369. LD="${LD-ld} -m elf_x86_64_fbsd"
  6370. ;;
  6371. x86_64-*linux*)
  6372. LD="${LD-ld} -m elf_x86_64"
  6373. ;;
  6374. powerpcle-*linux*|powerpc64le-*linux*)
  6375. LD="${LD-ld} -m elf64lppc"
  6376. ;;
  6377. powerpc-*linux*|powerpc64-*linux*)
  6378. LD="${LD-ld} -m elf64ppc"
  6379. ;;
  6380. s390*-*linux*|s390*-*tpf*)
  6381. LD="${LD-ld} -m elf64_s390"
  6382. ;;
  6383. sparc*-*linux*)
  6384. LD="${LD-ld} -m elf64_sparc"
  6385. ;;
  6386. esac
  6387. ;;
  6388. esac
  6389. fi
  6390. rm -rf conftest*
  6391. ;;
  6392. *-*-sco3.2v5*)
  6393. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6394. SAVE_CFLAGS=$CFLAGS
  6395. CFLAGS="$CFLAGS -belf"
  6396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6397. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6398. if test ${lt_cv_cc_needs_belf+y}
  6399. then :
  6400. printf %s "(cached) " >&6
  6401. else $as_nop
  6402. ac_ext=c
  6403. ac_cpp='$CPP $CPPFLAGS'
  6404. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6405. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6406. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6408. /* end confdefs.h. */
  6409. int
  6410. main (void)
  6411. {
  6412. ;
  6413. return 0;
  6414. }
  6415. _ACEOF
  6416. if ac_fn_c_try_link "$LINENO"
  6417. then :
  6418. lt_cv_cc_needs_belf=yes
  6419. else $as_nop
  6420. lt_cv_cc_needs_belf=no
  6421. fi
  6422. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6423. conftest$ac_exeext conftest.$ac_ext
  6424. ac_ext=c
  6425. ac_cpp='$CPP $CPPFLAGS'
  6426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6429. fi
  6430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6431. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6432. if test yes != "$lt_cv_cc_needs_belf"; then
  6433. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6434. CFLAGS=$SAVE_CFLAGS
  6435. fi
  6436. ;;
  6437. *-*solaris*)
  6438. # Find out what ABI is being produced by ac_compile, and set linker
  6439. # options accordingly.
  6440. echo 'int i;' > conftest.$ac_ext
  6441. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6442. (eval $ac_compile) 2>&5
  6443. ac_status=$?
  6444. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6445. test $ac_status = 0; }; then
  6446. case `/usr/bin/file conftest.o` in
  6447. *64-bit*)
  6448. case $lt_cv_prog_gnu_ld in
  6449. yes*)
  6450. case $host in
  6451. i?86-*-solaris*|x86_64-*-solaris*)
  6452. LD="${LD-ld} -m elf_x86_64"
  6453. ;;
  6454. sparc*-*-solaris*)
  6455. LD="${LD-ld} -m elf64_sparc"
  6456. ;;
  6457. esac
  6458. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6459. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6460. LD=${LD-ld}_sol2
  6461. fi
  6462. ;;
  6463. *)
  6464. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6465. LD="${LD-ld} -64"
  6466. fi
  6467. ;;
  6468. esac
  6469. ;;
  6470. esac
  6471. fi
  6472. rm -rf conftest*
  6473. ;;
  6474. esac
  6475. need_locks=$enable_libtool_lock
  6476. if test -n "$ac_tool_prefix"; then
  6477. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6478. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6480. printf %s "checking for $ac_word... " >&6; }
  6481. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6482. then :
  6483. printf %s "(cached) " >&6
  6484. else $as_nop
  6485. if test -n "$MANIFEST_TOOL"; then
  6486. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6487. else
  6488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6489. for as_dir in $PATH
  6490. do
  6491. IFS=$as_save_IFS
  6492. case $as_dir in #(((
  6493. '') as_dir=./ ;;
  6494. */) ;;
  6495. *) as_dir=$as_dir/ ;;
  6496. esac
  6497. for ac_exec_ext in '' $ac_executable_extensions; do
  6498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6499. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6501. break 2
  6502. fi
  6503. done
  6504. done
  6505. IFS=$as_save_IFS
  6506. fi
  6507. fi
  6508. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6509. if test -n "$MANIFEST_TOOL"; then
  6510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6511. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6512. else
  6513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6514. printf "%s\n" "no" >&6; }
  6515. fi
  6516. fi
  6517. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6518. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6519. # Extract the first word of "mt", so it can be a program name with args.
  6520. set dummy mt; ac_word=$2
  6521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6522. printf %s "checking for $ac_word... " >&6; }
  6523. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6524. then :
  6525. printf %s "(cached) " >&6
  6526. else $as_nop
  6527. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6528. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6529. else
  6530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6531. for as_dir in $PATH
  6532. do
  6533. IFS=$as_save_IFS
  6534. case $as_dir in #(((
  6535. '') as_dir=./ ;;
  6536. */) ;;
  6537. *) as_dir=$as_dir/ ;;
  6538. esac
  6539. for ac_exec_ext in '' $ac_executable_extensions; do
  6540. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6541. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6543. break 2
  6544. fi
  6545. done
  6546. done
  6547. IFS=$as_save_IFS
  6548. fi
  6549. fi
  6550. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6551. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6553. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6554. else
  6555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6556. printf "%s\n" "no" >&6; }
  6557. fi
  6558. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6559. MANIFEST_TOOL=":"
  6560. else
  6561. case $cross_compiling:$ac_tool_warned in
  6562. yes:)
  6563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6565. ac_tool_warned=yes ;;
  6566. esac
  6567. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6568. fi
  6569. else
  6570. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6571. fi
  6572. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6574. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6575. if test ${lt_cv_path_mainfest_tool+y}
  6576. then :
  6577. printf %s "(cached) " >&6
  6578. else $as_nop
  6579. lt_cv_path_mainfest_tool=no
  6580. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6581. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6582. cat conftest.err >&5
  6583. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6584. lt_cv_path_mainfest_tool=yes
  6585. fi
  6586. rm -f conftest*
  6587. fi
  6588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6589. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6590. if test yes != "$lt_cv_path_mainfest_tool"; then
  6591. MANIFEST_TOOL=:
  6592. fi
  6593. case $host_os in
  6594. rhapsody* | darwin*)
  6595. if test -n "$ac_tool_prefix"; then
  6596. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6597. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6599. printf %s "checking for $ac_word... " >&6; }
  6600. if test ${ac_cv_prog_DSYMUTIL+y}
  6601. then :
  6602. printf %s "(cached) " >&6
  6603. else $as_nop
  6604. if test -n "$DSYMUTIL"; then
  6605. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6606. else
  6607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6608. for as_dir in $PATH
  6609. do
  6610. IFS=$as_save_IFS
  6611. case $as_dir in #(((
  6612. '') as_dir=./ ;;
  6613. */) ;;
  6614. *) as_dir=$as_dir/ ;;
  6615. esac
  6616. for ac_exec_ext in '' $ac_executable_extensions; do
  6617. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6618. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6620. break 2
  6621. fi
  6622. done
  6623. done
  6624. IFS=$as_save_IFS
  6625. fi
  6626. fi
  6627. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6628. if test -n "$DSYMUTIL"; then
  6629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6630. printf "%s\n" "$DSYMUTIL" >&6; }
  6631. else
  6632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6633. printf "%s\n" "no" >&6; }
  6634. fi
  6635. fi
  6636. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6637. ac_ct_DSYMUTIL=$DSYMUTIL
  6638. # Extract the first word of "dsymutil", so it can be a program name with args.
  6639. set dummy dsymutil; ac_word=$2
  6640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6641. printf %s "checking for $ac_word... " >&6; }
  6642. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6643. then :
  6644. printf %s "(cached) " >&6
  6645. else $as_nop
  6646. if test -n "$ac_ct_DSYMUTIL"; then
  6647. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6648. else
  6649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6650. for as_dir in $PATH
  6651. do
  6652. IFS=$as_save_IFS
  6653. case $as_dir in #(((
  6654. '') as_dir=./ ;;
  6655. */) ;;
  6656. *) as_dir=$as_dir/ ;;
  6657. esac
  6658. for ac_exec_ext in '' $ac_executable_extensions; do
  6659. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6660. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6661. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6662. break 2
  6663. fi
  6664. done
  6665. done
  6666. IFS=$as_save_IFS
  6667. fi
  6668. fi
  6669. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6670. if test -n "$ac_ct_DSYMUTIL"; then
  6671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6672. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6673. else
  6674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6675. printf "%s\n" "no" >&6; }
  6676. fi
  6677. if test "x$ac_ct_DSYMUTIL" = x; then
  6678. DSYMUTIL=":"
  6679. else
  6680. case $cross_compiling:$ac_tool_warned in
  6681. yes:)
  6682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6683. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6684. ac_tool_warned=yes ;;
  6685. esac
  6686. DSYMUTIL=$ac_ct_DSYMUTIL
  6687. fi
  6688. else
  6689. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6690. fi
  6691. if test -n "$ac_tool_prefix"; then
  6692. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6693. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6695. printf %s "checking for $ac_word... " >&6; }
  6696. if test ${ac_cv_prog_NMEDIT+y}
  6697. then :
  6698. printf %s "(cached) " >&6
  6699. else $as_nop
  6700. if test -n "$NMEDIT"; then
  6701. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6702. else
  6703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6704. for as_dir in $PATH
  6705. do
  6706. IFS=$as_save_IFS
  6707. case $as_dir in #(((
  6708. '') as_dir=./ ;;
  6709. */) ;;
  6710. *) as_dir=$as_dir/ ;;
  6711. esac
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6714. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6715. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. fi
  6722. fi
  6723. NMEDIT=$ac_cv_prog_NMEDIT
  6724. if test -n "$NMEDIT"; then
  6725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6726. printf "%s\n" "$NMEDIT" >&6; }
  6727. else
  6728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. printf "%s\n" "no" >&6; }
  6730. fi
  6731. fi
  6732. if test -z "$ac_cv_prog_NMEDIT"; then
  6733. ac_ct_NMEDIT=$NMEDIT
  6734. # Extract the first word of "nmedit", so it can be a program name with args.
  6735. set dummy nmedit; ac_word=$2
  6736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6737. printf %s "checking for $ac_word... " >&6; }
  6738. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6739. then :
  6740. printf %s "(cached) " >&6
  6741. else $as_nop
  6742. if test -n "$ac_ct_NMEDIT"; then
  6743. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6744. else
  6745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6746. for as_dir in $PATH
  6747. do
  6748. IFS=$as_save_IFS
  6749. case $as_dir in #(((
  6750. '') as_dir=./ ;;
  6751. */) ;;
  6752. *) as_dir=$as_dir/ ;;
  6753. esac
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6756. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6757. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6758. break 2
  6759. fi
  6760. done
  6761. done
  6762. IFS=$as_save_IFS
  6763. fi
  6764. fi
  6765. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6766. if test -n "$ac_ct_NMEDIT"; then
  6767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6768. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6769. else
  6770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6771. printf "%s\n" "no" >&6; }
  6772. fi
  6773. if test "x$ac_ct_NMEDIT" = x; then
  6774. NMEDIT=":"
  6775. else
  6776. case $cross_compiling:$ac_tool_warned in
  6777. yes:)
  6778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6779. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6780. ac_tool_warned=yes ;;
  6781. esac
  6782. NMEDIT=$ac_ct_NMEDIT
  6783. fi
  6784. else
  6785. NMEDIT="$ac_cv_prog_NMEDIT"
  6786. fi
  6787. if test -n "$ac_tool_prefix"; then
  6788. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6789. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6791. printf %s "checking for $ac_word... " >&6; }
  6792. if test ${ac_cv_prog_LIPO+y}
  6793. then :
  6794. printf %s "(cached) " >&6
  6795. else $as_nop
  6796. if test -n "$LIPO"; then
  6797. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6798. else
  6799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6800. for as_dir in $PATH
  6801. do
  6802. IFS=$as_save_IFS
  6803. case $as_dir in #(((
  6804. '') as_dir=./ ;;
  6805. */) ;;
  6806. *) as_dir=$as_dir/ ;;
  6807. esac
  6808. for ac_exec_ext in '' $ac_executable_extensions; do
  6809. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6810. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6812. break 2
  6813. fi
  6814. done
  6815. done
  6816. IFS=$as_save_IFS
  6817. fi
  6818. fi
  6819. LIPO=$ac_cv_prog_LIPO
  6820. if test -n "$LIPO"; then
  6821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6822. printf "%s\n" "$LIPO" >&6; }
  6823. else
  6824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6825. printf "%s\n" "no" >&6; }
  6826. fi
  6827. fi
  6828. if test -z "$ac_cv_prog_LIPO"; then
  6829. ac_ct_LIPO=$LIPO
  6830. # Extract the first word of "lipo", so it can be a program name with args.
  6831. set dummy lipo; ac_word=$2
  6832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6833. printf %s "checking for $ac_word... " >&6; }
  6834. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6835. then :
  6836. printf %s "(cached) " >&6
  6837. else $as_nop
  6838. if test -n "$ac_ct_LIPO"; then
  6839. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6840. else
  6841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6842. for as_dir in $PATH
  6843. do
  6844. IFS=$as_save_IFS
  6845. case $as_dir in #(((
  6846. '') as_dir=./ ;;
  6847. */) ;;
  6848. *) as_dir=$as_dir/ ;;
  6849. esac
  6850. for ac_exec_ext in '' $ac_executable_extensions; do
  6851. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6852. ac_cv_prog_ac_ct_LIPO="lipo"
  6853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6854. break 2
  6855. fi
  6856. done
  6857. done
  6858. IFS=$as_save_IFS
  6859. fi
  6860. fi
  6861. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6862. if test -n "$ac_ct_LIPO"; then
  6863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6864. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6865. else
  6866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6867. printf "%s\n" "no" >&6; }
  6868. fi
  6869. if test "x$ac_ct_LIPO" = x; then
  6870. LIPO=":"
  6871. else
  6872. case $cross_compiling:$ac_tool_warned in
  6873. yes:)
  6874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6875. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6876. ac_tool_warned=yes ;;
  6877. esac
  6878. LIPO=$ac_ct_LIPO
  6879. fi
  6880. else
  6881. LIPO="$ac_cv_prog_LIPO"
  6882. fi
  6883. if test -n "$ac_tool_prefix"; then
  6884. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6885. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6887. printf %s "checking for $ac_word... " >&6; }
  6888. if test ${ac_cv_prog_OTOOL+y}
  6889. then :
  6890. printf %s "(cached) " >&6
  6891. else $as_nop
  6892. if test -n "$OTOOL"; then
  6893. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6894. else
  6895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6896. for as_dir in $PATH
  6897. do
  6898. IFS=$as_save_IFS
  6899. case $as_dir in #(((
  6900. '') as_dir=./ ;;
  6901. */) ;;
  6902. *) as_dir=$as_dir/ ;;
  6903. esac
  6904. for ac_exec_ext in '' $ac_executable_extensions; do
  6905. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6906. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6907. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6908. break 2
  6909. fi
  6910. done
  6911. done
  6912. IFS=$as_save_IFS
  6913. fi
  6914. fi
  6915. OTOOL=$ac_cv_prog_OTOOL
  6916. if test -n "$OTOOL"; then
  6917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6918. printf "%s\n" "$OTOOL" >&6; }
  6919. else
  6920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6921. printf "%s\n" "no" >&6; }
  6922. fi
  6923. fi
  6924. if test -z "$ac_cv_prog_OTOOL"; then
  6925. ac_ct_OTOOL=$OTOOL
  6926. # Extract the first word of "otool", so it can be a program name with args.
  6927. set dummy otool; ac_word=$2
  6928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6929. printf %s "checking for $ac_word... " >&6; }
  6930. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6931. then :
  6932. printf %s "(cached) " >&6
  6933. else $as_nop
  6934. if test -n "$ac_ct_OTOOL"; then
  6935. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6936. else
  6937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6938. for as_dir in $PATH
  6939. do
  6940. IFS=$as_save_IFS
  6941. case $as_dir in #(((
  6942. '') as_dir=./ ;;
  6943. */) ;;
  6944. *) as_dir=$as_dir/ ;;
  6945. esac
  6946. for ac_exec_ext in '' $ac_executable_extensions; do
  6947. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6948. ac_cv_prog_ac_ct_OTOOL="otool"
  6949. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6950. break 2
  6951. fi
  6952. done
  6953. done
  6954. IFS=$as_save_IFS
  6955. fi
  6956. fi
  6957. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6958. if test -n "$ac_ct_OTOOL"; then
  6959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6960. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6961. else
  6962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6963. printf "%s\n" "no" >&6; }
  6964. fi
  6965. if test "x$ac_ct_OTOOL" = x; then
  6966. OTOOL=":"
  6967. else
  6968. case $cross_compiling:$ac_tool_warned in
  6969. yes:)
  6970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6971. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6972. ac_tool_warned=yes ;;
  6973. esac
  6974. OTOOL=$ac_ct_OTOOL
  6975. fi
  6976. else
  6977. OTOOL="$ac_cv_prog_OTOOL"
  6978. fi
  6979. if test -n "$ac_tool_prefix"; then
  6980. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6981. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6983. printf %s "checking for $ac_word... " >&6; }
  6984. if test ${ac_cv_prog_OTOOL64+y}
  6985. then :
  6986. printf %s "(cached) " >&6
  6987. else $as_nop
  6988. if test -n "$OTOOL64"; then
  6989. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6990. else
  6991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6992. for as_dir in $PATH
  6993. do
  6994. IFS=$as_save_IFS
  6995. case $as_dir in #(((
  6996. '') as_dir=./ ;;
  6997. */) ;;
  6998. *) as_dir=$as_dir/ ;;
  6999. esac
  7000. for ac_exec_ext in '' $ac_executable_extensions; do
  7001. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7002. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7004. break 2
  7005. fi
  7006. done
  7007. done
  7008. IFS=$as_save_IFS
  7009. fi
  7010. fi
  7011. OTOOL64=$ac_cv_prog_OTOOL64
  7012. if test -n "$OTOOL64"; then
  7013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7014. printf "%s\n" "$OTOOL64" >&6; }
  7015. else
  7016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7017. printf "%s\n" "no" >&6; }
  7018. fi
  7019. fi
  7020. if test -z "$ac_cv_prog_OTOOL64"; then
  7021. ac_ct_OTOOL64=$OTOOL64
  7022. # Extract the first word of "otool64", so it can be a program name with args.
  7023. set dummy otool64; ac_word=$2
  7024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7025. printf %s "checking for $ac_word... " >&6; }
  7026. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7027. then :
  7028. printf %s "(cached) " >&6
  7029. else $as_nop
  7030. if test -n "$ac_ct_OTOOL64"; then
  7031. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7032. else
  7033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7034. for as_dir in $PATH
  7035. do
  7036. IFS=$as_save_IFS
  7037. case $as_dir in #(((
  7038. '') as_dir=./ ;;
  7039. */) ;;
  7040. *) as_dir=$as_dir/ ;;
  7041. esac
  7042. for ac_exec_ext in '' $ac_executable_extensions; do
  7043. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7044. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7045. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7046. break 2
  7047. fi
  7048. done
  7049. done
  7050. IFS=$as_save_IFS
  7051. fi
  7052. fi
  7053. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7054. if test -n "$ac_ct_OTOOL64"; then
  7055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7056. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7057. else
  7058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7059. printf "%s\n" "no" >&6; }
  7060. fi
  7061. if test "x$ac_ct_OTOOL64" = x; then
  7062. OTOOL64=":"
  7063. else
  7064. case $cross_compiling:$ac_tool_warned in
  7065. yes:)
  7066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7067. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7068. ac_tool_warned=yes ;;
  7069. esac
  7070. OTOOL64=$ac_ct_OTOOL64
  7071. fi
  7072. else
  7073. OTOOL64="$ac_cv_prog_OTOOL64"
  7074. fi
  7075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7076. printf %s "checking for -single_module linker flag... " >&6; }
  7077. if test ${lt_cv_apple_cc_single_mod+y}
  7078. then :
  7079. printf %s "(cached) " >&6
  7080. else $as_nop
  7081. lt_cv_apple_cc_single_mod=no
  7082. if test -z "$LT_MULTI_MODULE"; then
  7083. # By default we will add the -single_module flag. You can override
  7084. # by either setting the environment variable LT_MULTI_MODULE
  7085. # non-empty at configure time, or by adding -multi_module to the
  7086. # link flags.
  7087. rm -rf libconftest.dylib*
  7088. echo "int foo(void){return 1;}" > conftest.c
  7089. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7090. -dynamiclib -Wl,-single_module conftest.c" >&5
  7091. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7092. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7093. _lt_result=$?
  7094. # If there is a non-empty error log, and "single_module"
  7095. # appears in it, assume the flag caused a linker warning
  7096. if test -s conftest.err && $GREP single_module conftest.err; then
  7097. cat conftest.err >&5
  7098. # Otherwise, if the output was created with a 0 exit code from
  7099. # the compiler, it worked.
  7100. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7101. lt_cv_apple_cc_single_mod=yes
  7102. else
  7103. cat conftest.err >&5
  7104. fi
  7105. rm -rf libconftest.dylib*
  7106. rm -f conftest.*
  7107. fi
  7108. fi
  7109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7110. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7112. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7113. if test ${lt_cv_ld_exported_symbols_list+y}
  7114. then :
  7115. printf %s "(cached) " >&6
  7116. else $as_nop
  7117. lt_cv_ld_exported_symbols_list=no
  7118. save_LDFLAGS=$LDFLAGS
  7119. echo "_main" > conftest.sym
  7120. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7122. /* end confdefs.h. */
  7123. int
  7124. main (void)
  7125. {
  7126. ;
  7127. return 0;
  7128. }
  7129. _ACEOF
  7130. if ac_fn_c_try_link "$LINENO"
  7131. then :
  7132. lt_cv_ld_exported_symbols_list=yes
  7133. else $as_nop
  7134. lt_cv_ld_exported_symbols_list=no
  7135. fi
  7136. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7137. conftest$ac_exeext conftest.$ac_ext
  7138. LDFLAGS=$save_LDFLAGS
  7139. fi
  7140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7141. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7143. printf %s "checking for -force_load linker flag... " >&6; }
  7144. if test ${lt_cv_ld_force_load+y}
  7145. then :
  7146. printf %s "(cached) " >&6
  7147. else $as_nop
  7148. lt_cv_ld_force_load=no
  7149. cat > conftest.c << _LT_EOF
  7150. int forced_loaded() { return 2;}
  7151. _LT_EOF
  7152. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7153. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7154. echo "$AR cru libconftest.a conftest.o" >&5
  7155. $AR cru libconftest.a conftest.o 2>&5
  7156. echo "$RANLIB libconftest.a" >&5
  7157. $RANLIB libconftest.a 2>&5
  7158. cat > conftest.c << _LT_EOF
  7159. int main() { return 0;}
  7160. _LT_EOF
  7161. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7162. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7163. _lt_result=$?
  7164. if test -s conftest.err && $GREP force_load conftest.err; then
  7165. cat conftest.err >&5
  7166. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7167. lt_cv_ld_force_load=yes
  7168. else
  7169. cat conftest.err >&5
  7170. fi
  7171. rm -f conftest.err libconftest.a conftest conftest.c
  7172. rm -rf conftest.dSYM
  7173. fi
  7174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7175. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7176. case $host_os in
  7177. rhapsody* | darwin1.[012])
  7178. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7179. darwin1.*)
  7180. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7181. darwin*)
  7182. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7183. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7184. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7185. *)
  7186. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7187. esac
  7188. ;;
  7189. esac
  7190. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7191. _lt_dar_single_mod='$single_module'
  7192. fi
  7193. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7194. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7195. else
  7196. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7197. fi
  7198. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7199. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7200. else
  7201. _lt_dsymutil=
  7202. fi
  7203. ;;
  7204. esac
  7205. # func_munge_path_list VARIABLE PATH
  7206. # -----------------------------------
  7207. # VARIABLE is name of variable containing _space_ separated list of
  7208. # directories to be munged by the contents of PATH, which is string
  7209. # having a format:
  7210. # "DIR[:DIR]:"
  7211. # string "DIR[ DIR]" will be prepended to VARIABLE
  7212. # ":DIR[:DIR]"
  7213. # string "DIR[ DIR]" will be appended to VARIABLE
  7214. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7215. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7216. # "DIRA[ DIRA]" will be appended to VARIABLE
  7217. # "DIR[:DIR]"
  7218. # VARIABLE will be replaced by "DIR[ DIR]"
  7219. func_munge_path_list ()
  7220. {
  7221. case x$2 in
  7222. x)
  7223. ;;
  7224. *:)
  7225. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7226. ;;
  7227. x:*)
  7228. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7229. ;;
  7230. *::*)
  7231. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7232. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7233. ;;
  7234. *)
  7235. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7236. ;;
  7237. esac
  7238. }
  7239. ac_header= ac_cache=
  7240. for ac_item in $ac_header_c_list
  7241. do
  7242. if test $ac_cache; then
  7243. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7244. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7245. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7246. fi
  7247. ac_header= ac_cache=
  7248. elif test $ac_header; then
  7249. ac_cache=$ac_item
  7250. else
  7251. ac_header=$ac_item
  7252. fi
  7253. done
  7254. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7255. then :
  7256. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7257. fi
  7258. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7259. "
  7260. if test "x$ac_cv_header_dlfcn_h" = xyes
  7261. then :
  7262. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7263. fi
  7264. # Set options
  7265. enable_win32_dll=yes
  7266. case $host in
  7267. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7268. if test -n "$ac_tool_prefix"; then
  7269. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7270. set dummy ${ac_tool_prefix}as; ac_word=$2
  7271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7272. printf %s "checking for $ac_word... " >&6; }
  7273. if test ${ac_cv_prog_AS+y}
  7274. then :
  7275. printf %s "(cached) " >&6
  7276. else $as_nop
  7277. if test -n "$AS"; then
  7278. ac_cv_prog_AS="$AS" # Let the user override the test.
  7279. else
  7280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7281. for as_dir in $PATH
  7282. do
  7283. IFS=$as_save_IFS
  7284. case $as_dir in #(((
  7285. '') as_dir=./ ;;
  7286. */) ;;
  7287. *) as_dir=$as_dir/ ;;
  7288. esac
  7289. for ac_exec_ext in '' $ac_executable_extensions; do
  7290. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7291. ac_cv_prog_AS="${ac_tool_prefix}as"
  7292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7293. break 2
  7294. fi
  7295. done
  7296. done
  7297. IFS=$as_save_IFS
  7298. fi
  7299. fi
  7300. AS=$ac_cv_prog_AS
  7301. if test -n "$AS"; then
  7302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7303. printf "%s\n" "$AS" >&6; }
  7304. else
  7305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7306. printf "%s\n" "no" >&6; }
  7307. fi
  7308. fi
  7309. if test -z "$ac_cv_prog_AS"; then
  7310. ac_ct_AS=$AS
  7311. # Extract the first word of "as", so it can be a program name with args.
  7312. set dummy as; ac_word=$2
  7313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7314. printf %s "checking for $ac_word... " >&6; }
  7315. if test ${ac_cv_prog_ac_ct_AS+y}
  7316. then :
  7317. printf %s "(cached) " >&6
  7318. else $as_nop
  7319. if test -n "$ac_ct_AS"; then
  7320. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7321. else
  7322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7323. for as_dir in $PATH
  7324. do
  7325. IFS=$as_save_IFS
  7326. case $as_dir in #(((
  7327. '') as_dir=./ ;;
  7328. */) ;;
  7329. *) as_dir=$as_dir/ ;;
  7330. esac
  7331. for ac_exec_ext in '' $ac_executable_extensions; do
  7332. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7333. ac_cv_prog_ac_ct_AS="as"
  7334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7335. break 2
  7336. fi
  7337. done
  7338. done
  7339. IFS=$as_save_IFS
  7340. fi
  7341. fi
  7342. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7343. if test -n "$ac_ct_AS"; then
  7344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7345. printf "%s\n" "$ac_ct_AS" >&6; }
  7346. else
  7347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7348. printf "%s\n" "no" >&6; }
  7349. fi
  7350. if test "x$ac_ct_AS" = x; then
  7351. AS="false"
  7352. else
  7353. case $cross_compiling:$ac_tool_warned in
  7354. yes:)
  7355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7356. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7357. ac_tool_warned=yes ;;
  7358. esac
  7359. AS=$ac_ct_AS
  7360. fi
  7361. else
  7362. AS="$ac_cv_prog_AS"
  7363. fi
  7364. if test -n "$ac_tool_prefix"; then
  7365. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7366. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7368. printf %s "checking for $ac_word... " >&6; }
  7369. if test ${ac_cv_prog_DLLTOOL+y}
  7370. then :
  7371. printf %s "(cached) " >&6
  7372. else $as_nop
  7373. if test -n "$DLLTOOL"; then
  7374. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7375. else
  7376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7377. for as_dir in $PATH
  7378. do
  7379. IFS=$as_save_IFS
  7380. case $as_dir in #(((
  7381. '') as_dir=./ ;;
  7382. */) ;;
  7383. *) as_dir=$as_dir/ ;;
  7384. esac
  7385. for ac_exec_ext in '' $ac_executable_extensions; do
  7386. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7387. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7389. break 2
  7390. fi
  7391. done
  7392. done
  7393. IFS=$as_save_IFS
  7394. fi
  7395. fi
  7396. DLLTOOL=$ac_cv_prog_DLLTOOL
  7397. if test -n "$DLLTOOL"; then
  7398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7399. printf "%s\n" "$DLLTOOL" >&6; }
  7400. else
  7401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7402. printf "%s\n" "no" >&6; }
  7403. fi
  7404. fi
  7405. if test -z "$ac_cv_prog_DLLTOOL"; then
  7406. ac_ct_DLLTOOL=$DLLTOOL
  7407. # Extract the first word of "dlltool", so it can be a program name with args.
  7408. set dummy dlltool; ac_word=$2
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7410. printf %s "checking for $ac_word... " >&6; }
  7411. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7412. then :
  7413. printf %s "(cached) " >&6
  7414. else $as_nop
  7415. if test -n "$ac_ct_DLLTOOL"; then
  7416. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7417. else
  7418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7419. for as_dir in $PATH
  7420. do
  7421. IFS=$as_save_IFS
  7422. case $as_dir in #(((
  7423. '') as_dir=./ ;;
  7424. */) ;;
  7425. *) as_dir=$as_dir/ ;;
  7426. esac
  7427. for ac_exec_ext in '' $ac_executable_extensions; do
  7428. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7429. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7431. break 2
  7432. fi
  7433. done
  7434. done
  7435. IFS=$as_save_IFS
  7436. fi
  7437. fi
  7438. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7439. if test -n "$ac_ct_DLLTOOL"; then
  7440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7441. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7442. else
  7443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7444. printf "%s\n" "no" >&6; }
  7445. fi
  7446. if test "x$ac_ct_DLLTOOL" = x; then
  7447. DLLTOOL="false"
  7448. else
  7449. case $cross_compiling:$ac_tool_warned in
  7450. yes:)
  7451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7452. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7453. ac_tool_warned=yes ;;
  7454. esac
  7455. DLLTOOL=$ac_ct_DLLTOOL
  7456. fi
  7457. else
  7458. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7459. fi
  7460. if test -n "$ac_tool_prefix"; then
  7461. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7462. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7464. printf %s "checking for $ac_word... " >&6; }
  7465. if test ${ac_cv_prog_OBJDUMP+y}
  7466. then :
  7467. printf %s "(cached) " >&6
  7468. else $as_nop
  7469. if test -n "$OBJDUMP"; then
  7470. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7471. else
  7472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7473. for as_dir in $PATH
  7474. do
  7475. IFS=$as_save_IFS
  7476. case $as_dir in #(((
  7477. '') as_dir=./ ;;
  7478. */) ;;
  7479. *) as_dir=$as_dir/ ;;
  7480. esac
  7481. for ac_exec_ext in '' $ac_executable_extensions; do
  7482. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7483. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7485. break 2
  7486. fi
  7487. done
  7488. done
  7489. IFS=$as_save_IFS
  7490. fi
  7491. fi
  7492. OBJDUMP=$ac_cv_prog_OBJDUMP
  7493. if test -n "$OBJDUMP"; then
  7494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7495. printf "%s\n" "$OBJDUMP" >&6; }
  7496. else
  7497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7498. printf "%s\n" "no" >&6; }
  7499. fi
  7500. fi
  7501. if test -z "$ac_cv_prog_OBJDUMP"; then
  7502. ac_ct_OBJDUMP=$OBJDUMP
  7503. # Extract the first word of "objdump", so it can be a program name with args.
  7504. set dummy objdump; ac_word=$2
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7506. printf %s "checking for $ac_word... " >&6; }
  7507. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7508. then :
  7509. printf %s "(cached) " >&6
  7510. else $as_nop
  7511. if test -n "$ac_ct_OBJDUMP"; then
  7512. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7513. else
  7514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7515. for as_dir in $PATH
  7516. do
  7517. IFS=$as_save_IFS
  7518. case $as_dir in #(((
  7519. '') as_dir=./ ;;
  7520. */) ;;
  7521. *) as_dir=$as_dir/ ;;
  7522. esac
  7523. for ac_exec_ext in '' $ac_executable_extensions; do
  7524. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7525. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7526. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7527. break 2
  7528. fi
  7529. done
  7530. done
  7531. IFS=$as_save_IFS
  7532. fi
  7533. fi
  7534. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7535. if test -n "$ac_ct_OBJDUMP"; then
  7536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7537. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7538. else
  7539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7540. printf "%s\n" "no" >&6; }
  7541. fi
  7542. if test "x$ac_ct_OBJDUMP" = x; then
  7543. OBJDUMP="false"
  7544. else
  7545. case $cross_compiling:$ac_tool_warned in
  7546. yes:)
  7547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7548. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7549. ac_tool_warned=yes ;;
  7550. esac
  7551. OBJDUMP=$ac_ct_OBJDUMP
  7552. fi
  7553. else
  7554. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7555. fi
  7556. ;;
  7557. esac
  7558. test -z "$AS" && AS=as
  7559. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7560. test -z "$OBJDUMP" && OBJDUMP=objdump
  7561. enable_dlopen=no
  7562. # Check whether --enable-shared was given.
  7563. if test ${enable_shared+y}
  7564. then :
  7565. enableval=$enable_shared; p=${PACKAGE-default}
  7566. case $enableval in
  7567. yes) enable_shared=yes ;;
  7568. no) enable_shared=no ;;
  7569. *)
  7570. enable_shared=no
  7571. # Look at the argument we got. We use all the common list separators.
  7572. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7573. for pkg in $enableval; do
  7574. IFS=$lt_save_ifs
  7575. if test "X$pkg" = "X$p"; then
  7576. enable_shared=yes
  7577. fi
  7578. done
  7579. IFS=$lt_save_ifs
  7580. ;;
  7581. esac
  7582. else $as_nop
  7583. enable_shared=yes
  7584. fi
  7585. # Check whether --enable-static was given.
  7586. if test ${enable_static+y}
  7587. then :
  7588. enableval=$enable_static; p=${PACKAGE-default}
  7589. case $enableval in
  7590. yes) enable_static=yes ;;
  7591. no) enable_static=no ;;
  7592. *)
  7593. enable_static=no
  7594. # Look at the argument we got. We use all the common list separators.
  7595. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7596. for pkg in $enableval; do
  7597. IFS=$lt_save_ifs
  7598. if test "X$pkg" = "X$p"; then
  7599. enable_static=yes
  7600. fi
  7601. done
  7602. IFS=$lt_save_ifs
  7603. ;;
  7604. esac
  7605. else $as_nop
  7606. enable_static=yes
  7607. fi
  7608. # Check whether --with-pic was given.
  7609. if test ${with_pic+y}
  7610. then :
  7611. withval=$with_pic; lt_p=${PACKAGE-default}
  7612. case $withval in
  7613. yes|no) pic_mode=$withval ;;
  7614. *)
  7615. pic_mode=default
  7616. # Look at the argument we got. We use all the common list separators.
  7617. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7618. for lt_pkg in $withval; do
  7619. IFS=$lt_save_ifs
  7620. if test "X$lt_pkg" = "X$lt_p"; then
  7621. pic_mode=yes
  7622. fi
  7623. done
  7624. IFS=$lt_save_ifs
  7625. ;;
  7626. esac
  7627. else $as_nop
  7628. pic_mode=default
  7629. fi
  7630. # Check whether --enable-fast-install was given.
  7631. if test ${enable_fast_install+y}
  7632. then :
  7633. enableval=$enable_fast_install; p=${PACKAGE-default}
  7634. case $enableval in
  7635. yes) enable_fast_install=yes ;;
  7636. no) enable_fast_install=no ;;
  7637. *)
  7638. enable_fast_install=no
  7639. # Look at the argument we got. We use all the common list separators.
  7640. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7641. for pkg in $enableval; do
  7642. IFS=$lt_save_ifs
  7643. if test "X$pkg" = "X$p"; then
  7644. enable_fast_install=yes
  7645. fi
  7646. done
  7647. IFS=$lt_save_ifs
  7648. ;;
  7649. esac
  7650. else $as_nop
  7651. enable_fast_install=yes
  7652. fi
  7653. shared_archive_member_spec=
  7654. case $host,$enable_shared in
  7655. power*-*-aix[5-9]*,yes)
  7656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7657. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7658. # Check whether --with-aix-soname was given.
  7659. if test ${with_aix_soname+y}
  7660. then :
  7661. withval=$with_aix_soname; case $withval in
  7662. aix|svr4|both)
  7663. ;;
  7664. *)
  7665. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7666. ;;
  7667. esac
  7668. lt_cv_with_aix_soname=$with_aix_soname
  7669. else $as_nop
  7670. if test ${lt_cv_with_aix_soname+y}
  7671. then :
  7672. printf %s "(cached) " >&6
  7673. else $as_nop
  7674. lt_cv_with_aix_soname=aix
  7675. fi
  7676. with_aix_soname=$lt_cv_with_aix_soname
  7677. fi
  7678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7679. printf "%s\n" "$with_aix_soname" >&6; }
  7680. if test aix != "$with_aix_soname"; then
  7681. # For the AIX way of multilib, we name the shared archive member
  7682. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7683. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7684. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7685. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7686. if test 64 = "${OBJECT_MODE-32}"; then
  7687. shared_archive_member_spec=shr_64
  7688. else
  7689. shared_archive_member_spec=shr
  7690. fi
  7691. fi
  7692. ;;
  7693. *)
  7694. with_aix_soname=aix
  7695. ;;
  7696. esac
  7697. # This can be used to rebuild libtool when needed
  7698. LIBTOOL_DEPS=$ltmain
  7699. # Always use our own libtool.
  7700. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7701. test -z "$LN_S" && LN_S="ln -s"
  7702. if test -n "${ZSH_VERSION+set}"; then
  7703. setopt NO_GLOB_SUBST
  7704. fi
  7705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7706. printf %s "checking for objdir... " >&6; }
  7707. if test ${lt_cv_objdir+y}
  7708. then :
  7709. printf %s "(cached) " >&6
  7710. else $as_nop
  7711. rm -f .libs 2>/dev/null
  7712. mkdir .libs 2>/dev/null
  7713. if test -d .libs; then
  7714. lt_cv_objdir=.libs
  7715. else
  7716. # MS-DOS does not allow filenames that begin with a dot.
  7717. lt_cv_objdir=_libs
  7718. fi
  7719. rmdir .libs 2>/dev/null
  7720. fi
  7721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7722. printf "%s\n" "$lt_cv_objdir" >&6; }
  7723. objdir=$lt_cv_objdir
  7724. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7725. case $host_os in
  7726. aix3*)
  7727. # AIX sometimes has problems with the GCC collect2 program. For some
  7728. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7729. # vanish in a puff of smoke.
  7730. if test set != "${COLLECT_NAMES+set}"; then
  7731. COLLECT_NAMES=
  7732. export COLLECT_NAMES
  7733. fi
  7734. ;;
  7735. esac
  7736. # Global variables:
  7737. ofile=libtool
  7738. can_build_shared=yes
  7739. # All known linkers require a '.a' archive for static linking (except MSVC,
  7740. # which needs '.lib').
  7741. libext=a
  7742. with_gnu_ld=$lt_cv_prog_gnu_ld
  7743. old_CC=$CC
  7744. old_CFLAGS=$CFLAGS
  7745. # Set sane defaults for various variables
  7746. test -z "$CC" && CC=cc
  7747. test -z "$LTCC" && LTCC=$CC
  7748. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7749. test -z "$LD" && LD=ld
  7750. test -z "$ac_objext" && ac_objext=o
  7751. func_cc_basename $compiler
  7752. cc_basename=$func_cc_basename_result
  7753. # Only perform the check for file, if the check method requires it
  7754. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7755. case $deplibs_check_method in
  7756. file_magic*)
  7757. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7759. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7760. if test ${lt_cv_path_MAGIC_CMD+y}
  7761. then :
  7762. printf %s "(cached) " >&6
  7763. else $as_nop
  7764. case $MAGIC_CMD in
  7765. [\\/*] | ?:[\\/]*)
  7766. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7767. ;;
  7768. *)
  7769. lt_save_MAGIC_CMD=$MAGIC_CMD
  7770. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7771. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7772. for ac_dir in $ac_dummy; do
  7773. IFS=$lt_save_ifs
  7774. test -z "$ac_dir" && ac_dir=.
  7775. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7776. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7777. if test -n "$file_magic_test_file"; then
  7778. case $deplibs_check_method in
  7779. "file_magic "*)
  7780. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7781. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7782. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7783. $EGREP "$file_magic_regex" > /dev/null; then
  7784. :
  7785. else
  7786. cat <<_LT_EOF 1>&2
  7787. *** Warning: the command libtool uses to detect shared libraries,
  7788. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7789. *** The result is that libtool may fail to recognize shared libraries
  7790. *** as such. This will affect the creation of libtool libraries that
  7791. *** depend on shared libraries, but programs linked with such libtool
  7792. *** libraries will work regardless of this problem. Nevertheless, you
  7793. *** may want to report the problem to your system manager and/or to
  7794. *** bug-libtool@gnu.org
  7795. _LT_EOF
  7796. fi ;;
  7797. esac
  7798. fi
  7799. break
  7800. fi
  7801. done
  7802. IFS=$lt_save_ifs
  7803. MAGIC_CMD=$lt_save_MAGIC_CMD
  7804. ;;
  7805. esac
  7806. fi
  7807. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7808. if test -n "$MAGIC_CMD"; then
  7809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7810. printf "%s\n" "$MAGIC_CMD" >&6; }
  7811. else
  7812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7813. printf "%s\n" "no" >&6; }
  7814. fi
  7815. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7816. if test -n "$ac_tool_prefix"; then
  7817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7818. printf %s "checking for file... " >&6; }
  7819. if test ${lt_cv_path_MAGIC_CMD+y}
  7820. then :
  7821. printf %s "(cached) " >&6
  7822. else $as_nop
  7823. case $MAGIC_CMD in
  7824. [\\/*] | ?:[\\/]*)
  7825. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7826. ;;
  7827. *)
  7828. lt_save_MAGIC_CMD=$MAGIC_CMD
  7829. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7830. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7831. for ac_dir in $ac_dummy; do
  7832. IFS=$lt_save_ifs
  7833. test -z "$ac_dir" && ac_dir=.
  7834. if test -f "$ac_dir/file"; then
  7835. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7836. if test -n "$file_magic_test_file"; then
  7837. case $deplibs_check_method in
  7838. "file_magic "*)
  7839. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7840. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7841. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7842. $EGREP "$file_magic_regex" > /dev/null; then
  7843. :
  7844. else
  7845. cat <<_LT_EOF 1>&2
  7846. *** Warning: the command libtool uses to detect shared libraries,
  7847. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7848. *** The result is that libtool may fail to recognize shared libraries
  7849. *** as such. This will affect the creation of libtool libraries that
  7850. *** depend on shared libraries, but programs linked with such libtool
  7851. *** libraries will work regardless of this problem. Nevertheless, you
  7852. *** may want to report the problem to your system manager and/or to
  7853. *** bug-libtool@gnu.org
  7854. _LT_EOF
  7855. fi ;;
  7856. esac
  7857. fi
  7858. break
  7859. fi
  7860. done
  7861. IFS=$lt_save_ifs
  7862. MAGIC_CMD=$lt_save_MAGIC_CMD
  7863. ;;
  7864. esac
  7865. fi
  7866. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7867. if test -n "$MAGIC_CMD"; then
  7868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7869. printf "%s\n" "$MAGIC_CMD" >&6; }
  7870. else
  7871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7872. printf "%s\n" "no" >&6; }
  7873. fi
  7874. else
  7875. MAGIC_CMD=:
  7876. fi
  7877. fi
  7878. fi
  7879. ;;
  7880. esac
  7881. # Use C for the default configuration in the libtool script
  7882. lt_save_CC=$CC
  7883. ac_ext=c
  7884. ac_cpp='$CPP $CPPFLAGS'
  7885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7888. # Source file extension for C test sources.
  7889. ac_ext=c
  7890. # Object file extension for compiled C test sources.
  7891. objext=o
  7892. objext=$objext
  7893. # Code to be used in simple compile tests
  7894. lt_simple_compile_test_code="int some_variable = 0;"
  7895. # Code to be used in simple link tests
  7896. lt_simple_link_test_code='int main(){return(0);}'
  7897. # If no C compiler was specified, use CC.
  7898. LTCC=${LTCC-"$CC"}
  7899. # If no C compiler flags were specified, use CFLAGS.
  7900. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7901. # Allow CC to be a program name with arguments.
  7902. compiler=$CC
  7903. # Save the default compiler, since it gets overwritten when the other
  7904. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7905. compiler_DEFAULT=$CC
  7906. # save warnings/boilerplate of simple test code
  7907. ac_outfile=conftest.$ac_objext
  7908. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7909. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7910. _lt_compiler_boilerplate=`cat conftest.err`
  7911. $RM conftest*
  7912. ac_outfile=conftest.$ac_objext
  7913. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7914. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7915. _lt_linker_boilerplate=`cat conftest.err`
  7916. $RM -r conftest*
  7917. ## CAVEAT EMPTOR:
  7918. ## There is no encapsulation within the following macros, do not change
  7919. ## the running order or otherwise move them around unless you know exactly
  7920. ## what you are doing...
  7921. if test -n "$compiler"; then
  7922. lt_prog_compiler_no_builtin_flag=
  7923. if test yes = "$GCC"; then
  7924. case $cc_basename in
  7925. nvcc*)
  7926. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7927. *)
  7928. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7929. esac
  7930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7931. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7932. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7933. then :
  7934. printf %s "(cached) " >&6
  7935. else $as_nop
  7936. lt_cv_prog_compiler_rtti_exceptions=no
  7937. ac_outfile=conftest.$ac_objext
  7938. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7939. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7940. # Insert the option either (1) after the last *FLAGS variable, or
  7941. # (2) before a word containing "conftest.", or (3) at the end.
  7942. # Note that $ac_compile itself does not contain backslashes and begins
  7943. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7944. # The option is referenced via a variable to avoid confusing sed.
  7945. lt_compile=`echo "$ac_compile" | $SED \
  7946. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7947. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7948. -e 's:$: $lt_compiler_flag:'`
  7949. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7950. (eval "$lt_compile" 2>conftest.err)
  7951. ac_status=$?
  7952. cat conftest.err >&5
  7953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7954. if (exit $ac_status) && test -s "$ac_outfile"; then
  7955. # The compiler can only warn and ignore the option if not recognized
  7956. # So say no if there are warnings other than the usual output.
  7957. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7958. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7959. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7960. lt_cv_prog_compiler_rtti_exceptions=yes
  7961. fi
  7962. fi
  7963. $RM conftest*
  7964. fi
  7965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7966. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7967. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7968. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7969. else
  7970. :
  7971. fi
  7972. fi
  7973. lt_prog_compiler_wl=
  7974. lt_prog_compiler_pic=
  7975. lt_prog_compiler_static=
  7976. if test yes = "$GCC"; then
  7977. lt_prog_compiler_wl='-Wl,'
  7978. lt_prog_compiler_static='-static'
  7979. case $host_os in
  7980. aix*)
  7981. # All AIX code is PIC.
  7982. if test ia64 = "$host_cpu"; then
  7983. # AIX 5 now supports IA64 processor
  7984. lt_prog_compiler_static='-Bstatic'
  7985. fi
  7986. lt_prog_compiler_pic='-fPIC'
  7987. ;;
  7988. amigaos*)
  7989. case $host_cpu in
  7990. powerpc)
  7991. # see comment about AmigaOS4 .so support
  7992. lt_prog_compiler_pic='-fPIC'
  7993. ;;
  7994. m68k)
  7995. # FIXME: we need at least 68020 code to build shared libraries, but
  7996. # adding the '-m68020' flag to GCC prevents building anything better,
  7997. # like '-m68040'.
  7998. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7999. ;;
  8000. esac
  8001. ;;
  8002. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8003. # PIC is the default for these OSes.
  8004. ;;
  8005. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8006. # This hack is so that the source file can tell whether it is being
  8007. # built for inclusion in a dll (and should export symbols for example).
  8008. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8009. # (--disable-auto-import) libraries
  8010. lt_prog_compiler_pic='-DDLL_EXPORT'
  8011. case $host_os in
  8012. os2*)
  8013. lt_prog_compiler_static='$wl-static'
  8014. ;;
  8015. esac
  8016. ;;
  8017. darwin* | rhapsody*)
  8018. # PIC is the default on this platform
  8019. # Common symbols not allowed in MH_DYLIB files
  8020. lt_prog_compiler_pic='-fno-common'
  8021. ;;
  8022. haiku*)
  8023. # PIC is the default for Haiku.
  8024. # The "-static" flag exists, but is broken.
  8025. lt_prog_compiler_static=
  8026. ;;
  8027. hpux*)
  8028. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8029. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8030. # sets the default TLS model and affects inlining.
  8031. case $host_cpu in
  8032. hppa*64*)
  8033. # +Z the default
  8034. ;;
  8035. *)
  8036. lt_prog_compiler_pic='-fPIC'
  8037. ;;
  8038. esac
  8039. ;;
  8040. interix[3-9]*)
  8041. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8042. # Instead, we relocate shared libraries at runtime.
  8043. ;;
  8044. msdosdjgpp*)
  8045. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8046. # on systems that don't support them.
  8047. lt_prog_compiler_can_build_shared=no
  8048. enable_shared=no
  8049. ;;
  8050. *nto* | *qnx*)
  8051. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8052. # it will coredump.
  8053. lt_prog_compiler_pic='-fPIC -shared'
  8054. ;;
  8055. sysv4*MP*)
  8056. if test -d /usr/nec; then
  8057. lt_prog_compiler_pic=-Kconform_pic
  8058. fi
  8059. ;;
  8060. *)
  8061. lt_prog_compiler_pic='-fPIC'
  8062. ;;
  8063. esac
  8064. case $cc_basename in
  8065. nvcc*) # Cuda Compiler Driver 2.2
  8066. lt_prog_compiler_wl='-Xlinker '
  8067. if test -n "$lt_prog_compiler_pic"; then
  8068. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8069. fi
  8070. ;;
  8071. esac
  8072. else
  8073. # PORTME Check for flag to pass linker flags through the system compiler.
  8074. case $host_os in
  8075. aix*)
  8076. lt_prog_compiler_wl='-Wl,'
  8077. if test ia64 = "$host_cpu"; then
  8078. # AIX 5 now supports IA64 processor
  8079. lt_prog_compiler_static='-Bstatic'
  8080. else
  8081. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8082. fi
  8083. ;;
  8084. darwin* | rhapsody*)
  8085. # PIC is the default on this platform
  8086. # Common symbols not allowed in MH_DYLIB files
  8087. lt_prog_compiler_pic='-fno-common'
  8088. case $cc_basename in
  8089. nagfor*)
  8090. # NAG Fortran compiler
  8091. lt_prog_compiler_wl='-Wl,-Wl,,'
  8092. lt_prog_compiler_pic='-PIC'
  8093. lt_prog_compiler_static='-Bstatic'
  8094. ;;
  8095. esac
  8096. ;;
  8097. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8098. # This hack is so that the source file can tell whether it is being
  8099. # built for inclusion in a dll (and should export symbols for example).
  8100. lt_prog_compiler_pic='-DDLL_EXPORT'
  8101. case $host_os in
  8102. os2*)
  8103. lt_prog_compiler_static='$wl-static'
  8104. ;;
  8105. esac
  8106. ;;
  8107. hpux9* | hpux10* | hpux11*)
  8108. lt_prog_compiler_wl='-Wl,'
  8109. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8110. # not for PA HP-UX.
  8111. case $host_cpu in
  8112. hppa*64*|ia64*)
  8113. # +Z the default
  8114. ;;
  8115. *)
  8116. lt_prog_compiler_pic='+Z'
  8117. ;;
  8118. esac
  8119. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8120. lt_prog_compiler_static='$wl-a ${wl}archive'
  8121. ;;
  8122. irix5* | irix6* | nonstopux*)
  8123. lt_prog_compiler_wl='-Wl,'
  8124. # PIC (with -KPIC) is the default.
  8125. lt_prog_compiler_static='-non_shared'
  8126. ;;
  8127. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8128. case $cc_basename in
  8129. # old Intel for x86_64, which still supported -KPIC.
  8130. ecc*)
  8131. lt_prog_compiler_wl='-Wl,'
  8132. lt_prog_compiler_pic='-KPIC'
  8133. lt_prog_compiler_static='-static'
  8134. ;;
  8135. # icc used to be incompatible with GCC.
  8136. # ICC 10 doesn't accept -KPIC any more.
  8137. icc* | ifort*)
  8138. lt_prog_compiler_wl='-Wl,'
  8139. lt_prog_compiler_pic='-fPIC'
  8140. lt_prog_compiler_static='-static'
  8141. ;;
  8142. # Lahey Fortran 8.1.
  8143. lf95*)
  8144. lt_prog_compiler_wl='-Wl,'
  8145. lt_prog_compiler_pic='--shared'
  8146. lt_prog_compiler_static='--static'
  8147. ;;
  8148. nagfor*)
  8149. # NAG Fortran compiler
  8150. lt_prog_compiler_wl='-Wl,-Wl,,'
  8151. lt_prog_compiler_pic='-PIC'
  8152. lt_prog_compiler_static='-Bstatic'
  8153. ;;
  8154. tcc*)
  8155. # Fabrice Bellard et al's Tiny C Compiler
  8156. lt_prog_compiler_wl='-Wl,'
  8157. lt_prog_compiler_pic='-fPIC'
  8158. lt_prog_compiler_static='-static'
  8159. ;;
  8160. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8161. # Portland Group compilers (*not* the Pentium gcc compiler,
  8162. # which looks to be a dead project)
  8163. lt_prog_compiler_wl='-Wl,'
  8164. lt_prog_compiler_pic='-fpic'
  8165. lt_prog_compiler_static='-Bstatic'
  8166. ;;
  8167. ccc*)
  8168. lt_prog_compiler_wl='-Wl,'
  8169. # All Alpha code is PIC.
  8170. lt_prog_compiler_static='-non_shared'
  8171. ;;
  8172. xl* | bgxl* | bgf* | mpixl*)
  8173. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8174. lt_prog_compiler_wl='-Wl,'
  8175. lt_prog_compiler_pic='-qpic'
  8176. lt_prog_compiler_static='-qstaticlink'
  8177. ;;
  8178. *)
  8179. case `$CC -V 2>&1 | sed 5q` in
  8180. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8181. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8182. lt_prog_compiler_pic='-KPIC'
  8183. lt_prog_compiler_static='-Bstatic'
  8184. lt_prog_compiler_wl=''
  8185. ;;
  8186. *Sun\ F* | *Sun*Fortran*)
  8187. lt_prog_compiler_pic='-KPIC'
  8188. lt_prog_compiler_static='-Bstatic'
  8189. lt_prog_compiler_wl='-Qoption ld '
  8190. ;;
  8191. *Sun\ C*)
  8192. # Sun C 5.9
  8193. lt_prog_compiler_pic='-KPIC'
  8194. lt_prog_compiler_static='-Bstatic'
  8195. lt_prog_compiler_wl='-Wl,'
  8196. ;;
  8197. *Intel*\ [CF]*Compiler*)
  8198. lt_prog_compiler_wl='-Wl,'
  8199. lt_prog_compiler_pic='-fPIC'
  8200. lt_prog_compiler_static='-static'
  8201. ;;
  8202. *Portland\ Group*)
  8203. lt_prog_compiler_wl='-Wl,'
  8204. lt_prog_compiler_pic='-fpic'
  8205. lt_prog_compiler_static='-Bstatic'
  8206. ;;
  8207. esac
  8208. ;;
  8209. esac
  8210. ;;
  8211. newsos6)
  8212. lt_prog_compiler_pic='-KPIC'
  8213. lt_prog_compiler_static='-Bstatic'
  8214. ;;
  8215. *nto* | *qnx*)
  8216. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8217. # it will coredump.
  8218. lt_prog_compiler_pic='-fPIC -shared'
  8219. ;;
  8220. osf3* | osf4* | osf5*)
  8221. lt_prog_compiler_wl='-Wl,'
  8222. # All OSF/1 code is PIC.
  8223. lt_prog_compiler_static='-non_shared'
  8224. ;;
  8225. rdos*)
  8226. lt_prog_compiler_static='-non_shared'
  8227. ;;
  8228. solaris*)
  8229. lt_prog_compiler_pic='-KPIC'
  8230. lt_prog_compiler_static='-Bstatic'
  8231. case $cc_basename in
  8232. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8233. lt_prog_compiler_wl='-Qoption ld ';;
  8234. *)
  8235. lt_prog_compiler_wl='-Wl,';;
  8236. esac
  8237. ;;
  8238. sunos4*)
  8239. lt_prog_compiler_wl='-Qoption ld '
  8240. lt_prog_compiler_pic='-PIC'
  8241. lt_prog_compiler_static='-Bstatic'
  8242. ;;
  8243. sysv4 | sysv4.2uw2* | sysv4.3*)
  8244. lt_prog_compiler_wl='-Wl,'
  8245. lt_prog_compiler_pic='-KPIC'
  8246. lt_prog_compiler_static='-Bstatic'
  8247. ;;
  8248. sysv4*MP*)
  8249. if test -d /usr/nec; then
  8250. lt_prog_compiler_pic='-Kconform_pic'
  8251. lt_prog_compiler_static='-Bstatic'
  8252. fi
  8253. ;;
  8254. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8255. lt_prog_compiler_wl='-Wl,'
  8256. lt_prog_compiler_pic='-KPIC'
  8257. lt_prog_compiler_static='-Bstatic'
  8258. ;;
  8259. unicos*)
  8260. lt_prog_compiler_wl='-Wl,'
  8261. lt_prog_compiler_can_build_shared=no
  8262. ;;
  8263. uts4*)
  8264. lt_prog_compiler_pic='-pic'
  8265. lt_prog_compiler_static='-Bstatic'
  8266. ;;
  8267. *)
  8268. lt_prog_compiler_can_build_shared=no
  8269. ;;
  8270. esac
  8271. fi
  8272. case $host_os in
  8273. # For platforms that do not support PIC, -DPIC is meaningless:
  8274. *djgpp*)
  8275. lt_prog_compiler_pic=
  8276. ;;
  8277. *)
  8278. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8279. ;;
  8280. esac
  8281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8282. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8283. if test ${lt_cv_prog_compiler_pic+y}
  8284. then :
  8285. printf %s "(cached) " >&6
  8286. else $as_nop
  8287. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8288. fi
  8289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8290. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8291. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8292. #
  8293. # Check to make sure the PIC flag actually works.
  8294. #
  8295. if test -n "$lt_prog_compiler_pic"; then
  8296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8297. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8298. if test ${lt_cv_prog_compiler_pic_works+y}
  8299. then :
  8300. printf %s "(cached) " >&6
  8301. else $as_nop
  8302. lt_cv_prog_compiler_pic_works=no
  8303. ac_outfile=conftest.$ac_objext
  8304. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8305. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8306. # Insert the option either (1) after the last *FLAGS variable, or
  8307. # (2) before a word containing "conftest.", or (3) at the end.
  8308. # Note that $ac_compile itself does not contain backslashes and begins
  8309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8310. # The option is referenced via a variable to avoid confusing sed.
  8311. lt_compile=`echo "$ac_compile" | $SED \
  8312. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8313. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8314. -e 's:$: $lt_compiler_flag:'`
  8315. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8316. (eval "$lt_compile" 2>conftest.err)
  8317. ac_status=$?
  8318. cat conftest.err >&5
  8319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8320. if (exit $ac_status) && test -s "$ac_outfile"; then
  8321. # The compiler can only warn and ignore the option if not recognized
  8322. # So say no if there are warnings other than the usual output.
  8323. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8324. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8325. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8326. lt_cv_prog_compiler_pic_works=yes
  8327. fi
  8328. fi
  8329. $RM conftest*
  8330. fi
  8331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8332. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8333. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8334. case $lt_prog_compiler_pic in
  8335. "" | " "*) ;;
  8336. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8337. esac
  8338. else
  8339. lt_prog_compiler_pic=
  8340. lt_prog_compiler_can_build_shared=no
  8341. fi
  8342. fi
  8343. #
  8344. # Check to make sure the static flag actually works.
  8345. #
  8346. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8348. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8349. if test ${lt_cv_prog_compiler_static_works+y}
  8350. then :
  8351. printf %s "(cached) " >&6
  8352. else $as_nop
  8353. lt_cv_prog_compiler_static_works=no
  8354. save_LDFLAGS=$LDFLAGS
  8355. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8356. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8357. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8358. # The linker can only warn and ignore the option if not recognized
  8359. # So say no if there are warnings
  8360. if test -s conftest.err; then
  8361. # Append any errors to the config.log.
  8362. cat conftest.err 1>&5
  8363. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8364. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8365. if diff conftest.exp conftest.er2 >/dev/null; then
  8366. lt_cv_prog_compiler_static_works=yes
  8367. fi
  8368. else
  8369. lt_cv_prog_compiler_static_works=yes
  8370. fi
  8371. fi
  8372. $RM -r conftest*
  8373. LDFLAGS=$save_LDFLAGS
  8374. fi
  8375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8376. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8377. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8378. :
  8379. else
  8380. lt_prog_compiler_static=
  8381. fi
  8382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8383. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8384. if test ${lt_cv_prog_compiler_c_o+y}
  8385. then :
  8386. printf %s "(cached) " >&6
  8387. else $as_nop
  8388. lt_cv_prog_compiler_c_o=no
  8389. $RM -r conftest 2>/dev/null
  8390. mkdir conftest
  8391. cd conftest
  8392. mkdir out
  8393. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8394. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8395. # Insert the option either (1) after the last *FLAGS variable, or
  8396. # (2) before a word containing "conftest.", or (3) at the end.
  8397. # Note that $ac_compile itself does not contain backslashes and begins
  8398. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8399. lt_compile=`echo "$ac_compile" | $SED \
  8400. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8401. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8402. -e 's:$: $lt_compiler_flag:'`
  8403. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8404. (eval "$lt_compile" 2>out/conftest.err)
  8405. ac_status=$?
  8406. cat out/conftest.err >&5
  8407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8408. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8409. then
  8410. # The compiler can only warn and ignore the option if not recognized
  8411. # So say no if there are warnings
  8412. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8413. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8414. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8415. lt_cv_prog_compiler_c_o=yes
  8416. fi
  8417. fi
  8418. chmod u+w . 2>&5
  8419. $RM conftest*
  8420. # SGI C++ compiler will create directory out/ii_files/ for
  8421. # template instantiation
  8422. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8423. $RM out/* && rmdir out
  8424. cd ..
  8425. $RM -r conftest
  8426. $RM conftest*
  8427. fi
  8428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8429. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8431. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8432. if test ${lt_cv_prog_compiler_c_o+y}
  8433. then :
  8434. printf %s "(cached) " >&6
  8435. else $as_nop
  8436. lt_cv_prog_compiler_c_o=no
  8437. $RM -r conftest 2>/dev/null
  8438. mkdir conftest
  8439. cd conftest
  8440. mkdir out
  8441. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8442. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8443. # Insert the option either (1) after the last *FLAGS variable, or
  8444. # (2) before a word containing "conftest.", or (3) at the end.
  8445. # Note that $ac_compile itself does not contain backslashes and begins
  8446. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8447. lt_compile=`echo "$ac_compile" | $SED \
  8448. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8449. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8450. -e 's:$: $lt_compiler_flag:'`
  8451. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8452. (eval "$lt_compile" 2>out/conftest.err)
  8453. ac_status=$?
  8454. cat out/conftest.err >&5
  8455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8456. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8457. then
  8458. # The compiler can only warn and ignore the option if not recognized
  8459. # So say no if there are warnings
  8460. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8461. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8462. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8463. lt_cv_prog_compiler_c_o=yes
  8464. fi
  8465. fi
  8466. chmod u+w . 2>&5
  8467. $RM conftest*
  8468. # SGI C++ compiler will create directory out/ii_files/ for
  8469. # template instantiation
  8470. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8471. $RM out/* && rmdir out
  8472. cd ..
  8473. $RM -r conftest
  8474. $RM conftest*
  8475. fi
  8476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8477. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8478. hard_links=nottested
  8479. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8480. # do not overwrite the value of need_locks provided by the user
  8481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8482. printf %s "checking if we can lock with hard links... " >&6; }
  8483. hard_links=yes
  8484. $RM conftest*
  8485. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8486. touch conftest.a
  8487. ln conftest.a conftest.b 2>&5 || hard_links=no
  8488. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8490. printf "%s\n" "$hard_links" >&6; }
  8491. if test no = "$hard_links"; then
  8492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8493. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8494. need_locks=warn
  8495. fi
  8496. else
  8497. need_locks=no
  8498. fi
  8499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8500. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8501. runpath_var=
  8502. allow_undefined_flag=
  8503. always_export_symbols=no
  8504. archive_cmds=
  8505. archive_expsym_cmds=
  8506. compiler_needs_object=no
  8507. enable_shared_with_static_runtimes=no
  8508. export_dynamic_flag_spec=
  8509. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8510. hardcode_automatic=no
  8511. hardcode_direct=no
  8512. hardcode_direct_absolute=no
  8513. hardcode_libdir_flag_spec=
  8514. hardcode_libdir_separator=
  8515. hardcode_minus_L=no
  8516. hardcode_shlibpath_var=unsupported
  8517. inherit_rpath=no
  8518. link_all_deplibs=unknown
  8519. module_cmds=
  8520. module_expsym_cmds=
  8521. old_archive_from_new_cmds=
  8522. old_archive_from_expsyms_cmds=
  8523. thread_safe_flag_spec=
  8524. whole_archive_flag_spec=
  8525. # include_expsyms should be a list of space-separated symbols to be *always*
  8526. # included in the symbol list
  8527. include_expsyms=
  8528. # exclude_expsyms can be an extended regexp of symbols to exclude
  8529. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8530. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8531. # as well as any symbol that contains 'd'.
  8532. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8533. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8534. # platforms (ab)use it in PIC code, but their linkers get confused if
  8535. # the symbol is explicitly referenced. Since portable code cannot
  8536. # rely on this symbol name, it's probably fine to never include it in
  8537. # preloaded symbol tables.
  8538. # Exclude shared library initialization/finalization symbols.
  8539. extract_expsyms_cmds=
  8540. case $host_os in
  8541. cygwin* | mingw* | pw32* | cegcc*)
  8542. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8543. # When not using gcc, we currently assume that we are using
  8544. # Microsoft Visual C++.
  8545. if test yes != "$GCC"; then
  8546. with_gnu_ld=no
  8547. fi
  8548. ;;
  8549. interix*)
  8550. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8551. with_gnu_ld=yes
  8552. ;;
  8553. openbsd* | bitrig*)
  8554. with_gnu_ld=no
  8555. ;;
  8556. esac
  8557. ld_shlibs=yes
  8558. # On some targets, GNU ld is compatible enough with the native linker
  8559. # that we're better off using the native interface for both.
  8560. lt_use_gnu_ld_interface=no
  8561. if test yes = "$with_gnu_ld"; then
  8562. case $host_os in
  8563. aix*)
  8564. # The AIX port of GNU ld has always aspired to compatibility
  8565. # with the native linker. However, as the warning in the GNU ld
  8566. # block says, versions before 2.19.5* couldn't really create working
  8567. # shared libraries, regardless of the interface used.
  8568. case `$LD -v 2>&1` in
  8569. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8570. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8571. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8572. *)
  8573. lt_use_gnu_ld_interface=yes
  8574. ;;
  8575. esac
  8576. ;;
  8577. *)
  8578. lt_use_gnu_ld_interface=yes
  8579. ;;
  8580. esac
  8581. fi
  8582. if test yes = "$lt_use_gnu_ld_interface"; then
  8583. # If archive_cmds runs LD, not CC, wlarc should be empty
  8584. wlarc='$wl'
  8585. # Set some defaults for GNU ld with shared library support. These
  8586. # are reset later if shared libraries are not supported. Putting them
  8587. # here allows them to be overridden if necessary.
  8588. runpath_var=LD_RUN_PATH
  8589. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8590. export_dynamic_flag_spec='$wl--export-dynamic'
  8591. # ancient GNU ld didn't support --whole-archive et. al.
  8592. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8593. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8594. else
  8595. whole_archive_flag_spec=
  8596. fi
  8597. supports_anon_versioning=no
  8598. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8599. *GNU\ gold*) supports_anon_versioning=yes ;;
  8600. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8601. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8602. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8603. *\ 2.11.*) ;; # other 2.11 versions
  8604. *) supports_anon_versioning=yes ;;
  8605. esac
  8606. # See if GNU ld supports shared libraries.
  8607. case $host_os in
  8608. aix[3-9]*)
  8609. # On AIX/PPC, the GNU linker is very broken
  8610. if test ia64 != "$host_cpu"; then
  8611. ld_shlibs=no
  8612. cat <<_LT_EOF 1>&2
  8613. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8614. *** to be unable to reliably create shared libraries on AIX.
  8615. *** Therefore, libtool is disabling shared libraries support. If you
  8616. *** really care for shared libraries, you may want to install binutils
  8617. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8618. *** You will then need to restart the configuration process.
  8619. _LT_EOF
  8620. fi
  8621. ;;
  8622. amigaos*)
  8623. case $host_cpu in
  8624. powerpc)
  8625. # see comment about AmigaOS4 .so support
  8626. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8627. archive_expsym_cmds=''
  8628. ;;
  8629. m68k)
  8630. 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)'
  8631. hardcode_libdir_flag_spec='-L$libdir'
  8632. hardcode_minus_L=yes
  8633. ;;
  8634. esac
  8635. ;;
  8636. beos*)
  8637. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8638. allow_undefined_flag=unsupported
  8639. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8640. # support --undefined. This deserves some investigation. FIXME
  8641. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8642. else
  8643. ld_shlibs=no
  8644. fi
  8645. ;;
  8646. cygwin* | mingw* | pw32* | cegcc*)
  8647. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8648. # as there is no search path for DLLs.
  8649. hardcode_libdir_flag_spec='-L$libdir'
  8650. export_dynamic_flag_spec='$wl--export-all-symbols'
  8651. allow_undefined_flag=unsupported
  8652. always_export_symbols=no
  8653. enable_shared_with_static_runtimes=yes
  8654. 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'
  8655. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8656. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8657. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8658. # If the export-symbols file already is a .def file, use it as
  8659. # is; otherwise, prepend EXPORTS...
  8660. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8661. cp $export_symbols $output_objdir/$soname.def;
  8662. else
  8663. echo EXPORTS > $output_objdir/$soname.def;
  8664. cat $export_symbols >> $output_objdir/$soname.def;
  8665. fi~
  8666. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8667. else
  8668. ld_shlibs=no
  8669. fi
  8670. ;;
  8671. haiku*)
  8672. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8673. link_all_deplibs=yes
  8674. ;;
  8675. os2*)
  8676. hardcode_libdir_flag_spec='-L$libdir'
  8677. hardcode_minus_L=yes
  8678. allow_undefined_flag=unsupported
  8679. shrext_cmds=.dll
  8680. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8681. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8682. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8683. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8684. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8685. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8686. emximp -o $lib $output_objdir/$libname.def'
  8687. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8688. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8689. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8690. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8691. prefix_cmds="$SED"~
  8692. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8693. prefix_cmds="$prefix_cmds -e 1d";
  8694. fi~
  8695. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8696. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8697. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8698. emximp -o $lib $output_objdir/$libname.def'
  8699. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8700. enable_shared_with_static_runtimes=yes
  8701. file_list_spec='@'
  8702. ;;
  8703. interix[3-9]*)
  8704. hardcode_direct=no
  8705. hardcode_shlibpath_var=no
  8706. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8707. export_dynamic_flag_spec='$wl-E'
  8708. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8709. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8710. # default) and relocated if they conflict, which is a slow very memory
  8711. # consuming and fragmenting process. To avoid this, we pick a random,
  8712. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8713. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8714. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8715. 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'
  8716. ;;
  8717. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8718. tmp_diet=no
  8719. if test linux-dietlibc = "$host_os"; then
  8720. case $cc_basename in
  8721. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8722. esac
  8723. fi
  8724. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8725. && test no = "$tmp_diet"
  8726. then
  8727. tmp_addflag=' $pic_flag'
  8728. tmp_sharedflag='-shared'
  8729. case $cc_basename,$host_cpu in
  8730. pgcc*) # Portland Group C compiler
  8731. 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'
  8732. tmp_addflag=' $pic_flag'
  8733. ;;
  8734. pgf77* | pgf90* | pgf95* | pgfortran*)
  8735. # Portland Group f77 and f90 compilers
  8736. 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'
  8737. tmp_addflag=' $pic_flag -Mnomain' ;;
  8738. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8739. tmp_addflag=' -i_dynamic' ;;
  8740. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8741. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8742. ifc* | ifort*) # Intel Fortran compiler
  8743. tmp_addflag=' -nofor_main' ;;
  8744. lf95*) # Lahey Fortran 8.1
  8745. whole_archive_flag_spec=
  8746. tmp_sharedflag='--shared' ;;
  8747. nagfor*) # NAGFOR 5.3
  8748. tmp_sharedflag='-Wl,-shared' ;;
  8749. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8750. tmp_sharedflag='-qmkshrobj'
  8751. tmp_addflag= ;;
  8752. nvcc*) # Cuda Compiler Driver 2.2
  8753. 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'
  8754. compiler_needs_object=yes
  8755. ;;
  8756. esac
  8757. case `$CC -V 2>&1 | sed 5q` in
  8758. *Sun\ C*) # Sun C 5.9
  8759. 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'
  8760. compiler_needs_object=yes
  8761. tmp_sharedflag='-G' ;;
  8762. *Sun\ F*) # Sun Fortran 8.3
  8763. tmp_sharedflag='-G' ;;
  8764. esac
  8765. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8766. if test yes = "$supports_anon_versioning"; then
  8767. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8768. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8769. echo "local: *; };" >> $output_objdir/$libname.ver~
  8770. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8771. fi
  8772. case $cc_basename in
  8773. tcc*)
  8774. export_dynamic_flag_spec='-rdynamic'
  8775. ;;
  8776. xlf* | bgf* | bgxlf* | mpixlf*)
  8777. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8778. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8779. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8780. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8781. if test yes = "$supports_anon_versioning"; then
  8782. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8783. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8784. echo "local: *; };" >> $output_objdir/$libname.ver~
  8785. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8786. fi
  8787. ;;
  8788. esac
  8789. else
  8790. ld_shlibs=no
  8791. fi
  8792. ;;
  8793. netbsd*)
  8794. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8795. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8796. wlarc=
  8797. else
  8798. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8799. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8800. fi
  8801. ;;
  8802. solaris*)
  8803. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8804. ld_shlibs=no
  8805. cat <<_LT_EOF 1>&2
  8806. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8807. *** create shared libraries on Solaris systems. Therefore, libtool
  8808. *** is disabling shared libraries support. We urge you to upgrade GNU
  8809. *** binutils to release 2.9.1 or newer. Another option is to modify
  8810. *** your PATH or compiler configuration so that the native linker is
  8811. *** used, and then restart.
  8812. _LT_EOF
  8813. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8814. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8815. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8816. else
  8817. ld_shlibs=no
  8818. fi
  8819. ;;
  8820. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8821. case `$LD -v 2>&1` in
  8822. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8823. ld_shlibs=no
  8824. cat <<_LT_EOF 1>&2
  8825. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8826. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8827. *** is disabling shared libraries support. We urge you to upgrade GNU
  8828. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8829. *** your PATH or compiler configuration so that the native linker is
  8830. *** used, and then restart.
  8831. _LT_EOF
  8832. ;;
  8833. *)
  8834. # For security reasons, it is highly recommended that you always
  8835. # use absolute paths for naming shared libraries, and exclude the
  8836. # DT_RUNPATH tag from executables and libraries. But doing so
  8837. # requires that you compile everything twice, which is a pain.
  8838. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8839. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8841. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8842. else
  8843. ld_shlibs=no
  8844. fi
  8845. ;;
  8846. esac
  8847. ;;
  8848. sunos4*)
  8849. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8850. wlarc=
  8851. hardcode_direct=yes
  8852. hardcode_shlibpath_var=no
  8853. ;;
  8854. *)
  8855. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8856. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8857. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8858. else
  8859. ld_shlibs=no
  8860. fi
  8861. ;;
  8862. esac
  8863. if test no = "$ld_shlibs"; then
  8864. runpath_var=
  8865. hardcode_libdir_flag_spec=
  8866. export_dynamic_flag_spec=
  8867. whole_archive_flag_spec=
  8868. fi
  8869. else
  8870. # PORTME fill in a description of your system's linker (not GNU ld)
  8871. case $host_os in
  8872. aix3*)
  8873. allow_undefined_flag=unsupported
  8874. always_export_symbols=yes
  8875. 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'
  8876. # Note: this linker hardcodes the directories in LIBPATH if there
  8877. # are no directories specified by -L.
  8878. hardcode_minus_L=yes
  8879. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8880. # Neither direct hardcoding nor static linking is supported with a
  8881. # broken collect2.
  8882. hardcode_direct=unsupported
  8883. fi
  8884. ;;
  8885. aix[4-9]*)
  8886. if test ia64 = "$host_cpu"; then
  8887. # On IA64, the linker does run time linking by default, so we don't
  8888. # have to do anything special.
  8889. aix_use_runtimelinking=no
  8890. exp_sym_flag='-Bexport'
  8891. no_entry_flag=
  8892. else
  8893. # If we're using GNU nm, then we don't want the "-C" option.
  8894. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8895. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8896. # weak defined symbols like other global defined symbols, whereas
  8897. # GNU nm marks them as "W".
  8898. # While the 'weak' keyword is ignored in the Export File, we need
  8899. # it in the Import File for the 'aix-soname' feature, so we have
  8900. # to replace the "-B" option with "-P" for AIX nm.
  8901. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8902. 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'
  8903. else
  8904. 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'
  8905. fi
  8906. aix_use_runtimelinking=no
  8907. # Test if we are trying to use run time linking or normal
  8908. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8909. # have runtime linking enabled, and use it for executables.
  8910. # For shared libraries, we enable/disable runtime linking
  8911. # depending on the kind of the shared library created -
  8912. # when "with_aix_soname,aix_use_runtimelinking" is:
  8913. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8914. # "aix,yes" lib.so shared, rtl:yes, for executables
  8915. # lib.a static archive
  8916. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8917. # lib.a(lib.so.V) shared, rtl:no, for executables
  8918. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8919. # lib.a(lib.so.V) shared, rtl:no
  8920. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8921. # lib.a static archive
  8922. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8923. for ld_flag in $LDFLAGS; do
  8924. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8925. aix_use_runtimelinking=yes
  8926. break
  8927. fi
  8928. done
  8929. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8930. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8931. # so we don't have lib.a shared libs to link our executables.
  8932. # We have to force runtime linking in this case.
  8933. aix_use_runtimelinking=yes
  8934. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8935. fi
  8936. ;;
  8937. esac
  8938. exp_sym_flag='-bexport'
  8939. no_entry_flag='-bnoentry'
  8940. fi
  8941. # When large executables or shared objects are built, AIX ld can
  8942. # have problems creating the table of contents. If linking a library
  8943. # or program results in "error TOC overflow" add -mminimal-toc to
  8944. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8945. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8946. archive_cmds=''
  8947. hardcode_direct=yes
  8948. hardcode_direct_absolute=yes
  8949. hardcode_libdir_separator=':'
  8950. link_all_deplibs=yes
  8951. file_list_spec='$wl-f,'
  8952. case $with_aix_soname,$aix_use_runtimelinking in
  8953. aix,*) ;; # traditional, no import file
  8954. svr4,* | *,yes) # use import file
  8955. # The Import File defines what to hardcode.
  8956. hardcode_direct=no
  8957. hardcode_direct_absolute=no
  8958. ;;
  8959. esac
  8960. if test yes = "$GCC"; then
  8961. case $host_os in aix4.[012]|aix4.[012].*)
  8962. # We only want to do this on AIX 4.2 and lower, the check
  8963. # below for broken collect2 doesn't work under 4.3+
  8964. collect2name=`$CC -print-prog-name=collect2`
  8965. if test -f "$collect2name" &&
  8966. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8967. then
  8968. # We have reworked collect2
  8969. :
  8970. else
  8971. # We have old collect2
  8972. hardcode_direct=unsupported
  8973. # It fails to find uninstalled libraries when the uninstalled
  8974. # path is not listed in the libpath. Setting hardcode_minus_L
  8975. # to unsupported forces relinking
  8976. hardcode_minus_L=yes
  8977. hardcode_libdir_flag_spec='-L$libdir'
  8978. hardcode_libdir_separator=
  8979. fi
  8980. ;;
  8981. esac
  8982. shared_flag='-shared'
  8983. if test yes = "$aix_use_runtimelinking"; then
  8984. shared_flag="$shared_flag "'$wl-G'
  8985. fi
  8986. # Need to ensure runtime linking is disabled for the traditional
  8987. # shared library, or the linker may eventually find shared libraries
  8988. # /with/ Import File - we do not want to mix them.
  8989. shared_flag_aix='-shared'
  8990. shared_flag_svr4='-shared $wl-G'
  8991. else
  8992. # not using gcc
  8993. if test ia64 = "$host_cpu"; then
  8994. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8995. # chokes on -Wl,-G. The following line is correct:
  8996. shared_flag='-G'
  8997. else
  8998. if test yes = "$aix_use_runtimelinking"; then
  8999. shared_flag='$wl-G'
  9000. else
  9001. shared_flag='$wl-bM:SRE'
  9002. fi
  9003. shared_flag_aix='$wl-bM:SRE'
  9004. shared_flag_svr4='$wl-G'
  9005. fi
  9006. fi
  9007. export_dynamic_flag_spec='$wl-bexpall'
  9008. # It seems that -bexpall does not export symbols beginning with
  9009. # underscore (_), so it is better to generate a list of symbols to export.
  9010. always_export_symbols=yes
  9011. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9012. # Warning - without using the other runtime loading flags (-brtl),
  9013. # -berok will link without error, but may produce a broken library.
  9014. allow_undefined_flag='-berok'
  9015. # Determine the default libpath from the value encoded in an
  9016. # empty executable.
  9017. if test set = "${lt_cv_aix_libpath+set}"; then
  9018. aix_libpath=$lt_cv_aix_libpath
  9019. else
  9020. if test ${lt_cv_aix_libpath_+y}
  9021. then :
  9022. printf %s "(cached) " >&6
  9023. else $as_nop
  9024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9025. /* end confdefs.h. */
  9026. int
  9027. main (void)
  9028. {
  9029. ;
  9030. return 0;
  9031. }
  9032. _ACEOF
  9033. if ac_fn_c_try_link "$LINENO"
  9034. then :
  9035. lt_aix_libpath_sed='
  9036. /Import File Strings/,/^$/ {
  9037. /^0/ {
  9038. s/^0 *\([^ ]*\) *$/\1/
  9039. p
  9040. }
  9041. }'
  9042. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9043. # Check for a 64-bit object if we didn't find anything.
  9044. if test -z "$lt_cv_aix_libpath_"; then
  9045. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9046. fi
  9047. fi
  9048. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9049. conftest$ac_exeext conftest.$ac_ext
  9050. if test -z "$lt_cv_aix_libpath_"; then
  9051. lt_cv_aix_libpath_=/usr/lib:/lib
  9052. fi
  9053. fi
  9054. aix_libpath=$lt_cv_aix_libpath_
  9055. fi
  9056. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9057. 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
  9058. else
  9059. if test ia64 = "$host_cpu"; then
  9060. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9061. allow_undefined_flag="-z nodefs"
  9062. 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"
  9063. else
  9064. # Determine the default libpath from the value encoded in an
  9065. # empty executable.
  9066. if test set = "${lt_cv_aix_libpath+set}"; then
  9067. aix_libpath=$lt_cv_aix_libpath
  9068. else
  9069. if test ${lt_cv_aix_libpath_+y}
  9070. then :
  9071. printf %s "(cached) " >&6
  9072. else $as_nop
  9073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9074. /* end confdefs.h. */
  9075. int
  9076. main (void)
  9077. {
  9078. ;
  9079. return 0;
  9080. }
  9081. _ACEOF
  9082. if ac_fn_c_try_link "$LINENO"
  9083. then :
  9084. lt_aix_libpath_sed='
  9085. /Import File Strings/,/^$/ {
  9086. /^0/ {
  9087. s/^0 *\([^ ]*\) *$/\1/
  9088. p
  9089. }
  9090. }'
  9091. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9092. # Check for a 64-bit object if we didn't find anything.
  9093. if test -z "$lt_cv_aix_libpath_"; then
  9094. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9095. fi
  9096. fi
  9097. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9098. conftest$ac_exeext conftest.$ac_ext
  9099. if test -z "$lt_cv_aix_libpath_"; then
  9100. lt_cv_aix_libpath_=/usr/lib:/lib
  9101. fi
  9102. fi
  9103. aix_libpath=$lt_cv_aix_libpath_
  9104. fi
  9105. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9106. # Warning - without using the other run time loading flags,
  9107. # -berok will link without error, but may produce a broken library.
  9108. no_undefined_flag=' $wl-bernotok'
  9109. allow_undefined_flag=' $wl-berok'
  9110. if test yes = "$with_gnu_ld"; then
  9111. # We only use this code for GNU lds that support --whole-archive.
  9112. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9113. else
  9114. # Exported symbols can be pulled into shared objects from archives
  9115. whole_archive_flag_spec='$convenience'
  9116. fi
  9117. archive_cmds_need_lc=yes
  9118. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9119. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9120. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9121. if test svr4 != "$with_aix_soname"; then
  9122. # This is similar to how AIX traditionally builds its shared libraries.
  9123. 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'
  9124. fi
  9125. if test aix != "$with_aix_soname"; then
  9126. 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'
  9127. else
  9128. # used by -dlpreopen to get the symbols
  9129. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9130. fi
  9131. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9132. fi
  9133. fi
  9134. ;;
  9135. amigaos*)
  9136. case $host_cpu in
  9137. powerpc)
  9138. # see comment about AmigaOS4 .so support
  9139. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9140. archive_expsym_cmds=''
  9141. ;;
  9142. m68k)
  9143. 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)'
  9144. hardcode_libdir_flag_spec='-L$libdir'
  9145. hardcode_minus_L=yes
  9146. ;;
  9147. esac
  9148. ;;
  9149. bsdi[45]*)
  9150. export_dynamic_flag_spec=-rdynamic
  9151. ;;
  9152. cygwin* | mingw* | pw32* | cegcc*)
  9153. # When not using gcc, we currently assume that we are using
  9154. # Microsoft Visual C++.
  9155. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9156. # no search path for DLLs.
  9157. case $cc_basename in
  9158. cl*)
  9159. # Native MSVC
  9160. hardcode_libdir_flag_spec=' '
  9161. allow_undefined_flag=unsupported
  9162. always_export_symbols=yes
  9163. file_list_spec='@'
  9164. # Tell ltmain to make .lib files, not .a files.
  9165. libext=lib
  9166. # Tell ltmain to make .dll files, not .so files.
  9167. shrext_cmds=.dll
  9168. # FIXME: Setting linknames here is a bad hack.
  9169. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9170. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9171. cp "$export_symbols" "$output_objdir/$soname.def";
  9172. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9173. else
  9174. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9175. fi~
  9176. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9177. linknames='
  9178. # The linker will not automatically build a static lib if we build a DLL.
  9179. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9180. enable_shared_with_static_runtimes=yes
  9181. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9182. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9183. # Don't use ranlib
  9184. old_postinstall_cmds='chmod 644 $oldlib'
  9185. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9186. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9187. case $lt_outputfile in
  9188. *.exe|*.EXE) ;;
  9189. *)
  9190. lt_outputfile=$lt_outputfile.exe
  9191. lt_tool_outputfile=$lt_tool_outputfile.exe
  9192. ;;
  9193. esac~
  9194. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9195. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9196. $RM "$lt_outputfile.manifest";
  9197. fi'
  9198. ;;
  9199. *)
  9200. # Assume MSVC wrapper
  9201. hardcode_libdir_flag_spec=' '
  9202. allow_undefined_flag=unsupported
  9203. # Tell ltmain to make .lib files, not .a files.
  9204. libext=lib
  9205. # Tell ltmain to make .dll files, not .so files.
  9206. shrext_cmds=.dll
  9207. # FIXME: Setting linknames here is a bad hack.
  9208. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9209. # The linker will automatically build a .lib file if we build a DLL.
  9210. old_archive_from_new_cmds='true'
  9211. # FIXME: Should let the user specify the lib program.
  9212. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9213. enable_shared_with_static_runtimes=yes
  9214. ;;
  9215. esac
  9216. ;;
  9217. darwin* | rhapsody*)
  9218. archive_cmds_need_lc=no
  9219. hardcode_direct=no
  9220. hardcode_automatic=yes
  9221. hardcode_shlibpath_var=unsupported
  9222. if test yes = "$lt_cv_ld_force_load"; then
  9223. 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\"`'
  9224. else
  9225. whole_archive_flag_spec=''
  9226. fi
  9227. link_all_deplibs=yes
  9228. allow_undefined_flag=$_lt_dar_allow_undefined
  9229. case $cc_basename in
  9230. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9231. *) _lt_dar_can_shared=$GCC ;;
  9232. esac
  9233. if test yes = "$_lt_dar_can_shared"; then
  9234. output_verbose_link_cmd=func_echo_all
  9235. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9236. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9237. 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"
  9238. 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"
  9239. else
  9240. ld_shlibs=no
  9241. fi
  9242. ;;
  9243. dgux*)
  9244. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9245. hardcode_libdir_flag_spec='-L$libdir'
  9246. hardcode_shlibpath_var=no
  9247. ;;
  9248. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9249. # support. Future versions do this automatically, but an explicit c++rt0.o
  9250. # does not break anything, and helps significantly (at the cost of a little
  9251. # extra space).
  9252. freebsd2.2*)
  9253. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9254. hardcode_libdir_flag_spec='-R$libdir'
  9255. hardcode_direct=yes
  9256. hardcode_shlibpath_var=no
  9257. ;;
  9258. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9259. freebsd2.*)
  9260. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9261. hardcode_direct=yes
  9262. hardcode_minus_L=yes
  9263. hardcode_shlibpath_var=no
  9264. ;;
  9265. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9266. freebsd* | dragonfly* | midnightbsd*)
  9267. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9268. hardcode_libdir_flag_spec='-R$libdir'
  9269. hardcode_direct=yes
  9270. hardcode_shlibpath_var=no
  9271. ;;
  9272. hpux9*)
  9273. if test yes = "$GCC"; then
  9274. 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'
  9275. else
  9276. 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'
  9277. fi
  9278. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9279. hardcode_libdir_separator=:
  9280. hardcode_direct=yes
  9281. # hardcode_minus_L: Not really in the search PATH,
  9282. # but as the default location of the library.
  9283. hardcode_minus_L=yes
  9284. export_dynamic_flag_spec='$wl-E'
  9285. ;;
  9286. hpux10*)
  9287. if test yes,no = "$GCC,$with_gnu_ld"; then
  9288. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9289. else
  9290. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9291. fi
  9292. if test no = "$with_gnu_ld"; then
  9293. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9294. hardcode_libdir_separator=:
  9295. hardcode_direct=yes
  9296. hardcode_direct_absolute=yes
  9297. export_dynamic_flag_spec='$wl-E'
  9298. # hardcode_minus_L: Not really in the search PATH,
  9299. # but as the default location of the library.
  9300. hardcode_minus_L=yes
  9301. fi
  9302. ;;
  9303. hpux11*)
  9304. if test yes,no = "$GCC,$with_gnu_ld"; then
  9305. case $host_cpu in
  9306. hppa*64*)
  9307. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9308. ;;
  9309. ia64*)
  9310. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9311. ;;
  9312. *)
  9313. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9314. ;;
  9315. esac
  9316. else
  9317. case $host_cpu in
  9318. hppa*64*)
  9319. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9320. ;;
  9321. ia64*)
  9322. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9323. ;;
  9324. *)
  9325. # Older versions of the 11.00 compiler do not understand -b yet
  9326. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9328. printf %s "checking if $CC understands -b... " >&6; }
  9329. if test ${lt_cv_prog_compiler__b+y}
  9330. then :
  9331. printf %s "(cached) " >&6
  9332. else $as_nop
  9333. lt_cv_prog_compiler__b=no
  9334. save_LDFLAGS=$LDFLAGS
  9335. LDFLAGS="$LDFLAGS -b"
  9336. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9337. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9338. # The linker can only warn and ignore the option if not recognized
  9339. # So say no if there are warnings
  9340. if test -s conftest.err; then
  9341. # Append any errors to the config.log.
  9342. cat conftest.err 1>&5
  9343. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9345. if diff conftest.exp conftest.er2 >/dev/null; then
  9346. lt_cv_prog_compiler__b=yes
  9347. fi
  9348. else
  9349. lt_cv_prog_compiler__b=yes
  9350. fi
  9351. fi
  9352. $RM -r conftest*
  9353. LDFLAGS=$save_LDFLAGS
  9354. fi
  9355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9356. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9357. if test yes = "$lt_cv_prog_compiler__b"; then
  9358. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9359. else
  9360. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9361. fi
  9362. ;;
  9363. esac
  9364. fi
  9365. if test no = "$with_gnu_ld"; then
  9366. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9367. hardcode_libdir_separator=:
  9368. case $host_cpu in
  9369. hppa*64*|ia64*)
  9370. hardcode_direct=no
  9371. hardcode_shlibpath_var=no
  9372. ;;
  9373. *)
  9374. hardcode_direct=yes
  9375. hardcode_direct_absolute=yes
  9376. export_dynamic_flag_spec='$wl-E'
  9377. # hardcode_minus_L: Not really in the search PATH,
  9378. # but as the default location of the library.
  9379. hardcode_minus_L=yes
  9380. ;;
  9381. esac
  9382. fi
  9383. ;;
  9384. irix5* | irix6* | nonstopux*)
  9385. if test yes = "$GCC"; then
  9386. 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'
  9387. # Try to use the -exported_symbol ld option, if it does not
  9388. # work, assume that -exports_file does not work either and
  9389. # implicitly export all symbols.
  9390. # This should be the same for all languages, so no per-tag cache variable.
  9391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9392. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9393. if test ${lt_cv_irix_exported_symbol+y}
  9394. then :
  9395. printf %s "(cached) " >&6
  9396. else $as_nop
  9397. save_LDFLAGS=$LDFLAGS
  9398. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9400. /* end confdefs.h. */
  9401. int foo (void) { return 0; }
  9402. _ACEOF
  9403. if ac_fn_c_try_link "$LINENO"
  9404. then :
  9405. lt_cv_irix_exported_symbol=yes
  9406. else $as_nop
  9407. lt_cv_irix_exported_symbol=no
  9408. fi
  9409. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9410. conftest$ac_exeext conftest.$ac_ext
  9411. LDFLAGS=$save_LDFLAGS
  9412. fi
  9413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9414. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9415. if test yes = "$lt_cv_irix_exported_symbol"; then
  9416. 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'
  9417. fi
  9418. else
  9419. 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'
  9420. 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'
  9421. fi
  9422. archive_cmds_need_lc='no'
  9423. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9424. hardcode_libdir_separator=:
  9425. inherit_rpath=yes
  9426. link_all_deplibs=yes
  9427. ;;
  9428. linux*)
  9429. case $cc_basename in
  9430. tcc*)
  9431. # Fabrice Bellard et al's Tiny C Compiler
  9432. ld_shlibs=yes
  9433. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9434. ;;
  9435. esac
  9436. ;;
  9437. netbsd*)
  9438. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9439. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9440. else
  9441. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9442. fi
  9443. hardcode_libdir_flag_spec='-R$libdir'
  9444. hardcode_direct=yes
  9445. hardcode_shlibpath_var=no
  9446. ;;
  9447. newsos6)
  9448. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9449. hardcode_direct=yes
  9450. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9451. hardcode_libdir_separator=:
  9452. hardcode_shlibpath_var=no
  9453. ;;
  9454. *nto* | *qnx*)
  9455. ;;
  9456. openbsd* | bitrig*)
  9457. if test -f /usr/libexec/ld.so; then
  9458. hardcode_direct=yes
  9459. hardcode_shlibpath_var=no
  9460. hardcode_direct_absolute=yes
  9461. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9462. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9463. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9464. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9465. export_dynamic_flag_spec='$wl-E'
  9466. else
  9467. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9468. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9469. fi
  9470. else
  9471. ld_shlibs=no
  9472. fi
  9473. ;;
  9474. os2*)
  9475. hardcode_libdir_flag_spec='-L$libdir'
  9476. hardcode_minus_L=yes
  9477. allow_undefined_flag=unsupported
  9478. shrext_cmds=.dll
  9479. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9480. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9481. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9482. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9483. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9484. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9485. emximp -o $lib $output_objdir/$libname.def'
  9486. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9487. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9488. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9489. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9490. prefix_cmds="$SED"~
  9491. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9492. prefix_cmds="$prefix_cmds -e 1d";
  9493. fi~
  9494. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9495. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9496. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9497. emximp -o $lib $output_objdir/$libname.def'
  9498. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9499. enable_shared_with_static_runtimes=yes
  9500. file_list_spec='@'
  9501. ;;
  9502. osf3*)
  9503. if test yes = "$GCC"; then
  9504. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9505. 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'
  9506. else
  9507. allow_undefined_flag=' -expect_unresolved \*'
  9508. 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'
  9509. fi
  9510. archive_cmds_need_lc='no'
  9511. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9512. hardcode_libdir_separator=:
  9513. ;;
  9514. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9515. if test yes = "$GCC"; then
  9516. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9517. 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'
  9518. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9519. else
  9520. allow_undefined_flag=' -expect_unresolved \*'
  9521. 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'
  9522. 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~
  9523. $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'
  9524. # Both c and cxx compiler support -rpath directly
  9525. hardcode_libdir_flag_spec='-rpath $libdir'
  9526. fi
  9527. archive_cmds_need_lc='no'
  9528. hardcode_libdir_separator=:
  9529. ;;
  9530. solaris*)
  9531. no_undefined_flag=' -z defs'
  9532. if test yes = "$GCC"; then
  9533. wlarc='$wl'
  9534. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9535. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9536. $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'
  9537. else
  9538. case `$CC -V 2>&1` in
  9539. *"Compilers 5.0"*)
  9540. wlarc=''
  9541. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9542. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9543. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9544. ;;
  9545. *)
  9546. wlarc='$wl'
  9547. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9548. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9549. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9550. ;;
  9551. esac
  9552. fi
  9553. hardcode_libdir_flag_spec='-R$libdir'
  9554. hardcode_shlibpath_var=no
  9555. case $host_os in
  9556. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9557. *)
  9558. # The compiler driver will combine and reorder linker options,
  9559. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9560. # but is careful enough not to reorder.
  9561. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9562. if test yes = "$GCC"; then
  9563. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9564. else
  9565. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9566. fi
  9567. ;;
  9568. esac
  9569. link_all_deplibs=yes
  9570. ;;
  9571. sunos4*)
  9572. if test sequent = "$host_vendor"; then
  9573. # Use $CC to link under sequent, because it throws in some extra .o
  9574. # files that make .init and .fini sections work.
  9575. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9576. else
  9577. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9578. fi
  9579. hardcode_libdir_flag_spec='-L$libdir'
  9580. hardcode_direct=yes
  9581. hardcode_minus_L=yes
  9582. hardcode_shlibpath_var=no
  9583. ;;
  9584. sysv4)
  9585. case $host_vendor in
  9586. sni)
  9587. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9588. hardcode_direct=yes # is this really true???
  9589. ;;
  9590. siemens)
  9591. ## LD is ld it makes a PLAMLIB
  9592. ## CC just makes a GrossModule.
  9593. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9594. reload_cmds='$CC -r -o $output$reload_objs'
  9595. hardcode_direct=no
  9596. ;;
  9597. motorola)
  9598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9599. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9600. ;;
  9601. esac
  9602. runpath_var='LD_RUN_PATH'
  9603. hardcode_shlibpath_var=no
  9604. ;;
  9605. sysv4.3*)
  9606. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9607. hardcode_shlibpath_var=no
  9608. export_dynamic_flag_spec='-Bexport'
  9609. ;;
  9610. sysv4*MP*)
  9611. if test -d /usr/nec; then
  9612. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9613. hardcode_shlibpath_var=no
  9614. runpath_var=LD_RUN_PATH
  9615. hardcode_runpath_var=yes
  9616. ld_shlibs=yes
  9617. fi
  9618. ;;
  9619. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9620. no_undefined_flag='$wl-z,text'
  9621. archive_cmds_need_lc=no
  9622. hardcode_shlibpath_var=no
  9623. runpath_var='LD_RUN_PATH'
  9624. if test yes = "$GCC"; then
  9625. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9626. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9627. else
  9628. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9629. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9630. fi
  9631. ;;
  9632. sysv5* | sco3.2v5* | sco5v6*)
  9633. # Note: We CANNOT use -z defs as we might desire, because we do not
  9634. # link with -lc, and that would cause any symbols used from libc to
  9635. # always be unresolved, which means just about no library would
  9636. # ever link correctly. If we're not using GNU ld we use -z text
  9637. # though, which does catch some bad symbols but isn't as heavy-handed
  9638. # as -z defs.
  9639. no_undefined_flag='$wl-z,text'
  9640. allow_undefined_flag='$wl-z,nodefs'
  9641. archive_cmds_need_lc=no
  9642. hardcode_shlibpath_var=no
  9643. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9644. hardcode_libdir_separator=':'
  9645. link_all_deplibs=yes
  9646. export_dynamic_flag_spec='$wl-Bexport'
  9647. runpath_var='LD_RUN_PATH'
  9648. if test yes = "$GCC"; then
  9649. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9650. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9651. else
  9652. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9653. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9654. fi
  9655. ;;
  9656. uts4*)
  9657. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9658. hardcode_libdir_flag_spec='-L$libdir'
  9659. hardcode_shlibpath_var=no
  9660. ;;
  9661. *)
  9662. ld_shlibs=no
  9663. ;;
  9664. esac
  9665. if test sni = "$host_vendor"; then
  9666. case $host in
  9667. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9668. export_dynamic_flag_spec='$wl-Blargedynsym'
  9669. ;;
  9670. esac
  9671. fi
  9672. fi
  9673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9674. printf "%s\n" "$ld_shlibs" >&6; }
  9675. test no = "$ld_shlibs" && can_build_shared=no
  9676. with_gnu_ld=$with_gnu_ld
  9677. #
  9678. # Do we need to explicitly link libc?
  9679. #
  9680. case "x$archive_cmds_need_lc" in
  9681. x|xyes)
  9682. # Assume -lc should be added
  9683. archive_cmds_need_lc=yes
  9684. if test yes,yes = "$GCC,$enable_shared"; then
  9685. case $archive_cmds in
  9686. *'~'*)
  9687. # FIXME: we may have to deal with multi-command sequences.
  9688. ;;
  9689. '$CC '*)
  9690. # Test whether the compiler implicitly links with -lc since on some
  9691. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9692. # to ld, don't add -lc before -lgcc.
  9693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9694. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9695. if test ${lt_cv_archive_cmds_need_lc+y}
  9696. then :
  9697. printf %s "(cached) " >&6
  9698. else $as_nop
  9699. $RM conftest*
  9700. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9701. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9702. (eval $ac_compile) 2>&5
  9703. ac_status=$?
  9704. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9705. test $ac_status = 0; } 2>conftest.err; then
  9706. soname=conftest
  9707. lib=conftest
  9708. libobjs=conftest.$ac_objext
  9709. deplibs=
  9710. wl=$lt_prog_compiler_wl
  9711. pic_flag=$lt_prog_compiler_pic
  9712. compiler_flags=-v
  9713. linker_flags=-v
  9714. verstring=
  9715. output_objdir=.
  9716. libname=conftest
  9717. lt_save_allow_undefined_flag=$allow_undefined_flag
  9718. allow_undefined_flag=
  9719. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9720. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9721. ac_status=$?
  9722. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9723. test $ac_status = 0; }
  9724. then
  9725. lt_cv_archive_cmds_need_lc=no
  9726. else
  9727. lt_cv_archive_cmds_need_lc=yes
  9728. fi
  9729. allow_undefined_flag=$lt_save_allow_undefined_flag
  9730. else
  9731. cat conftest.err 1>&5
  9732. fi
  9733. $RM conftest*
  9734. fi
  9735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9736. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9737. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9738. ;;
  9739. esac
  9740. fi
  9741. ;;
  9742. esac
  9743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9744. printf %s "checking dynamic linker characteristics... " >&6; }
  9745. if test yes = "$GCC"; then
  9746. case $host_os in
  9747. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9748. *) lt_awk_arg='/^libraries:/' ;;
  9749. esac
  9750. case $host_os in
  9751. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9752. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9753. esac
  9754. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9755. case $lt_search_path_spec in
  9756. *\;*)
  9757. # if the path contains ";" then we assume it to be the separator
  9758. # otherwise default to the standard path separator (i.e. ":") - it is
  9759. # assumed that no part of a normal pathname contains ";" but that should
  9760. # okay in the real world where ";" in dirpaths is itself problematic.
  9761. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9762. ;;
  9763. *)
  9764. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9765. ;;
  9766. esac
  9767. # Ok, now we have the path, separated by spaces, we can step through it
  9768. # and add multilib dir if necessary...
  9769. lt_tmp_lt_search_path_spec=
  9770. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9771. # ...but if some path component already ends with the multilib dir we assume
  9772. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9773. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9774. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9775. lt_multi_os_dir=
  9776. ;;
  9777. esac
  9778. for lt_sys_path in $lt_search_path_spec; do
  9779. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9780. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9781. elif test -n "$lt_multi_os_dir"; then
  9782. test -d "$lt_sys_path" && \
  9783. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9784. fi
  9785. done
  9786. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9787. BEGIN {RS = " "; FS = "/|\n";} {
  9788. lt_foo = "";
  9789. lt_count = 0;
  9790. for (lt_i = NF; lt_i > 0; lt_i--) {
  9791. if ($lt_i != "" && $lt_i != ".") {
  9792. if ($lt_i == "..") {
  9793. lt_count++;
  9794. } else {
  9795. if (lt_count == 0) {
  9796. lt_foo = "/" $lt_i lt_foo;
  9797. } else {
  9798. lt_count--;
  9799. }
  9800. }
  9801. }
  9802. }
  9803. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9804. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9805. }'`
  9806. # AWK program above erroneously prepends '/' to C:/dos/paths
  9807. # for these hosts.
  9808. case $host_os in
  9809. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9810. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9811. esac
  9812. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9813. else
  9814. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9815. fi
  9816. library_names_spec=
  9817. libname_spec='lib$name'
  9818. soname_spec=
  9819. shrext_cmds=.so
  9820. postinstall_cmds=
  9821. postuninstall_cmds=
  9822. finish_cmds=
  9823. finish_eval=
  9824. shlibpath_var=
  9825. shlibpath_overrides_runpath=unknown
  9826. version_type=none
  9827. dynamic_linker="$host_os ld.so"
  9828. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9829. need_lib_prefix=unknown
  9830. hardcode_into_libs=no
  9831. # when you set need_version to no, make sure it does not cause -set_version
  9832. # flags to be left without arguments
  9833. need_version=unknown
  9834. case $host_os in
  9835. aix3*)
  9836. version_type=linux # correct to gnu/linux during the next big refactor
  9837. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9838. shlibpath_var=LIBPATH
  9839. # AIX 3 has no versioning support, so we append a major version to the name.
  9840. soname_spec='$libname$release$shared_ext$major'
  9841. ;;
  9842. aix[4-9]*)
  9843. version_type=linux # correct to gnu/linux during the next big refactor
  9844. need_lib_prefix=no
  9845. need_version=no
  9846. hardcode_into_libs=yes
  9847. if test ia64 = "$host_cpu"; then
  9848. # AIX 5 supports IA64
  9849. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9850. shlibpath_var=LD_LIBRARY_PATH
  9851. else
  9852. # With GCC up to 2.95.x, collect2 would create an import file
  9853. # for dependence libraries. The import file would start with
  9854. # the line '#! .'. This would cause the generated library to
  9855. # depend on '.', always an invalid library. This was fixed in
  9856. # development snapshots of GCC prior to 3.0.
  9857. case $host_os in
  9858. aix4 | aix4.[01] | aix4.[01].*)
  9859. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9860. echo ' yes '
  9861. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9862. :
  9863. else
  9864. can_build_shared=no
  9865. fi
  9866. ;;
  9867. esac
  9868. # Using Import Files as archive members, it is possible to support
  9869. # filename-based versioning of shared library archives on AIX. While
  9870. # this would work for both with and without runtime linking, it will
  9871. # prevent static linking of such archives. So we do filename-based
  9872. # shared library versioning with .so extension only, which is used
  9873. # when both runtime linking and shared linking is enabled.
  9874. # Unfortunately, runtime linking may impact performance, so we do
  9875. # not want this to be the default eventually. Also, we use the
  9876. # versioned .so libs for executables only if there is the -brtl
  9877. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9878. # To allow for filename-based versioning support, we need to create
  9879. # libNAME.so.V as an archive file, containing:
  9880. # *) an Import File, referring to the versioned filename of the
  9881. # archive as well as the shared archive member, telling the
  9882. # bitwidth (32 or 64) of that shared object, and providing the
  9883. # list of exported symbols of that shared object, eventually
  9884. # decorated with the 'weak' keyword
  9885. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9886. # it being seen by the linker.
  9887. # At run time we better use the real file rather than another symlink,
  9888. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9889. case $with_aix_soname,$aix_use_runtimelinking in
  9890. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9891. # soname into executable. Probably we can add versioning support to
  9892. # collect2, so additional links can be useful in future.
  9893. aix,yes) # traditional libtool
  9894. dynamic_linker='AIX unversionable lib.so'
  9895. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9896. # instead of lib<name>.a to let people know that these are not
  9897. # typical AIX shared libraries.
  9898. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9899. ;;
  9900. aix,no) # traditional AIX only
  9901. dynamic_linker='AIX lib.a(lib.so.V)'
  9902. # We preserve .a as extension for shared libraries through AIX4.2
  9903. # and later when we are not doing run time linking.
  9904. library_names_spec='$libname$release.a $libname.a'
  9905. soname_spec='$libname$release$shared_ext$major'
  9906. ;;
  9907. svr4,*) # full svr4 only
  9908. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9909. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9910. # We do not specify a path in Import Files, so LIBPATH fires.
  9911. shlibpath_overrides_runpath=yes
  9912. ;;
  9913. *,yes) # both, prefer svr4
  9914. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9915. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9916. # unpreferred sharedlib libNAME.a needs extra handling
  9917. 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"'
  9918. 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"'
  9919. # We do not specify a path in Import Files, so LIBPATH fires.
  9920. shlibpath_overrides_runpath=yes
  9921. ;;
  9922. *,no) # both, prefer aix
  9923. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9924. library_names_spec='$libname$release.a $libname.a'
  9925. soname_spec='$libname$release$shared_ext$major'
  9926. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9927. 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)'
  9928. 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"'
  9929. ;;
  9930. esac
  9931. shlibpath_var=LIBPATH
  9932. fi
  9933. ;;
  9934. amigaos*)
  9935. case $host_cpu in
  9936. powerpc)
  9937. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9938. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9939. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9940. ;;
  9941. m68k)
  9942. library_names_spec='$libname.ixlibrary $libname.a'
  9943. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9944. 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'
  9945. ;;
  9946. esac
  9947. ;;
  9948. beos*)
  9949. library_names_spec='$libname$shared_ext'
  9950. dynamic_linker="$host_os ld.so"
  9951. shlibpath_var=LIBRARY_PATH
  9952. ;;
  9953. bsdi[45]*)
  9954. version_type=linux # correct to gnu/linux during the next big refactor
  9955. need_version=no
  9956. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9957. soname_spec='$libname$release$shared_ext$major'
  9958. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9959. shlibpath_var=LD_LIBRARY_PATH
  9960. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9961. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9962. # the default ld.so.conf also contains /usr/contrib/lib and
  9963. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9964. # libtool to hard-code these into programs
  9965. ;;
  9966. cygwin* | mingw* | pw32* | cegcc*)
  9967. version_type=windows
  9968. shrext_cmds=.dll
  9969. need_version=no
  9970. need_lib_prefix=no
  9971. case $GCC,$cc_basename in
  9972. yes,*)
  9973. # gcc
  9974. library_names_spec='$libname.dll.a'
  9975. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9976. postinstall_cmds='base_file=`basename \$file`~
  9977. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9978. dldir=$destdir/`dirname \$dlpath`~
  9979. test -d \$dldir || mkdir -p \$dldir~
  9980. $install_prog $dir/$dlname \$dldir/$dlname~
  9981. chmod a+x \$dldir/$dlname~
  9982. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9983. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9984. fi'
  9985. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9986. dlpath=$dir/\$dldll~
  9987. $RM \$dlpath'
  9988. shlibpath_overrides_runpath=yes
  9989. case $host_os in
  9990. cygwin*)
  9991. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9992. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9993. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9994. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9995. ;;
  9996. mingw* | cegcc*)
  9997. # MinGW DLLs use traditional 'lib' prefix
  9998. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9999. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10000. ;;
  10001. pw32*)
  10002. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10003. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10004. ;;
  10005. esac
  10006. dynamic_linker='Win32 ld.exe'
  10007. ;;
  10008. *,cl*)
  10009. # Native MSVC
  10010. libname_spec='$name'
  10011. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10012. library_names_spec='$libname.dll.lib'
  10013. case $build_os in
  10014. mingw*)
  10015. sys_lib_search_path_spec=
  10016. lt_save_ifs=$IFS
  10017. IFS=';'
  10018. for lt_path in $LIB
  10019. do
  10020. IFS=$lt_save_ifs
  10021. # Let DOS variable expansion print the short 8.3 style file name.
  10022. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10023. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10024. done
  10025. IFS=$lt_save_ifs
  10026. # Convert to MSYS style.
  10027. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10028. ;;
  10029. cygwin*)
  10030. # Convert to unix form, then to dos form, then back to unix form
  10031. # but this time dos style (no spaces!) so that the unix form looks
  10032. # like /cygdrive/c/PROGRA~1:/cygdr...
  10033. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10034. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10035. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10036. ;;
  10037. *)
  10038. sys_lib_search_path_spec=$LIB
  10039. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10040. # It is most probably a Windows format PATH.
  10041. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10042. else
  10043. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10044. fi
  10045. # FIXME: find the short name or the path components, as spaces are
  10046. # common. (e.g. "Program Files" -> "PROGRA~1")
  10047. ;;
  10048. esac
  10049. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10050. postinstall_cmds='base_file=`basename \$file`~
  10051. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10052. dldir=$destdir/`dirname \$dlpath`~
  10053. test -d \$dldir || mkdir -p \$dldir~
  10054. $install_prog $dir/$dlname \$dldir/$dlname'
  10055. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10056. dlpath=$dir/\$dldll~
  10057. $RM \$dlpath'
  10058. shlibpath_overrides_runpath=yes
  10059. dynamic_linker='Win32 link.exe'
  10060. ;;
  10061. *)
  10062. # Assume MSVC wrapper
  10063. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10064. dynamic_linker='Win32 ld.exe'
  10065. ;;
  10066. esac
  10067. # FIXME: first we should search . and the directory the executable is in
  10068. shlibpath_var=PATH
  10069. ;;
  10070. darwin* | rhapsody*)
  10071. dynamic_linker="$host_os dyld"
  10072. version_type=darwin
  10073. need_lib_prefix=no
  10074. need_version=no
  10075. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10076. soname_spec='$libname$release$major$shared_ext'
  10077. shlibpath_overrides_runpath=yes
  10078. shlibpath_var=DYLD_LIBRARY_PATH
  10079. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10080. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10081. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10082. ;;
  10083. dgux*)
  10084. version_type=linux # correct to gnu/linux during the next big refactor
  10085. need_lib_prefix=no
  10086. need_version=no
  10087. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10088. soname_spec='$libname$release$shared_ext$major'
  10089. shlibpath_var=LD_LIBRARY_PATH
  10090. ;;
  10091. freebsd* | dragonfly* | midnightbsd*)
  10092. # DragonFly does not have aout. When/if they implement a new
  10093. # versioning mechanism, adjust this.
  10094. if test -x /usr/bin/objformat; then
  10095. objformat=`/usr/bin/objformat`
  10096. else
  10097. case $host_os in
  10098. freebsd[23].*) objformat=aout ;;
  10099. *) objformat=elf ;;
  10100. esac
  10101. fi
  10102. version_type=freebsd-$objformat
  10103. case $version_type in
  10104. freebsd-elf*)
  10105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10106. soname_spec='$libname$release$shared_ext$major'
  10107. need_version=no
  10108. need_lib_prefix=no
  10109. ;;
  10110. freebsd-*)
  10111. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10112. need_version=yes
  10113. ;;
  10114. esac
  10115. shlibpath_var=LD_LIBRARY_PATH
  10116. case $host_os in
  10117. freebsd2.*)
  10118. shlibpath_overrides_runpath=yes
  10119. ;;
  10120. freebsd3.[01]* | freebsdelf3.[01]*)
  10121. shlibpath_overrides_runpath=yes
  10122. hardcode_into_libs=yes
  10123. ;;
  10124. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10125. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10126. shlibpath_overrides_runpath=no
  10127. hardcode_into_libs=yes
  10128. ;;
  10129. *) # from 4.6 on, and DragonFly
  10130. shlibpath_overrides_runpath=yes
  10131. hardcode_into_libs=yes
  10132. ;;
  10133. esac
  10134. ;;
  10135. haiku*)
  10136. version_type=linux # correct to gnu/linux during the next big refactor
  10137. need_lib_prefix=no
  10138. need_version=no
  10139. dynamic_linker="$host_os runtime_loader"
  10140. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10141. soname_spec='$libname$release$shared_ext$major'
  10142. shlibpath_var=LIBRARY_PATH
  10143. shlibpath_overrides_runpath=no
  10144. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10145. hardcode_into_libs=yes
  10146. ;;
  10147. hpux9* | hpux10* | hpux11*)
  10148. # Give a soname corresponding to the major version so that dld.sl refuses to
  10149. # link against other versions.
  10150. version_type=sunos
  10151. need_lib_prefix=no
  10152. need_version=no
  10153. case $host_cpu in
  10154. ia64*)
  10155. shrext_cmds='.so'
  10156. hardcode_into_libs=yes
  10157. dynamic_linker="$host_os dld.so"
  10158. shlibpath_var=LD_LIBRARY_PATH
  10159. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10160. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10161. soname_spec='$libname$release$shared_ext$major'
  10162. if test 32 = "$HPUX_IA64_MODE"; then
  10163. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10164. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10165. else
  10166. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10167. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10168. fi
  10169. ;;
  10170. hppa*64*)
  10171. shrext_cmds='.sl'
  10172. hardcode_into_libs=yes
  10173. dynamic_linker="$host_os dld.sl"
  10174. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10175. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10177. soname_spec='$libname$release$shared_ext$major'
  10178. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10179. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10180. ;;
  10181. *)
  10182. shrext_cmds='.sl'
  10183. dynamic_linker="$host_os dld.sl"
  10184. shlibpath_var=SHLIB_PATH
  10185. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10186. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10187. soname_spec='$libname$release$shared_ext$major'
  10188. ;;
  10189. esac
  10190. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10191. postinstall_cmds='chmod 555 $lib'
  10192. # or fails outright, so override atomically:
  10193. install_override_mode=555
  10194. ;;
  10195. interix[3-9]*)
  10196. version_type=linux # correct to gnu/linux during the next big refactor
  10197. need_lib_prefix=no
  10198. need_version=no
  10199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10200. soname_spec='$libname$release$shared_ext$major'
  10201. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10202. shlibpath_var=LD_LIBRARY_PATH
  10203. shlibpath_overrides_runpath=no
  10204. hardcode_into_libs=yes
  10205. ;;
  10206. irix5* | irix6* | nonstopux*)
  10207. case $host_os in
  10208. nonstopux*) version_type=nonstopux ;;
  10209. *)
  10210. if test yes = "$lt_cv_prog_gnu_ld"; then
  10211. version_type=linux # correct to gnu/linux during the next big refactor
  10212. else
  10213. version_type=irix
  10214. fi ;;
  10215. esac
  10216. need_lib_prefix=no
  10217. need_version=no
  10218. soname_spec='$libname$release$shared_ext$major'
  10219. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10220. case $host_os in
  10221. irix5* | nonstopux*)
  10222. libsuff= shlibsuff=
  10223. ;;
  10224. *)
  10225. case $LD in # libtool.m4 will add one of these switches to LD
  10226. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10227. libsuff= shlibsuff= libmagic=32-bit;;
  10228. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10229. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10230. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10231. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10232. *) libsuff= shlibsuff= libmagic=never-match;;
  10233. esac
  10234. ;;
  10235. esac
  10236. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10237. shlibpath_overrides_runpath=no
  10238. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10239. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10240. hardcode_into_libs=yes
  10241. ;;
  10242. # No shared lib support for Linux oldld, aout, or coff.
  10243. linux*oldld* | linux*aout* | linux*coff*)
  10244. dynamic_linker=no
  10245. ;;
  10246. linux*android*)
  10247. version_type=none # Android doesn't support versioned libraries.
  10248. need_lib_prefix=no
  10249. need_version=no
  10250. library_names_spec='$libname$release$shared_ext'
  10251. soname_spec='$libname$release$shared_ext'
  10252. finish_cmds=
  10253. shlibpath_var=LD_LIBRARY_PATH
  10254. shlibpath_overrides_runpath=yes
  10255. # This implies no fast_install, which is unacceptable.
  10256. # Some rework will be needed to allow for fast_install
  10257. # before this can be enabled.
  10258. hardcode_into_libs=yes
  10259. dynamic_linker='Android linker'
  10260. # Don't embed -rpath directories since the linker doesn't support them.
  10261. hardcode_libdir_flag_spec='-L$libdir'
  10262. ;;
  10263. # This must be glibc/ELF.
  10264. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10265. version_type=linux # correct to gnu/linux during the next big refactor
  10266. need_lib_prefix=no
  10267. need_version=no
  10268. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10269. soname_spec='$libname$release$shared_ext$major'
  10270. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10271. shlibpath_var=LD_LIBRARY_PATH
  10272. shlibpath_overrides_runpath=no
  10273. # Some binutils ld are patched to set DT_RUNPATH
  10274. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10275. then :
  10276. printf %s "(cached) " >&6
  10277. else $as_nop
  10278. lt_cv_shlibpath_overrides_runpath=no
  10279. save_LDFLAGS=$LDFLAGS
  10280. save_libdir=$libdir
  10281. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10282. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10284. /* end confdefs.h. */
  10285. int
  10286. main (void)
  10287. {
  10288. ;
  10289. return 0;
  10290. }
  10291. _ACEOF
  10292. if ac_fn_c_try_link "$LINENO"
  10293. then :
  10294. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10295. then :
  10296. lt_cv_shlibpath_overrides_runpath=yes
  10297. fi
  10298. fi
  10299. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10300. conftest$ac_exeext conftest.$ac_ext
  10301. LDFLAGS=$save_LDFLAGS
  10302. libdir=$save_libdir
  10303. fi
  10304. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10305. # This implies no fast_install, which is unacceptable.
  10306. # Some rework will be needed to allow for fast_install
  10307. # before this can be enabled.
  10308. hardcode_into_libs=yes
  10309. # Add ABI-specific directories to the system library path.
  10310. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10311. # Ideally, we could use ldconfig to report *all* directores which are
  10312. # searched for libraries, however this is still not possible. Aside from not
  10313. # being certain /sbin/ldconfig is available, command
  10314. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10315. # even though it is searched at run-time. Try to do the best guess by
  10316. # appending ld.so.conf contents (and includes) to the search path.
  10317. if test -f /etc/ld.so.conf; then
  10318. 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' ' '`
  10319. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10320. fi
  10321. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10322. # powerpc, because MkLinux only supported shared libraries with the
  10323. # GNU dynamic linker. Since this was broken with cross compilers,
  10324. # most powerpc-linux boxes support dynamic linking these days and
  10325. # people can always --disable-shared, the test was removed, and we
  10326. # assume the GNU/Linux dynamic linker is in use.
  10327. dynamic_linker='GNU/Linux ld.so'
  10328. ;;
  10329. netbsd*)
  10330. version_type=sunos
  10331. need_lib_prefix=no
  10332. need_version=no
  10333. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10334. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10335. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10336. dynamic_linker='NetBSD (a.out) ld.so'
  10337. else
  10338. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10339. soname_spec='$libname$release$shared_ext$major'
  10340. dynamic_linker='NetBSD ld.elf_so'
  10341. fi
  10342. shlibpath_var=LD_LIBRARY_PATH
  10343. shlibpath_overrides_runpath=yes
  10344. hardcode_into_libs=yes
  10345. ;;
  10346. newsos6)
  10347. version_type=linux # correct to gnu/linux during the next big refactor
  10348. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10349. shlibpath_var=LD_LIBRARY_PATH
  10350. shlibpath_overrides_runpath=yes
  10351. ;;
  10352. *nto* | *qnx*)
  10353. version_type=qnx
  10354. need_lib_prefix=no
  10355. need_version=no
  10356. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10357. soname_spec='$libname$release$shared_ext$major'
  10358. shlibpath_var=LD_LIBRARY_PATH
  10359. shlibpath_overrides_runpath=no
  10360. hardcode_into_libs=yes
  10361. dynamic_linker='ldqnx.so'
  10362. ;;
  10363. openbsd* | bitrig*)
  10364. version_type=sunos
  10365. sys_lib_dlsearch_path_spec=/usr/lib
  10366. need_lib_prefix=no
  10367. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10368. need_version=no
  10369. else
  10370. need_version=yes
  10371. fi
  10372. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10373. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10374. shlibpath_var=LD_LIBRARY_PATH
  10375. shlibpath_overrides_runpath=yes
  10376. ;;
  10377. os2*)
  10378. libname_spec='$name'
  10379. shrext_cmds=.dll
  10380. need_lib_prefix=no
  10381. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10382. # SDL customization: removed versioning support.
  10383. # version_type=windows
  10384. # need_version=no
  10385. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10386. # v=$($ECHO $release$versuffix | tr -d .-);
  10387. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10388. # $ECHO $n$v`$shared_ext'
  10389. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10390. library_names_spec='${libname}_dll.$libext'
  10391. dynamic_linker='OS/2 ld.exe'
  10392. shlibpath_var=BEGINLIBPATH
  10393. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10394. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10395. postinstall_cmds='base_file=`basename \$file`~
  10396. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10397. dldir=$destdir/`dirname \$dlpath`~
  10398. test -d \$dldir || mkdir -p \$dldir~
  10399. $install_prog $dir/$dlname \$dldir/$dlname~
  10400. chmod a+x \$dldir/$dlname~
  10401. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10402. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10403. fi'
  10404. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10405. dlpath=$dir/\$dldll~
  10406. $RM \$dlpath'
  10407. ;;
  10408. osf3* | osf4* | osf5*)
  10409. version_type=osf
  10410. need_lib_prefix=no
  10411. need_version=no
  10412. soname_spec='$libname$release$shared_ext$major'
  10413. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10414. shlibpath_var=LD_LIBRARY_PATH
  10415. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10416. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10417. ;;
  10418. rdos*)
  10419. dynamic_linker=no
  10420. ;;
  10421. solaris*)
  10422. version_type=linux # correct to gnu/linux during the next big refactor
  10423. need_lib_prefix=no
  10424. need_version=no
  10425. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10426. soname_spec='$libname$release$shared_ext$major'
  10427. shlibpath_var=LD_LIBRARY_PATH
  10428. shlibpath_overrides_runpath=yes
  10429. hardcode_into_libs=yes
  10430. # ldd complains unless libraries are executable
  10431. postinstall_cmds='chmod +x $lib'
  10432. ;;
  10433. sunos4*)
  10434. version_type=sunos
  10435. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10436. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10437. shlibpath_var=LD_LIBRARY_PATH
  10438. shlibpath_overrides_runpath=yes
  10439. if test yes = "$with_gnu_ld"; then
  10440. need_lib_prefix=no
  10441. fi
  10442. need_version=yes
  10443. ;;
  10444. sysv4 | sysv4.3*)
  10445. version_type=linux # correct to gnu/linux during the next big refactor
  10446. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10447. soname_spec='$libname$release$shared_ext$major'
  10448. shlibpath_var=LD_LIBRARY_PATH
  10449. case $host_vendor in
  10450. sni)
  10451. shlibpath_overrides_runpath=no
  10452. need_lib_prefix=no
  10453. runpath_var=LD_RUN_PATH
  10454. ;;
  10455. siemens)
  10456. need_lib_prefix=no
  10457. ;;
  10458. motorola)
  10459. need_lib_prefix=no
  10460. need_version=no
  10461. shlibpath_overrides_runpath=no
  10462. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10463. ;;
  10464. esac
  10465. ;;
  10466. sysv4*MP*)
  10467. if test -d /usr/nec; then
  10468. version_type=linux # correct to gnu/linux during the next big refactor
  10469. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10470. soname_spec='$libname$shared_ext.$major'
  10471. shlibpath_var=LD_LIBRARY_PATH
  10472. fi
  10473. ;;
  10474. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10475. version_type=sco
  10476. need_lib_prefix=no
  10477. need_version=no
  10478. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10479. soname_spec='$libname$release$shared_ext$major'
  10480. shlibpath_var=LD_LIBRARY_PATH
  10481. shlibpath_overrides_runpath=yes
  10482. hardcode_into_libs=yes
  10483. if test yes = "$with_gnu_ld"; then
  10484. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10485. else
  10486. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10487. case $host_os in
  10488. sco3.2v5*)
  10489. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10490. ;;
  10491. esac
  10492. fi
  10493. sys_lib_dlsearch_path_spec='/usr/lib'
  10494. ;;
  10495. tpf*)
  10496. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10497. version_type=linux # correct to gnu/linux during the next big refactor
  10498. need_lib_prefix=no
  10499. need_version=no
  10500. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10501. shlibpath_var=LD_LIBRARY_PATH
  10502. shlibpath_overrides_runpath=no
  10503. hardcode_into_libs=yes
  10504. ;;
  10505. uts4*)
  10506. version_type=linux # correct to gnu/linux during the next big refactor
  10507. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10508. soname_spec='$libname$release$shared_ext$major'
  10509. shlibpath_var=LD_LIBRARY_PATH
  10510. ;;
  10511. *)
  10512. dynamic_linker=no
  10513. ;;
  10514. esac
  10515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10516. printf "%s\n" "$dynamic_linker" >&6; }
  10517. test no = "$dynamic_linker" && can_build_shared=no
  10518. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10519. if test yes = "$GCC"; then
  10520. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10521. fi
  10522. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10523. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10524. fi
  10525. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10526. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10527. fi
  10528. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10529. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10530. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10531. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10532. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10533. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10535. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10536. hardcode_action=
  10537. if test -n "$hardcode_libdir_flag_spec" ||
  10538. test -n "$runpath_var" ||
  10539. test yes = "$hardcode_automatic"; then
  10540. # We can hardcode non-existent directories.
  10541. if test no != "$hardcode_direct" &&
  10542. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10543. # have to relink, otherwise we might link with an installed library
  10544. # when we should be linking with a yet-to-be-installed one
  10545. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10546. test no != "$hardcode_minus_L"; then
  10547. # Linking always hardcodes the temporary library directory.
  10548. hardcode_action=relink
  10549. else
  10550. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10551. hardcode_action=immediate
  10552. fi
  10553. else
  10554. # We cannot hardcode anything, or else we can only hardcode existing
  10555. # directories.
  10556. hardcode_action=unsupported
  10557. fi
  10558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10559. printf "%s\n" "$hardcode_action" >&6; }
  10560. if test relink = "$hardcode_action" ||
  10561. test yes = "$inherit_rpath"; then
  10562. # Fast installation is not supported
  10563. enable_fast_install=no
  10564. elif test yes = "$shlibpath_overrides_runpath" ||
  10565. test no = "$enable_shared"; then
  10566. # Fast installation is not necessary
  10567. enable_fast_install=needless
  10568. fi
  10569. if test yes != "$enable_dlopen"; then
  10570. enable_dlopen=unknown
  10571. enable_dlopen_self=unknown
  10572. enable_dlopen_self_static=unknown
  10573. else
  10574. lt_cv_dlopen=no
  10575. lt_cv_dlopen_libs=
  10576. case $host_os in
  10577. beos*)
  10578. lt_cv_dlopen=load_add_on
  10579. lt_cv_dlopen_libs=
  10580. lt_cv_dlopen_self=yes
  10581. ;;
  10582. mingw* | pw32* | cegcc*)
  10583. lt_cv_dlopen=LoadLibrary
  10584. lt_cv_dlopen_libs=
  10585. ;;
  10586. cygwin*)
  10587. lt_cv_dlopen=dlopen
  10588. lt_cv_dlopen_libs=
  10589. ;;
  10590. darwin*)
  10591. # if libdl is installed we need to link against it
  10592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10593. printf %s "checking for dlopen in -ldl... " >&6; }
  10594. if test ${ac_cv_lib_dl_dlopen+y}
  10595. then :
  10596. printf %s "(cached) " >&6
  10597. else $as_nop
  10598. ac_check_lib_save_LIBS=$LIBS
  10599. LIBS="-ldl $LIBS"
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. /* Override any GCC internal prototype to avoid an error.
  10603. Use char because int might match the return type of a GCC
  10604. builtin and then its argument prototype would still apply. */
  10605. char dlopen ();
  10606. int
  10607. main (void)
  10608. {
  10609. return dlopen ();
  10610. ;
  10611. return 0;
  10612. }
  10613. _ACEOF
  10614. if ac_fn_c_try_link "$LINENO"
  10615. then :
  10616. ac_cv_lib_dl_dlopen=yes
  10617. else $as_nop
  10618. ac_cv_lib_dl_dlopen=no
  10619. fi
  10620. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10621. conftest$ac_exeext conftest.$ac_ext
  10622. LIBS=$ac_check_lib_save_LIBS
  10623. fi
  10624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10625. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10626. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10627. then :
  10628. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10629. else $as_nop
  10630. lt_cv_dlopen=dyld
  10631. lt_cv_dlopen_libs=
  10632. lt_cv_dlopen_self=yes
  10633. fi
  10634. ;;
  10635. tpf*)
  10636. # Don't try to run any link tests for TPF. We know it's impossible
  10637. # because TPF is a cross-compiler, and we know how we open DSOs.
  10638. lt_cv_dlopen=dlopen
  10639. lt_cv_dlopen_libs=
  10640. lt_cv_dlopen_self=no
  10641. ;;
  10642. *)
  10643. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10644. if test "x$ac_cv_func_shl_load" = xyes
  10645. then :
  10646. lt_cv_dlopen=shl_load
  10647. else $as_nop
  10648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10649. printf %s "checking for shl_load in -ldld... " >&6; }
  10650. if test ${ac_cv_lib_dld_shl_load+y}
  10651. then :
  10652. printf %s "(cached) " >&6
  10653. else $as_nop
  10654. ac_check_lib_save_LIBS=$LIBS
  10655. LIBS="-ldld $LIBS"
  10656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10657. /* end confdefs.h. */
  10658. /* Override any GCC internal prototype to avoid an error.
  10659. Use char because int might match the return type of a GCC
  10660. builtin and then its argument prototype would still apply. */
  10661. char shl_load ();
  10662. int
  10663. main (void)
  10664. {
  10665. return shl_load ();
  10666. ;
  10667. return 0;
  10668. }
  10669. _ACEOF
  10670. if ac_fn_c_try_link "$LINENO"
  10671. then :
  10672. ac_cv_lib_dld_shl_load=yes
  10673. else $as_nop
  10674. ac_cv_lib_dld_shl_load=no
  10675. fi
  10676. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10677. conftest$ac_exeext conftest.$ac_ext
  10678. LIBS=$ac_check_lib_save_LIBS
  10679. fi
  10680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10681. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10682. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10683. then :
  10684. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10685. else $as_nop
  10686. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10687. if test "x$ac_cv_func_dlopen" = xyes
  10688. then :
  10689. lt_cv_dlopen=dlopen
  10690. else $as_nop
  10691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10692. printf %s "checking for dlopen in -ldl... " >&6; }
  10693. if test ${ac_cv_lib_dl_dlopen+y}
  10694. then :
  10695. printf %s "(cached) " >&6
  10696. else $as_nop
  10697. ac_check_lib_save_LIBS=$LIBS
  10698. LIBS="-ldl $LIBS"
  10699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10700. /* end confdefs.h. */
  10701. /* Override any GCC internal prototype to avoid an error.
  10702. Use char because int might match the return type of a GCC
  10703. builtin and then its argument prototype would still apply. */
  10704. char dlopen ();
  10705. int
  10706. main (void)
  10707. {
  10708. return dlopen ();
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. if ac_fn_c_try_link "$LINENO"
  10714. then :
  10715. ac_cv_lib_dl_dlopen=yes
  10716. else $as_nop
  10717. ac_cv_lib_dl_dlopen=no
  10718. fi
  10719. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10720. conftest$ac_exeext conftest.$ac_ext
  10721. LIBS=$ac_check_lib_save_LIBS
  10722. fi
  10723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10724. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10725. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10726. then :
  10727. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10728. else $as_nop
  10729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10730. printf %s "checking for dlopen in -lsvld... " >&6; }
  10731. if test ${ac_cv_lib_svld_dlopen+y}
  10732. then :
  10733. printf %s "(cached) " >&6
  10734. else $as_nop
  10735. ac_check_lib_save_LIBS=$LIBS
  10736. LIBS="-lsvld $LIBS"
  10737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10738. /* end confdefs.h. */
  10739. /* Override any GCC internal prototype to avoid an error.
  10740. Use char because int might match the return type of a GCC
  10741. builtin and then its argument prototype would still apply. */
  10742. char dlopen ();
  10743. int
  10744. main (void)
  10745. {
  10746. return dlopen ();
  10747. ;
  10748. return 0;
  10749. }
  10750. _ACEOF
  10751. if ac_fn_c_try_link "$LINENO"
  10752. then :
  10753. ac_cv_lib_svld_dlopen=yes
  10754. else $as_nop
  10755. ac_cv_lib_svld_dlopen=no
  10756. fi
  10757. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10758. conftest$ac_exeext conftest.$ac_ext
  10759. LIBS=$ac_check_lib_save_LIBS
  10760. fi
  10761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10762. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10763. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10764. then :
  10765. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10766. else $as_nop
  10767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10768. printf %s "checking for dld_link in -ldld... " >&6; }
  10769. if test ${ac_cv_lib_dld_dld_link+y}
  10770. then :
  10771. printf %s "(cached) " >&6
  10772. else $as_nop
  10773. ac_check_lib_save_LIBS=$LIBS
  10774. LIBS="-ldld $LIBS"
  10775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10776. /* end confdefs.h. */
  10777. /* Override any GCC internal prototype to avoid an error.
  10778. Use char because int might match the return type of a GCC
  10779. builtin and then its argument prototype would still apply. */
  10780. char dld_link ();
  10781. int
  10782. main (void)
  10783. {
  10784. return dld_link ();
  10785. ;
  10786. return 0;
  10787. }
  10788. _ACEOF
  10789. if ac_fn_c_try_link "$LINENO"
  10790. then :
  10791. ac_cv_lib_dld_dld_link=yes
  10792. else $as_nop
  10793. ac_cv_lib_dld_dld_link=no
  10794. fi
  10795. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10796. conftest$ac_exeext conftest.$ac_ext
  10797. LIBS=$ac_check_lib_save_LIBS
  10798. fi
  10799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10800. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10801. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10802. then :
  10803. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10804. fi
  10805. fi
  10806. fi
  10807. fi
  10808. fi
  10809. fi
  10810. ;;
  10811. esac
  10812. if test no = "$lt_cv_dlopen"; then
  10813. enable_dlopen=no
  10814. else
  10815. enable_dlopen=yes
  10816. fi
  10817. case $lt_cv_dlopen in
  10818. dlopen)
  10819. save_CPPFLAGS=$CPPFLAGS
  10820. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10821. save_LDFLAGS=$LDFLAGS
  10822. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10823. save_LIBS=$LIBS
  10824. LIBS="$lt_cv_dlopen_libs $LIBS"
  10825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10826. printf %s "checking whether a program can dlopen itself... " >&6; }
  10827. if test ${lt_cv_dlopen_self+y}
  10828. then :
  10829. printf %s "(cached) " >&6
  10830. else $as_nop
  10831. if test yes = "$cross_compiling"; then :
  10832. lt_cv_dlopen_self=cross
  10833. else
  10834. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10835. lt_status=$lt_dlunknown
  10836. cat > conftest.$ac_ext <<_LT_EOF
  10837. #line $LINENO "configure"
  10838. #include "confdefs.h"
  10839. #if HAVE_DLFCN_H
  10840. #include <dlfcn.h>
  10841. #endif
  10842. #include <stdio.h>
  10843. #ifdef RTLD_GLOBAL
  10844. # define LT_DLGLOBAL RTLD_GLOBAL
  10845. #else
  10846. # ifdef DL_GLOBAL
  10847. # define LT_DLGLOBAL DL_GLOBAL
  10848. # else
  10849. # define LT_DLGLOBAL 0
  10850. # endif
  10851. #endif
  10852. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10853. find out it does not work in some platform. */
  10854. #ifndef LT_DLLAZY_OR_NOW
  10855. # ifdef RTLD_LAZY
  10856. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10857. # else
  10858. # ifdef DL_LAZY
  10859. # define LT_DLLAZY_OR_NOW DL_LAZY
  10860. # else
  10861. # ifdef RTLD_NOW
  10862. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10863. # else
  10864. # ifdef DL_NOW
  10865. # define LT_DLLAZY_OR_NOW DL_NOW
  10866. # else
  10867. # define LT_DLLAZY_OR_NOW 0
  10868. # endif
  10869. # endif
  10870. # endif
  10871. # endif
  10872. #endif
  10873. /* When -fvisibility=hidden is used, assume the code has been annotated
  10874. correspondingly for the symbols needed. */
  10875. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10876. int fnord () __attribute__((visibility("default")));
  10877. #endif
  10878. int fnord () { return 42; }
  10879. int main ()
  10880. {
  10881. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10882. int status = $lt_dlunknown;
  10883. if (self)
  10884. {
  10885. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10886. else
  10887. {
  10888. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10889. else puts (dlerror ());
  10890. }
  10891. /* dlclose (self); */
  10892. }
  10893. else
  10894. puts (dlerror ());
  10895. return status;
  10896. }
  10897. _LT_EOF
  10898. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10899. (eval $ac_link) 2>&5
  10900. ac_status=$?
  10901. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10902. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10903. (./conftest; exit; ) >&5 2>/dev/null
  10904. lt_status=$?
  10905. case x$lt_status in
  10906. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10907. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10908. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10909. esac
  10910. else :
  10911. # compilation failed
  10912. lt_cv_dlopen_self=no
  10913. fi
  10914. fi
  10915. rm -fr conftest*
  10916. fi
  10917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10918. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10919. if test yes = "$lt_cv_dlopen_self"; then
  10920. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10922. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10923. if test ${lt_cv_dlopen_self_static+y}
  10924. then :
  10925. printf %s "(cached) " >&6
  10926. else $as_nop
  10927. if test yes = "$cross_compiling"; then :
  10928. lt_cv_dlopen_self_static=cross
  10929. else
  10930. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10931. lt_status=$lt_dlunknown
  10932. cat > conftest.$ac_ext <<_LT_EOF
  10933. #line $LINENO "configure"
  10934. #include "confdefs.h"
  10935. #if HAVE_DLFCN_H
  10936. #include <dlfcn.h>
  10937. #endif
  10938. #include <stdio.h>
  10939. #ifdef RTLD_GLOBAL
  10940. # define LT_DLGLOBAL RTLD_GLOBAL
  10941. #else
  10942. # ifdef DL_GLOBAL
  10943. # define LT_DLGLOBAL DL_GLOBAL
  10944. # else
  10945. # define LT_DLGLOBAL 0
  10946. # endif
  10947. #endif
  10948. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10949. find out it does not work in some platform. */
  10950. #ifndef LT_DLLAZY_OR_NOW
  10951. # ifdef RTLD_LAZY
  10952. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10953. # else
  10954. # ifdef DL_LAZY
  10955. # define LT_DLLAZY_OR_NOW DL_LAZY
  10956. # else
  10957. # ifdef RTLD_NOW
  10958. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10959. # else
  10960. # ifdef DL_NOW
  10961. # define LT_DLLAZY_OR_NOW DL_NOW
  10962. # else
  10963. # define LT_DLLAZY_OR_NOW 0
  10964. # endif
  10965. # endif
  10966. # endif
  10967. # endif
  10968. #endif
  10969. /* When -fvisibility=hidden is used, assume the code has been annotated
  10970. correspondingly for the symbols needed. */
  10971. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10972. int fnord () __attribute__((visibility("default")));
  10973. #endif
  10974. int fnord () { return 42; }
  10975. int main ()
  10976. {
  10977. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10978. int status = $lt_dlunknown;
  10979. if (self)
  10980. {
  10981. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10982. else
  10983. {
  10984. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10985. else puts (dlerror ());
  10986. }
  10987. /* dlclose (self); */
  10988. }
  10989. else
  10990. puts (dlerror ());
  10991. return status;
  10992. }
  10993. _LT_EOF
  10994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10995. (eval $ac_link) 2>&5
  10996. ac_status=$?
  10997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10998. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10999. (./conftest; exit; ) >&5 2>/dev/null
  11000. lt_status=$?
  11001. case x$lt_status in
  11002. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11003. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11004. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11005. esac
  11006. else :
  11007. # compilation failed
  11008. lt_cv_dlopen_self_static=no
  11009. fi
  11010. fi
  11011. rm -fr conftest*
  11012. fi
  11013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11014. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11015. fi
  11016. CPPFLAGS=$save_CPPFLAGS
  11017. LDFLAGS=$save_LDFLAGS
  11018. LIBS=$save_LIBS
  11019. ;;
  11020. esac
  11021. case $lt_cv_dlopen_self in
  11022. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11023. *) enable_dlopen_self=unknown ;;
  11024. esac
  11025. case $lt_cv_dlopen_self_static in
  11026. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11027. *) enable_dlopen_self_static=unknown ;;
  11028. esac
  11029. fi
  11030. striplib=
  11031. old_striplib=
  11032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11033. printf %s "checking whether stripping libraries is possible... " >&6; }
  11034. if test -z "$STRIP"; then
  11035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11036. printf "%s\n" "no" >&6; }
  11037. else
  11038. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11039. old_striplib="$STRIP --strip-debug"
  11040. striplib="$STRIP --strip-unneeded"
  11041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11042. printf "%s\n" "yes" >&6; }
  11043. else
  11044. case $host_os in
  11045. darwin*)
  11046. # FIXME - insert some real tests, host_os isn't really good enough
  11047. striplib="$STRIP -x"
  11048. old_striplib="$STRIP -S"
  11049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11050. printf "%s\n" "yes" >&6; }
  11051. ;;
  11052. freebsd*)
  11053. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11054. old_striplib="$STRIP --strip-debug"
  11055. striplib="$STRIP --strip-unneeded"
  11056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11057. printf "%s\n" "yes" >&6; }
  11058. else
  11059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11060. printf "%s\n" "no" >&6; }
  11061. fi
  11062. ;;
  11063. *)
  11064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11065. printf "%s\n" "no" >&6; }
  11066. ;;
  11067. esac
  11068. fi
  11069. fi
  11070. # Report what library types will actually be built
  11071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11072. printf %s "checking if libtool supports shared libraries... " >&6; }
  11073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11074. printf "%s\n" "$can_build_shared" >&6; }
  11075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11076. printf %s "checking whether to build shared libraries... " >&6; }
  11077. test no = "$can_build_shared" && enable_shared=no
  11078. # On AIX, shared libraries and static libraries use the same namespace, and
  11079. # are all built from PIC.
  11080. case $host_os in
  11081. aix3*)
  11082. test yes = "$enable_shared" && enable_static=no
  11083. if test -n "$RANLIB"; then
  11084. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11085. postinstall_cmds='$RANLIB $lib'
  11086. fi
  11087. ;;
  11088. aix[4-9]*)
  11089. if test ia64 != "$host_cpu"; then
  11090. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11091. yes,aix,yes) ;; # shared object as lib.so file only
  11092. yes,svr4,*) ;; # shared object as lib.so archive member only
  11093. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11094. esac
  11095. fi
  11096. ;;
  11097. esac
  11098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11099. printf "%s\n" "$enable_shared" >&6; }
  11100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11101. printf %s "checking whether to build static libraries... " >&6; }
  11102. # Make sure either enable_shared or enable_static is yes.
  11103. test yes = "$enable_shared" || enable_static=yes
  11104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11105. printf "%s\n" "$enable_static" >&6; }
  11106. fi
  11107. ac_ext=c
  11108. ac_cpp='$CPP $CPPFLAGS'
  11109. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11110. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11111. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11112. CC=$lt_save_CC
  11113. ac_config_commands="$ac_config_commands libtool"
  11114. # Only expand once:
  11115. if test -n "$ac_tool_prefix"; then
  11116. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11117. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11119. printf %s "checking for $ac_word... " >&6; }
  11120. if test ${ac_cv_prog_RC+y}
  11121. then :
  11122. printf %s "(cached) " >&6
  11123. else $as_nop
  11124. if test -n "$RC"; then
  11125. ac_cv_prog_RC="$RC" # Let the user override the test.
  11126. else
  11127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11128. for as_dir in $PATH
  11129. do
  11130. IFS=$as_save_IFS
  11131. case $as_dir in #(((
  11132. '') as_dir=./ ;;
  11133. */) ;;
  11134. *) as_dir=$as_dir/ ;;
  11135. esac
  11136. for ac_exec_ext in '' $ac_executable_extensions; do
  11137. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11138. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11139. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11140. break 2
  11141. fi
  11142. done
  11143. done
  11144. IFS=$as_save_IFS
  11145. fi
  11146. fi
  11147. RC=$ac_cv_prog_RC
  11148. if test -n "$RC"; then
  11149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11150. printf "%s\n" "$RC" >&6; }
  11151. else
  11152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11153. printf "%s\n" "no" >&6; }
  11154. fi
  11155. fi
  11156. if test -z "$ac_cv_prog_RC"; then
  11157. ac_ct_RC=$RC
  11158. # Extract the first word of "windres", so it can be a program name with args.
  11159. set dummy windres; ac_word=$2
  11160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11161. printf %s "checking for $ac_word... " >&6; }
  11162. if test ${ac_cv_prog_ac_ct_RC+y}
  11163. then :
  11164. printf %s "(cached) " >&6
  11165. else $as_nop
  11166. if test -n "$ac_ct_RC"; then
  11167. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11168. else
  11169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11170. for as_dir in $PATH
  11171. do
  11172. IFS=$as_save_IFS
  11173. case $as_dir in #(((
  11174. '') as_dir=./ ;;
  11175. */) ;;
  11176. *) as_dir=$as_dir/ ;;
  11177. esac
  11178. for ac_exec_ext in '' $ac_executable_extensions; do
  11179. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11180. ac_cv_prog_ac_ct_RC="windres"
  11181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11182. break 2
  11183. fi
  11184. done
  11185. done
  11186. IFS=$as_save_IFS
  11187. fi
  11188. fi
  11189. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11190. if test -n "$ac_ct_RC"; then
  11191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11192. printf "%s\n" "$ac_ct_RC" >&6; }
  11193. else
  11194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11195. printf "%s\n" "no" >&6; }
  11196. fi
  11197. if test "x$ac_ct_RC" = x; then
  11198. RC=""
  11199. else
  11200. case $cross_compiling:$ac_tool_warned in
  11201. yes:)
  11202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11203. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11204. ac_tool_warned=yes ;;
  11205. esac
  11206. RC=$ac_ct_RC
  11207. fi
  11208. else
  11209. RC="$ac_cv_prog_RC"
  11210. fi
  11211. # Source file extension for RC test sources.
  11212. ac_ext=rc
  11213. # Object file extension for compiled RC test sources.
  11214. objext=o
  11215. objext_RC=$objext
  11216. # Code to be used in simple compile tests
  11217. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11218. # Code to be used in simple link tests
  11219. lt_simple_link_test_code=$lt_simple_compile_test_code
  11220. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11221. # If no C compiler was specified, use CC.
  11222. LTCC=${LTCC-"$CC"}
  11223. # If no C compiler flags were specified, use CFLAGS.
  11224. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11225. # Allow CC to be a program name with arguments.
  11226. compiler=$CC
  11227. # save warnings/boilerplate of simple test code
  11228. ac_outfile=conftest.$ac_objext
  11229. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11230. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11231. _lt_compiler_boilerplate=`cat conftest.err`
  11232. $RM conftest*
  11233. ac_outfile=conftest.$ac_objext
  11234. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11235. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11236. _lt_linker_boilerplate=`cat conftest.err`
  11237. $RM -r conftest*
  11238. # Allow CC to be a program name with arguments.
  11239. lt_save_CC=$CC
  11240. lt_save_CFLAGS=$CFLAGS
  11241. lt_save_GCC=$GCC
  11242. GCC=
  11243. CC=${RC-"windres"}
  11244. CFLAGS=
  11245. compiler=$CC
  11246. compiler_RC=$CC
  11247. func_cc_basename $compiler
  11248. cc_basename=$func_cc_basename_result
  11249. lt_cv_prog_compiler_c_o_RC=yes
  11250. if test -n "$compiler"; then
  11251. :
  11252. fi
  11253. GCC=$lt_save_GCC
  11254. ac_ext=c
  11255. ac_cpp='$CPP $CPPFLAGS'
  11256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11259. CC=$lt_save_CC
  11260. CFLAGS=$lt_save_CFLAGS
  11261. # For historical reasons, the library name redundantly includes the major
  11262. # version twice: libSDL2-2.0.so.0.
  11263. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11264. LT_RELEASE=2.0
  11265. # Increment this if there is an incompatible change - but if that happens,
  11266. # we should rename the library from SDL2 to SDL3, at which point this would
  11267. # reset to 0 anyway.
  11268. LT_MAJOR=0
  11269. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11270. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11271. LT_REVISION=$SDL_INTERFACE_AGE
  11272. for ac_prog in gawk mawk nawk awk
  11273. do
  11274. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11275. set dummy $ac_prog; ac_word=$2
  11276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11277. printf %s "checking for $ac_word... " >&6; }
  11278. if test ${ac_cv_prog_AWK+y}
  11279. then :
  11280. printf %s "(cached) " >&6
  11281. else $as_nop
  11282. if test -n "$AWK"; then
  11283. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11284. else
  11285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11286. for as_dir in $PATH
  11287. do
  11288. IFS=$as_save_IFS
  11289. case $as_dir in #(((
  11290. '') as_dir=./ ;;
  11291. */) ;;
  11292. *) as_dir=$as_dir/ ;;
  11293. esac
  11294. for ac_exec_ext in '' $ac_executable_extensions; do
  11295. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11296. ac_cv_prog_AWK="$ac_prog"
  11297. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11298. break 2
  11299. fi
  11300. done
  11301. done
  11302. IFS=$as_save_IFS
  11303. fi
  11304. fi
  11305. AWK=$ac_cv_prog_AWK
  11306. if test -n "$AWK"; then
  11307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11308. printf "%s\n" "$AWK" >&6; }
  11309. else
  11310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11311. printf "%s\n" "no" >&6; }
  11312. fi
  11313. test -n "$AWK" && break
  11314. done
  11315. ac_ext=c
  11316. ac_cpp='$CPP $CPPFLAGS'
  11317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11320. if test -n "$ac_tool_prefix"; then
  11321. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11322. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11324. printf %s "checking for $ac_word... " >&6; }
  11325. if test ${ac_cv_prog_CC+y}
  11326. then :
  11327. printf %s "(cached) " >&6
  11328. else $as_nop
  11329. if test -n "$CC"; then
  11330. ac_cv_prog_CC="$CC" # Let the user override the test.
  11331. else
  11332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11333. for as_dir in $PATH
  11334. do
  11335. IFS=$as_save_IFS
  11336. case $as_dir in #(((
  11337. '') as_dir=./ ;;
  11338. */) ;;
  11339. *) as_dir=$as_dir/ ;;
  11340. esac
  11341. for ac_exec_ext in '' $ac_executable_extensions; do
  11342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11343. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11345. break 2
  11346. fi
  11347. done
  11348. done
  11349. IFS=$as_save_IFS
  11350. fi
  11351. fi
  11352. CC=$ac_cv_prog_CC
  11353. if test -n "$CC"; then
  11354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11355. printf "%s\n" "$CC" >&6; }
  11356. else
  11357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11358. printf "%s\n" "no" >&6; }
  11359. fi
  11360. fi
  11361. if test -z "$ac_cv_prog_CC"; then
  11362. ac_ct_CC=$CC
  11363. # Extract the first word of "gcc", so it can be a program name with args.
  11364. set dummy gcc; ac_word=$2
  11365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11366. printf %s "checking for $ac_word... " >&6; }
  11367. if test ${ac_cv_prog_ac_ct_CC+y}
  11368. then :
  11369. printf %s "(cached) " >&6
  11370. else $as_nop
  11371. if test -n "$ac_ct_CC"; then
  11372. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11373. else
  11374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11375. for as_dir in $PATH
  11376. do
  11377. IFS=$as_save_IFS
  11378. case $as_dir in #(((
  11379. '') as_dir=./ ;;
  11380. */) ;;
  11381. *) as_dir=$as_dir/ ;;
  11382. esac
  11383. for ac_exec_ext in '' $ac_executable_extensions; do
  11384. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11385. ac_cv_prog_ac_ct_CC="gcc"
  11386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11387. break 2
  11388. fi
  11389. done
  11390. done
  11391. IFS=$as_save_IFS
  11392. fi
  11393. fi
  11394. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11395. if test -n "$ac_ct_CC"; then
  11396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11397. printf "%s\n" "$ac_ct_CC" >&6; }
  11398. else
  11399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11400. printf "%s\n" "no" >&6; }
  11401. fi
  11402. if test "x$ac_ct_CC" = x; then
  11403. CC=""
  11404. else
  11405. case $cross_compiling:$ac_tool_warned in
  11406. yes:)
  11407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11408. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11409. ac_tool_warned=yes ;;
  11410. esac
  11411. CC=$ac_ct_CC
  11412. fi
  11413. else
  11414. CC="$ac_cv_prog_CC"
  11415. fi
  11416. if test -z "$CC"; then
  11417. if test -n "$ac_tool_prefix"; then
  11418. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11419. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11421. printf %s "checking for $ac_word... " >&6; }
  11422. if test ${ac_cv_prog_CC+y}
  11423. then :
  11424. printf %s "(cached) " >&6
  11425. else $as_nop
  11426. if test -n "$CC"; then
  11427. ac_cv_prog_CC="$CC" # Let the user override the test.
  11428. else
  11429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11430. for as_dir in $PATH
  11431. do
  11432. IFS=$as_save_IFS
  11433. case $as_dir in #(((
  11434. '') as_dir=./ ;;
  11435. */) ;;
  11436. *) as_dir=$as_dir/ ;;
  11437. esac
  11438. for ac_exec_ext in '' $ac_executable_extensions; do
  11439. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11440. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11442. break 2
  11443. fi
  11444. done
  11445. done
  11446. IFS=$as_save_IFS
  11447. fi
  11448. fi
  11449. CC=$ac_cv_prog_CC
  11450. if test -n "$CC"; then
  11451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11452. printf "%s\n" "$CC" >&6; }
  11453. else
  11454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11455. printf "%s\n" "no" >&6; }
  11456. fi
  11457. fi
  11458. fi
  11459. if test -z "$CC"; then
  11460. # Extract the first word of "cc", so it can be a program name with args.
  11461. set dummy cc; ac_word=$2
  11462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11463. printf %s "checking for $ac_word... " >&6; }
  11464. if test ${ac_cv_prog_CC+y}
  11465. then :
  11466. printf %s "(cached) " >&6
  11467. else $as_nop
  11468. if test -n "$CC"; then
  11469. ac_cv_prog_CC="$CC" # Let the user override the test.
  11470. else
  11471. ac_prog_rejected=no
  11472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11473. for as_dir in $PATH
  11474. do
  11475. IFS=$as_save_IFS
  11476. case $as_dir in #(((
  11477. '') as_dir=./ ;;
  11478. */) ;;
  11479. *) as_dir=$as_dir/ ;;
  11480. esac
  11481. for ac_exec_ext in '' $ac_executable_extensions; do
  11482. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11483. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11484. ac_prog_rejected=yes
  11485. continue
  11486. fi
  11487. ac_cv_prog_CC="cc"
  11488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11489. break 2
  11490. fi
  11491. done
  11492. done
  11493. IFS=$as_save_IFS
  11494. if test $ac_prog_rejected = yes; then
  11495. # We found a bogon in the path, so make sure we never use it.
  11496. set dummy $ac_cv_prog_CC
  11497. shift
  11498. if test $# != 0; then
  11499. # We chose a different compiler from the bogus one.
  11500. # However, it has the same basename, so the bogon will be chosen
  11501. # first if we set CC to just the basename; use the full file name.
  11502. shift
  11503. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11504. fi
  11505. fi
  11506. fi
  11507. fi
  11508. CC=$ac_cv_prog_CC
  11509. if test -n "$CC"; then
  11510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11511. printf "%s\n" "$CC" >&6; }
  11512. else
  11513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11514. printf "%s\n" "no" >&6; }
  11515. fi
  11516. fi
  11517. if test -z "$CC"; then
  11518. if test -n "$ac_tool_prefix"; then
  11519. for ac_prog in cl.exe
  11520. do
  11521. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11522. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11524. printf %s "checking for $ac_word... " >&6; }
  11525. if test ${ac_cv_prog_CC+y}
  11526. then :
  11527. printf %s "(cached) " >&6
  11528. else $as_nop
  11529. if test -n "$CC"; then
  11530. ac_cv_prog_CC="$CC" # Let the user override the test.
  11531. else
  11532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11533. for as_dir in $PATH
  11534. do
  11535. IFS=$as_save_IFS
  11536. case $as_dir in #(((
  11537. '') as_dir=./ ;;
  11538. */) ;;
  11539. *) as_dir=$as_dir/ ;;
  11540. esac
  11541. for ac_exec_ext in '' $ac_executable_extensions; do
  11542. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11543. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11545. break 2
  11546. fi
  11547. done
  11548. done
  11549. IFS=$as_save_IFS
  11550. fi
  11551. fi
  11552. CC=$ac_cv_prog_CC
  11553. if test -n "$CC"; then
  11554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11555. printf "%s\n" "$CC" >&6; }
  11556. else
  11557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11558. printf "%s\n" "no" >&6; }
  11559. fi
  11560. test -n "$CC" && break
  11561. done
  11562. fi
  11563. if test -z "$CC"; then
  11564. ac_ct_CC=$CC
  11565. for ac_prog in cl.exe
  11566. do
  11567. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11568. set dummy $ac_prog; ac_word=$2
  11569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11570. printf %s "checking for $ac_word... " >&6; }
  11571. if test ${ac_cv_prog_ac_ct_CC+y}
  11572. then :
  11573. printf %s "(cached) " >&6
  11574. else $as_nop
  11575. if test -n "$ac_ct_CC"; then
  11576. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11577. else
  11578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11579. for as_dir in $PATH
  11580. do
  11581. IFS=$as_save_IFS
  11582. case $as_dir in #(((
  11583. '') as_dir=./ ;;
  11584. */) ;;
  11585. *) as_dir=$as_dir/ ;;
  11586. esac
  11587. for ac_exec_ext in '' $ac_executable_extensions; do
  11588. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11589. ac_cv_prog_ac_ct_CC="$ac_prog"
  11590. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11591. break 2
  11592. fi
  11593. done
  11594. done
  11595. IFS=$as_save_IFS
  11596. fi
  11597. fi
  11598. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11599. if test -n "$ac_ct_CC"; then
  11600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11601. printf "%s\n" "$ac_ct_CC" >&6; }
  11602. else
  11603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11604. printf "%s\n" "no" >&6; }
  11605. fi
  11606. test -n "$ac_ct_CC" && break
  11607. done
  11608. if test "x$ac_ct_CC" = x; then
  11609. CC=""
  11610. else
  11611. case $cross_compiling:$ac_tool_warned in
  11612. yes:)
  11613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11614. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11615. ac_tool_warned=yes ;;
  11616. esac
  11617. CC=$ac_ct_CC
  11618. fi
  11619. fi
  11620. fi
  11621. if test -z "$CC"; then
  11622. if test -n "$ac_tool_prefix"; then
  11623. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11624. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11626. printf %s "checking for $ac_word... " >&6; }
  11627. if test ${ac_cv_prog_CC+y}
  11628. then :
  11629. printf %s "(cached) " >&6
  11630. else $as_nop
  11631. if test -n "$CC"; then
  11632. ac_cv_prog_CC="$CC" # Let the user override the test.
  11633. else
  11634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11635. for as_dir in $PATH
  11636. do
  11637. IFS=$as_save_IFS
  11638. case $as_dir in #(((
  11639. '') as_dir=./ ;;
  11640. */) ;;
  11641. *) as_dir=$as_dir/ ;;
  11642. esac
  11643. for ac_exec_ext in '' $ac_executable_extensions; do
  11644. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11645. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11647. break 2
  11648. fi
  11649. done
  11650. done
  11651. IFS=$as_save_IFS
  11652. fi
  11653. fi
  11654. CC=$ac_cv_prog_CC
  11655. if test -n "$CC"; then
  11656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11657. printf "%s\n" "$CC" >&6; }
  11658. else
  11659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11660. printf "%s\n" "no" >&6; }
  11661. fi
  11662. fi
  11663. if test -z "$ac_cv_prog_CC"; then
  11664. ac_ct_CC=$CC
  11665. # Extract the first word of "clang", so it can be a program name with args.
  11666. set dummy clang; ac_word=$2
  11667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11668. printf %s "checking for $ac_word... " >&6; }
  11669. if test ${ac_cv_prog_ac_ct_CC+y}
  11670. then :
  11671. printf %s "(cached) " >&6
  11672. else $as_nop
  11673. if test -n "$ac_ct_CC"; then
  11674. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11675. else
  11676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11677. for as_dir in $PATH
  11678. do
  11679. IFS=$as_save_IFS
  11680. case $as_dir in #(((
  11681. '') as_dir=./ ;;
  11682. */) ;;
  11683. *) as_dir=$as_dir/ ;;
  11684. esac
  11685. for ac_exec_ext in '' $ac_executable_extensions; do
  11686. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11687. ac_cv_prog_ac_ct_CC="clang"
  11688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11689. break 2
  11690. fi
  11691. done
  11692. done
  11693. IFS=$as_save_IFS
  11694. fi
  11695. fi
  11696. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11697. if test -n "$ac_ct_CC"; then
  11698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11699. printf "%s\n" "$ac_ct_CC" >&6; }
  11700. else
  11701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11702. printf "%s\n" "no" >&6; }
  11703. fi
  11704. if test "x$ac_ct_CC" = x; then
  11705. CC=""
  11706. else
  11707. case $cross_compiling:$ac_tool_warned in
  11708. yes:)
  11709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11710. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11711. ac_tool_warned=yes ;;
  11712. esac
  11713. CC=$ac_ct_CC
  11714. fi
  11715. else
  11716. CC="$ac_cv_prog_CC"
  11717. fi
  11718. fi
  11719. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11720. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11721. as_fn_error $? "no acceptable C compiler found in \$PATH
  11722. See \`config.log' for more details" "$LINENO" 5; }
  11723. # Provide some information about the compiler.
  11724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11725. set X $ac_compile
  11726. ac_compiler=$2
  11727. for ac_option in --version -v -V -qversion -version; do
  11728. { { ac_try="$ac_compiler $ac_option >&5"
  11729. case "(($ac_try" in
  11730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11731. *) ac_try_echo=$ac_try;;
  11732. esac
  11733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11734. printf "%s\n" "$ac_try_echo"; } >&5
  11735. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11736. ac_status=$?
  11737. if test -s conftest.err; then
  11738. sed '10a\
  11739. ... rest of stderr output deleted ...
  11740. 10q' conftest.err >conftest.er1
  11741. cat conftest.er1 >&5
  11742. fi
  11743. rm -f conftest.er1 conftest.err
  11744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11745. test $ac_status = 0; }
  11746. done
  11747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11748. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11749. if test ${ac_cv_c_compiler_gnu+y}
  11750. then :
  11751. printf %s "(cached) " >&6
  11752. else $as_nop
  11753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11754. /* end confdefs.h. */
  11755. int
  11756. main (void)
  11757. {
  11758. #ifndef __GNUC__
  11759. choke me
  11760. #endif
  11761. ;
  11762. return 0;
  11763. }
  11764. _ACEOF
  11765. if ac_fn_c_try_compile "$LINENO"
  11766. then :
  11767. ac_compiler_gnu=yes
  11768. else $as_nop
  11769. ac_compiler_gnu=no
  11770. fi
  11771. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11772. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11773. fi
  11774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11775. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11777. if test $ac_compiler_gnu = yes; then
  11778. GCC=yes
  11779. else
  11780. GCC=
  11781. fi
  11782. ac_test_CFLAGS=${CFLAGS+y}
  11783. ac_save_CFLAGS=$CFLAGS
  11784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11785. printf %s "checking whether $CC accepts -g... " >&6; }
  11786. if test ${ac_cv_prog_cc_g+y}
  11787. then :
  11788. printf %s "(cached) " >&6
  11789. else $as_nop
  11790. ac_save_c_werror_flag=$ac_c_werror_flag
  11791. ac_c_werror_flag=yes
  11792. ac_cv_prog_cc_g=no
  11793. CFLAGS="-g"
  11794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11795. /* end confdefs.h. */
  11796. int
  11797. main (void)
  11798. {
  11799. ;
  11800. return 0;
  11801. }
  11802. _ACEOF
  11803. if ac_fn_c_try_compile "$LINENO"
  11804. then :
  11805. ac_cv_prog_cc_g=yes
  11806. else $as_nop
  11807. CFLAGS=""
  11808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11809. /* end confdefs.h. */
  11810. int
  11811. main (void)
  11812. {
  11813. ;
  11814. return 0;
  11815. }
  11816. _ACEOF
  11817. if ac_fn_c_try_compile "$LINENO"
  11818. then :
  11819. else $as_nop
  11820. ac_c_werror_flag=$ac_save_c_werror_flag
  11821. CFLAGS="-g"
  11822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11823. /* end confdefs.h. */
  11824. int
  11825. main (void)
  11826. {
  11827. ;
  11828. return 0;
  11829. }
  11830. _ACEOF
  11831. if ac_fn_c_try_compile "$LINENO"
  11832. then :
  11833. ac_cv_prog_cc_g=yes
  11834. fi
  11835. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11836. fi
  11837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11838. fi
  11839. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11840. ac_c_werror_flag=$ac_save_c_werror_flag
  11841. fi
  11842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11843. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11844. if test $ac_test_CFLAGS; then
  11845. CFLAGS=$ac_save_CFLAGS
  11846. elif test $ac_cv_prog_cc_g = yes; then
  11847. if test "$GCC" = yes; then
  11848. CFLAGS="-g -O2"
  11849. else
  11850. CFLAGS="-g"
  11851. fi
  11852. else
  11853. if test "$GCC" = yes; then
  11854. CFLAGS="-O2"
  11855. else
  11856. CFLAGS=
  11857. fi
  11858. fi
  11859. ac_prog_cc_stdc=no
  11860. if test x$ac_prog_cc_stdc = xno
  11861. then :
  11862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11863. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11864. if test ${ac_cv_prog_cc_c11+y}
  11865. then :
  11866. printf %s "(cached) " >&6
  11867. else $as_nop
  11868. ac_cv_prog_cc_c11=no
  11869. ac_save_CC=$CC
  11870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11871. /* end confdefs.h. */
  11872. $ac_c_conftest_c11_program
  11873. _ACEOF
  11874. for ac_arg in '' -std=gnu11
  11875. do
  11876. CC="$ac_save_CC $ac_arg"
  11877. if ac_fn_c_try_compile "$LINENO"
  11878. then :
  11879. ac_cv_prog_cc_c11=$ac_arg
  11880. fi
  11881. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11882. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11883. done
  11884. rm -f conftest.$ac_ext
  11885. CC=$ac_save_CC
  11886. fi
  11887. if test "x$ac_cv_prog_cc_c11" = xno
  11888. then :
  11889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11890. printf "%s\n" "unsupported" >&6; }
  11891. else $as_nop
  11892. if test "x$ac_cv_prog_cc_c11" = x
  11893. then :
  11894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11895. printf "%s\n" "none needed" >&6; }
  11896. else $as_nop
  11897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11898. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11899. CC="$CC $ac_cv_prog_cc_c11"
  11900. fi
  11901. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11902. ac_prog_cc_stdc=c11
  11903. fi
  11904. fi
  11905. if test x$ac_prog_cc_stdc = xno
  11906. then :
  11907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11908. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11909. if test ${ac_cv_prog_cc_c99+y}
  11910. then :
  11911. printf %s "(cached) " >&6
  11912. else $as_nop
  11913. ac_cv_prog_cc_c99=no
  11914. ac_save_CC=$CC
  11915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11916. /* end confdefs.h. */
  11917. $ac_c_conftest_c99_program
  11918. _ACEOF
  11919. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11920. do
  11921. CC="$ac_save_CC $ac_arg"
  11922. if ac_fn_c_try_compile "$LINENO"
  11923. then :
  11924. ac_cv_prog_cc_c99=$ac_arg
  11925. fi
  11926. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11927. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11928. done
  11929. rm -f conftest.$ac_ext
  11930. CC=$ac_save_CC
  11931. fi
  11932. if test "x$ac_cv_prog_cc_c99" = xno
  11933. then :
  11934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11935. printf "%s\n" "unsupported" >&6; }
  11936. else $as_nop
  11937. if test "x$ac_cv_prog_cc_c99" = x
  11938. then :
  11939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11940. printf "%s\n" "none needed" >&6; }
  11941. else $as_nop
  11942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11943. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11944. CC="$CC $ac_cv_prog_cc_c99"
  11945. fi
  11946. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11947. ac_prog_cc_stdc=c99
  11948. fi
  11949. fi
  11950. if test x$ac_prog_cc_stdc = xno
  11951. then :
  11952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11953. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11954. if test ${ac_cv_prog_cc_c89+y}
  11955. then :
  11956. printf %s "(cached) " >&6
  11957. else $as_nop
  11958. ac_cv_prog_cc_c89=no
  11959. ac_save_CC=$CC
  11960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11961. /* end confdefs.h. */
  11962. $ac_c_conftest_c89_program
  11963. _ACEOF
  11964. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11965. do
  11966. CC="$ac_save_CC $ac_arg"
  11967. if ac_fn_c_try_compile "$LINENO"
  11968. then :
  11969. ac_cv_prog_cc_c89=$ac_arg
  11970. fi
  11971. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11972. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11973. done
  11974. rm -f conftest.$ac_ext
  11975. CC=$ac_save_CC
  11976. fi
  11977. if test "x$ac_cv_prog_cc_c89" = xno
  11978. then :
  11979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11980. printf "%s\n" "unsupported" >&6; }
  11981. else $as_nop
  11982. if test "x$ac_cv_prog_cc_c89" = x
  11983. then :
  11984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11985. printf "%s\n" "none needed" >&6; }
  11986. else $as_nop
  11987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11988. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11989. CC="$CC $ac_cv_prog_cc_c89"
  11990. fi
  11991. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11992. ac_prog_cc_stdc=c89
  11993. fi
  11994. fi
  11995. ac_ext=c
  11996. ac_cpp='$CPP $CPPFLAGS'
  11997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12000. ac_ext=cpp
  12001. ac_cpp='$CXXCPP $CPPFLAGS'
  12002. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12003. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12004. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12005. if test -z "$CXX"; then
  12006. if test -n "$CCC"; then
  12007. CXX=$CCC
  12008. else
  12009. if test -n "$ac_tool_prefix"; then
  12010. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12011. do
  12012. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12013. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12015. printf %s "checking for $ac_word... " >&6; }
  12016. if test ${ac_cv_prog_CXX+y}
  12017. then :
  12018. printf %s "(cached) " >&6
  12019. else $as_nop
  12020. if test -n "$CXX"; then
  12021. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12022. else
  12023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12024. for as_dir in $PATH
  12025. do
  12026. IFS=$as_save_IFS
  12027. case $as_dir in #(((
  12028. '') as_dir=./ ;;
  12029. */) ;;
  12030. *) as_dir=$as_dir/ ;;
  12031. esac
  12032. for ac_exec_ext in '' $ac_executable_extensions; do
  12033. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12034. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12035. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12036. break 2
  12037. fi
  12038. done
  12039. done
  12040. IFS=$as_save_IFS
  12041. fi
  12042. fi
  12043. CXX=$ac_cv_prog_CXX
  12044. if test -n "$CXX"; then
  12045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12046. printf "%s\n" "$CXX" >&6; }
  12047. else
  12048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12049. printf "%s\n" "no" >&6; }
  12050. fi
  12051. test -n "$CXX" && break
  12052. done
  12053. fi
  12054. if test -z "$CXX"; then
  12055. ac_ct_CXX=$CXX
  12056. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12057. do
  12058. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12059. set dummy $ac_prog; ac_word=$2
  12060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12061. printf %s "checking for $ac_word... " >&6; }
  12062. if test ${ac_cv_prog_ac_ct_CXX+y}
  12063. then :
  12064. printf %s "(cached) " >&6
  12065. else $as_nop
  12066. if test -n "$ac_ct_CXX"; then
  12067. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12068. else
  12069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12070. for as_dir in $PATH
  12071. do
  12072. IFS=$as_save_IFS
  12073. case $as_dir in #(((
  12074. '') as_dir=./ ;;
  12075. */) ;;
  12076. *) as_dir=$as_dir/ ;;
  12077. esac
  12078. for ac_exec_ext in '' $ac_executable_extensions; do
  12079. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12080. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12082. break 2
  12083. fi
  12084. done
  12085. done
  12086. IFS=$as_save_IFS
  12087. fi
  12088. fi
  12089. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12090. if test -n "$ac_ct_CXX"; then
  12091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12092. printf "%s\n" "$ac_ct_CXX" >&6; }
  12093. else
  12094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12095. printf "%s\n" "no" >&6; }
  12096. fi
  12097. test -n "$ac_ct_CXX" && break
  12098. done
  12099. if test "x$ac_ct_CXX" = x; then
  12100. CXX="g++"
  12101. else
  12102. case $cross_compiling:$ac_tool_warned in
  12103. yes:)
  12104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12105. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12106. ac_tool_warned=yes ;;
  12107. esac
  12108. CXX=$ac_ct_CXX
  12109. fi
  12110. fi
  12111. fi
  12112. fi
  12113. # Provide some information about the compiler.
  12114. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12115. set X $ac_compile
  12116. ac_compiler=$2
  12117. for ac_option in --version -v -V -qversion; do
  12118. { { ac_try="$ac_compiler $ac_option >&5"
  12119. case "(($ac_try" in
  12120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12121. *) ac_try_echo=$ac_try;;
  12122. esac
  12123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12124. printf "%s\n" "$ac_try_echo"; } >&5
  12125. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12126. ac_status=$?
  12127. if test -s conftest.err; then
  12128. sed '10a\
  12129. ... rest of stderr output deleted ...
  12130. 10q' conftest.err >conftest.er1
  12131. cat conftest.er1 >&5
  12132. fi
  12133. rm -f conftest.er1 conftest.err
  12134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12135. test $ac_status = 0; }
  12136. done
  12137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12138. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12139. if test ${ac_cv_cxx_compiler_gnu+y}
  12140. then :
  12141. printf %s "(cached) " >&6
  12142. else $as_nop
  12143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12144. /* end confdefs.h. */
  12145. int
  12146. main (void)
  12147. {
  12148. #ifndef __GNUC__
  12149. choke me
  12150. #endif
  12151. ;
  12152. return 0;
  12153. }
  12154. _ACEOF
  12155. if ac_fn_cxx_try_compile "$LINENO"
  12156. then :
  12157. ac_compiler_gnu=yes
  12158. else $as_nop
  12159. ac_compiler_gnu=no
  12160. fi
  12161. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12162. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12163. fi
  12164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12165. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12166. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12167. if test $ac_compiler_gnu = yes; then
  12168. GXX=yes
  12169. else
  12170. GXX=
  12171. fi
  12172. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12173. ac_save_CXXFLAGS=$CXXFLAGS
  12174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12175. printf %s "checking whether $CXX accepts -g... " >&6; }
  12176. if test ${ac_cv_prog_cxx_g+y}
  12177. then :
  12178. printf %s "(cached) " >&6
  12179. else $as_nop
  12180. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12181. ac_cxx_werror_flag=yes
  12182. ac_cv_prog_cxx_g=no
  12183. CXXFLAGS="-g"
  12184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12185. /* end confdefs.h. */
  12186. int
  12187. main (void)
  12188. {
  12189. ;
  12190. return 0;
  12191. }
  12192. _ACEOF
  12193. if ac_fn_cxx_try_compile "$LINENO"
  12194. then :
  12195. ac_cv_prog_cxx_g=yes
  12196. else $as_nop
  12197. CXXFLAGS=""
  12198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12199. /* end confdefs.h. */
  12200. int
  12201. main (void)
  12202. {
  12203. ;
  12204. return 0;
  12205. }
  12206. _ACEOF
  12207. if ac_fn_cxx_try_compile "$LINENO"
  12208. then :
  12209. else $as_nop
  12210. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12211. CXXFLAGS="-g"
  12212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12213. /* end confdefs.h. */
  12214. int
  12215. main (void)
  12216. {
  12217. ;
  12218. return 0;
  12219. }
  12220. _ACEOF
  12221. if ac_fn_cxx_try_compile "$LINENO"
  12222. then :
  12223. ac_cv_prog_cxx_g=yes
  12224. fi
  12225. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12226. fi
  12227. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12231. fi
  12232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12233. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12234. if test $ac_test_CXXFLAGS; then
  12235. CXXFLAGS=$ac_save_CXXFLAGS
  12236. elif test $ac_cv_prog_cxx_g = yes; then
  12237. if test "$GXX" = yes; then
  12238. CXXFLAGS="-g -O2"
  12239. else
  12240. CXXFLAGS="-g"
  12241. fi
  12242. else
  12243. if test "$GXX" = yes; then
  12244. CXXFLAGS="-O2"
  12245. else
  12246. CXXFLAGS=
  12247. fi
  12248. fi
  12249. ac_prog_cxx_stdcxx=no
  12250. if test x$ac_prog_cxx_stdcxx = xno
  12251. then :
  12252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12253. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12254. if test ${ac_cv_prog_cxx_11+y}
  12255. then :
  12256. printf %s "(cached) " >&6
  12257. else $as_nop
  12258. ac_cv_prog_cxx_11=no
  12259. ac_save_CXX=$CXX
  12260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12261. /* end confdefs.h. */
  12262. $ac_cxx_conftest_cxx11_program
  12263. _ACEOF
  12264. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12265. do
  12266. CXX="$ac_save_CXX $ac_arg"
  12267. if ac_fn_cxx_try_compile "$LINENO"
  12268. then :
  12269. ac_cv_prog_cxx_cxx11=$ac_arg
  12270. fi
  12271. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12272. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12273. done
  12274. rm -f conftest.$ac_ext
  12275. CXX=$ac_save_CXX
  12276. fi
  12277. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12278. then :
  12279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12280. printf "%s\n" "unsupported" >&6; }
  12281. else $as_nop
  12282. if test "x$ac_cv_prog_cxx_cxx11" = x
  12283. then :
  12284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12285. printf "%s\n" "none needed" >&6; }
  12286. else $as_nop
  12287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12288. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12289. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12290. fi
  12291. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12292. ac_prog_cxx_stdcxx=cxx11
  12293. fi
  12294. fi
  12295. if test x$ac_prog_cxx_stdcxx = xno
  12296. then :
  12297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12298. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12299. if test ${ac_cv_prog_cxx_98+y}
  12300. then :
  12301. printf %s "(cached) " >&6
  12302. else $as_nop
  12303. ac_cv_prog_cxx_98=no
  12304. ac_save_CXX=$CXX
  12305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12306. /* end confdefs.h. */
  12307. $ac_cxx_conftest_cxx98_program
  12308. _ACEOF
  12309. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12310. do
  12311. CXX="$ac_save_CXX $ac_arg"
  12312. if ac_fn_cxx_try_compile "$LINENO"
  12313. then :
  12314. ac_cv_prog_cxx_cxx98=$ac_arg
  12315. fi
  12316. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12317. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12318. done
  12319. rm -f conftest.$ac_ext
  12320. CXX=$ac_save_CXX
  12321. fi
  12322. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12323. then :
  12324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12325. printf "%s\n" "unsupported" >&6; }
  12326. else $as_nop
  12327. if test "x$ac_cv_prog_cxx_cxx98" = x
  12328. then :
  12329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12330. printf "%s\n" "none needed" >&6; }
  12331. else $as_nop
  12332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12333. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12334. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12335. fi
  12336. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12337. ac_prog_cxx_stdcxx=cxx98
  12338. fi
  12339. fi
  12340. ac_ext=c
  12341. ac_cpp='$CPP $CPPFLAGS'
  12342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12345. func_stripname_cnf ()
  12346. {
  12347. case $2 in
  12348. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12349. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12350. esac
  12351. } # func_stripname_cnf
  12352. if test -n "$CXX" && ( test no != "$CXX" &&
  12353. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12354. (test g++ != "$CXX"))); then
  12355. ac_ext=cpp
  12356. ac_cpp='$CXXCPP $CPPFLAGS'
  12357. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12358. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12359. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12361. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12362. if test -z "$CXXCPP"; then
  12363. if test ${ac_cv_prog_CXXCPP+y}
  12364. then :
  12365. printf %s "(cached) " >&6
  12366. else $as_nop
  12367. # Double quotes because $CXX needs to be expanded
  12368. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12369. do
  12370. ac_preproc_ok=false
  12371. for ac_cxx_preproc_warn_flag in '' yes
  12372. do
  12373. # Use a header file that comes with gcc, so configuring glibc
  12374. # with a fresh cross-compiler works.
  12375. # On the NeXT, cc -E runs the code through the compiler's parser,
  12376. # not just through cpp. "Syntax error" is here to catch this case.
  12377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12378. /* end confdefs.h. */
  12379. #include <limits.h>
  12380. Syntax error
  12381. _ACEOF
  12382. if ac_fn_cxx_try_cpp "$LINENO"
  12383. then :
  12384. else $as_nop
  12385. # Broken: fails on valid input.
  12386. continue
  12387. fi
  12388. rm -f conftest.err conftest.i conftest.$ac_ext
  12389. # OK, works on sane cases. Now check whether nonexistent headers
  12390. # can be detected and how.
  12391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12392. /* end confdefs.h. */
  12393. #include <ac_nonexistent.h>
  12394. _ACEOF
  12395. if ac_fn_cxx_try_cpp "$LINENO"
  12396. then :
  12397. # Broken: success on invalid input.
  12398. continue
  12399. else $as_nop
  12400. # Passes both tests.
  12401. ac_preproc_ok=:
  12402. break
  12403. fi
  12404. rm -f conftest.err conftest.i conftest.$ac_ext
  12405. done
  12406. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12407. rm -f conftest.i conftest.err conftest.$ac_ext
  12408. if $ac_preproc_ok
  12409. then :
  12410. break
  12411. fi
  12412. done
  12413. ac_cv_prog_CXXCPP=$CXXCPP
  12414. fi
  12415. CXXCPP=$ac_cv_prog_CXXCPP
  12416. else
  12417. ac_cv_prog_CXXCPP=$CXXCPP
  12418. fi
  12419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12420. printf "%s\n" "$CXXCPP" >&6; }
  12421. ac_preproc_ok=false
  12422. for ac_cxx_preproc_warn_flag in '' yes
  12423. do
  12424. # Use a header file that comes with gcc, so configuring glibc
  12425. # with a fresh cross-compiler works.
  12426. # On the NeXT, cc -E runs the code through the compiler's parser,
  12427. # not just through cpp. "Syntax error" is here to catch this case.
  12428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12429. /* end confdefs.h. */
  12430. #include <limits.h>
  12431. Syntax error
  12432. _ACEOF
  12433. if ac_fn_cxx_try_cpp "$LINENO"
  12434. then :
  12435. else $as_nop
  12436. # Broken: fails on valid input.
  12437. continue
  12438. fi
  12439. rm -f conftest.err conftest.i conftest.$ac_ext
  12440. # OK, works on sane cases. Now check whether nonexistent headers
  12441. # can be detected and how.
  12442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12443. /* end confdefs.h. */
  12444. #include <ac_nonexistent.h>
  12445. _ACEOF
  12446. if ac_fn_cxx_try_cpp "$LINENO"
  12447. then :
  12448. # Broken: success on invalid input.
  12449. continue
  12450. else $as_nop
  12451. # Passes both tests.
  12452. ac_preproc_ok=:
  12453. break
  12454. fi
  12455. rm -f conftest.err conftest.i conftest.$ac_ext
  12456. done
  12457. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12458. rm -f conftest.i conftest.err conftest.$ac_ext
  12459. if $ac_preproc_ok
  12460. then :
  12461. else $as_nop
  12462. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12463. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12464. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12465. See \`config.log' for more details" "$LINENO" 5; }
  12466. fi
  12467. ac_ext=c
  12468. ac_cpp='$CPP $CPPFLAGS'
  12469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12472. else
  12473. _lt_caught_CXX_error=yes
  12474. fi
  12475. ac_ext=cpp
  12476. ac_cpp='$CXXCPP $CPPFLAGS'
  12477. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12478. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12479. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12480. archive_cmds_need_lc_CXX=no
  12481. allow_undefined_flag_CXX=
  12482. always_export_symbols_CXX=no
  12483. archive_expsym_cmds_CXX=
  12484. compiler_needs_object_CXX=no
  12485. export_dynamic_flag_spec_CXX=
  12486. hardcode_direct_CXX=no
  12487. hardcode_direct_absolute_CXX=no
  12488. hardcode_libdir_flag_spec_CXX=
  12489. hardcode_libdir_separator_CXX=
  12490. hardcode_minus_L_CXX=no
  12491. hardcode_shlibpath_var_CXX=unsupported
  12492. hardcode_automatic_CXX=no
  12493. inherit_rpath_CXX=no
  12494. module_cmds_CXX=
  12495. module_expsym_cmds_CXX=
  12496. link_all_deplibs_CXX=unknown
  12497. old_archive_cmds_CXX=$old_archive_cmds
  12498. reload_flag_CXX=$reload_flag
  12499. reload_cmds_CXX=$reload_cmds
  12500. no_undefined_flag_CXX=
  12501. whole_archive_flag_spec_CXX=
  12502. enable_shared_with_static_runtimes_CXX=no
  12503. # Source file extension for C++ test sources.
  12504. ac_ext=cpp
  12505. # Object file extension for compiled C++ test sources.
  12506. objext=o
  12507. objext_CXX=$objext
  12508. # No sense in running all these tests if we already determined that
  12509. # the CXX compiler isn't working. Some variables (like enable_shared)
  12510. # are currently assumed to apply to all compilers on this platform,
  12511. # and will be corrupted by setting them based on a non-working compiler.
  12512. if test yes != "$_lt_caught_CXX_error"; then
  12513. # Code to be used in simple compile tests
  12514. lt_simple_compile_test_code="int some_variable = 0;"
  12515. # Code to be used in simple link tests
  12516. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12517. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12518. # If no C compiler was specified, use CC.
  12519. LTCC=${LTCC-"$CC"}
  12520. # If no C compiler flags were specified, use CFLAGS.
  12521. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12522. # Allow CC to be a program name with arguments.
  12523. compiler=$CC
  12524. # save warnings/boilerplate of simple test code
  12525. ac_outfile=conftest.$ac_objext
  12526. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12527. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12528. _lt_compiler_boilerplate=`cat conftest.err`
  12529. $RM conftest*
  12530. ac_outfile=conftest.$ac_objext
  12531. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12532. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12533. _lt_linker_boilerplate=`cat conftest.err`
  12534. $RM -r conftest*
  12535. # Allow CC to be a program name with arguments.
  12536. lt_save_CC=$CC
  12537. lt_save_CFLAGS=$CFLAGS
  12538. lt_save_LD=$LD
  12539. lt_save_GCC=$GCC
  12540. GCC=$GXX
  12541. lt_save_with_gnu_ld=$with_gnu_ld
  12542. lt_save_path_LD=$lt_cv_path_LD
  12543. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12544. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12545. else
  12546. $as_unset lt_cv_prog_gnu_ld
  12547. fi
  12548. if test -n "${lt_cv_path_LDCXX+set}"; then
  12549. lt_cv_path_LD=$lt_cv_path_LDCXX
  12550. else
  12551. $as_unset lt_cv_path_LD
  12552. fi
  12553. test -z "${LDCXX+set}" || LD=$LDCXX
  12554. CC=${CXX-"c++"}
  12555. CFLAGS=$CXXFLAGS
  12556. compiler=$CC
  12557. compiler_CXX=$CC
  12558. func_cc_basename $compiler
  12559. cc_basename=$func_cc_basename_result
  12560. if test -n "$compiler"; then
  12561. # We don't want -fno-exception when compiling C++ code, so set the
  12562. # no_builtin_flag separately
  12563. if test yes = "$GXX"; then
  12564. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12565. else
  12566. lt_prog_compiler_no_builtin_flag_CXX=
  12567. fi
  12568. if test yes = "$GXX"; then
  12569. # Set up default GNU C++ configuration
  12570. # Check whether --with-gnu-ld was given.
  12571. if test ${with_gnu_ld+y}
  12572. then :
  12573. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12574. else $as_nop
  12575. with_gnu_ld=no
  12576. fi
  12577. ac_prog=ld
  12578. if test yes = "$GCC"; then
  12579. # Check if gcc -print-prog-name=ld gives a path.
  12580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12581. printf %s "checking for ld used by $CC... " >&6; }
  12582. case $host in
  12583. *-*-mingw*)
  12584. # gcc leaves a trailing carriage return, which upsets mingw
  12585. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12586. *)
  12587. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12588. esac
  12589. case $ac_prog in
  12590. # Accept absolute paths.
  12591. [\\/]* | ?:[\\/]*)
  12592. re_direlt='/[^/][^/]*/\.\./'
  12593. # Canonicalize the pathname of ld
  12594. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12595. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12596. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12597. done
  12598. test -z "$LD" && LD=$ac_prog
  12599. ;;
  12600. "")
  12601. # If it fails, then pretend we aren't using GCC.
  12602. ac_prog=ld
  12603. ;;
  12604. *)
  12605. # If it is relative, then search for the first ld in PATH.
  12606. with_gnu_ld=unknown
  12607. ;;
  12608. esac
  12609. elif test yes = "$with_gnu_ld"; then
  12610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12611. printf %s "checking for GNU ld... " >&6; }
  12612. else
  12613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12614. printf %s "checking for non-GNU ld... " >&6; }
  12615. fi
  12616. if test ${lt_cv_path_LD+y}
  12617. then :
  12618. printf %s "(cached) " >&6
  12619. else $as_nop
  12620. if test -z "$LD"; then
  12621. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12622. for ac_dir in $PATH; do
  12623. IFS=$lt_save_ifs
  12624. test -z "$ac_dir" && ac_dir=.
  12625. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12626. lt_cv_path_LD=$ac_dir/$ac_prog
  12627. # Check to see if the program is GNU ld. I'd rather use --version,
  12628. # but apparently some variants of GNU ld only accept -v.
  12629. # Break only if it was the GNU/non-GNU ld that we prefer.
  12630. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12631. *GNU* | *'with BFD'*)
  12632. test no != "$with_gnu_ld" && break
  12633. ;;
  12634. *)
  12635. test yes != "$with_gnu_ld" && break
  12636. ;;
  12637. esac
  12638. fi
  12639. done
  12640. IFS=$lt_save_ifs
  12641. else
  12642. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12643. fi
  12644. fi
  12645. LD=$lt_cv_path_LD
  12646. if test -n "$LD"; then
  12647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12648. printf "%s\n" "$LD" >&6; }
  12649. else
  12650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12651. printf "%s\n" "no" >&6; }
  12652. fi
  12653. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12655. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12656. if test ${lt_cv_prog_gnu_ld+y}
  12657. then :
  12658. printf %s "(cached) " >&6
  12659. else $as_nop
  12660. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12661. case `$LD -v 2>&1 </dev/null` in
  12662. *GNU* | *'with BFD'*)
  12663. lt_cv_prog_gnu_ld=yes
  12664. ;;
  12665. *)
  12666. lt_cv_prog_gnu_ld=no
  12667. ;;
  12668. esac
  12669. fi
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12671. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12672. with_gnu_ld=$lt_cv_prog_gnu_ld
  12673. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12674. # archiving commands below assume that GNU ld is being used.
  12675. if test yes = "$with_gnu_ld"; then
  12676. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12677. 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'
  12678. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12679. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12680. # If archive_cmds runs LD, not CC, wlarc should be empty
  12681. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12682. # investigate it a little bit more. (MM)
  12683. wlarc='$wl'
  12684. # ancient GNU ld didn't support --whole-archive et. al.
  12685. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12686. $GREP 'no-whole-archive' > /dev/null; then
  12687. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12688. else
  12689. whole_archive_flag_spec_CXX=
  12690. fi
  12691. else
  12692. with_gnu_ld=no
  12693. wlarc=
  12694. # A generic and very simple default shared library creation
  12695. # command for GNU C++ for the case where it uses the native
  12696. # linker, instead of GNU ld. If possible, this setting should
  12697. # overridden to take advantage of the native linker features on
  12698. # the platform it is being used on.
  12699. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12700. fi
  12701. # Commands to make compiler produce verbose output that lists
  12702. # what "hidden" libraries, object files and flags are used when
  12703. # linking a shared library.
  12704. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12705. else
  12706. GXX=no
  12707. with_gnu_ld=no
  12708. wlarc=
  12709. fi
  12710. # PORTME: fill in a description of your system's C++ link characteristics
  12711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12712. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12713. ld_shlibs_CXX=yes
  12714. case $host_os in
  12715. aix3*)
  12716. # FIXME: insert proper C++ library support
  12717. ld_shlibs_CXX=no
  12718. ;;
  12719. aix[4-9]*)
  12720. if test ia64 = "$host_cpu"; then
  12721. # On IA64, the linker does run time linking by default, so we don't
  12722. # have to do anything special.
  12723. aix_use_runtimelinking=no
  12724. exp_sym_flag='-Bexport'
  12725. no_entry_flag=
  12726. else
  12727. aix_use_runtimelinking=no
  12728. # Test if we are trying to use run time linking or normal
  12729. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12730. # have runtime linking enabled, and use it for executables.
  12731. # For shared libraries, we enable/disable runtime linking
  12732. # depending on the kind of the shared library created -
  12733. # when "with_aix_soname,aix_use_runtimelinking" is:
  12734. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12735. # "aix,yes" lib.so shared, rtl:yes, for executables
  12736. # lib.a static archive
  12737. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12738. # lib.a(lib.so.V) shared, rtl:no, for executables
  12739. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12740. # lib.a(lib.so.V) shared, rtl:no
  12741. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12742. # lib.a static archive
  12743. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12744. for ld_flag in $LDFLAGS; do
  12745. case $ld_flag in
  12746. *-brtl*)
  12747. aix_use_runtimelinking=yes
  12748. break
  12749. ;;
  12750. esac
  12751. done
  12752. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12753. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12754. # so we don't have lib.a shared libs to link our executables.
  12755. # We have to force runtime linking in this case.
  12756. aix_use_runtimelinking=yes
  12757. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12758. fi
  12759. ;;
  12760. esac
  12761. exp_sym_flag='-bexport'
  12762. no_entry_flag='-bnoentry'
  12763. fi
  12764. # When large executables or shared objects are built, AIX ld can
  12765. # have problems creating the table of contents. If linking a library
  12766. # or program results in "error TOC overflow" add -mminimal-toc to
  12767. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12768. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12769. archive_cmds_CXX=''
  12770. hardcode_direct_CXX=yes
  12771. hardcode_direct_absolute_CXX=yes
  12772. hardcode_libdir_separator_CXX=':'
  12773. link_all_deplibs_CXX=yes
  12774. file_list_spec_CXX='$wl-f,'
  12775. case $with_aix_soname,$aix_use_runtimelinking in
  12776. aix,*) ;; # no import file
  12777. svr4,* | *,yes) # use import file
  12778. # The Import File defines what to hardcode.
  12779. hardcode_direct_CXX=no
  12780. hardcode_direct_absolute_CXX=no
  12781. ;;
  12782. esac
  12783. if test yes = "$GXX"; then
  12784. case $host_os in aix4.[012]|aix4.[012].*)
  12785. # We only want to do this on AIX 4.2 and lower, the check
  12786. # below for broken collect2 doesn't work under 4.3+
  12787. collect2name=`$CC -print-prog-name=collect2`
  12788. if test -f "$collect2name" &&
  12789. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12790. then
  12791. # We have reworked collect2
  12792. :
  12793. else
  12794. # We have old collect2
  12795. hardcode_direct_CXX=unsupported
  12796. # It fails to find uninstalled libraries when the uninstalled
  12797. # path is not listed in the libpath. Setting hardcode_minus_L
  12798. # to unsupported forces relinking
  12799. hardcode_minus_L_CXX=yes
  12800. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12801. hardcode_libdir_separator_CXX=
  12802. fi
  12803. esac
  12804. shared_flag='-shared'
  12805. if test yes = "$aix_use_runtimelinking"; then
  12806. shared_flag=$shared_flag' $wl-G'
  12807. fi
  12808. # Need to ensure runtime linking is disabled for the traditional
  12809. # shared library, or the linker may eventually find shared libraries
  12810. # /with/ Import File - we do not want to mix them.
  12811. shared_flag_aix='-shared'
  12812. shared_flag_svr4='-shared $wl-G'
  12813. else
  12814. # not using gcc
  12815. if test ia64 = "$host_cpu"; then
  12816. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12817. # chokes on -Wl,-G. The following line is correct:
  12818. shared_flag='-G'
  12819. else
  12820. if test yes = "$aix_use_runtimelinking"; then
  12821. shared_flag='$wl-G'
  12822. else
  12823. shared_flag='$wl-bM:SRE'
  12824. fi
  12825. shared_flag_aix='$wl-bM:SRE'
  12826. shared_flag_svr4='$wl-G'
  12827. fi
  12828. fi
  12829. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12830. # It seems that -bexpall does not export symbols beginning with
  12831. # underscore (_), so it is better to generate a list of symbols to
  12832. # export.
  12833. always_export_symbols_CXX=yes
  12834. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12835. # Warning - without using the other runtime loading flags (-brtl),
  12836. # -berok will link without error, but may produce a broken library.
  12837. # The "-G" linker flag allows undefined symbols.
  12838. no_undefined_flag_CXX='-bernotok'
  12839. # Determine the default libpath from the value encoded in an empty
  12840. # executable.
  12841. if test set = "${lt_cv_aix_libpath+set}"; then
  12842. aix_libpath=$lt_cv_aix_libpath
  12843. else
  12844. if test ${lt_cv_aix_libpath__CXX+y}
  12845. then :
  12846. printf %s "(cached) " >&6
  12847. else $as_nop
  12848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12849. /* end confdefs.h. */
  12850. int
  12851. main (void)
  12852. {
  12853. ;
  12854. return 0;
  12855. }
  12856. _ACEOF
  12857. if ac_fn_cxx_try_link "$LINENO"
  12858. then :
  12859. lt_aix_libpath_sed='
  12860. /Import File Strings/,/^$/ {
  12861. /^0/ {
  12862. s/^0 *\([^ ]*\) *$/\1/
  12863. p
  12864. }
  12865. }'
  12866. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12867. # Check for a 64-bit object if we didn't find anything.
  12868. if test -z "$lt_cv_aix_libpath__CXX"; then
  12869. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12870. fi
  12871. fi
  12872. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12873. conftest$ac_exeext conftest.$ac_ext
  12874. if test -z "$lt_cv_aix_libpath__CXX"; then
  12875. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12876. fi
  12877. fi
  12878. aix_libpath=$lt_cv_aix_libpath__CXX
  12879. fi
  12880. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12881. 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
  12882. else
  12883. if test ia64 = "$host_cpu"; then
  12884. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12885. allow_undefined_flag_CXX="-z nodefs"
  12886. 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"
  12887. else
  12888. # Determine the default libpath from the value encoded in an
  12889. # empty executable.
  12890. if test set = "${lt_cv_aix_libpath+set}"; then
  12891. aix_libpath=$lt_cv_aix_libpath
  12892. else
  12893. if test ${lt_cv_aix_libpath__CXX+y}
  12894. then :
  12895. printf %s "(cached) " >&6
  12896. else $as_nop
  12897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12898. /* end confdefs.h. */
  12899. int
  12900. main (void)
  12901. {
  12902. ;
  12903. return 0;
  12904. }
  12905. _ACEOF
  12906. if ac_fn_cxx_try_link "$LINENO"
  12907. then :
  12908. lt_aix_libpath_sed='
  12909. /Import File Strings/,/^$/ {
  12910. /^0/ {
  12911. s/^0 *\([^ ]*\) *$/\1/
  12912. p
  12913. }
  12914. }'
  12915. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12916. # Check for a 64-bit object if we didn't find anything.
  12917. if test -z "$lt_cv_aix_libpath__CXX"; then
  12918. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12919. fi
  12920. fi
  12921. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12922. conftest$ac_exeext conftest.$ac_ext
  12923. if test -z "$lt_cv_aix_libpath__CXX"; then
  12924. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12925. fi
  12926. fi
  12927. aix_libpath=$lt_cv_aix_libpath__CXX
  12928. fi
  12929. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12930. # Warning - without using the other run time loading flags,
  12931. # -berok will link without error, but may produce a broken library.
  12932. no_undefined_flag_CXX=' $wl-bernotok'
  12933. allow_undefined_flag_CXX=' $wl-berok'
  12934. if test yes = "$with_gnu_ld"; then
  12935. # We only use this code for GNU lds that support --whole-archive.
  12936. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12937. else
  12938. # Exported symbols can be pulled into shared objects from archives
  12939. whole_archive_flag_spec_CXX='$convenience'
  12940. fi
  12941. archive_cmds_need_lc_CXX=yes
  12942. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12943. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12944. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12945. if test svr4 != "$with_aix_soname"; then
  12946. # This is similar to how AIX traditionally builds its shared
  12947. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12948. 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'
  12949. fi
  12950. if test aix != "$with_aix_soname"; then
  12951. 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'
  12952. else
  12953. # used by -dlpreopen to get the symbols
  12954. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12955. fi
  12956. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12957. fi
  12958. fi
  12959. ;;
  12960. beos*)
  12961. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12962. allow_undefined_flag_CXX=unsupported
  12963. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12964. # support --undefined. This deserves some investigation. FIXME
  12965. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12966. else
  12967. ld_shlibs_CXX=no
  12968. fi
  12969. ;;
  12970. chorus*)
  12971. case $cc_basename in
  12972. *)
  12973. # FIXME: insert proper C++ library support
  12974. ld_shlibs_CXX=no
  12975. ;;
  12976. esac
  12977. ;;
  12978. cygwin* | mingw* | pw32* | cegcc*)
  12979. case $GXX,$cc_basename in
  12980. ,cl* | no,cl*)
  12981. # Native MSVC
  12982. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12983. # no search path for DLLs.
  12984. hardcode_libdir_flag_spec_CXX=' '
  12985. allow_undefined_flag_CXX=unsupported
  12986. always_export_symbols_CXX=yes
  12987. file_list_spec_CXX='@'
  12988. # Tell ltmain to make .lib files, not .a files.
  12989. libext=lib
  12990. # Tell ltmain to make .dll files, not .so files.
  12991. shrext_cmds=.dll
  12992. # FIXME: Setting linknames here is a bad hack.
  12993. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12994. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12995. cp "$export_symbols" "$output_objdir/$soname.def";
  12996. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12997. else
  12998. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12999. fi~
  13000. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13001. linknames='
  13002. # The linker will not automatically build a static lib if we build a DLL.
  13003. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13004. enable_shared_with_static_runtimes_CXX=yes
  13005. # Don't use ranlib
  13006. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13007. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13008. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13009. case $lt_outputfile in
  13010. *.exe|*.EXE) ;;
  13011. *)
  13012. lt_outputfile=$lt_outputfile.exe
  13013. lt_tool_outputfile=$lt_tool_outputfile.exe
  13014. ;;
  13015. esac~
  13016. func_to_tool_file "$lt_outputfile"~
  13017. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13018. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13019. $RM "$lt_outputfile.manifest";
  13020. fi'
  13021. ;;
  13022. *)
  13023. # g++
  13024. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13025. # as there is no search path for DLLs.
  13026. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13027. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13028. allow_undefined_flag_CXX=unsupported
  13029. always_export_symbols_CXX=no
  13030. enable_shared_with_static_runtimes_CXX=yes
  13031. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13032. 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'
  13033. # If the export-symbols file already is a .def file, use it as
  13034. # is; otherwise, prepend EXPORTS...
  13035. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13036. cp $export_symbols $output_objdir/$soname.def;
  13037. else
  13038. echo EXPORTS > $output_objdir/$soname.def;
  13039. cat $export_symbols >> $output_objdir/$soname.def;
  13040. fi~
  13041. $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'
  13042. else
  13043. ld_shlibs_CXX=no
  13044. fi
  13045. ;;
  13046. esac
  13047. ;;
  13048. darwin* | rhapsody*)
  13049. archive_cmds_need_lc_CXX=no
  13050. hardcode_direct_CXX=no
  13051. hardcode_automatic_CXX=yes
  13052. hardcode_shlibpath_var_CXX=unsupported
  13053. if test yes = "$lt_cv_ld_force_load"; then
  13054. 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\"`'
  13055. else
  13056. whole_archive_flag_spec_CXX=''
  13057. fi
  13058. link_all_deplibs_CXX=yes
  13059. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13060. case $cc_basename in
  13061. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13062. *) _lt_dar_can_shared=$GCC ;;
  13063. esac
  13064. if test yes = "$_lt_dar_can_shared"; then
  13065. output_verbose_link_cmd=func_echo_all
  13066. 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"
  13067. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13068. 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"
  13069. 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"
  13070. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13071. 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"
  13072. 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"
  13073. fi
  13074. else
  13075. ld_shlibs_CXX=no
  13076. fi
  13077. ;;
  13078. os2*)
  13079. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13080. hardcode_minus_L_CXX=yes
  13081. allow_undefined_flag_CXX=unsupported
  13082. shrext_cmds=.dll
  13083. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13084. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13085. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13086. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13087. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13088. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13089. emximp -o $lib $output_objdir/$libname.def'
  13090. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13091. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13092. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13093. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13094. prefix_cmds="$SED"~
  13095. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13096. prefix_cmds="$prefix_cmds -e 1d";
  13097. fi~
  13098. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13099. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13100. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13101. emximp -o $lib $output_objdir/$libname.def'
  13102. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13103. enable_shared_with_static_runtimes_CXX=yes
  13104. file_list_spec_CXX='@'
  13105. ;;
  13106. dgux*)
  13107. case $cc_basename in
  13108. ec++*)
  13109. # FIXME: insert proper C++ library support
  13110. ld_shlibs_CXX=no
  13111. ;;
  13112. ghcx*)
  13113. # Green Hills C++ Compiler
  13114. # FIXME: insert proper C++ library support
  13115. ld_shlibs_CXX=no
  13116. ;;
  13117. *)
  13118. # FIXME: insert proper C++ library support
  13119. ld_shlibs_CXX=no
  13120. ;;
  13121. esac
  13122. ;;
  13123. freebsd2.*)
  13124. # C++ shared libraries reported to be fairly broken before
  13125. # switch to ELF
  13126. ld_shlibs_CXX=no
  13127. ;;
  13128. freebsd-elf*)
  13129. archive_cmds_need_lc_CXX=no
  13130. ;;
  13131. freebsd* | dragonfly* | midnightbsd*)
  13132. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13133. # conventions
  13134. ld_shlibs_CXX=yes
  13135. ;;
  13136. haiku*)
  13137. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13138. link_all_deplibs_CXX=yes
  13139. ;;
  13140. hpux9*)
  13141. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13142. hardcode_libdir_separator_CXX=:
  13143. export_dynamic_flag_spec_CXX='$wl-E'
  13144. hardcode_direct_CXX=yes
  13145. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13146. # but as the default
  13147. # location of the library.
  13148. case $cc_basename in
  13149. CC*)
  13150. # FIXME: insert proper C++ library support
  13151. ld_shlibs_CXX=no
  13152. ;;
  13153. aCC*)
  13154. 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'
  13155. # Commands to make compiler produce verbose output that lists
  13156. # what "hidden" libraries, object files and flags are used when
  13157. # linking a shared library.
  13158. #
  13159. # There doesn't appear to be a way to prevent this compiler from
  13160. # explicitly linking system object files so we need to strip them
  13161. # from the output so that they don't get included in the library
  13162. # dependencies.
  13163. 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"'
  13164. ;;
  13165. *)
  13166. if test yes = "$GXX"; then
  13167. 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'
  13168. else
  13169. # FIXME: insert proper C++ library support
  13170. ld_shlibs_CXX=no
  13171. fi
  13172. ;;
  13173. esac
  13174. ;;
  13175. hpux10*|hpux11*)
  13176. if test no = "$with_gnu_ld"; then
  13177. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13178. hardcode_libdir_separator_CXX=:
  13179. case $host_cpu in
  13180. hppa*64*|ia64*)
  13181. ;;
  13182. *)
  13183. export_dynamic_flag_spec_CXX='$wl-E'
  13184. ;;
  13185. esac
  13186. fi
  13187. case $host_cpu in
  13188. hppa*64*|ia64*)
  13189. hardcode_direct_CXX=no
  13190. hardcode_shlibpath_var_CXX=no
  13191. ;;
  13192. *)
  13193. hardcode_direct_CXX=yes
  13194. hardcode_direct_absolute_CXX=yes
  13195. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13196. # but as the default
  13197. # location of the library.
  13198. ;;
  13199. esac
  13200. case $cc_basename in
  13201. CC*)
  13202. # FIXME: insert proper C++ library support
  13203. ld_shlibs_CXX=no
  13204. ;;
  13205. aCC*)
  13206. case $host_cpu in
  13207. hppa*64*)
  13208. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13209. ;;
  13210. ia64*)
  13211. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13212. ;;
  13213. *)
  13214. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13215. ;;
  13216. esac
  13217. # Commands to make compiler produce verbose output that lists
  13218. # what "hidden" libraries, object files and flags are used when
  13219. # linking a shared library.
  13220. #
  13221. # There doesn't appear to be a way to prevent this compiler from
  13222. # explicitly linking system object files so we need to strip them
  13223. # from the output so that they don't get included in the library
  13224. # dependencies.
  13225. 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"'
  13226. ;;
  13227. *)
  13228. if test yes = "$GXX"; then
  13229. if test no = "$with_gnu_ld"; then
  13230. case $host_cpu in
  13231. hppa*64*)
  13232. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13233. ;;
  13234. ia64*)
  13235. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13236. ;;
  13237. *)
  13238. 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'
  13239. ;;
  13240. esac
  13241. fi
  13242. else
  13243. # FIXME: insert proper C++ library support
  13244. ld_shlibs_CXX=no
  13245. fi
  13246. ;;
  13247. esac
  13248. ;;
  13249. interix[3-9]*)
  13250. hardcode_direct_CXX=no
  13251. hardcode_shlibpath_var_CXX=no
  13252. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13253. export_dynamic_flag_spec_CXX='$wl-E'
  13254. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13255. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13256. # default) and relocated if they conflict, which is a slow very memory
  13257. # consuming and fragmenting process. To avoid this, we pick a random,
  13258. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13259. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13260. 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'
  13261. 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'
  13262. ;;
  13263. irix5* | irix6*)
  13264. case $cc_basename in
  13265. CC*)
  13266. # SGI C++
  13267. 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'
  13268. # Archives containing C++ object files must be created using
  13269. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13270. # necessary to make sure instantiated templates are included
  13271. # in the archive.
  13272. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13273. ;;
  13274. *)
  13275. if test yes = "$GXX"; then
  13276. if test no = "$with_gnu_ld"; then
  13277. 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'
  13278. else
  13279. 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'
  13280. fi
  13281. fi
  13282. link_all_deplibs_CXX=yes
  13283. ;;
  13284. esac
  13285. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13286. hardcode_libdir_separator_CXX=:
  13287. inherit_rpath_CXX=yes
  13288. ;;
  13289. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13290. case $cc_basename in
  13291. KCC*)
  13292. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13293. # KCC will only create a shared library if the output file
  13294. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13295. # to its proper name (with version) after linking.
  13296. 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'
  13297. 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'
  13298. # Commands to make compiler produce verbose output that lists
  13299. # what "hidden" libraries, object files and flags are used when
  13300. # linking a shared library.
  13301. #
  13302. # There doesn't appear to be a way to prevent this compiler from
  13303. # explicitly linking system object files so we need to strip them
  13304. # from the output so that they don't get included in the library
  13305. # dependencies.
  13306. 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"'
  13307. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13308. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13309. # Archives containing C++ object files must be created using
  13310. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13311. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13312. ;;
  13313. icpc* | ecpc* )
  13314. # Intel C++
  13315. with_gnu_ld=yes
  13316. # version 8.0 and above of icpc choke on multiply defined symbols
  13317. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13318. # earlier do not add the objects themselves.
  13319. case `$CC -V 2>&1` in
  13320. *"Version 7."*)
  13321. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13322. 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'
  13323. ;;
  13324. *) # Version 8.0 or newer
  13325. tmp_idyn=
  13326. case $host_cpu in
  13327. ia64*) tmp_idyn=' -i_dynamic';;
  13328. esac
  13329. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13330. 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'
  13331. ;;
  13332. esac
  13333. archive_cmds_need_lc_CXX=no
  13334. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13335. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13336. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13337. ;;
  13338. pgCC* | pgcpp*)
  13339. # Portland Group C++ compiler
  13340. case `$CC -V` in
  13341. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13342. prelink_cmds_CXX='tpldir=Template.dir~
  13343. rm -rf $tpldir~
  13344. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13345. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13346. old_archive_cmds_CXX='tpldir=Template.dir~
  13347. rm -rf $tpldir~
  13348. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13349. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13350. $RANLIB $oldlib'
  13351. archive_cmds_CXX='tpldir=Template.dir~
  13352. rm -rf $tpldir~
  13353. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13354. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13355. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13356. rm -rf $tpldir~
  13357. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13358. $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'
  13359. ;;
  13360. *) # Version 6 and above use weak symbols
  13361. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13362. 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'
  13363. ;;
  13364. esac
  13365. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13366. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13367. 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'
  13368. ;;
  13369. cxx*)
  13370. # Compaq C++
  13371. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13372. 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'
  13373. runpath_var=LD_RUN_PATH
  13374. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13375. hardcode_libdir_separator_CXX=:
  13376. # Commands to make compiler produce verbose output that lists
  13377. # what "hidden" libraries, object files and flags are used when
  13378. # linking a shared library.
  13379. #
  13380. # There doesn't appear to be a way to prevent this compiler from
  13381. # explicitly linking system object files so we need to strip them
  13382. # from the output so that they don't get included in the library
  13383. # dependencies.
  13384. 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'
  13385. ;;
  13386. xl* | mpixl* | bgxl*)
  13387. # IBM XL 8.0 on PPC, with GNU ld
  13388. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13389. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13390. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13391. if test yes = "$supports_anon_versioning"; then
  13392. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13393. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13394. echo "local: *; };" >> $output_objdir/$libname.ver~
  13395. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13396. fi
  13397. ;;
  13398. *)
  13399. case `$CC -V 2>&1 | sed 5q` in
  13400. *Sun\ C*)
  13401. # Sun C++ 5.9
  13402. no_undefined_flag_CXX=' -zdefs'
  13403. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13404. 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'
  13405. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13406. 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'
  13407. compiler_needs_object_CXX=yes
  13408. # Not sure whether something based on
  13409. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13410. # would be better.
  13411. output_verbose_link_cmd='func_echo_all'
  13412. # Archives containing C++ object files must be created using
  13413. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13414. # necessary to make sure instantiated templates are included
  13415. # in the archive.
  13416. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13417. ;;
  13418. esac
  13419. ;;
  13420. esac
  13421. ;;
  13422. lynxos*)
  13423. # FIXME: insert proper C++ library support
  13424. ld_shlibs_CXX=no
  13425. ;;
  13426. m88k*)
  13427. # FIXME: insert proper C++ library support
  13428. ld_shlibs_CXX=no
  13429. ;;
  13430. mvs*)
  13431. case $cc_basename in
  13432. cxx*)
  13433. # FIXME: insert proper C++ library support
  13434. ld_shlibs_CXX=no
  13435. ;;
  13436. *)
  13437. # FIXME: insert proper C++ library support
  13438. ld_shlibs_CXX=no
  13439. ;;
  13440. esac
  13441. ;;
  13442. netbsd*)
  13443. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13444. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13445. wlarc=
  13446. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13447. hardcode_direct_CXX=yes
  13448. hardcode_shlibpath_var_CXX=no
  13449. fi
  13450. # Workaround some broken pre-1.5 toolchains
  13451. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13452. ;;
  13453. *nto* | *qnx*)
  13454. ld_shlibs_CXX=yes
  13455. ;;
  13456. openbsd* | bitrig*)
  13457. if test -f /usr/libexec/ld.so; then
  13458. hardcode_direct_CXX=yes
  13459. hardcode_shlibpath_var_CXX=no
  13460. hardcode_direct_absolute_CXX=yes
  13461. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13462. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13463. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13464. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13465. export_dynamic_flag_spec_CXX='$wl-E'
  13466. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13467. fi
  13468. output_verbose_link_cmd=func_echo_all
  13469. else
  13470. ld_shlibs_CXX=no
  13471. fi
  13472. ;;
  13473. osf3* | osf4* | osf5*)
  13474. case $cc_basename in
  13475. KCC*)
  13476. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13477. # KCC will only create a shared library if the output file
  13478. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13479. # to its proper name (with version) after linking.
  13480. 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'
  13481. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13482. hardcode_libdir_separator_CXX=:
  13483. # Archives containing C++ object files must be created using
  13484. # the KAI C++ compiler.
  13485. case $host in
  13486. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13487. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13488. esac
  13489. ;;
  13490. RCC*)
  13491. # Rational C++ 2.4.1
  13492. # FIXME: insert proper C++ library support
  13493. ld_shlibs_CXX=no
  13494. ;;
  13495. cxx*)
  13496. case $host in
  13497. osf3*)
  13498. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13499. 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'
  13500. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13501. ;;
  13502. *)
  13503. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13504. 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'
  13505. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13506. echo "-hidden">> $lib.exp~
  13507. $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~
  13508. $RM $lib.exp'
  13509. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13510. ;;
  13511. esac
  13512. hardcode_libdir_separator_CXX=:
  13513. # Commands to make compiler produce verbose output that lists
  13514. # what "hidden" libraries, object files and flags are used when
  13515. # linking a shared library.
  13516. #
  13517. # There doesn't appear to be a way to prevent this compiler from
  13518. # explicitly linking system object files so we need to strip them
  13519. # from the output so that they don't get included in the library
  13520. # dependencies.
  13521. 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"'
  13522. ;;
  13523. *)
  13524. if test yes,no = "$GXX,$with_gnu_ld"; then
  13525. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13526. case $host in
  13527. osf3*)
  13528. 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'
  13529. ;;
  13530. *)
  13531. 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'
  13532. ;;
  13533. esac
  13534. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13535. hardcode_libdir_separator_CXX=:
  13536. # Commands to make compiler produce verbose output that lists
  13537. # what "hidden" libraries, object files and flags are used when
  13538. # linking a shared library.
  13539. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13540. else
  13541. # FIXME: insert proper C++ library support
  13542. ld_shlibs_CXX=no
  13543. fi
  13544. ;;
  13545. esac
  13546. ;;
  13547. psos*)
  13548. # FIXME: insert proper C++ library support
  13549. ld_shlibs_CXX=no
  13550. ;;
  13551. sunos4*)
  13552. case $cc_basename in
  13553. CC*)
  13554. # Sun C++ 4.x
  13555. # FIXME: insert proper C++ library support
  13556. ld_shlibs_CXX=no
  13557. ;;
  13558. lcc*)
  13559. # Lucid
  13560. # FIXME: insert proper C++ library support
  13561. ld_shlibs_CXX=no
  13562. ;;
  13563. *)
  13564. # FIXME: insert proper C++ library support
  13565. ld_shlibs_CXX=no
  13566. ;;
  13567. esac
  13568. ;;
  13569. solaris*)
  13570. case $cc_basename in
  13571. CC* | sunCC*)
  13572. # Sun C++ 4.2, 5.x and Centerline C++
  13573. archive_cmds_need_lc_CXX=yes
  13574. no_undefined_flag_CXX=' -zdefs'
  13575. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13576. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13577. $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'
  13578. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13579. hardcode_shlibpath_var_CXX=no
  13580. case $host_os in
  13581. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13582. *)
  13583. # The compiler driver will combine and reorder linker options,
  13584. # but understands '-z linker_flag'.
  13585. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13586. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13587. ;;
  13588. esac
  13589. link_all_deplibs_CXX=yes
  13590. output_verbose_link_cmd='func_echo_all'
  13591. # Archives containing C++ object files must be created using
  13592. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13593. # necessary to make sure instantiated templates are included
  13594. # in the archive.
  13595. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13596. ;;
  13597. gcx*)
  13598. # Green Hills C++ Compiler
  13599. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13600. # The C++ compiler must be used to create the archive.
  13601. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13602. ;;
  13603. *)
  13604. # GNU C++ compiler with Solaris linker
  13605. if test yes,no = "$GXX,$with_gnu_ld"; then
  13606. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13607. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13608. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13609. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13610. $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'
  13611. # Commands to make compiler produce verbose output that lists
  13612. # what "hidden" libraries, object files and flags are used when
  13613. # linking a shared library.
  13614. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13615. else
  13616. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13617. # platform.
  13618. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13619. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13620. $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'
  13621. # Commands to make compiler produce verbose output that lists
  13622. # what "hidden" libraries, object files and flags are used when
  13623. # linking a shared library.
  13624. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13625. fi
  13626. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13627. case $host_os in
  13628. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13629. *)
  13630. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13631. ;;
  13632. esac
  13633. fi
  13634. ;;
  13635. esac
  13636. ;;
  13637. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13638. no_undefined_flag_CXX='$wl-z,text'
  13639. archive_cmds_need_lc_CXX=no
  13640. hardcode_shlibpath_var_CXX=no
  13641. runpath_var='LD_RUN_PATH'
  13642. case $cc_basename in
  13643. CC*)
  13644. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13645. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13646. ;;
  13647. *)
  13648. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13649. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13650. ;;
  13651. esac
  13652. ;;
  13653. sysv5* | sco3.2v5* | sco5v6*)
  13654. # Note: We CANNOT use -z defs as we might desire, because we do not
  13655. # link with -lc, and that would cause any symbols used from libc to
  13656. # always be unresolved, which means just about no library would
  13657. # ever link correctly. If we're not using GNU ld we use -z text
  13658. # though, which does catch some bad symbols but isn't as heavy-handed
  13659. # as -z defs.
  13660. no_undefined_flag_CXX='$wl-z,text'
  13661. allow_undefined_flag_CXX='$wl-z,nodefs'
  13662. archive_cmds_need_lc_CXX=no
  13663. hardcode_shlibpath_var_CXX=no
  13664. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13665. hardcode_libdir_separator_CXX=':'
  13666. link_all_deplibs_CXX=yes
  13667. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13668. runpath_var='LD_RUN_PATH'
  13669. case $cc_basename in
  13670. CC*)
  13671. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13672. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13673. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13674. '"$old_archive_cmds_CXX"
  13675. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13676. '"$reload_cmds_CXX"
  13677. ;;
  13678. *)
  13679. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13680. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13681. ;;
  13682. esac
  13683. ;;
  13684. tandem*)
  13685. case $cc_basename in
  13686. NCC*)
  13687. # NonStop-UX NCC 3.20
  13688. # FIXME: insert proper C++ library support
  13689. ld_shlibs_CXX=no
  13690. ;;
  13691. *)
  13692. # FIXME: insert proper C++ library support
  13693. ld_shlibs_CXX=no
  13694. ;;
  13695. esac
  13696. ;;
  13697. vxworks*)
  13698. # FIXME: insert proper C++ library support
  13699. ld_shlibs_CXX=no
  13700. ;;
  13701. *)
  13702. # FIXME: insert proper C++ library support
  13703. ld_shlibs_CXX=no
  13704. ;;
  13705. esac
  13706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13707. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13708. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13709. GCC_CXX=$GXX
  13710. LD_CXX=$LD
  13711. ## CAVEAT EMPTOR:
  13712. ## There is no encapsulation within the following macros, do not change
  13713. ## the running order or otherwise move them around unless you know exactly
  13714. ## what you are doing...
  13715. # Dependencies to place before and after the object being linked:
  13716. predep_objects_CXX=
  13717. postdep_objects_CXX=
  13718. predeps_CXX=
  13719. postdeps_CXX=
  13720. compiler_lib_search_path_CXX=
  13721. cat > conftest.$ac_ext <<_LT_EOF
  13722. class Foo
  13723. {
  13724. public:
  13725. Foo (void) { a = 0; }
  13726. private:
  13727. int a;
  13728. };
  13729. _LT_EOF
  13730. _lt_libdeps_save_CFLAGS=$CFLAGS
  13731. case "$CC $CFLAGS " in #(
  13732. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13733. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13734. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13735. esac
  13736. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13737. (eval $ac_compile) 2>&5
  13738. ac_status=$?
  13739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13740. test $ac_status = 0; }; then
  13741. # Parse the compiler output and extract the necessary
  13742. # objects, libraries and library flags.
  13743. # Sentinel used to keep track of whether or not we are before
  13744. # the conftest object file.
  13745. pre_test_object_deps_done=no
  13746. for p in `eval "$output_verbose_link_cmd"`; do
  13747. case $prev$p in
  13748. -L* | -R* | -l*)
  13749. # Some compilers place space between "-{L,R}" and the path.
  13750. # Remove the space.
  13751. if test x-L = "x$p" ||
  13752. test x-R = "x$p" ||
  13753. test x-l = "x$p"; then
  13754. prev=$p
  13755. continue
  13756. fi
  13757. # Expand the sysroot to ease extracting the directories later.
  13758. if test -z "$prev"; then
  13759. case $p in
  13760. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13761. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13762. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13763. esac
  13764. fi
  13765. case $p in
  13766. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13767. esac
  13768. if test no = "$pre_test_object_deps_done"; then
  13769. case $prev in
  13770. -L | -R)
  13771. # Internal compiler library paths should come after those
  13772. # provided the user. The postdeps already come after the
  13773. # user supplied libs so there is no need to process them.
  13774. if test -z "$compiler_lib_search_path_CXX"; then
  13775. compiler_lib_search_path_CXX=$prev$p
  13776. else
  13777. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13778. fi
  13779. ;;
  13780. # The "-l" case would never come before the object being
  13781. # linked, so don't bother handling this case.
  13782. esac
  13783. else
  13784. if test -z "$postdeps_CXX"; then
  13785. postdeps_CXX=$prev$p
  13786. else
  13787. postdeps_CXX="${postdeps_CXX} $prev$p"
  13788. fi
  13789. fi
  13790. prev=
  13791. ;;
  13792. *.lto.$objext) ;; # Ignore GCC LTO objects
  13793. *.$objext)
  13794. # This assumes that the test object file only shows up
  13795. # once in the compiler output.
  13796. if test "$p" = "conftest.$objext"; then
  13797. pre_test_object_deps_done=yes
  13798. continue
  13799. fi
  13800. if test no = "$pre_test_object_deps_done"; then
  13801. if test -z "$predep_objects_CXX"; then
  13802. predep_objects_CXX=$p
  13803. else
  13804. predep_objects_CXX="$predep_objects_CXX $p"
  13805. fi
  13806. else
  13807. if test -z "$postdep_objects_CXX"; then
  13808. postdep_objects_CXX=$p
  13809. else
  13810. postdep_objects_CXX="$postdep_objects_CXX $p"
  13811. fi
  13812. fi
  13813. ;;
  13814. *) ;; # Ignore the rest.
  13815. esac
  13816. done
  13817. # Clean up.
  13818. rm -f a.out a.exe
  13819. else
  13820. echo "libtool.m4: error: problem compiling CXX test program"
  13821. fi
  13822. $RM -f confest.$objext
  13823. CFLAGS=$_lt_libdeps_save_CFLAGS
  13824. # PORTME: override above test on systems where it is broken
  13825. case $host_os in
  13826. interix[3-9]*)
  13827. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13828. # hack all around it, let's just trust "g++" to DTRT.
  13829. predep_objects_CXX=
  13830. postdep_objects_CXX=
  13831. postdeps_CXX=
  13832. ;;
  13833. esac
  13834. case " $postdeps_CXX " in
  13835. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13836. esac
  13837. compiler_lib_search_dirs_CXX=
  13838. if test -n "${compiler_lib_search_path_CXX}"; then
  13839. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13840. fi
  13841. lt_prog_compiler_wl_CXX=
  13842. lt_prog_compiler_pic_CXX=
  13843. lt_prog_compiler_static_CXX=
  13844. # C++ specific cases for pic, static, wl, etc.
  13845. if test yes = "$GXX"; then
  13846. lt_prog_compiler_wl_CXX='-Wl,'
  13847. lt_prog_compiler_static_CXX='-static'
  13848. case $host_os in
  13849. aix*)
  13850. # All AIX code is PIC.
  13851. if test ia64 = "$host_cpu"; then
  13852. # AIX 5 now supports IA64 processor
  13853. lt_prog_compiler_static_CXX='-Bstatic'
  13854. fi
  13855. lt_prog_compiler_pic_CXX='-fPIC'
  13856. ;;
  13857. amigaos*)
  13858. case $host_cpu in
  13859. powerpc)
  13860. # see comment about AmigaOS4 .so support
  13861. lt_prog_compiler_pic_CXX='-fPIC'
  13862. ;;
  13863. m68k)
  13864. # FIXME: we need at least 68020 code to build shared libraries, but
  13865. # adding the '-m68020' flag to GCC prevents building anything better,
  13866. # like '-m68040'.
  13867. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13868. ;;
  13869. esac
  13870. ;;
  13871. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13872. # PIC is the default for these OSes.
  13873. ;;
  13874. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13875. # This hack is so that the source file can tell whether it is being
  13876. # built for inclusion in a dll (and should export symbols for example).
  13877. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13878. # (--disable-auto-import) libraries
  13879. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13880. case $host_os in
  13881. os2*)
  13882. lt_prog_compiler_static_CXX='$wl-static'
  13883. ;;
  13884. esac
  13885. ;;
  13886. darwin* | rhapsody*)
  13887. # PIC is the default on this platform
  13888. # Common symbols not allowed in MH_DYLIB files
  13889. lt_prog_compiler_pic_CXX='-fno-common'
  13890. ;;
  13891. *djgpp*)
  13892. # DJGPP does not support shared libraries at all
  13893. lt_prog_compiler_pic_CXX=
  13894. ;;
  13895. haiku*)
  13896. # PIC is the default for Haiku.
  13897. # The "-static" flag exists, but is broken.
  13898. lt_prog_compiler_static_CXX=
  13899. ;;
  13900. interix[3-9]*)
  13901. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13902. # Instead, we relocate shared libraries at runtime.
  13903. ;;
  13904. sysv4*MP*)
  13905. if test -d /usr/nec; then
  13906. lt_prog_compiler_pic_CXX=-Kconform_pic
  13907. fi
  13908. ;;
  13909. hpux*)
  13910. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13911. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13912. # sets the default TLS model and affects inlining.
  13913. case $host_cpu in
  13914. hppa*64*)
  13915. ;;
  13916. *)
  13917. lt_prog_compiler_pic_CXX='-fPIC'
  13918. ;;
  13919. esac
  13920. ;;
  13921. *qnx* | *nto*)
  13922. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13923. # it will coredump.
  13924. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13925. ;;
  13926. *)
  13927. lt_prog_compiler_pic_CXX='-fPIC'
  13928. ;;
  13929. esac
  13930. else
  13931. case $host_os in
  13932. aix[4-9]*)
  13933. # All AIX code is PIC.
  13934. if test ia64 = "$host_cpu"; then
  13935. # AIX 5 now supports IA64 processor
  13936. lt_prog_compiler_static_CXX='-Bstatic'
  13937. else
  13938. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13939. fi
  13940. ;;
  13941. chorus*)
  13942. case $cc_basename in
  13943. cxch68*)
  13944. # Green Hills C++ Compiler
  13945. # _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"
  13946. ;;
  13947. esac
  13948. ;;
  13949. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13950. # This hack is so that the source file can tell whether it is being
  13951. # built for inclusion in a dll (and should export symbols for example).
  13952. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13953. ;;
  13954. dgux*)
  13955. case $cc_basename in
  13956. ec++*)
  13957. lt_prog_compiler_pic_CXX='-KPIC'
  13958. ;;
  13959. ghcx*)
  13960. # Green Hills C++ Compiler
  13961. lt_prog_compiler_pic_CXX='-pic'
  13962. ;;
  13963. *)
  13964. ;;
  13965. esac
  13966. ;;
  13967. freebsd* | dragonfly* | midnightbsd*)
  13968. # FreeBSD uses GNU C++
  13969. ;;
  13970. hpux9* | hpux10* | hpux11*)
  13971. case $cc_basename in
  13972. CC*)
  13973. lt_prog_compiler_wl_CXX='-Wl,'
  13974. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13975. if test ia64 != "$host_cpu"; then
  13976. lt_prog_compiler_pic_CXX='+Z'
  13977. fi
  13978. ;;
  13979. aCC*)
  13980. lt_prog_compiler_wl_CXX='-Wl,'
  13981. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13982. case $host_cpu in
  13983. hppa*64*|ia64*)
  13984. # +Z the default
  13985. ;;
  13986. *)
  13987. lt_prog_compiler_pic_CXX='+Z'
  13988. ;;
  13989. esac
  13990. ;;
  13991. *)
  13992. ;;
  13993. esac
  13994. ;;
  13995. interix*)
  13996. # This is c89, which is MS Visual C++ (no shared libs)
  13997. # Anyone wants to do a port?
  13998. ;;
  13999. irix5* | irix6* | nonstopux*)
  14000. case $cc_basename in
  14001. CC*)
  14002. lt_prog_compiler_wl_CXX='-Wl,'
  14003. lt_prog_compiler_static_CXX='-non_shared'
  14004. # CC pic flag -KPIC is the default.
  14005. ;;
  14006. *)
  14007. ;;
  14008. esac
  14009. ;;
  14010. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14011. case $cc_basename in
  14012. KCC*)
  14013. # KAI C++ Compiler
  14014. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14015. lt_prog_compiler_pic_CXX='-fPIC'
  14016. ;;
  14017. ecpc* )
  14018. # old Intel C++ for x86_64, which still supported -KPIC.
  14019. lt_prog_compiler_wl_CXX='-Wl,'
  14020. lt_prog_compiler_pic_CXX='-KPIC'
  14021. lt_prog_compiler_static_CXX='-static'
  14022. ;;
  14023. icpc* )
  14024. # Intel C++, used to be incompatible with GCC.
  14025. # ICC 10 doesn't accept -KPIC any more.
  14026. lt_prog_compiler_wl_CXX='-Wl,'
  14027. lt_prog_compiler_pic_CXX='-fPIC'
  14028. lt_prog_compiler_static_CXX='-static'
  14029. ;;
  14030. pgCC* | pgcpp*)
  14031. # Portland Group C++ compiler
  14032. lt_prog_compiler_wl_CXX='-Wl,'
  14033. lt_prog_compiler_pic_CXX='-fpic'
  14034. lt_prog_compiler_static_CXX='-Bstatic'
  14035. ;;
  14036. cxx*)
  14037. # Compaq C++
  14038. # Make sure the PIC flag is empty. It appears that all Alpha
  14039. # Linux and Compaq Tru64 Unix objects are PIC.
  14040. lt_prog_compiler_pic_CXX=
  14041. lt_prog_compiler_static_CXX='-non_shared'
  14042. ;;
  14043. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14044. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14045. lt_prog_compiler_wl_CXX='-Wl,'
  14046. lt_prog_compiler_pic_CXX='-qpic'
  14047. lt_prog_compiler_static_CXX='-qstaticlink'
  14048. ;;
  14049. *)
  14050. case `$CC -V 2>&1 | sed 5q` in
  14051. *Sun\ C*)
  14052. # Sun C++ 5.9
  14053. lt_prog_compiler_pic_CXX='-KPIC'
  14054. lt_prog_compiler_static_CXX='-Bstatic'
  14055. lt_prog_compiler_wl_CXX='-Qoption ld '
  14056. ;;
  14057. esac
  14058. ;;
  14059. esac
  14060. ;;
  14061. lynxos*)
  14062. ;;
  14063. m88k*)
  14064. ;;
  14065. mvs*)
  14066. case $cc_basename in
  14067. cxx*)
  14068. lt_prog_compiler_pic_CXX='-W c,exportall'
  14069. ;;
  14070. *)
  14071. ;;
  14072. esac
  14073. ;;
  14074. netbsd*)
  14075. ;;
  14076. *qnx* | *nto*)
  14077. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14078. # it will coredump.
  14079. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14080. ;;
  14081. osf3* | osf4* | osf5*)
  14082. case $cc_basename in
  14083. KCC*)
  14084. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14085. ;;
  14086. RCC*)
  14087. # Rational C++ 2.4.1
  14088. lt_prog_compiler_pic_CXX='-pic'
  14089. ;;
  14090. cxx*)
  14091. # Digital/Compaq C++
  14092. lt_prog_compiler_wl_CXX='-Wl,'
  14093. # Make sure the PIC flag is empty. It appears that all Alpha
  14094. # Linux and Compaq Tru64 Unix objects are PIC.
  14095. lt_prog_compiler_pic_CXX=
  14096. lt_prog_compiler_static_CXX='-non_shared'
  14097. ;;
  14098. *)
  14099. ;;
  14100. esac
  14101. ;;
  14102. psos*)
  14103. ;;
  14104. solaris*)
  14105. case $cc_basename in
  14106. CC* | sunCC*)
  14107. # Sun C++ 4.2, 5.x and Centerline C++
  14108. lt_prog_compiler_pic_CXX='-KPIC'
  14109. lt_prog_compiler_static_CXX='-Bstatic'
  14110. lt_prog_compiler_wl_CXX='-Qoption ld '
  14111. ;;
  14112. gcx*)
  14113. # Green Hills C++ Compiler
  14114. lt_prog_compiler_pic_CXX='-PIC'
  14115. ;;
  14116. *)
  14117. ;;
  14118. esac
  14119. ;;
  14120. sunos4*)
  14121. case $cc_basename in
  14122. CC*)
  14123. # Sun C++ 4.x
  14124. lt_prog_compiler_pic_CXX='-pic'
  14125. lt_prog_compiler_static_CXX='-Bstatic'
  14126. ;;
  14127. lcc*)
  14128. # Lucid
  14129. lt_prog_compiler_pic_CXX='-pic'
  14130. ;;
  14131. *)
  14132. ;;
  14133. esac
  14134. ;;
  14135. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14136. case $cc_basename in
  14137. CC*)
  14138. lt_prog_compiler_wl_CXX='-Wl,'
  14139. lt_prog_compiler_pic_CXX='-KPIC'
  14140. lt_prog_compiler_static_CXX='-Bstatic'
  14141. ;;
  14142. esac
  14143. ;;
  14144. tandem*)
  14145. case $cc_basename in
  14146. NCC*)
  14147. # NonStop-UX NCC 3.20
  14148. lt_prog_compiler_pic_CXX='-KPIC'
  14149. ;;
  14150. *)
  14151. ;;
  14152. esac
  14153. ;;
  14154. vxworks*)
  14155. ;;
  14156. *)
  14157. lt_prog_compiler_can_build_shared_CXX=no
  14158. ;;
  14159. esac
  14160. fi
  14161. case $host_os in
  14162. # For platforms that do not support PIC, -DPIC is meaningless:
  14163. *djgpp*)
  14164. lt_prog_compiler_pic_CXX=
  14165. ;;
  14166. *)
  14167. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14168. ;;
  14169. esac
  14170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14171. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14172. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14173. then :
  14174. printf %s "(cached) " >&6
  14175. else $as_nop
  14176. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14177. fi
  14178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14179. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14180. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14181. #
  14182. # Check to make sure the PIC flag actually works.
  14183. #
  14184. if test -n "$lt_prog_compiler_pic_CXX"; then
  14185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14186. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14187. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14188. then :
  14189. printf %s "(cached) " >&6
  14190. else $as_nop
  14191. lt_cv_prog_compiler_pic_works_CXX=no
  14192. ac_outfile=conftest.$ac_objext
  14193. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14194. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14195. # Insert the option either (1) after the last *FLAGS variable, or
  14196. # (2) before a word containing "conftest.", or (3) at the end.
  14197. # Note that $ac_compile itself does not contain backslashes and begins
  14198. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14199. # The option is referenced via a variable to avoid confusing sed.
  14200. lt_compile=`echo "$ac_compile" | $SED \
  14201. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14202. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14203. -e 's:$: $lt_compiler_flag:'`
  14204. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14205. (eval "$lt_compile" 2>conftest.err)
  14206. ac_status=$?
  14207. cat conftest.err >&5
  14208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14209. if (exit $ac_status) && test -s "$ac_outfile"; then
  14210. # The compiler can only warn and ignore the option if not recognized
  14211. # So say no if there are warnings other than the usual output.
  14212. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14213. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14214. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14215. lt_cv_prog_compiler_pic_works_CXX=yes
  14216. fi
  14217. fi
  14218. $RM conftest*
  14219. fi
  14220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14221. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14222. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14223. case $lt_prog_compiler_pic_CXX in
  14224. "" | " "*) ;;
  14225. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14226. esac
  14227. else
  14228. lt_prog_compiler_pic_CXX=
  14229. lt_prog_compiler_can_build_shared_CXX=no
  14230. fi
  14231. fi
  14232. #
  14233. # Check to make sure the static flag actually works.
  14234. #
  14235. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14237. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14238. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14239. then :
  14240. printf %s "(cached) " >&6
  14241. else $as_nop
  14242. lt_cv_prog_compiler_static_works_CXX=no
  14243. save_LDFLAGS=$LDFLAGS
  14244. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14245. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14246. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14247. # The linker can only warn and ignore the option if not recognized
  14248. # So say no if there are warnings
  14249. if test -s conftest.err; then
  14250. # Append any errors to the config.log.
  14251. cat conftest.err 1>&5
  14252. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14253. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14254. if diff conftest.exp conftest.er2 >/dev/null; then
  14255. lt_cv_prog_compiler_static_works_CXX=yes
  14256. fi
  14257. else
  14258. lt_cv_prog_compiler_static_works_CXX=yes
  14259. fi
  14260. fi
  14261. $RM -r conftest*
  14262. LDFLAGS=$save_LDFLAGS
  14263. fi
  14264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14265. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14266. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14267. :
  14268. else
  14269. lt_prog_compiler_static_CXX=
  14270. fi
  14271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14272. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14273. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14274. then :
  14275. printf %s "(cached) " >&6
  14276. else $as_nop
  14277. lt_cv_prog_compiler_c_o_CXX=no
  14278. $RM -r conftest 2>/dev/null
  14279. mkdir conftest
  14280. cd conftest
  14281. mkdir out
  14282. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14283. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14284. # Insert the option either (1) after the last *FLAGS variable, or
  14285. # (2) before a word containing "conftest.", or (3) at the end.
  14286. # Note that $ac_compile itself does not contain backslashes and begins
  14287. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14288. lt_compile=`echo "$ac_compile" | $SED \
  14289. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14290. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14291. -e 's:$: $lt_compiler_flag:'`
  14292. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14293. (eval "$lt_compile" 2>out/conftest.err)
  14294. ac_status=$?
  14295. cat out/conftest.err >&5
  14296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14297. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14298. then
  14299. # The compiler can only warn and ignore the option if not recognized
  14300. # So say no if there are warnings
  14301. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14302. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14303. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14304. lt_cv_prog_compiler_c_o_CXX=yes
  14305. fi
  14306. fi
  14307. chmod u+w . 2>&5
  14308. $RM conftest*
  14309. # SGI C++ compiler will create directory out/ii_files/ for
  14310. # template instantiation
  14311. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14312. $RM out/* && rmdir out
  14313. cd ..
  14314. $RM -r conftest
  14315. $RM conftest*
  14316. fi
  14317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14318. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14320. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14321. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14322. then :
  14323. printf %s "(cached) " >&6
  14324. else $as_nop
  14325. lt_cv_prog_compiler_c_o_CXX=no
  14326. $RM -r conftest 2>/dev/null
  14327. mkdir conftest
  14328. cd conftest
  14329. mkdir out
  14330. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14331. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14332. # Insert the option either (1) after the last *FLAGS variable, or
  14333. # (2) before a word containing "conftest.", or (3) at the end.
  14334. # Note that $ac_compile itself does not contain backslashes and begins
  14335. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14336. lt_compile=`echo "$ac_compile" | $SED \
  14337. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14338. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14339. -e 's:$: $lt_compiler_flag:'`
  14340. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14341. (eval "$lt_compile" 2>out/conftest.err)
  14342. ac_status=$?
  14343. cat out/conftest.err >&5
  14344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14345. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14346. then
  14347. # The compiler can only warn and ignore the option if not recognized
  14348. # So say no if there are warnings
  14349. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14350. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14351. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14352. lt_cv_prog_compiler_c_o_CXX=yes
  14353. fi
  14354. fi
  14355. chmod u+w . 2>&5
  14356. $RM conftest*
  14357. # SGI C++ compiler will create directory out/ii_files/ for
  14358. # template instantiation
  14359. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14360. $RM out/* && rmdir out
  14361. cd ..
  14362. $RM -r conftest
  14363. $RM conftest*
  14364. fi
  14365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14366. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14367. hard_links=nottested
  14368. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14369. # do not overwrite the value of need_locks provided by the user
  14370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14371. printf %s "checking if we can lock with hard links... " >&6; }
  14372. hard_links=yes
  14373. $RM conftest*
  14374. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14375. touch conftest.a
  14376. ln conftest.a conftest.b 2>&5 || hard_links=no
  14377. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14379. printf "%s\n" "$hard_links" >&6; }
  14380. if test no = "$hard_links"; then
  14381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14382. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14383. need_locks=warn
  14384. fi
  14385. else
  14386. need_locks=no
  14387. fi
  14388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14389. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14390. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14391. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14392. case $host_os in
  14393. aix[4-9]*)
  14394. # If we're using GNU nm, then we don't want the "-C" option.
  14395. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14396. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14397. # weak defined symbols like other global defined symbols, whereas
  14398. # GNU nm marks them as "W".
  14399. # While the 'weak' keyword is ignored in the Export File, we need
  14400. # it in the Import File for the 'aix-soname' feature, so we have
  14401. # to replace the "-B" option with "-P" for AIX nm.
  14402. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14403. 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'
  14404. else
  14405. 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'
  14406. fi
  14407. ;;
  14408. pw32*)
  14409. export_symbols_cmds_CXX=$ltdll_cmds
  14410. ;;
  14411. cygwin* | mingw* | cegcc*)
  14412. case $cc_basename in
  14413. cl*)
  14414. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14415. ;;
  14416. *)
  14417. 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'
  14418. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14419. ;;
  14420. esac
  14421. ;;
  14422. *)
  14423. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14424. ;;
  14425. esac
  14426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14427. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14428. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14429. with_gnu_ld_CXX=$with_gnu_ld
  14430. #
  14431. # Do we need to explicitly link libc?
  14432. #
  14433. case "x$archive_cmds_need_lc_CXX" in
  14434. x|xyes)
  14435. # Assume -lc should be added
  14436. archive_cmds_need_lc_CXX=yes
  14437. if test yes,yes = "$GCC,$enable_shared"; then
  14438. case $archive_cmds_CXX in
  14439. *'~'*)
  14440. # FIXME: we may have to deal with multi-command sequences.
  14441. ;;
  14442. '$CC '*)
  14443. # Test whether the compiler implicitly links with -lc since on some
  14444. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14445. # to ld, don't add -lc before -lgcc.
  14446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14447. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14448. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14449. then :
  14450. printf %s "(cached) " >&6
  14451. else $as_nop
  14452. $RM conftest*
  14453. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14454. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14455. (eval $ac_compile) 2>&5
  14456. ac_status=$?
  14457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14458. test $ac_status = 0; } 2>conftest.err; then
  14459. soname=conftest
  14460. lib=conftest
  14461. libobjs=conftest.$ac_objext
  14462. deplibs=
  14463. wl=$lt_prog_compiler_wl_CXX
  14464. pic_flag=$lt_prog_compiler_pic_CXX
  14465. compiler_flags=-v
  14466. linker_flags=-v
  14467. verstring=
  14468. output_objdir=.
  14469. libname=conftest
  14470. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14471. allow_undefined_flag_CXX=
  14472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14473. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14474. ac_status=$?
  14475. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14476. test $ac_status = 0; }
  14477. then
  14478. lt_cv_archive_cmds_need_lc_CXX=no
  14479. else
  14480. lt_cv_archive_cmds_need_lc_CXX=yes
  14481. fi
  14482. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14483. else
  14484. cat conftest.err 1>&5
  14485. fi
  14486. $RM conftest*
  14487. fi
  14488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14489. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14490. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14491. ;;
  14492. esac
  14493. fi
  14494. ;;
  14495. esac
  14496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14497. printf %s "checking dynamic linker characteristics... " >&6; }
  14498. library_names_spec=
  14499. libname_spec='lib$name'
  14500. soname_spec=
  14501. shrext_cmds=.so
  14502. postinstall_cmds=
  14503. postuninstall_cmds=
  14504. finish_cmds=
  14505. finish_eval=
  14506. shlibpath_var=
  14507. shlibpath_overrides_runpath=unknown
  14508. version_type=none
  14509. dynamic_linker="$host_os ld.so"
  14510. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14511. need_lib_prefix=unknown
  14512. hardcode_into_libs=no
  14513. # when you set need_version to no, make sure it does not cause -set_version
  14514. # flags to be left without arguments
  14515. need_version=unknown
  14516. case $host_os in
  14517. aix3*)
  14518. version_type=linux # correct to gnu/linux during the next big refactor
  14519. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14520. shlibpath_var=LIBPATH
  14521. # AIX 3 has no versioning support, so we append a major version to the name.
  14522. soname_spec='$libname$release$shared_ext$major'
  14523. ;;
  14524. aix[4-9]*)
  14525. version_type=linux # correct to gnu/linux during the next big refactor
  14526. need_lib_prefix=no
  14527. need_version=no
  14528. hardcode_into_libs=yes
  14529. if test ia64 = "$host_cpu"; then
  14530. # AIX 5 supports IA64
  14531. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14532. shlibpath_var=LD_LIBRARY_PATH
  14533. else
  14534. # With GCC up to 2.95.x, collect2 would create an import file
  14535. # for dependence libraries. The import file would start with
  14536. # the line '#! .'. This would cause the generated library to
  14537. # depend on '.', always an invalid library. This was fixed in
  14538. # development snapshots of GCC prior to 3.0.
  14539. case $host_os in
  14540. aix4 | aix4.[01] | aix4.[01].*)
  14541. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14542. echo ' yes '
  14543. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14544. :
  14545. else
  14546. can_build_shared=no
  14547. fi
  14548. ;;
  14549. esac
  14550. # Using Import Files as archive members, it is possible to support
  14551. # filename-based versioning of shared library archives on AIX. While
  14552. # this would work for both with and without runtime linking, it will
  14553. # prevent static linking of such archives. So we do filename-based
  14554. # shared library versioning with .so extension only, which is used
  14555. # when both runtime linking and shared linking is enabled.
  14556. # Unfortunately, runtime linking may impact performance, so we do
  14557. # not want this to be the default eventually. Also, we use the
  14558. # versioned .so libs for executables only if there is the -brtl
  14559. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14560. # To allow for filename-based versioning support, we need to create
  14561. # libNAME.so.V as an archive file, containing:
  14562. # *) an Import File, referring to the versioned filename of the
  14563. # archive as well as the shared archive member, telling the
  14564. # bitwidth (32 or 64) of that shared object, and providing the
  14565. # list of exported symbols of that shared object, eventually
  14566. # decorated with the 'weak' keyword
  14567. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14568. # it being seen by the linker.
  14569. # At run time we better use the real file rather than another symlink,
  14570. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14571. case $with_aix_soname,$aix_use_runtimelinking in
  14572. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14573. # soname into executable. Probably we can add versioning support to
  14574. # collect2, so additional links can be useful in future.
  14575. aix,yes) # traditional libtool
  14576. dynamic_linker='AIX unversionable lib.so'
  14577. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14578. # instead of lib<name>.a to let people know that these are not
  14579. # typical AIX shared libraries.
  14580. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14581. ;;
  14582. aix,no) # traditional AIX only
  14583. dynamic_linker='AIX lib.a(lib.so.V)'
  14584. # We preserve .a as extension for shared libraries through AIX4.2
  14585. # and later when we are not doing run time linking.
  14586. library_names_spec='$libname$release.a $libname.a'
  14587. soname_spec='$libname$release$shared_ext$major'
  14588. ;;
  14589. svr4,*) # full svr4 only
  14590. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14591. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14592. # We do not specify a path in Import Files, so LIBPATH fires.
  14593. shlibpath_overrides_runpath=yes
  14594. ;;
  14595. *,yes) # both, prefer svr4
  14596. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14597. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14598. # unpreferred sharedlib libNAME.a needs extra handling
  14599. 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"'
  14600. 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"'
  14601. # We do not specify a path in Import Files, so LIBPATH fires.
  14602. shlibpath_overrides_runpath=yes
  14603. ;;
  14604. *,no) # both, prefer aix
  14605. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14606. library_names_spec='$libname$release.a $libname.a'
  14607. soname_spec='$libname$release$shared_ext$major'
  14608. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14609. 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)'
  14610. 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"'
  14611. ;;
  14612. esac
  14613. shlibpath_var=LIBPATH
  14614. fi
  14615. ;;
  14616. amigaos*)
  14617. case $host_cpu in
  14618. powerpc)
  14619. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14620. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14621. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14622. ;;
  14623. m68k)
  14624. library_names_spec='$libname.ixlibrary $libname.a'
  14625. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14626. 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'
  14627. ;;
  14628. esac
  14629. ;;
  14630. beos*)
  14631. library_names_spec='$libname$shared_ext'
  14632. dynamic_linker="$host_os ld.so"
  14633. shlibpath_var=LIBRARY_PATH
  14634. ;;
  14635. bsdi[45]*)
  14636. version_type=linux # correct to gnu/linux during the next big refactor
  14637. need_version=no
  14638. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14639. soname_spec='$libname$release$shared_ext$major'
  14640. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14641. shlibpath_var=LD_LIBRARY_PATH
  14642. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14643. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14644. # the default ld.so.conf also contains /usr/contrib/lib and
  14645. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14646. # libtool to hard-code these into programs
  14647. ;;
  14648. cygwin* | mingw* | pw32* | cegcc*)
  14649. version_type=windows
  14650. shrext_cmds=.dll
  14651. need_version=no
  14652. need_lib_prefix=no
  14653. case $GCC,$cc_basename in
  14654. yes,*)
  14655. # gcc
  14656. library_names_spec='$libname.dll.a'
  14657. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14658. postinstall_cmds='base_file=`basename \$file`~
  14659. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14660. dldir=$destdir/`dirname \$dlpath`~
  14661. test -d \$dldir || mkdir -p \$dldir~
  14662. $install_prog $dir/$dlname \$dldir/$dlname~
  14663. chmod a+x \$dldir/$dlname~
  14664. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14665. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14666. fi'
  14667. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14668. dlpath=$dir/\$dldll~
  14669. $RM \$dlpath'
  14670. shlibpath_overrides_runpath=yes
  14671. case $host_os in
  14672. cygwin*)
  14673. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14674. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14675. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14676. ;;
  14677. mingw* | cegcc*)
  14678. # MinGW DLLs use traditional 'lib' prefix
  14679. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14680. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14681. ;;
  14682. pw32*)
  14683. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14684. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14685. ;;
  14686. esac
  14687. dynamic_linker='Win32 ld.exe'
  14688. ;;
  14689. *,cl*)
  14690. # Native MSVC
  14691. libname_spec='$name'
  14692. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14693. library_names_spec='$libname.dll.lib'
  14694. case $build_os in
  14695. mingw*)
  14696. sys_lib_search_path_spec=
  14697. lt_save_ifs=$IFS
  14698. IFS=';'
  14699. for lt_path in $LIB
  14700. do
  14701. IFS=$lt_save_ifs
  14702. # Let DOS variable expansion print the short 8.3 style file name.
  14703. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14704. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14705. done
  14706. IFS=$lt_save_ifs
  14707. # Convert to MSYS style.
  14708. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14709. ;;
  14710. cygwin*)
  14711. # Convert to unix form, then to dos form, then back to unix form
  14712. # but this time dos style (no spaces!) so that the unix form looks
  14713. # like /cygdrive/c/PROGRA~1:/cygdr...
  14714. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14715. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14716. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14717. ;;
  14718. *)
  14719. sys_lib_search_path_spec=$LIB
  14720. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14721. # It is most probably a Windows format PATH.
  14722. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14723. else
  14724. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14725. fi
  14726. # FIXME: find the short name or the path components, as spaces are
  14727. # common. (e.g. "Program Files" -> "PROGRA~1")
  14728. ;;
  14729. esac
  14730. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14731. postinstall_cmds='base_file=`basename \$file`~
  14732. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14733. dldir=$destdir/`dirname \$dlpath`~
  14734. test -d \$dldir || mkdir -p \$dldir~
  14735. $install_prog $dir/$dlname \$dldir/$dlname'
  14736. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14737. dlpath=$dir/\$dldll~
  14738. $RM \$dlpath'
  14739. shlibpath_overrides_runpath=yes
  14740. dynamic_linker='Win32 link.exe'
  14741. ;;
  14742. *)
  14743. # Assume MSVC wrapper
  14744. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14745. dynamic_linker='Win32 ld.exe'
  14746. ;;
  14747. esac
  14748. # FIXME: first we should search . and the directory the executable is in
  14749. shlibpath_var=PATH
  14750. ;;
  14751. darwin* | rhapsody*)
  14752. dynamic_linker="$host_os dyld"
  14753. version_type=darwin
  14754. need_lib_prefix=no
  14755. need_version=no
  14756. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14757. soname_spec='$libname$release$major$shared_ext'
  14758. shlibpath_overrides_runpath=yes
  14759. shlibpath_var=DYLD_LIBRARY_PATH
  14760. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14761. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14762. ;;
  14763. dgux*)
  14764. version_type=linux # correct to gnu/linux during the next big refactor
  14765. need_lib_prefix=no
  14766. need_version=no
  14767. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14768. soname_spec='$libname$release$shared_ext$major'
  14769. shlibpath_var=LD_LIBRARY_PATH
  14770. ;;
  14771. freebsd* | dragonfly* | midnightbsd*)
  14772. # DragonFly does not have aout. When/if they implement a new
  14773. # versioning mechanism, adjust this.
  14774. if test -x /usr/bin/objformat; then
  14775. objformat=`/usr/bin/objformat`
  14776. else
  14777. case $host_os in
  14778. freebsd[23].*) objformat=aout ;;
  14779. *) objformat=elf ;;
  14780. esac
  14781. fi
  14782. version_type=freebsd-$objformat
  14783. case $version_type in
  14784. freebsd-elf*)
  14785. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14786. soname_spec='$libname$release$shared_ext$major'
  14787. need_version=no
  14788. need_lib_prefix=no
  14789. ;;
  14790. freebsd-*)
  14791. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14792. need_version=yes
  14793. ;;
  14794. esac
  14795. shlibpath_var=LD_LIBRARY_PATH
  14796. case $host_os in
  14797. freebsd2.*)
  14798. shlibpath_overrides_runpath=yes
  14799. ;;
  14800. freebsd3.[01]* | freebsdelf3.[01]*)
  14801. shlibpath_overrides_runpath=yes
  14802. hardcode_into_libs=yes
  14803. ;;
  14804. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14805. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14806. shlibpath_overrides_runpath=no
  14807. hardcode_into_libs=yes
  14808. ;;
  14809. *) # from 4.6 on, and DragonFly
  14810. shlibpath_overrides_runpath=yes
  14811. hardcode_into_libs=yes
  14812. ;;
  14813. esac
  14814. ;;
  14815. haiku*)
  14816. version_type=linux # correct to gnu/linux during the next big refactor
  14817. need_lib_prefix=no
  14818. need_version=no
  14819. dynamic_linker="$host_os runtime_loader"
  14820. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14821. soname_spec='$libname$release$shared_ext$major'
  14822. shlibpath_var=LIBRARY_PATH
  14823. shlibpath_overrides_runpath=no
  14824. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14825. hardcode_into_libs=yes
  14826. ;;
  14827. hpux9* | hpux10* | hpux11*)
  14828. # Give a soname corresponding to the major version so that dld.sl refuses to
  14829. # link against other versions.
  14830. version_type=sunos
  14831. need_lib_prefix=no
  14832. need_version=no
  14833. case $host_cpu in
  14834. ia64*)
  14835. shrext_cmds='.so'
  14836. hardcode_into_libs=yes
  14837. dynamic_linker="$host_os dld.so"
  14838. shlibpath_var=LD_LIBRARY_PATH
  14839. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14841. soname_spec='$libname$release$shared_ext$major'
  14842. if test 32 = "$HPUX_IA64_MODE"; then
  14843. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14844. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14845. else
  14846. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14847. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14848. fi
  14849. ;;
  14850. hppa*64*)
  14851. shrext_cmds='.sl'
  14852. hardcode_into_libs=yes
  14853. dynamic_linker="$host_os dld.sl"
  14854. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14855. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14856. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14857. soname_spec='$libname$release$shared_ext$major'
  14858. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14859. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14860. ;;
  14861. *)
  14862. shrext_cmds='.sl'
  14863. dynamic_linker="$host_os dld.sl"
  14864. shlibpath_var=SHLIB_PATH
  14865. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14866. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14867. soname_spec='$libname$release$shared_ext$major'
  14868. ;;
  14869. esac
  14870. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14871. postinstall_cmds='chmod 555 $lib'
  14872. # or fails outright, so override atomically:
  14873. install_override_mode=555
  14874. ;;
  14875. interix[3-9]*)
  14876. version_type=linux # correct to gnu/linux during the next big refactor
  14877. need_lib_prefix=no
  14878. need_version=no
  14879. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14880. soname_spec='$libname$release$shared_ext$major'
  14881. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14882. shlibpath_var=LD_LIBRARY_PATH
  14883. shlibpath_overrides_runpath=no
  14884. hardcode_into_libs=yes
  14885. ;;
  14886. irix5* | irix6* | nonstopux*)
  14887. case $host_os in
  14888. nonstopux*) version_type=nonstopux ;;
  14889. *)
  14890. if test yes = "$lt_cv_prog_gnu_ld"; then
  14891. version_type=linux # correct to gnu/linux during the next big refactor
  14892. else
  14893. version_type=irix
  14894. fi ;;
  14895. esac
  14896. need_lib_prefix=no
  14897. need_version=no
  14898. soname_spec='$libname$release$shared_ext$major'
  14899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14900. case $host_os in
  14901. irix5* | nonstopux*)
  14902. libsuff= shlibsuff=
  14903. ;;
  14904. *)
  14905. case $LD in # libtool.m4 will add one of these switches to LD
  14906. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14907. libsuff= shlibsuff= libmagic=32-bit;;
  14908. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14909. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14910. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14911. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14912. *) libsuff= shlibsuff= libmagic=never-match;;
  14913. esac
  14914. ;;
  14915. esac
  14916. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14917. shlibpath_overrides_runpath=no
  14918. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14919. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14920. hardcode_into_libs=yes
  14921. ;;
  14922. # No shared lib support for Linux oldld, aout, or coff.
  14923. linux*oldld* | linux*aout* | linux*coff*)
  14924. dynamic_linker=no
  14925. ;;
  14926. linux*android*)
  14927. version_type=none # Android doesn't support versioned libraries.
  14928. need_lib_prefix=no
  14929. need_version=no
  14930. library_names_spec='$libname$release$shared_ext'
  14931. soname_spec='$libname$release$shared_ext'
  14932. finish_cmds=
  14933. shlibpath_var=LD_LIBRARY_PATH
  14934. shlibpath_overrides_runpath=yes
  14935. # This implies no fast_install, which is unacceptable.
  14936. # Some rework will be needed to allow for fast_install
  14937. # before this can be enabled.
  14938. hardcode_into_libs=yes
  14939. dynamic_linker='Android linker'
  14940. # Don't embed -rpath directories since the linker doesn't support them.
  14941. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14942. ;;
  14943. # This must be glibc/ELF.
  14944. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14945. version_type=linux # correct to gnu/linux during the next big refactor
  14946. need_lib_prefix=no
  14947. need_version=no
  14948. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14949. soname_spec='$libname$release$shared_ext$major'
  14950. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14951. shlibpath_var=LD_LIBRARY_PATH
  14952. shlibpath_overrides_runpath=no
  14953. # Some binutils ld are patched to set DT_RUNPATH
  14954. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14955. then :
  14956. printf %s "(cached) " >&6
  14957. else $as_nop
  14958. lt_cv_shlibpath_overrides_runpath=no
  14959. save_LDFLAGS=$LDFLAGS
  14960. save_libdir=$libdir
  14961. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14962. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14964. /* end confdefs.h. */
  14965. int
  14966. main (void)
  14967. {
  14968. ;
  14969. return 0;
  14970. }
  14971. _ACEOF
  14972. if ac_fn_cxx_try_link "$LINENO"
  14973. then :
  14974. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14975. then :
  14976. lt_cv_shlibpath_overrides_runpath=yes
  14977. fi
  14978. fi
  14979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14980. conftest$ac_exeext conftest.$ac_ext
  14981. LDFLAGS=$save_LDFLAGS
  14982. libdir=$save_libdir
  14983. fi
  14984. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14985. # This implies no fast_install, which is unacceptable.
  14986. # Some rework will be needed to allow for fast_install
  14987. # before this can be enabled.
  14988. hardcode_into_libs=yes
  14989. # Add ABI-specific directories to the system library path.
  14990. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14991. # Ideally, we could use ldconfig to report *all* directores which are
  14992. # searched for libraries, however this is still not possible. Aside from not
  14993. # being certain /sbin/ldconfig is available, command
  14994. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14995. # even though it is searched at run-time. Try to do the best guess by
  14996. # appending ld.so.conf contents (and includes) to the search path.
  14997. if test -f /etc/ld.so.conf; then
  14998. 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' ' '`
  14999. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15000. fi
  15001. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15002. # powerpc, because MkLinux only supported shared libraries with the
  15003. # GNU dynamic linker. Since this was broken with cross compilers,
  15004. # most powerpc-linux boxes support dynamic linking these days and
  15005. # people can always --disable-shared, the test was removed, and we
  15006. # assume the GNU/Linux dynamic linker is in use.
  15007. dynamic_linker='GNU/Linux ld.so'
  15008. ;;
  15009. netbsd*)
  15010. version_type=sunos
  15011. need_lib_prefix=no
  15012. need_version=no
  15013. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15014. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15015. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15016. dynamic_linker='NetBSD (a.out) ld.so'
  15017. else
  15018. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15019. soname_spec='$libname$release$shared_ext$major'
  15020. dynamic_linker='NetBSD ld.elf_so'
  15021. fi
  15022. shlibpath_var=LD_LIBRARY_PATH
  15023. shlibpath_overrides_runpath=yes
  15024. hardcode_into_libs=yes
  15025. ;;
  15026. newsos6)
  15027. version_type=linux # correct to gnu/linux during the next big refactor
  15028. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15029. shlibpath_var=LD_LIBRARY_PATH
  15030. shlibpath_overrides_runpath=yes
  15031. ;;
  15032. *nto* | *qnx*)
  15033. version_type=qnx
  15034. need_lib_prefix=no
  15035. need_version=no
  15036. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15037. soname_spec='$libname$release$shared_ext$major'
  15038. shlibpath_var=LD_LIBRARY_PATH
  15039. shlibpath_overrides_runpath=no
  15040. hardcode_into_libs=yes
  15041. dynamic_linker='ldqnx.so'
  15042. ;;
  15043. openbsd* | bitrig*)
  15044. version_type=sunos
  15045. sys_lib_dlsearch_path_spec=/usr/lib
  15046. need_lib_prefix=no
  15047. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15048. need_version=no
  15049. else
  15050. need_version=yes
  15051. fi
  15052. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15054. shlibpath_var=LD_LIBRARY_PATH
  15055. shlibpath_overrides_runpath=yes
  15056. ;;
  15057. os2*)
  15058. libname_spec='$name'
  15059. shrext_cmds=.dll
  15060. need_lib_prefix=no
  15061. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15062. # SDL customization: removed versioning support.
  15063. # version_type=windows
  15064. # need_version=no
  15065. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15066. # v=$($ECHO $release$versuffix | tr -d .-);
  15067. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15068. # $ECHO $n$v`$shared_ext'
  15069. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15070. library_names_spec='${libname}_dll.$libext'
  15071. dynamic_linker='OS/2 ld.exe'
  15072. shlibpath_var=BEGINLIBPATH
  15073. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15074. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15075. postinstall_cmds='base_file=`basename \$file`~
  15076. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15077. dldir=$destdir/`dirname \$dlpath`~
  15078. test -d \$dldir || mkdir -p \$dldir~
  15079. $install_prog $dir/$dlname \$dldir/$dlname~
  15080. chmod a+x \$dldir/$dlname~
  15081. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15082. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15083. fi'
  15084. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15085. dlpath=$dir/\$dldll~
  15086. $RM \$dlpath'
  15087. ;;
  15088. osf3* | osf4* | osf5*)
  15089. version_type=osf
  15090. need_lib_prefix=no
  15091. need_version=no
  15092. soname_spec='$libname$release$shared_ext$major'
  15093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15096. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15097. ;;
  15098. rdos*)
  15099. dynamic_linker=no
  15100. ;;
  15101. solaris*)
  15102. version_type=linux # correct to gnu/linux during the next big refactor
  15103. need_lib_prefix=no
  15104. need_version=no
  15105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15106. soname_spec='$libname$release$shared_ext$major'
  15107. shlibpath_var=LD_LIBRARY_PATH
  15108. shlibpath_overrides_runpath=yes
  15109. hardcode_into_libs=yes
  15110. # ldd complains unless libraries are executable
  15111. postinstall_cmds='chmod +x $lib'
  15112. ;;
  15113. sunos4*)
  15114. version_type=sunos
  15115. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15116. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15117. shlibpath_var=LD_LIBRARY_PATH
  15118. shlibpath_overrides_runpath=yes
  15119. if test yes = "$with_gnu_ld"; then
  15120. need_lib_prefix=no
  15121. fi
  15122. need_version=yes
  15123. ;;
  15124. sysv4 | sysv4.3*)
  15125. version_type=linux # correct to gnu/linux during the next big refactor
  15126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15127. soname_spec='$libname$release$shared_ext$major'
  15128. shlibpath_var=LD_LIBRARY_PATH
  15129. case $host_vendor in
  15130. sni)
  15131. shlibpath_overrides_runpath=no
  15132. need_lib_prefix=no
  15133. runpath_var=LD_RUN_PATH
  15134. ;;
  15135. siemens)
  15136. need_lib_prefix=no
  15137. ;;
  15138. motorola)
  15139. need_lib_prefix=no
  15140. need_version=no
  15141. shlibpath_overrides_runpath=no
  15142. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15143. ;;
  15144. esac
  15145. ;;
  15146. sysv4*MP*)
  15147. if test -d /usr/nec; then
  15148. version_type=linux # correct to gnu/linux during the next big refactor
  15149. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15150. soname_spec='$libname$shared_ext.$major'
  15151. shlibpath_var=LD_LIBRARY_PATH
  15152. fi
  15153. ;;
  15154. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15155. version_type=sco
  15156. need_lib_prefix=no
  15157. need_version=no
  15158. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15159. soname_spec='$libname$release$shared_ext$major'
  15160. shlibpath_var=LD_LIBRARY_PATH
  15161. shlibpath_overrides_runpath=yes
  15162. hardcode_into_libs=yes
  15163. if test yes = "$with_gnu_ld"; then
  15164. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15165. else
  15166. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15167. case $host_os in
  15168. sco3.2v5*)
  15169. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15170. ;;
  15171. esac
  15172. fi
  15173. sys_lib_dlsearch_path_spec='/usr/lib'
  15174. ;;
  15175. tpf*)
  15176. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15177. version_type=linux # correct to gnu/linux during the next big refactor
  15178. need_lib_prefix=no
  15179. need_version=no
  15180. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15181. shlibpath_var=LD_LIBRARY_PATH
  15182. shlibpath_overrides_runpath=no
  15183. hardcode_into_libs=yes
  15184. ;;
  15185. uts4*)
  15186. version_type=linux # correct to gnu/linux during the next big refactor
  15187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15188. soname_spec='$libname$release$shared_ext$major'
  15189. shlibpath_var=LD_LIBRARY_PATH
  15190. ;;
  15191. *)
  15192. dynamic_linker=no
  15193. ;;
  15194. esac
  15195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15196. printf "%s\n" "$dynamic_linker" >&6; }
  15197. test no = "$dynamic_linker" && can_build_shared=no
  15198. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15199. if test yes = "$GCC"; then
  15200. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15201. fi
  15202. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15203. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15204. fi
  15205. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15206. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15207. fi
  15208. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15209. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15210. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15211. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15212. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15213. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15215. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15216. hardcode_action_CXX=
  15217. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15218. test -n "$runpath_var_CXX" ||
  15219. test yes = "$hardcode_automatic_CXX"; then
  15220. # We can hardcode non-existent directories.
  15221. if test no != "$hardcode_direct_CXX" &&
  15222. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15223. # have to relink, otherwise we might link with an installed library
  15224. # when we should be linking with a yet-to-be-installed one
  15225. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15226. test no != "$hardcode_minus_L_CXX"; then
  15227. # Linking always hardcodes the temporary library directory.
  15228. hardcode_action_CXX=relink
  15229. else
  15230. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15231. hardcode_action_CXX=immediate
  15232. fi
  15233. else
  15234. # We cannot hardcode anything, or else we can only hardcode existing
  15235. # directories.
  15236. hardcode_action_CXX=unsupported
  15237. fi
  15238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15239. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15240. if test relink = "$hardcode_action_CXX" ||
  15241. test yes = "$inherit_rpath_CXX"; then
  15242. # Fast installation is not supported
  15243. enable_fast_install=no
  15244. elif test yes = "$shlibpath_overrides_runpath" ||
  15245. test no = "$enable_shared"; then
  15246. # Fast installation is not necessary
  15247. enable_fast_install=needless
  15248. fi
  15249. fi # test -n "$compiler"
  15250. CC=$lt_save_CC
  15251. CFLAGS=$lt_save_CFLAGS
  15252. LDCXX=$LD
  15253. LD=$lt_save_LD
  15254. GCC=$lt_save_GCC
  15255. with_gnu_ld=$lt_save_with_gnu_ld
  15256. lt_cv_path_LDCXX=$lt_cv_path_LD
  15257. lt_cv_path_LD=$lt_save_path_LD
  15258. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15259. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15260. fi # test yes != "$_lt_caught_CXX_error"
  15261. ac_ext=c
  15262. ac_cpp='$CPP $CPPFLAGS'
  15263. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15264. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15265. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15267. printf %s "checking for egrep... " >&6; }
  15268. if test ${ac_cv_path_EGREP+y}
  15269. then :
  15270. printf %s "(cached) " >&6
  15271. else $as_nop
  15272. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15273. then ac_cv_path_EGREP="$GREP -E"
  15274. else
  15275. if test -z "$EGREP"; then
  15276. ac_path_EGREP_found=false
  15277. # Loop through the user's path and test for each of PROGNAME-LIST
  15278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15279. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15280. do
  15281. IFS=$as_save_IFS
  15282. case $as_dir in #(((
  15283. '') as_dir=./ ;;
  15284. */) ;;
  15285. *) as_dir=$as_dir/ ;;
  15286. esac
  15287. for ac_prog in egrep
  15288. do
  15289. for ac_exec_ext in '' $ac_executable_extensions; do
  15290. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15291. as_fn_executable_p "$ac_path_EGREP" || continue
  15292. # Check for GNU ac_path_EGREP and select it if it is found.
  15293. # Check for GNU $ac_path_EGREP
  15294. case `"$ac_path_EGREP" --version 2>&1` in
  15295. *GNU*)
  15296. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15297. *)
  15298. ac_count=0
  15299. printf %s 0123456789 >"conftest.in"
  15300. while :
  15301. do
  15302. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15303. mv "conftest.tmp" "conftest.in"
  15304. cp "conftest.in" "conftest.nl"
  15305. printf "%s\n" 'EGREP' >> "conftest.nl"
  15306. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15307. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15308. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15309. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15310. # Best one so far, save it but keep looking for a better one
  15311. ac_cv_path_EGREP="$ac_path_EGREP"
  15312. ac_path_EGREP_max=$ac_count
  15313. fi
  15314. # 10*(2^10) chars as input seems more than enough
  15315. test $ac_count -gt 10 && break
  15316. done
  15317. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15318. esac
  15319. $ac_path_EGREP_found && break 3
  15320. done
  15321. done
  15322. done
  15323. IFS=$as_save_IFS
  15324. if test -z "$ac_cv_path_EGREP"; then
  15325. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15326. fi
  15327. else
  15328. ac_cv_path_EGREP=$EGREP
  15329. fi
  15330. fi
  15331. fi
  15332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15333. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15334. EGREP="$ac_cv_path_EGREP"
  15335. # Find a good install program. We prefer a C program (faster),
  15336. # so one script is as good as another. But avoid the broken or
  15337. # incompatible versions:
  15338. # SysV /etc/install, /usr/sbin/install
  15339. # SunOS /usr/etc/install
  15340. # IRIX /sbin/install
  15341. # AIX /bin/install
  15342. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15343. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15344. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15345. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15346. # OS/2's system install, which has a completely different semantic
  15347. # ./install, which can be erroneously created by make from ./install.sh.
  15348. # Reject install programs that cannot install multiple files.
  15349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15350. printf %s "checking for a BSD-compatible install... " >&6; }
  15351. if test -z "$INSTALL"; then
  15352. if test ${ac_cv_path_install+y}
  15353. then :
  15354. printf %s "(cached) " >&6
  15355. else $as_nop
  15356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15357. for as_dir in $PATH
  15358. do
  15359. IFS=$as_save_IFS
  15360. case $as_dir in #(((
  15361. '') as_dir=./ ;;
  15362. */) ;;
  15363. *) as_dir=$as_dir/ ;;
  15364. esac
  15365. # Account for fact that we put trailing slashes in our PATH walk.
  15366. case $as_dir in #((
  15367. ./ | /[cC]/* | \
  15368. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15369. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15370. /usr/ucb/* ) ;;
  15371. *)
  15372. # OSF1 and SCO ODT 3.0 have their own names for install.
  15373. # Don't use installbsd from OSF since it installs stuff as root
  15374. # by default.
  15375. for ac_prog in ginstall scoinst install; do
  15376. for ac_exec_ext in '' $ac_executable_extensions; do
  15377. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15378. if test $ac_prog = install &&
  15379. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15380. # AIX install. It has an incompatible calling convention.
  15381. :
  15382. elif test $ac_prog = install &&
  15383. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15384. # program-specific install script used by HP pwplus--don't use.
  15385. :
  15386. else
  15387. rm -rf conftest.one conftest.two conftest.dir
  15388. echo one > conftest.one
  15389. echo two > conftest.two
  15390. mkdir conftest.dir
  15391. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15392. test -s conftest.one && test -s conftest.two &&
  15393. test -s conftest.dir/conftest.one &&
  15394. test -s conftest.dir/conftest.two
  15395. then
  15396. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15397. break 3
  15398. fi
  15399. fi
  15400. fi
  15401. done
  15402. done
  15403. ;;
  15404. esac
  15405. done
  15406. IFS=$as_save_IFS
  15407. rm -rf conftest.one conftest.two conftest.dir
  15408. fi
  15409. if test ${ac_cv_path_install+y}; then
  15410. INSTALL=$ac_cv_path_install
  15411. else
  15412. # As a last resort, use the slow shell script. Don't cache a
  15413. # value for INSTALL within a source directory, because that will
  15414. # break other packages using the cache if that directory is
  15415. # removed, or if the value is a relative name.
  15416. INSTALL=$ac_install_sh
  15417. fi
  15418. fi
  15419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15420. printf "%s\n" "$INSTALL" >&6; }
  15421. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15422. # It thinks the first close brace ends the variable substitution.
  15423. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15424. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15425. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15427. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15428. set x ${MAKE-make}
  15429. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15430. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15431. then :
  15432. printf %s "(cached) " >&6
  15433. else $as_nop
  15434. cat >conftest.make <<\_ACEOF
  15435. SHELL = /bin/sh
  15436. all:
  15437. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15438. _ACEOF
  15439. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15440. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15441. *@@@%%%=?*=@@@%%%*)
  15442. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15443. *)
  15444. eval ac_cv_prog_make_${ac_make}_set=no;;
  15445. esac
  15446. rm -f conftest.make
  15447. fi
  15448. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15450. printf "%s\n" "yes" >&6; }
  15451. SET_MAKE=
  15452. else
  15453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15454. printf "%s\n" "no" >&6; }
  15455. SET_MAKE="MAKE=${MAKE-make}"
  15456. fi
  15457. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15458. if test -n "$ac_tool_prefix"; then
  15459. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15460. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15462. printf %s "checking for $ac_word... " >&6; }
  15463. if test ${ac_cv_path_PKG_CONFIG+y}
  15464. then :
  15465. printf %s "(cached) " >&6
  15466. else $as_nop
  15467. case $PKG_CONFIG in
  15468. [\\/]* | ?:[\\/]*)
  15469. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15470. ;;
  15471. *)
  15472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15473. for as_dir in $PATH
  15474. do
  15475. IFS=$as_save_IFS
  15476. case $as_dir in #(((
  15477. '') as_dir=./ ;;
  15478. */) ;;
  15479. *) as_dir=$as_dir/ ;;
  15480. esac
  15481. for ac_exec_ext in '' $ac_executable_extensions; do
  15482. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15483. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15485. break 2
  15486. fi
  15487. done
  15488. done
  15489. IFS=$as_save_IFS
  15490. ;;
  15491. esac
  15492. fi
  15493. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15494. if test -n "$PKG_CONFIG"; then
  15495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15496. printf "%s\n" "$PKG_CONFIG" >&6; }
  15497. else
  15498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15499. printf "%s\n" "no" >&6; }
  15500. fi
  15501. fi
  15502. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15503. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15504. # Extract the first word of "pkg-config", so it can be a program name with args.
  15505. set dummy pkg-config; ac_word=$2
  15506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15507. printf %s "checking for $ac_word... " >&6; }
  15508. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15509. then :
  15510. printf %s "(cached) " >&6
  15511. else $as_nop
  15512. case $ac_pt_PKG_CONFIG in
  15513. [\\/]* | ?:[\\/]*)
  15514. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15515. ;;
  15516. *)
  15517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15518. for as_dir in $PATH
  15519. do
  15520. IFS=$as_save_IFS
  15521. case $as_dir in #(((
  15522. '') as_dir=./ ;;
  15523. */) ;;
  15524. *) as_dir=$as_dir/ ;;
  15525. esac
  15526. for ac_exec_ext in '' $ac_executable_extensions; do
  15527. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15528. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15529. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15530. break 2
  15531. fi
  15532. done
  15533. done
  15534. IFS=$as_save_IFS
  15535. ;;
  15536. esac
  15537. fi
  15538. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15539. if test -n "$ac_pt_PKG_CONFIG"; then
  15540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15541. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15542. else
  15543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15544. printf "%s\n" "no" >&6; }
  15545. fi
  15546. if test "x$ac_pt_PKG_CONFIG" = x; then
  15547. PKG_CONFIG=""
  15548. else
  15549. case $cross_compiling:$ac_tool_warned in
  15550. yes:)
  15551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15552. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15553. ac_tool_warned=yes ;;
  15554. esac
  15555. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15556. fi
  15557. else
  15558. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15559. fi
  15560. fi
  15561. if test -n "$PKG_CONFIG"; then
  15562. _pkg_min_version=0.9.0
  15563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15564. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15565. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15567. printf "%s\n" "yes" >&6; }
  15568. else
  15569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15570. printf "%s\n" "no" >&6; }
  15571. PKG_CONFIG=""
  15572. fi
  15573. fi
  15574. if test -z "$AWK" ; then
  15575. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15576. fi
  15577. # Check whether --enable-largefile was given.
  15578. if test ${enable_largefile+y}
  15579. then :
  15580. enableval=$enable_largefile;
  15581. fi
  15582. if test "$enable_largefile" != no; then
  15583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15584. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15585. if test ${ac_cv_sys_largefile_CC+y}
  15586. then :
  15587. printf %s "(cached) " >&6
  15588. else $as_nop
  15589. ac_cv_sys_largefile_CC=no
  15590. if test "$GCC" != yes; then
  15591. ac_save_CC=$CC
  15592. while :; do
  15593. # IRIX 6.2 and later do not support large files by default,
  15594. # so use the C compiler's -n32 option if that helps.
  15595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15596. /* end confdefs.h. */
  15597. #include <sys/types.h>
  15598. /* Check that off_t can represent 2**63 - 1 correctly.
  15599. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15600. since some C++ compilers masquerading as C compilers
  15601. incorrectly reject 9223372036854775807. */
  15602. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15603. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15604. && LARGE_OFF_T % 2147483647 == 1)
  15605. ? 1 : -1];
  15606. int
  15607. main (void)
  15608. {
  15609. ;
  15610. return 0;
  15611. }
  15612. _ACEOF
  15613. if ac_fn_c_try_compile "$LINENO"
  15614. then :
  15615. break
  15616. fi
  15617. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15618. CC="$CC -n32"
  15619. if ac_fn_c_try_compile "$LINENO"
  15620. then :
  15621. ac_cv_sys_largefile_CC=' -n32'; break
  15622. fi
  15623. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15624. break
  15625. done
  15626. CC=$ac_save_CC
  15627. rm -f conftest.$ac_ext
  15628. fi
  15629. fi
  15630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15631. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15632. if test "$ac_cv_sys_largefile_CC" != no; then
  15633. CC=$CC$ac_cv_sys_largefile_CC
  15634. fi
  15635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15636. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15637. if test ${ac_cv_sys_file_offset_bits+y}
  15638. then :
  15639. printf %s "(cached) " >&6
  15640. else $as_nop
  15641. while :; do
  15642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15643. /* end confdefs.h. */
  15644. #include <sys/types.h>
  15645. /* Check that off_t can represent 2**63 - 1 correctly.
  15646. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15647. since some C++ compilers masquerading as C compilers
  15648. incorrectly reject 9223372036854775807. */
  15649. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15650. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15651. && LARGE_OFF_T % 2147483647 == 1)
  15652. ? 1 : -1];
  15653. int
  15654. main (void)
  15655. {
  15656. ;
  15657. return 0;
  15658. }
  15659. _ACEOF
  15660. if ac_fn_c_try_compile "$LINENO"
  15661. then :
  15662. ac_cv_sys_file_offset_bits=no; break
  15663. fi
  15664. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15666. /* end confdefs.h. */
  15667. #define _FILE_OFFSET_BITS 64
  15668. #include <sys/types.h>
  15669. /* Check that off_t can represent 2**63 - 1 correctly.
  15670. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15671. since some C++ compilers masquerading as C compilers
  15672. incorrectly reject 9223372036854775807. */
  15673. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15674. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15675. && LARGE_OFF_T % 2147483647 == 1)
  15676. ? 1 : -1];
  15677. int
  15678. main (void)
  15679. {
  15680. ;
  15681. return 0;
  15682. }
  15683. _ACEOF
  15684. if ac_fn_c_try_compile "$LINENO"
  15685. then :
  15686. ac_cv_sys_file_offset_bits=64; break
  15687. fi
  15688. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15689. ac_cv_sys_file_offset_bits=unknown
  15690. break
  15691. done
  15692. fi
  15693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15694. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15695. case $ac_cv_sys_file_offset_bits in #(
  15696. no | unknown) ;;
  15697. *)
  15698. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15699. ;;
  15700. esac
  15701. rm -rf conftest*
  15702. if test $ac_cv_sys_file_offset_bits = unknown; then
  15703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15704. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15705. if test ${ac_cv_sys_large_files+y}
  15706. then :
  15707. printf %s "(cached) " >&6
  15708. else $as_nop
  15709. while :; do
  15710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15711. /* end confdefs.h. */
  15712. #include <sys/types.h>
  15713. /* Check that off_t can represent 2**63 - 1 correctly.
  15714. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15715. since some C++ compilers masquerading as C compilers
  15716. incorrectly reject 9223372036854775807. */
  15717. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15718. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15719. && LARGE_OFF_T % 2147483647 == 1)
  15720. ? 1 : -1];
  15721. int
  15722. main (void)
  15723. {
  15724. ;
  15725. return 0;
  15726. }
  15727. _ACEOF
  15728. if ac_fn_c_try_compile "$LINENO"
  15729. then :
  15730. ac_cv_sys_large_files=no; break
  15731. fi
  15732. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15734. /* end confdefs.h. */
  15735. #define _LARGE_FILES 1
  15736. #include <sys/types.h>
  15737. /* Check that off_t can represent 2**63 - 1 correctly.
  15738. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15739. since some C++ compilers masquerading as C compilers
  15740. incorrectly reject 9223372036854775807. */
  15741. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15742. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15743. && LARGE_OFF_T % 2147483647 == 1)
  15744. ? 1 : -1];
  15745. int
  15746. main (void)
  15747. {
  15748. ;
  15749. return 0;
  15750. }
  15751. _ACEOF
  15752. if ac_fn_c_try_compile "$LINENO"
  15753. then :
  15754. ac_cv_sys_large_files=1; break
  15755. fi
  15756. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15757. ac_cv_sys_large_files=unknown
  15758. break
  15759. done
  15760. fi
  15761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15762. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15763. case $ac_cv_sys_large_files in #(
  15764. no | unknown) ;;
  15765. *)
  15766. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15767. ;;
  15768. esac
  15769. rm -rf conftest*
  15770. fi
  15771. fi
  15772. case "$host" in
  15773. *-*-mingw*)
  15774. # Except on msys, where make can't handle full pathnames (bug 1972)
  15775. ;;
  15776. *)
  15777. srcdir=`cd $srcdir && pwd`
  15778. ;;
  15779. esac
  15780. INCLUDE="-I$srcdir/include"
  15781. case "$host" in
  15782. *-*-nto-qnx*)
  15783. ;;
  15784. *)
  15785. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15786. ;;
  15787. esac
  15788. case "$host" in
  15789. *-*-haiku*)
  15790. LINKER='$(CXX)'
  15791. LIBTOOLLINKERTAG='CXX'
  15792. ;;
  15793. *)
  15794. LINKER='$(CC)'
  15795. LIBTOOLLINKERTAG='CC'
  15796. ;;
  15797. esac
  15798. if test x$srcdir != x.; then
  15799. INCLUDE="-Iinclude $INCLUDE"
  15800. elif test -d .git; then
  15801. as_fn_error $? "
  15802. *** When building from a git clone you should configure and build in a
  15803. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15804. " "$LINENO" 5
  15805. fi
  15806. BASE_CFLAGS=""
  15807. BASE_LDFLAGS=""
  15808. case "$host" in
  15809. *-*-cygwin*)
  15810. # We build SDL on cygwin without the UNIX emulation layer
  15811. save_CFLAGS="$CFLAGS"
  15812. have_no_cygwin=no
  15813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15814. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15815. CFLAGS="$save_CFLAGS -mno-cygwin"
  15816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15817. /* end confdefs.h. */
  15818. int
  15819. main (void)
  15820. {
  15821. ;
  15822. return 0;
  15823. }
  15824. _ACEOF
  15825. if ac_fn_c_try_compile "$LINENO"
  15826. then :
  15827. have_no_cygwin=yes
  15828. fi
  15829. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15831. printf "%s\n" "$have_no_cygwin" >&6; }
  15832. CFLAGS="$save_CFLAGS"
  15833. if test x$have_no_cygwin = xyes; then
  15834. BASE_CFLAGS="-mno-cygwin"
  15835. BASE_LDFLAGS="-mno-cygwin"
  15836. fi
  15837. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15838. ;;
  15839. esac
  15840. # Uncomment the following line if you want to force SDL and applications
  15841. # built with it to be compiled for a particular architecture.
  15842. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15843. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15844. # The default optimization for SDL is -O3 (Bug #31)
  15845. if test "x$orig_CFLAGS" = x; then
  15846. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15847. fi
  15848. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15849. BUILD_LDFLAGS="$LDFLAGS"
  15850. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15851. ## These are common directories to find software packages
  15852. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15853. # if test -d $path/include; then
  15854. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15855. # fi
  15856. # if test -d $path/lib; then
  15857. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15858. # fi
  15859. #done
  15860. SDL_CFLAGS="$BASE_CFLAGS"
  15861. SDL_LIBS="-lSDL2"
  15862. if test "x$BASE_LDFLAGS" != x; then
  15863. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15864. fi
  15865. if test "x$EXTRA_CFLAGS" != x; then
  15866. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15867. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15868. fi
  15869. if test "x$EXTRA_LDFLAGS" != x; then
  15870. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15871. fi
  15872. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15873. find_lib()
  15874. {
  15875. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15876. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15877. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15878. if test "$cross_compiling" = yes; then
  15879. host_lib_path=""
  15880. else
  15881. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15882. fi
  15883. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15884. 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`
  15885. if test x$lib != x; then
  15886. echo $lib
  15887. return
  15888. fi
  15889. done
  15890. }
  15891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15892. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15893. if test ${ac_cv_c_const+y}
  15894. then :
  15895. printf %s "(cached) " >&6
  15896. else $as_nop
  15897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15898. /* end confdefs.h. */
  15899. int
  15900. main (void)
  15901. {
  15902. #ifndef __cplusplus
  15903. /* Ultrix mips cc rejects this sort of thing. */
  15904. typedef int charset[2];
  15905. const charset cs = { 0, 0 };
  15906. /* SunOS 4.1.1 cc rejects this. */
  15907. char const *const *pcpcc;
  15908. char **ppc;
  15909. /* NEC SVR4.0.2 mips cc rejects this. */
  15910. struct point {int x, y;};
  15911. static struct point const zero = {0,0};
  15912. /* IBM XL C 1.02.0.0 rejects this.
  15913. It does not let you subtract one const X* pointer from another in
  15914. an arm of an if-expression whose if-part is not a constant
  15915. expression */
  15916. const char *g = "string";
  15917. pcpcc = &g + (g ? g-g : 0);
  15918. /* HPUX 7.0 cc rejects these. */
  15919. ++pcpcc;
  15920. ppc = (char**) pcpcc;
  15921. pcpcc = (char const *const *) ppc;
  15922. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15923. char tx;
  15924. char *t = &tx;
  15925. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15926. *t++ = 0;
  15927. if (s) return 0;
  15928. }
  15929. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15930. int x[] = {25, 17};
  15931. const int *foo = &x[0];
  15932. ++foo;
  15933. }
  15934. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15935. typedef const int *iptr;
  15936. iptr p = 0;
  15937. ++p;
  15938. }
  15939. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15940. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15941. struct s { int j; const int *ap[3]; } bx;
  15942. struct s *b = &bx; b->j = 5;
  15943. }
  15944. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15945. const int foo = 10;
  15946. if (!foo) return 0;
  15947. }
  15948. return !cs[0] && !zero.x;
  15949. #endif
  15950. ;
  15951. return 0;
  15952. }
  15953. _ACEOF
  15954. if ac_fn_c_try_compile "$LINENO"
  15955. then :
  15956. ac_cv_c_const=yes
  15957. else $as_nop
  15958. ac_cv_c_const=no
  15959. fi
  15960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15961. fi
  15962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15963. printf "%s\n" "$ac_cv_c_const" >&6; }
  15964. if test $ac_cv_c_const = no; then
  15965. printf "%s\n" "#define const /**/" >>confdefs.h
  15966. fi
  15967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15968. printf %s "checking for inline... " >&6; }
  15969. if test ${ac_cv_c_inline+y}
  15970. then :
  15971. printf %s "(cached) " >&6
  15972. else $as_nop
  15973. ac_cv_c_inline=no
  15974. for ac_kw in inline __inline__ __inline; do
  15975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15976. /* end confdefs.h. */
  15977. #ifndef __cplusplus
  15978. typedef int foo_t;
  15979. static $ac_kw foo_t static_foo (void) {return 0; }
  15980. $ac_kw foo_t foo (void) {return 0; }
  15981. #endif
  15982. _ACEOF
  15983. if ac_fn_c_try_compile "$LINENO"
  15984. then :
  15985. ac_cv_c_inline=$ac_kw
  15986. fi
  15987. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15988. test "$ac_cv_c_inline" != no && break
  15989. done
  15990. fi
  15991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15992. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15993. case $ac_cv_c_inline in
  15994. inline | yes) ;;
  15995. *)
  15996. case $ac_cv_c_inline in
  15997. no) ac_val=;;
  15998. *) ac_val=$ac_cv_c_inline;;
  15999. esac
  16000. cat >>confdefs.h <<_ACEOF
  16001. #ifndef __cplusplus
  16002. #define inline $ac_val
  16003. #endif
  16004. _ACEOF
  16005. ;;
  16006. esac
  16007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16008. printf %s "checking for working volatile... " >&6; }
  16009. if test ${ac_cv_c_volatile+y}
  16010. then :
  16011. printf %s "(cached) " >&6
  16012. else $as_nop
  16013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16014. /* end confdefs.h. */
  16015. int
  16016. main (void)
  16017. {
  16018. volatile int x;
  16019. int * volatile y = (int *) 0;
  16020. return !x && !y;
  16021. ;
  16022. return 0;
  16023. }
  16024. _ACEOF
  16025. if ac_fn_c_try_compile "$LINENO"
  16026. then :
  16027. ac_cv_c_volatile=yes
  16028. else $as_nop
  16029. ac_cv_c_volatile=no
  16030. fi
  16031. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16032. fi
  16033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16034. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16035. if test $ac_cv_c_volatile = no; then
  16036. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16037. fi
  16038. # Check whether --enable-assertions was given.
  16039. if test ${enable_assertions+y}
  16040. then :
  16041. enableval=$enable_assertions;
  16042. else $as_nop
  16043. enable_assertions=auto
  16044. fi
  16045. case "$enable_assertions" in
  16046. auto) # Use optimization settings to determine assertion level
  16047. ;;
  16048. disabled)
  16049. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16050. ;;
  16051. release)
  16052. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16053. ;;
  16054. enabled)
  16055. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16056. ;;
  16057. paranoid)
  16058. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16059. ;;
  16060. *)
  16061. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16062. ;;
  16063. esac
  16064. 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"
  16065. # Check whether --enable-dependency-tracking was given.
  16066. if test ${enable_dependency_tracking+y}
  16067. then :
  16068. enableval=$enable_dependency_tracking;
  16069. else $as_nop
  16070. enable_dependency_tracking=yes
  16071. fi
  16072. if test x$enable_dependency_tracking = xyes; then
  16073. have_gcc_mmd_mt=no
  16074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16075. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16077. /* end confdefs.h. */
  16078. #if !defined(__GNUC__) || __GNUC__ < 3
  16079. #error Dependency tracking requires GCC 3.0 or newer
  16080. #endif
  16081. int
  16082. main (void)
  16083. {
  16084. ;
  16085. return 0;
  16086. }
  16087. _ACEOF
  16088. if ac_fn_c_try_compile "$LINENO"
  16089. then :
  16090. have_gcc_mmd_mt=yes
  16091. fi
  16092. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16094. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16095. if test x$have_gcc_mmd_mt = xyes; then
  16096. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16097. fi
  16098. fi
  16099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16100. printf %s "checking for linker option --no-undefined... " >&6; }
  16101. have_no_undefined=no
  16102. case "$host" in
  16103. *-*-openbsd*)
  16104. ;;
  16105. *)
  16106. save_LDFLAGS="$LDFLAGS"
  16107. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16109. /* end confdefs.h. */
  16110. int
  16111. main (void)
  16112. {
  16113. ;
  16114. return 0;
  16115. }
  16116. _ACEOF
  16117. if ac_fn_c_try_link "$LINENO"
  16118. then :
  16119. have_no_undefined=yes
  16120. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16121. fi
  16122. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16123. conftest$ac_exeext conftest.$ac_ext
  16124. LDFLAGS="$save_LDFLAGS"
  16125. ;;
  16126. esac
  16127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16128. printf "%s\n" "$have_no_undefined" >&6; }
  16129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16130. printf %s "checking for linker option --dynamicbase... " >&6; }
  16131. have_dynamicbase=no
  16132. case "$host" in
  16133. *)
  16134. save_LDFLAGS="$LDFLAGS"
  16135. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16137. /* end confdefs.h. */
  16138. int
  16139. main (void)
  16140. {
  16141. ;
  16142. return 0;
  16143. }
  16144. _ACEOF
  16145. if ac_fn_c_try_link "$LINENO"
  16146. then :
  16147. have_dynamicbase=yes
  16148. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16149. fi
  16150. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16151. conftest$ac_exeext conftest.$ac_ext
  16152. LDFLAGS="$save_LDFLAGS"
  16153. ;;
  16154. esac
  16155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16156. printf "%s\n" "$have_dynamicbase" >&6; }
  16157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16158. printf %s "checking for linker option --nxcompat... " >&6; }
  16159. have_nxcompat=no
  16160. case "$host" in
  16161. *)
  16162. save_LDFLAGS="$LDFLAGS"
  16163. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16165. /* end confdefs.h. */
  16166. int
  16167. main (void)
  16168. {
  16169. ;
  16170. return 0;
  16171. }
  16172. _ACEOF
  16173. if ac_fn_c_try_link "$LINENO"
  16174. then :
  16175. have_nxcompat=yes
  16176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16177. fi
  16178. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16179. conftest$ac_exeext conftest.$ac_ext
  16180. LDFLAGS="$save_LDFLAGS"
  16181. ;;
  16182. esac
  16183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16184. printf "%s\n" "$have_nxcompat" >&6; }
  16185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16186. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16187. have_high_entropy_va=no
  16188. case "$host" in
  16189. *)
  16190. save_LDFLAGS="$LDFLAGS"
  16191. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16193. /* end confdefs.h. */
  16194. int
  16195. main (void)
  16196. {
  16197. ;
  16198. return 0;
  16199. }
  16200. _ACEOF
  16201. if ac_fn_c_try_link "$LINENO"
  16202. then :
  16203. have_high_entropy_va=yes
  16204. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16205. fi
  16206. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16207. conftest$ac_exeext conftest.$ac_ext
  16208. LDFLAGS="$save_LDFLAGS"
  16209. ;;
  16210. esac
  16211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16212. printf "%s\n" "$have_high_entropy_va" >&6; }
  16213. # Check whether --enable-libc was given.
  16214. if test ${enable_libc+y}
  16215. then :
  16216. enableval=$enable_libc;
  16217. else $as_nop
  16218. enable_libc=yes
  16219. fi
  16220. if test x$enable_libc = xyes; then
  16221. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16222. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16223. if test "x$ac_cv_header_sys_types_h" = xyes
  16224. then :
  16225. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16226. fi
  16227. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16228. if test "x$ac_cv_header_stdio_h" = xyes
  16229. then :
  16230. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16231. fi
  16232. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16233. if test "x$ac_cv_header_stdlib_h" = xyes
  16234. then :
  16235. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16236. fi
  16237. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16238. if test "x$ac_cv_header_stddef_h" = xyes
  16239. then :
  16240. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16241. fi
  16242. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16243. if test "x$ac_cv_header_stdarg_h" = xyes
  16244. then :
  16245. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16246. fi
  16247. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16248. if test "x$ac_cv_header_malloc_h" = xyes
  16249. then :
  16250. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16251. fi
  16252. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16253. if test "x$ac_cv_header_memory_h" = xyes
  16254. then :
  16255. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16256. fi
  16257. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16258. if test "x$ac_cv_header_string_h" = xyes
  16259. then :
  16260. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16261. fi
  16262. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16263. if test "x$ac_cv_header_strings_h" = xyes
  16264. then :
  16265. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16266. fi
  16267. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16268. if test "x$ac_cv_header_wchar_h" = xyes
  16269. then :
  16270. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16271. fi
  16272. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16273. if test "x$ac_cv_header_inttypes_h" = xyes
  16274. then :
  16275. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16276. fi
  16277. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16278. if test "x$ac_cv_header_stdint_h" = xyes
  16279. then :
  16280. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16281. fi
  16282. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16283. if test "x$ac_cv_header_limits_h" = xyes
  16284. then :
  16285. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16286. fi
  16287. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16288. if test "x$ac_cv_header_ctype_h" = xyes
  16289. then :
  16290. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16291. fi
  16292. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16293. if test "x$ac_cv_header_math_h" = xyes
  16294. then :
  16295. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16296. fi
  16297. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16298. if test "x$ac_cv_header_float_h" = xyes
  16299. then :
  16300. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16301. fi
  16302. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16303. if test "x$ac_cv_header_iconv_h" = xyes
  16304. then :
  16305. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16306. fi
  16307. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16308. if test "x$ac_cv_header_signal_h" = xyes
  16309. then :
  16310. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16311. fi
  16312. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16313. if test "x$ac_cv_type_size_t" = xyes
  16314. then :
  16315. else $as_nop
  16316. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16317. fi
  16318. ac_ext=c
  16319. ac_cpp='$CPP $CPPFLAGS'
  16320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16324. printf %s "checking how to run the C preprocessor... " >&6; }
  16325. # On Suns, sometimes $CPP names a directory.
  16326. if test -n "$CPP" && test -d "$CPP"; then
  16327. CPP=
  16328. fi
  16329. if test -z "$CPP"; then
  16330. if test ${ac_cv_prog_CPP+y}
  16331. then :
  16332. printf %s "(cached) " >&6
  16333. else $as_nop
  16334. # Double quotes because $CC needs to be expanded
  16335. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16336. do
  16337. ac_preproc_ok=false
  16338. for ac_c_preproc_warn_flag in '' yes
  16339. do
  16340. # Use a header file that comes with gcc, so configuring glibc
  16341. # with a fresh cross-compiler works.
  16342. # On the NeXT, cc -E runs the code through the compiler's parser,
  16343. # not just through cpp. "Syntax error" is here to catch this case.
  16344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16345. /* end confdefs.h. */
  16346. #include <limits.h>
  16347. Syntax error
  16348. _ACEOF
  16349. if ac_fn_c_try_cpp "$LINENO"
  16350. then :
  16351. else $as_nop
  16352. # Broken: fails on valid input.
  16353. continue
  16354. fi
  16355. rm -f conftest.err conftest.i conftest.$ac_ext
  16356. # OK, works on sane cases. Now check whether nonexistent headers
  16357. # can be detected and how.
  16358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16359. /* end confdefs.h. */
  16360. #include <ac_nonexistent.h>
  16361. _ACEOF
  16362. if ac_fn_c_try_cpp "$LINENO"
  16363. then :
  16364. # Broken: success on invalid input.
  16365. continue
  16366. else $as_nop
  16367. # Passes both tests.
  16368. ac_preproc_ok=:
  16369. break
  16370. fi
  16371. rm -f conftest.err conftest.i conftest.$ac_ext
  16372. done
  16373. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16374. rm -f conftest.i conftest.err conftest.$ac_ext
  16375. if $ac_preproc_ok
  16376. then :
  16377. break
  16378. fi
  16379. done
  16380. ac_cv_prog_CPP=$CPP
  16381. fi
  16382. CPP=$ac_cv_prog_CPP
  16383. else
  16384. ac_cv_prog_CPP=$CPP
  16385. fi
  16386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16387. printf "%s\n" "$CPP" >&6; }
  16388. ac_preproc_ok=false
  16389. for ac_c_preproc_warn_flag in '' yes
  16390. do
  16391. # Use a header file that comes with gcc, so configuring glibc
  16392. # with a fresh cross-compiler works.
  16393. # On the NeXT, cc -E runs the code through the compiler's parser,
  16394. # not just through cpp. "Syntax error" is here to catch this case.
  16395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16396. /* end confdefs.h. */
  16397. #include <limits.h>
  16398. Syntax error
  16399. _ACEOF
  16400. if ac_fn_c_try_cpp "$LINENO"
  16401. then :
  16402. else $as_nop
  16403. # Broken: fails on valid input.
  16404. continue
  16405. fi
  16406. rm -f conftest.err conftest.i conftest.$ac_ext
  16407. # OK, works on sane cases. Now check whether nonexistent headers
  16408. # can be detected and how.
  16409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16410. /* end confdefs.h. */
  16411. #include <ac_nonexistent.h>
  16412. _ACEOF
  16413. if ac_fn_c_try_cpp "$LINENO"
  16414. then :
  16415. # Broken: success on invalid input.
  16416. continue
  16417. else $as_nop
  16418. # Passes both tests.
  16419. ac_preproc_ok=:
  16420. break
  16421. fi
  16422. rm -f conftest.err conftest.i conftest.$ac_ext
  16423. done
  16424. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16425. rm -f conftest.i conftest.err conftest.$ac_ext
  16426. if $ac_preproc_ok
  16427. then :
  16428. else $as_nop
  16429. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16430. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16431. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16432. See \`config.log' for more details" "$LINENO" 5; }
  16433. fi
  16434. ac_ext=c
  16435. ac_cpp='$CPP $CPPFLAGS'
  16436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16440. printf %s "checking for M_PI in math.h... " >&6; }
  16441. if test ${ac_cv_define_M_PI+y}
  16442. then :
  16443. printf %s "(cached) " >&6
  16444. else $as_nop
  16445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16446. /* end confdefs.h. */
  16447. #include <math.h>
  16448. #ifdef M_PI
  16449. YES_IS_DEFINED
  16450. #endif
  16451. _ACEOF
  16452. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16453. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16454. then :
  16455. ac_cv_define_M_PI=yes
  16456. else $as_nop
  16457. ac_cv_define_M_PI=no
  16458. fi
  16459. rm -rf conftest*
  16460. fi
  16461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16462. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16463. if test "$ac_cv_define_M_PI" = "yes" ; then
  16464. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16465. fi
  16466. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16467. # for constant arguments. Useless!
  16468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16469. printf %s "checking for working alloca.h... " >&6; }
  16470. if test ${ac_cv_working_alloca_h+y}
  16471. then :
  16472. printf %s "(cached) " >&6
  16473. else $as_nop
  16474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16475. /* end confdefs.h. */
  16476. #include <alloca.h>
  16477. int
  16478. main (void)
  16479. {
  16480. char *p = (char *) alloca (2 * sizeof (int));
  16481. if (p) return 0;
  16482. ;
  16483. return 0;
  16484. }
  16485. _ACEOF
  16486. if ac_fn_c_try_link "$LINENO"
  16487. then :
  16488. ac_cv_working_alloca_h=yes
  16489. else $as_nop
  16490. ac_cv_working_alloca_h=no
  16491. fi
  16492. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16493. conftest$ac_exeext conftest.$ac_ext
  16494. fi
  16495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16496. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16497. if test $ac_cv_working_alloca_h = yes; then
  16498. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16499. fi
  16500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16501. printf %s "checking for alloca... " >&6; }
  16502. if test ${ac_cv_func_alloca_works+y}
  16503. then :
  16504. printf %s "(cached) " >&6
  16505. else $as_nop
  16506. if test $ac_cv_working_alloca_h = yes; then
  16507. ac_cv_func_alloca_works=yes
  16508. else
  16509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16510. /* end confdefs.h. */
  16511. #include <stdlib.h>
  16512. #include <stddef.h>
  16513. #ifndef alloca
  16514. # ifdef __GNUC__
  16515. # define alloca __builtin_alloca
  16516. # elif defined _MSC_VER
  16517. # include <malloc.h>
  16518. # define alloca _alloca
  16519. # else
  16520. # ifdef __cplusplus
  16521. extern "C"
  16522. # endif
  16523. void *alloca (size_t);
  16524. # endif
  16525. #endif
  16526. int
  16527. main (void)
  16528. {
  16529. char *p = (char *) alloca (1);
  16530. if (p) return 0;
  16531. ;
  16532. return 0;
  16533. }
  16534. _ACEOF
  16535. if ac_fn_c_try_link "$LINENO"
  16536. then :
  16537. ac_cv_func_alloca_works=yes
  16538. else $as_nop
  16539. ac_cv_func_alloca_works=no
  16540. fi
  16541. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16542. conftest$ac_exeext conftest.$ac_ext
  16543. fi
  16544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16545. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16546. fi
  16547. if test $ac_cv_func_alloca_works = yes; then
  16548. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16549. else
  16550. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16551. # that cause trouble. Some versions do not even contain alloca or
  16552. # contain a buggy version. If you still want to use their alloca,
  16553. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16554. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16555. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16557. printf %s "checking stack direction for C alloca... " >&6; }
  16558. if test ${ac_cv_c_stack_direction+y}
  16559. then :
  16560. printf %s "(cached) " >&6
  16561. else $as_nop
  16562. if test "$cross_compiling" = yes
  16563. then :
  16564. ac_cv_c_stack_direction=0
  16565. else $as_nop
  16566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16567. /* end confdefs.h. */
  16568. $ac_includes_default
  16569. int
  16570. find_stack_direction (int *addr, int depth)
  16571. {
  16572. int dir, dummy = 0;
  16573. if (! addr)
  16574. addr = &dummy;
  16575. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16576. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16577. return dir + dummy;
  16578. }
  16579. int
  16580. main (int argc, char **argv)
  16581. {
  16582. return find_stack_direction (0, argc + !argv + 20) < 0;
  16583. }
  16584. _ACEOF
  16585. if ac_fn_c_try_run "$LINENO"
  16586. then :
  16587. ac_cv_c_stack_direction=1
  16588. else $as_nop
  16589. ac_cv_c_stack_direction=-1
  16590. fi
  16591. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16592. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16593. fi
  16594. fi
  16595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16596. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16597. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16598. fi
  16599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  16600. printf %s "checking for working memcmp... " >&6; }
  16601. if test ${ac_cv_func_memcmp_working+y}
  16602. then :
  16603. printf %s "(cached) " >&6
  16604. else $as_nop
  16605. if test "$cross_compiling" = yes
  16606. then :
  16607. ac_cv_func_memcmp_working=no
  16608. else $as_nop
  16609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16610. /* end confdefs.h. */
  16611. $ac_includes_default
  16612. int
  16613. main (void)
  16614. {
  16615. /* Some versions of memcmp are not 8-bit clean. */
  16616. char c0 = '\100', c1 = '\200', c2 = '\201';
  16617. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16618. return 1;
  16619. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16620. or more and with at least one buffer not starting on a 4-byte boundary.
  16621. William Lewis provided this test program. */
  16622. {
  16623. char foo[21];
  16624. char bar[21];
  16625. int i;
  16626. for (i = 0; i < 4; i++)
  16627. {
  16628. char *a = foo + i;
  16629. char *b = bar + i;
  16630. strcpy (a, "--------01111111");
  16631. strcpy (b, "--------10000000");
  16632. if (memcmp (a, b, 16) >= 0)
  16633. return 1;
  16634. }
  16635. return 0;
  16636. }
  16637. ;
  16638. return 0;
  16639. }
  16640. _ACEOF
  16641. if ac_fn_c_try_run "$LINENO"
  16642. then :
  16643. ac_cv_func_memcmp_working=yes
  16644. else $as_nop
  16645. ac_cv_func_memcmp_working=no
  16646. fi
  16647. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16648. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16649. fi
  16650. fi
  16651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  16652. printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
  16653. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16654. *" memcmp.$ac_objext "* ) ;;
  16655. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16656. ;;
  16657. esac
  16658. if test x$ac_cv_func_memcmp_working = xyes; then
  16659. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16660. fi
  16661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  16662. printf %s "checking for working strtod... " >&6; }
  16663. if test ${ac_cv_func_strtod+y}
  16664. then :
  16665. printf %s "(cached) " >&6
  16666. else $as_nop
  16667. if test "$cross_compiling" = yes
  16668. then :
  16669. ac_cv_func_strtod=no
  16670. else $as_nop
  16671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16672. /* end confdefs.h. */
  16673. $ac_includes_default
  16674. #ifndef strtod
  16675. double strtod ();
  16676. #endif
  16677. int
  16678. main (void)
  16679. {
  16680. {
  16681. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  16682. char *string = " +69";
  16683. char *term;
  16684. double value;
  16685. value = strtod (string, &term);
  16686. if (value != 69 || term != (string + 4))
  16687. return 1;
  16688. }
  16689. {
  16690. /* Under Solaris 2.4, strtod returns the wrong value for the
  16691. terminating character under some conditions. */
  16692. char *string = "NaN";
  16693. char *term;
  16694. strtod (string, &term);
  16695. if (term != string && *(term - 1) == 0)
  16696. return 1;
  16697. }
  16698. return 0;
  16699. }
  16700. _ACEOF
  16701. if ac_fn_c_try_run "$LINENO"
  16702. then :
  16703. ac_cv_func_strtod=yes
  16704. else $as_nop
  16705. ac_cv_func_strtod=no
  16706. fi
  16707. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16708. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16709. fi
  16710. fi
  16711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  16712. printf "%s\n" "$ac_cv_func_strtod" >&6; }
  16713. if test $ac_cv_func_strtod = no; then
  16714. case " $LIBOBJS " in
  16715. *" strtod.$ac_objext "* ) ;;
  16716. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  16717. ;;
  16718. esac
  16719. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  16720. if test "x$ac_cv_func_pow" = xyes
  16721. then :
  16722. fi
  16723. if test $ac_cv_func_pow = no; then
  16724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16725. printf %s "checking for pow in -lm... " >&6; }
  16726. if test ${ac_cv_lib_m_pow+y}
  16727. then :
  16728. printf %s "(cached) " >&6
  16729. else $as_nop
  16730. ac_check_lib_save_LIBS=$LIBS
  16731. LIBS="-lm $LIBS"
  16732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16733. /* end confdefs.h. */
  16734. /* Override any GCC internal prototype to avoid an error.
  16735. Use char because int might match the return type of a GCC
  16736. builtin and then its argument prototype would still apply. */
  16737. char pow ();
  16738. int
  16739. main (void)
  16740. {
  16741. return pow ();
  16742. ;
  16743. return 0;
  16744. }
  16745. _ACEOF
  16746. if ac_fn_c_try_link "$LINENO"
  16747. then :
  16748. ac_cv_lib_m_pow=yes
  16749. else $as_nop
  16750. ac_cv_lib_m_pow=no
  16751. fi
  16752. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16753. conftest$ac_exeext conftest.$ac_ext
  16754. LIBS=$ac_check_lib_save_LIBS
  16755. fi
  16756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  16757. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  16758. if test "x$ac_cv_lib_m_pow" = xyes
  16759. then :
  16760. POW_LIB=-lm
  16761. else $as_nop
  16762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  16763. printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  16764. fi
  16765. fi
  16766. fi
  16767. if test x$ac_cv_func_strtod = xyes; then
  16768. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16769. fi
  16770. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16771. if test "x$ac_cv_func_mprotect" = xyes
  16772. then :
  16773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16774. /* end confdefs.h. */
  16775. #include <sys/types.h>
  16776. #include <sys/mman.h>
  16777. int
  16778. main (void)
  16779. {
  16780. ;
  16781. return 0;
  16782. }
  16783. _ACEOF
  16784. if ac_fn_c_try_compile "$LINENO"
  16785. then :
  16786. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16787. fi
  16788. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16789. fi
  16790. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16791. if test "x$ac_cv_func_malloc" = xyes
  16792. then :
  16793. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16794. fi
  16795. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16796. if test "x$ac_cv_func_calloc" = xyes
  16797. then :
  16798. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16799. fi
  16800. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16801. if test "x$ac_cv_func_realloc" = xyes
  16802. then :
  16803. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16804. fi
  16805. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16806. if test "x$ac_cv_func_free" = xyes
  16807. then :
  16808. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16809. fi
  16810. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16811. if test "x$ac_cv_func_getenv" = xyes
  16812. then :
  16813. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16814. fi
  16815. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16816. if test "x$ac_cv_func_setenv" = xyes
  16817. then :
  16818. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16819. fi
  16820. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16821. if test "x$ac_cv_func_putenv" = xyes
  16822. then :
  16823. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16824. fi
  16825. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16826. if test "x$ac_cv_func_unsetenv" = xyes
  16827. then :
  16828. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16829. fi
  16830. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16831. if test "x$ac_cv_func_bsearch" = xyes
  16832. then :
  16833. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16834. fi
  16835. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16836. if test "x$ac_cv_func_qsort" = xyes
  16837. then :
  16838. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16839. fi
  16840. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16841. if test "x$ac_cv_func_abs" = xyes
  16842. then :
  16843. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16844. fi
  16845. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16846. if test "x$ac_cv_func_bcopy" = xyes
  16847. then :
  16848. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16849. fi
  16850. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16851. if test "x$ac_cv_func_memset" = xyes
  16852. then :
  16853. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16854. fi
  16855. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16856. if test "x$ac_cv_func_memcpy" = xyes
  16857. then :
  16858. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16859. fi
  16860. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16861. if test "x$ac_cv_func_memmove" = xyes
  16862. then :
  16863. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16864. fi
  16865. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16866. if test "x$ac_cv_func_wcslen" = xyes
  16867. then :
  16868. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16869. fi
  16870. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16871. if test "x$ac_cv_func_wcslcpy" = xyes
  16872. then :
  16873. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16874. fi
  16875. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16876. if test "x$ac_cv_func_wcslcat" = xyes
  16877. then :
  16878. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16879. fi
  16880. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16881. if test "x$ac_cv_func__wcsdup" = xyes
  16882. then :
  16883. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16884. fi
  16885. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16886. if test "x$ac_cv_func_wcsdup" = xyes
  16887. then :
  16888. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16889. fi
  16890. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16891. if test "x$ac_cv_func_wcsstr" = xyes
  16892. then :
  16893. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16894. fi
  16895. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16896. if test "x$ac_cv_func_wcscmp" = xyes
  16897. then :
  16898. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16899. fi
  16900. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16901. if test "x$ac_cv_func_wcsncmp" = xyes
  16902. then :
  16903. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16904. fi
  16905. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16906. if test "x$ac_cv_func_wcscasecmp" = xyes
  16907. then :
  16908. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16909. fi
  16910. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16911. if test "x$ac_cv_func__wcsicmp" = xyes
  16912. then :
  16913. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16914. fi
  16915. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16916. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16917. then :
  16918. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16919. fi
  16920. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16921. if test "x$ac_cv_func__wcsnicmp" = xyes
  16922. then :
  16923. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16924. fi
  16925. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16926. if test "x$ac_cv_func_strlen" = xyes
  16927. then :
  16928. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16929. fi
  16930. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16931. if test "x$ac_cv_func_strlcpy" = xyes
  16932. then :
  16933. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16934. fi
  16935. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16936. if test "x$ac_cv_func_strlcat" = xyes
  16937. then :
  16938. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16939. fi
  16940. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16941. if test "x$ac_cv_func__strrev" = xyes
  16942. then :
  16943. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16944. fi
  16945. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16946. if test "x$ac_cv_func__strupr" = xyes
  16947. then :
  16948. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16949. fi
  16950. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16951. if test "x$ac_cv_func__strlwr" = xyes
  16952. then :
  16953. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16954. fi
  16955. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16956. if test "x$ac_cv_func_index" = xyes
  16957. then :
  16958. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16959. fi
  16960. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16961. if test "x$ac_cv_func_rindex" = xyes
  16962. then :
  16963. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16964. fi
  16965. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16966. if test "x$ac_cv_func_strchr" = xyes
  16967. then :
  16968. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16969. fi
  16970. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16971. if test "x$ac_cv_func_strrchr" = xyes
  16972. then :
  16973. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16974. fi
  16975. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16976. if test "x$ac_cv_func_strstr" = xyes
  16977. then :
  16978. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16979. fi
  16980. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16981. if test "x$ac_cv_func_strtok_r" = xyes
  16982. then :
  16983. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16984. fi
  16985. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16986. if test "x$ac_cv_func_itoa" = xyes
  16987. then :
  16988. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16989. fi
  16990. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16991. if test "x$ac_cv_func__ltoa" = xyes
  16992. then :
  16993. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16994. fi
  16995. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16996. if test "x$ac_cv_func__uitoa" = xyes
  16997. then :
  16998. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16999. fi
  17000. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17001. if test "x$ac_cv_func__ultoa" = xyes
  17002. then :
  17003. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17004. fi
  17005. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17006. if test "x$ac_cv_func_strtol" = xyes
  17007. then :
  17008. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17009. fi
  17010. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17011. if test "x$ac_cv_func_strtoul" = xyes
  17012. then :
  17013. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17014. fi
  17015. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17016. if test "x$ac_cv_func__i64toa" = xyes
  17017. then :
  17018. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17019. fi
  17020. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17021. if test "x$ac_cv_func__ui64toa" = xyes
  17022. then :
  17023. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17024. fi
  17025. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17026. if test "x$ac_cv_func_strtoll" = xyes
  17027. then :
  17028. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17029. fi
  17030. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17031. if test "x$ac_cv_func_strtoull" = xyes
  17032. then :
  17033. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17034. fi
  17035. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17036. if test "x$ac_cv_func_atoi" = xyes
  17037. then :
  17038. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17039. fi
  17040. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17041. if test "x$ac_cv_func_atof" = xyes
  17042. then :
  17043. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17044. fi
  17045. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17046. if test "x$ac_cv_func_strcmp" = xyes
  17047. then :
  17048. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17049. fi
  17050. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17051. if test "x$ac_cv_func_strncmp" = xyes
  17052. then :
  17053. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17054. fi
  17055. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17056. if test "x$ac_cv_func__stricmp" = xyes
  17057. then :
  17058. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17059. fi
  17060. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17061. if test "x$ac_cv_func_strcasecmp" = xyes
  17062. then :
  17063. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17064. fi
  17065. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17066. if test "x$ac_cv_func__strnicmp" = xyes
  17067. then :
  17068. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17069. fi
  17070. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17071. if test "x$ac_cv_func_strncasecmp" = xyes
  17072. then :
  17073. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17074. fi
  17075. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17076. if test "x$ac_cv_func_vsscanf" = xyes
  17077. then :
  17078. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17079. fi
  17080. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17081. if test "x$ac_cv_func_vsnprintf" = xyes
  17082. then :
  17083. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17086. if test "x$ac_cv_func_fopen64" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17091. if test "x$ac_cv_func_fseeko" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17096. if test "x$ac_cv_func_fseeko64" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17101. if test "x$ac_cv_func_sigaction" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17106. if test "x$ac_cv_func_setjmp" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17111. if test "x$ac_cv_func_nanosleep" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17116. if test "x$ac_cv_func_sysconf" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17121. if test "x$ac_cv_func_sysctlbyname" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17126. if test "x$ac_cv_func_getauxval" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17131. if test "x$ac_cv_func_elf_aux_info" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17136. if test "x$ac_cv_func_poll" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17139. fi
  17140. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17141. if test "x$ac_cv_func__Exit" = xyes
  17142. then :
  17143. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17144. fi
  17145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17146. printf %s "checking for pow in -lm... " >&6; }
  17147. if test ${ac_cv_lib_m_pow+y}
  17148. then :
  17149. printf %s "(cached) " >&6
  17150. else $as_nop
  17151. ac_check_lib_save_LIBS=$LIBS
  17152. LIBS="-lm $LIBS"
  17153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17154. /* end confdefs.h. */
  17155. /* Override any GCC internal prototype to avoid an error.
  17156. Use char because int might match the return type of a GCC
  17157. builtin and then its argument prototype would still apply. */
  17158. char pow ();
  17159. int
  17160. main (void)
  17161. {
  17162. return pow ();
  17163. ;
  17164. return 0;
  17165. }
  17166. _ACEOF
  17167. if ac_fn_c_try_link "$LINENO"
  17168. then :
  17169. ac_cv_lib_m_pow=yes
  17170. else $as_nop
  17171. ac_cv_lib_m_pow=no
  17172. fi
  17173. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17174. conftest$ac_exeext conftest.$ac_ext
  17175. LIBS=$ac_check_lib_save_LIBS
  17176. fi
  17177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17178. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17179. if test "x$ac_cv_lib_m_pow" = xyes
  17180. then :
  17181. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17182. fi
  17183. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17184. if test "x$ac_cv_func_acos" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17187. fi
  17188. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17189. if test "x$ac_cv_func_acosf" = xyes
  17190. then :
  17191. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17192. fi
  17193. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17194. if test "x$ac_cv_func_asin" = xyes
  17195. then :
  17196. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17197. fi
  17198. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17199. if test "x$ac_cv_func_asinf" = xyes
  17200. then :
  17201. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17202. fi
  17203. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17204. if test "x$ac_cv_func_atan" = xyes
  17205. then :
  17206. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17207. fi
  17208. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17209. if test "x$ac_cv_func_atanf" = xyes
  17210. then :
  17211. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17212. fi
  17213. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17214. if test "x$ac_cv_func_atan2" = xyes
  17215. then :
  17216. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17217. fi
  17218. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17219. if test "x$ac_cv_func_atan2f" = xyes
  17220. then :
  17221. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17222. fi
  17223. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17224. if test "x$ac_cv_func_ceil" = xyes
  17225. then :
  17226. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17227. fi
  17228. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17229. if test "x$ac_cv_func_ceilf" = xyes
  17230. then :
  17231. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17232. fi
  17233. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17234. if test "x$ac_cv_func_copysign" = xyes
  17235. then :
  17236. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17237. fi
  17238. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17239. if test "x$ac_cv_func_copysignf" = xyes
  17240. then :
  17241. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17242. fi
  17243. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17244. if test "x$ac_cv_func_cos" = xyes
  17245. then :
  17246. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17247. fi
  17248. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17249. if test "x$ac_cv_func_cosf" = xyes
  17250. then :
  17251. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17252. fi
  17253. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17254. if test "x$ac_cv_func_exp" = xyes
  17255. then :
  17256. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17257. fi
  17258. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17259. if test "x$ac_cv_func_expf" = xyes
  17260. then :
  17261. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17262. fi
  17263. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17264. if test "x$ac_cv_func_fabs" = xyes
  17265. then :
  17266. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17267. fi
  17268. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17269. if test "x$ac_cv_func_fabsf" = xyes
  17270. then :
  17271. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17272. fi
  17273. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17274. if test "x$ac_cv_func_floor" = xyes
  17275. then :
  17276. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17277. fi
  17278. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17279. if test "x$ac_cv_func_floorf" = xyes
  17280. then :
  17281. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17282. fi
  17283. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17284. if test "x$ac_cv_func_trunc" = xyes
  17285. then :
  17286. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17287. fi
  17288. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17289. if test "x$ac_cv_func_truncf" = xyes
  17290. then :
  17291. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17292. fi
  17293. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17294. if test "x$ac_cv_func_fmod" = xyes
  17295. then :
  17296. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17297. fi
  17298. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17299. if test "x$ac_cv_func_fmodf" = xyes
  17300. then :
  17301. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17302. fi
  17303. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17304. if test "x$ac_cv_func_log" = xyes
  17305. then :
  17306. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17307. fi
  17308. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17309. if test "x$ac_cv_func_logf" = xyes
  17310. then :
  17311. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17312. fi
  17313. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17314. if test "x$ac_cv_func_log10" = xyes
  17315. then :
  17316. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17317. fi
  17318. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17319. if test "x$ac_cv_func_log10f" = xyes
  17320. then :
  17321. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17322. fi
  17323. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17324. if test "x$ac_cv_func_lround" = xyes
  17325. then :
  17326. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17327. fi
  17328. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17329. if test "x$ac_cv_func_lroundf" = xyes
  17330. then :
  17331. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17332. fi
  17333. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17334. if test "x$ac_cv_func_pow" = xyes
  17335. then :
  17336. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17337. fi
  17338. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17339. if test "x$ac_cv_func_powf" = xyes
  17340. then :
  17341. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17342. fi
  17343. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17344. if test "x$ac_cv_func_round" = xyes
  17345. then :
  17346. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17347. fi
  17348. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17349. if test "x$ac_cv_func_roundf" = xyes
  17350. then :
  17351. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17352. fi
  17353. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17354. if test "x$ac_cv_func_scalbn" = xyes
  17355. then :
  17356. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17357. fi
  17358. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17359. if test "x$ac_cv_func_scalbnf" = xyes
  17360. then :
  17361. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17362. fi
  17363. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17364. if test "x$ac_cv_func_sin" = xyes
  17365. then :
  17366. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17367. fi
  17368. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17369. if test "x$ac_cv_func_sinf" = xyes
  17370. then :
  17371. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17372. fi
  17373. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17374. if test "x$ac_cv_func_sqrt" = xyes
  17375. then :
  17376. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17377. fi
  17378. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17379. if test "x$ac_cv_func_sqrtf" = xyes
  17380. then :
  17381. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17382. fi
  17383. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17384. if test "x$ac_cv_func_tan" = xyes
  17385. then :
  17386. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17387. fi
  17388. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17389. if test "x$ac_cv_func_tanf" = xyes
  17390. then :
  17391. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17392. fi
  17393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17394. printf %s "checking for iconv_open in -liconv... " >&6; }
  17395. if test ${ac_cv_lib_iconv_iconv_open+y}
  17396. then :
  17397. printf %s "(cached) " >&6
  17398. else $as_nop
  17399. ac_check_lib_save_LIBS=$LIBS
  17400. LIBS="-liconv $LIBS"
  17401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17402. /* end confdefs.h. */
  17403. /* Override any GCC internal prototype to avoid an error.
  17404. Use char because int might match the return type of a GCC
  17405. builtin and then its argument prototype would still apply. */
  17406. char iconv_open ();
  17407. int
  17408. main (void)
  17409. {
  17410. return iconv_open ();
  17411. ;
  17412. return 0;
  17413. }
  17414. _ACEOF
  17415. if ac_fn_c_try_link "$LINENO"
  17416. then :
  17417. ac_cv_lib_iconv_iconv_open=yes
  17418. else $as_nop
  17419. ac_cv_lib_iconv_iconv_open=no
  17420. fi
  17421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17422. conftest$ac_exeext conftest.$ac_ext
  17423. LIBS=$ac_check_lib_save_LIBS
  17424. fi
  17425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17426. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17427. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17428. then :
  17429. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17430. fi
  17431. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17432. if test "x$ac_cv_func_iconv" = xyes
  17433. then :
  17434. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17435. fi
  17436. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17437. "
  17438. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17439. then :
  17440. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17441. fi
  17442. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17443. if test "x$ac_cv_header_libunwind_h" = xyes
  17444. then :
  17445. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17446. fi
  17447. fi
  17448. # Check whether --enable-gcc-atomics was given.
  17449. if test ${enable_gcc_atomics+y}
  17450. then :
  17451. enableval=$enable_gcc_atomics;
  17452. else $as_nop
  17453. enable_gcc_atomics=yes
  17454. fi
  17455. if test x$enable_gcc_atomics = xyes; then
  17456. have_gcc_atomics=no
  17457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17458. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17460. /* end confdefs.h. */
  17461. int
  17462. main (void)
  17463. {
  17464. int a;
  17465. void *x, *y, *z;
  17466. __sync_lock_test_and_set(&a, 4);
  17467. __sync_lock_test_and_set(&x, y);
  17468. __sync_fetch_and_add(&a, 1);
  17469. __sync_bool_compare_and_swap(&a, 5, 10);
  17470. __sync_bool_compare_and_swap(&x, y, z);
  17471. ;
  17472. return 0;
  17473. }
  17474. _ACEOF
  17475. if ac_fn_c_try_link "$LINENO"
  17476. then :
  17477. have_gcc_atomics=yes
  17478. fi
  17479. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17480. conftest$ac_exeext conftest.$ac_ext
  17481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17482. printf "%s\n" "$have_gcc_atomics" >&6; }
  17483. if test x$have_gcc_atomics = xyes; then
  17484. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17485. else
  17486. # See if we have the minimum operation needed for GCC atomics
  17487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17488. /* end confdefs.h. */
  17489. int
  17490. main (void)
  17491. {
  17492. int a;
  17493. __sync_lock_test_and_set(&a, 1);
  17494. __sync_lock_release(&a);
  17495. ;
  17496. return 0;
  17497. }
  17498. _ACEOF
  17499. if ac_fn_c_try_link "$LINENO"
  17500. then :
  17501. have_gcc_sync_lock_test_and_set=yes
  17502. fi
  17503. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17504. conftest$ac_exeext conftest.$ac_ext
  17505. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17506. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17507. fi
  17508. fi
  17509. fi
  17510. # Standard C sources
  17511. SOURCES="$SOURCES $srcdir/src/*.c"
  17512. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17513. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17514. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17515. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17516. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17517. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17518. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17519. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17520. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17521. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17522. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17523. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17524. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17525. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17526. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17527. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17528. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17529. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17530. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17531. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17532. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17533. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17534. case "$host" in
  17535. *-*-emscripten*)
  17536. default_atomic=no
  17537. ;;
  17538. *)
  17539. default_atomic=yes
  17540. ;;
  17541. esac
  17542. # Check whether --enable-atomic was given.
  17543. if test ${enable_atomic+y}
  17544. then :
  17545. enableval=$enable_atomic;
  17546. else $as_nop
  17547. enable_atomic=$default_atomic
  17548. fi
  17549. if test x$enable_atomic != xyes; then
  17550. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17551. else
  17552. SUMMARY_modules="${SUMMARY_modules} atomic"
  17553. fi
  17554. # Check whether --enable-audio was given.
  17555. if test ${enable_audio+y}
  17556. then :
  17557. enableval=$enable_audio;
  17558. else $as_nop
  17559. enable_audio=yes
  17560. fi
  17561. if test x$enable_audio != xyes; then
  17562. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17563. else
  17564. SUMMARY_modules="${SUMMARY_modules} audio"
  17565. fi
  17566. # Check whether --enable-video was given.
  17567. if test ${enable_video+y}
  17568. then :
  17569. enableval=$enable_video;
  17570. else $as_nop
  17571. enable_video=yes
  17572. fi
  17573. if test x$enable_video != xyes; then
  17574. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17575. else
  17576. SUMMARY_modules="${SUMMARY_modules} video"
  17577. fi
  17578. # Check whether --enable-render was given.
  17579. if test ${enable_render+y}
  17580. then :
  17581. enableval=$enable_render;
  17582. else $as_nop
  17583. enable_render=yes
  17584. fi
  17585. if test x$enable_render != xyes; then
  17586. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17587. else
  17588. SUMMARY_modules="${SUMMARY_modules} render"
  17589. fi
  17590. # Check whether --enable-events was given.
  17591. if test ${enable_events+y}
  17592. then :
  17593. enableval=$enable_events;
  17594. else $as_nop
  17595. enable_events=yes
  17596. fi
  17597. if test x$enable_events != xyes; then
  17598. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17599. else
  17600. SUMMARY_modules="${SUMMARY_modules} events"
  17601. fi
  17602. # Check whether --enable-joystick was given.
  17603. if test ${enable_joystick+y}
  17604. then :
  17605. enableval=$enable_joystick;
  17606. else $as_nop
  17607. enable_joystick=yes
  17608. fi
  17609. if test x$enable_joystick != xyes; then
  17610. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17611. else
  17612. SUMMARY_modules="${SUMMARY_modules} joystick"
  17613. fi
  17614. # Check whether --enable-haptic was given.
  17615. if test ${enable_haptic+y}
  17616. then :
  17617. enableval=$enable_haptic;
  17618. else $as_nop
  17619. enable_haptic=yes
  17620. fi
  17621. if test x$enable_haptic != xyes; then
  17622. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17623. else
  17624. SUMMARY_modules="${SUMMARY_modules} haptic"
  17625. fi
  17626. # Check whether --enable-hidapi was given.
  17627. if test ${enable_hidapi+y}
  17628. then :
  17629. enableval=$enable_hidapi;
  17630. else $as_nop
  17631. enable_hidapi=yes
  17632. fi
  17633. if test x$enable_hidapi != xyes; then
  17634. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17635. else
  17636. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17637. fi
  17638. # Check whether --enable-sensor was given.
  17639. if test ${enable_sensor+y}
  17640. then :
  17641. enableval=$enable_sensor;
  17642. else $as_nop
  17643. enable_sensor=yes
  17644. fi
  17645. if test x$enable_sensor != xyes; then
  17646. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17647. else
  17648. SUMMARY_modules="${SUMMARY_modules} sensor"
  17649. fi
  17650. # Check whether --enable-power was given.
  17651. if test ${enable_power+y}
  17652. then :
  17653. enableval=$enable_power;
  17654. else $as_nop
  17655. enable_power=yes
  17656. fi
  17657. if test x$enable_power != xyes; then
  17658. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17659. else
  17660. SUMMARY_modules="${SUMMARY_modules} power"
  17661. fi
  17662. # Check whether --enable-filesystem was given.
  17663. if test ${enable_filesystem+y}
  17664. then :
  17665. enableval=$enable_filesystem;
  17666. else $as_nop
  17667. enable_filesystem=yes
  17668. fi
  17669. if test x$enable_filesystem != xyes; then
  17670. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17671. else
  17672. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17673. fi
  17674. # Many subsystems depend on threads, so leave them enabled by default
  17675. #AC_ARG_ENABLE(threads,
  17676. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17677. # , enable_threads=yes)
  17678. enable_threads=yes
  17679. if test x$enable_threads != xyes; then
  17680. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17681. else
  17682. SUMMARY_modules="${SUMMARY_modules} threads"
  17683. fi
  17684. # Check whether --enable-timers was given.
  17685. if test ${enable_timers+y}
  17686. then :
  17687. enableval=$enable_timers;
  17688. else $as_nop
  17689. enable_timers=yes
  17690. fi
  17691. if test x$enable_timers != xyes; then
  17692. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17693. else
  17694. SUMMARY_modules="${SUMMARY_modules} timers"
  17695. fi
  17696. # Check whether --enable-file was given.
  17697. if test ${enable_file+y}
  17698. then :
  17699. enableval=$enable_file;
  17700. else $as_nop
  17701. enable_file=yes
  17702. fi
  17703. if test x$enable_file != xyes; then
  17704. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17705. else
  17706. SUMMARY_modules="${SUMMARY_modules} file"
  17707. fi
  17708. # Check whether --enable-misc was given.
  17709. if test ${enable_misc+y}
  17710. then :
  17711. enableval=$enable_misc;
  17712. else $as_nop
  17713. enable_misc=yes
  17714. fi
  17715. if test x$enable_misc != xyes; then
  17716. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17717. else
  17718. SUMMARY_modules="${SUMMARY_modules} misc"
  17719. fi
  17720. # Check whether --enable-locale was given.
  17721. if test ${enable_locale+y}
  17722. then :
  17723. enableval=$enable_locale;
  17724. else $as_nop
  17725. enable_locale=yes
  17726. fi
  17727. if test x$enable_locale != xyes; then
  17728. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17729. else
  17730. SUMMARY_modules="${SUMMARY_modules} locale"
  17731. fi
  17732. # Check whether --enable-loadso was given.
  17733. if test ${enable_loadso+y}
  17734. then :
  17735. enableval=$enable_loadso;
  17736. else $as_nop
  17737. enable_loadso=yes
  17738. fi
  17739. if test x$enable_loadso != xyes; then
  17740. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17741. else
  17742. SUMMARY_modules="${SUMMARY_modules} loadso"
  17743. fi
  17744. # Check whether --enable-cpuinfo was given.
  17745. if test ${enable_cpuinfo+y}
  17746. then :
  17747. enableval=$enable_cpuinfo;
  17748. else $as_nop
  17749. enable_cpuinfo=yes
  17750. fi
  17751. if test x$enable_cpuinfo != xyes; then
  17752. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17753. else
  17754. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17755. fi
  17756. # Check whether --enable-assembly was given.
  17757. if test ${enable_assembly+y}
  17758. then :
  17759. enableval=$enable_assembly;
  17760. else $as_nop
  17761. enable_assembly=yes
  17762. fi
  17763. if test x$enable_assembly = xyes; then
  17764. SUMMARY_modules="${SUMMARY_modules} assembly"
  17765. # Make sure that we don't generate floating point code that would
  17766. # cause illegal instruction exceptions on older processors
  17767. case "$host" in
  17768. *-*-darwin*)
  17769. # Don't need to worry about Apple hardware, it's all SSE capable
  17770. default_ssemath=yes
  17771. ;;
  17772. *64-*-*)
  17773. # x86 64-bit architectures all have SSE instructions
  17774. default_ssemath=yes
  17775. ;;
  17776. *)
  17777. default_ssemath=no
  17778. ;;
  17779. esac
  17780. # Check whether --enable-ssemath was given.
  17781. if test ${enable_ssemath+y}
  17782. then :
  17783. enableval=$enable_ssemath;
  17784. else $as_nop
  17785. enable_ssemath=$default_ssemath
  17786. fi
  17787. if test x$enable_ssemath = xno; then
  17788. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17789. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17790. fi
  17791. fi
  17792. # Check whether --enable-mmx was given.
  17793. if test ${enable_mmx+y}
  17794. then :
  17795. enableval=$enable_mmx;
  17796. else $as_nop
  17797. enable_mmx=yes
  17798. fi
  17799. if test x$enable_mmx = xyes; then
  17800. save_CFLAGS="$CFLAGS"
  17801. have_gcc_mmx=no
  17802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17803. printf %s "checking for GCC -mmmx option... " >&6; }
  17804. mmx_CFLAGS="-mmmx"
  17805. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17807. /* end confdefs.h. */
  17808. #ifdef __MINGW32__
  17809. #include <_mingw.h>
  17810. #ifdef __MINGW64_VERSION_MAJOR
  17811. #include <intrin.h>
  17812. #else
  17813. #include <mmintrin.h>
  17814. #endif
  17815. #else
  17816. #include <mmintrin.h>
  17817. #endif
  17818. #ifndef __MMX__
  17819. #error Assembler CPP flag not enabled
  17820. #endif
  17821. int
  17822. main (void)
  17823. {
  17824. ;
  17825. return 0;
  17826. }
  17827. _ACEOF
  17828. if ac_fn_c_try_compile "$LINENO"
  17829. then :
  17830. have_gcc_mmx=yes
  17831. fi
  17832. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17834. printf "%s\n" "$have_gcc_mmx" >&6; }
  17835. CFLAGS="$save_CFLAGS"
  17836. if test x$have_gcc_mmx = xyes; then
  17837. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17838. SUMMARY_math="${SUMMARY_math} mmx"
  17839. fi
  17840. fi
  17841. # Check whether --enable-3dnow was given.
  17842. if test ${enable_3dnow+y}
  17843. then :
  17844. enableval=$enable_3dnow;
  17845. else $as_nop
  17846. enable_3dnow=yes
  17847. fi
  17848. if test x$enable_3dnow = xyes; then
  17849. save_CFLAGS="$CFLAGS"
  17850. have_gcc_3dnow=no
  17851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17852. printf %s "checking for GCC -m3dnow option... " >&6; }
  17853. amd3dnow_CFLAGS="-m3dnow"
  17854. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17856. /* end confdefs.h. */
  17857. #include <mm3dnow.h>
  17858. #ifndef __3dNOW__
  17859. #error Assembler CPP flag not enabled
  17860. #endif
  17861. int
  17862. main (void)
  17863. {
  17864. void *p = 0;
  17865. _m_prefetch(p);
  17866. ;
  17867. return 0;
  17868. }
  17869. _ACEOF
  17870. if ac_fn_c_try_link "$LINENO"
  17871. then :
  17872. have_gcc_3dnow=yes
  17873. fi
  17874. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17875. conftest$ac_exeext conftest.$ac_ext
  17876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17877. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17878. CFLAGS="$save_CFLAGS"
  17879. if test x$have_gcc_3dnow = xyes; then
  17880. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17881. SUMMARY_math="${SUMMARY_math} 3dnow"
  17882. fi
  17883. fi
  17884. # Check whether --enable-sse was given.
  17885. if test ${enable_sse+y}
  17886. then :
  17887. enableval=$enable_sse;
  17888. else $as_nop
  17889. enable_sse=yes
  17890. fi
  17891. if test x$enable_sse = xyes; then
  17892. save_CFLAGS="$CFLAGS"
  17893. have_gcc_sse=no
  17894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17895. printf %s "checking for GCC -msse option... " >&6; }
  17896. sse_CFLAGS="-msse"
  17897. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17899. /* end confdefs.h. */
  17900. #ifdef __MINGW32__
  17901. #include <_mingw.h>
  17902. #ifdef __MINGW64_VERSION_MAJOR
  17903. #include <intrin.h>
  17904. #else
  17905. #include <xmmintrin.h>
  17906. #endif
  17907. #else
  17908. #include <xmmintrin.h>
  17909. #endif
  17910. #ifndef __SSE__
  17911. #error Assembler CPP flag not enabled
  17912. #endif
  17913. int
  17914. main (void)
  17915. {
  17916. ;
  17917. return 0;
  17918. }
  17919. _ACEOF
  17920. if ac_fn_c_try_compile "$LINENO"
  17921. then :
  17922. have_gcc_sse=yes
  17923. fi
  17924. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17926. printf "%s\n" "$have_gcc_sse" >&6; }
  17927. CFLAGS="$save_CFLAGS"
  17928. if test x$have_gcc_sse = xyes; then
  17929. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17930. SUMMARY_math="${SUMMARY_math} sse"
  17931. fi
  17932. fi
  17933. # Check whether --enable-sse2 was given.
  17934. if test ${enable_sse2+y}
  17935. then :
  17936. enableval=$enable_sse2;
  17937. else $as_nop
  17938. enable_sse2=$default_ssemath
  17939. fi
  17940. if test x$enable_sse2 = xyes; then
  17941. save_CFLAGS="$CFLAGS"
  17942. have_gcc_sse2=no
  17943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17944. printf %s "checking for GCC -msse2 option... " >&6; }
  17945. sse2_CFLAGS="-msse2"
  17946. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17948. /* end confdefs.h. */
  17949. #ifdef __MINGW32__
  17950. #include <_mingw.h>
  17951. #ifdef __MINGW64_VERSION_MAJOR
  17952. #include <intrin.h>
  17953. #else
  17954. #include <emmintrin.h>
  17955. #endif
  17956. #else
  17957. #include <emmintrin.h>
  17958. #endif
  17959. #ifndef __SSE2__
  17960. #error Assembler CPP flag not enabled
  17961. #endif
  17962. int
  17963. main (void)
  17964. {
  17965. ;
  17966. return 0;
  17967. }
  17968. _ACEOF
  17969. if ac_fn_c_try_compile "$LINENO"
  17970. then :
  17971. have_gcc_sse2=yes
  17972. fi
  17973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17975. printf "%s\n" "$have_gcc_sse2" >&6; }
  17976. CFLAGS="$save_CFLAGS"
  17977. if test x$have_gcc_sse2 = xyes; then
  17978. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17979. SUMMARY_math="${SUMMARY_math} sse2"
  17980. fi
  17981. fi
  17982. # Check whether --enable-sse3 was given.
  17983. if test ${enable_sse3+y}
  17984. then :
  17985. enableval=$enable_sse3;
  17986. else $as_nop
  17987. enable_sse3=$default_ssemath
  17988. fi
  17989. if test x$enable_sse3 = xyes; then
  17990. save_CFLAGS="$CFLAGS"
  17991. have_gcc_sse3=no
  17992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17993. printf %s "checking for GCC -msse3 option... " >&6; }
  17994. sse3_CFLAGS="-msse3"
  17995. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17997. /* end confdefs.h. */
  17998. #ifdef __MINGW32__
  17999. #include <_mingw.h>
  18000. #ifdef __MINGW64_VERSION_MAJOR
  18001. #include <intrin.h>
  18002. #else
  18003. #include <pmmintrin.h>
  18004. #endif
  18005. #else
  18006. #include <pmmintrin.h>
  18007. #endif
  18008. #ifndef __SSE2__
  18009. #error Assembler CPP flag not enabled
  18010. #endif
  18011. int
  18012. main (void)
  18013. {
  18014. ;
  18015. return 0;
  18016. }
  18017. _ACEOF
  18018. if ac_fn_c_try_compile "$LINENO"
  18019. then :
  18020. have_gcc_sse3=yes
  18021. fi
  18022. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18024. printf "%s\n" "$have_gcc_sse3" >&6; }
  18025. CFLAGS="$save_CFLAGS"
  18026. if test x$have_gcc_sse3 = xyes; then
  18027. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18028. SUMMARY_math="${SUMMARY_math} sse3"
  18029. fi
  18030. fi
  18031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18032. printf %s "checking for immintrin.h... " >&6; }
  18033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18034. /* end confdefs.h. */
  18035. #include <immintrin.h>
  18036. int
  18037. main (void)
  18038. {
  18039. ;
  18040. return 0;
  18041. }
  18042. _ACEOF
  18043. if ac_fn_c_try_compile "$LINENO"
  18044. then :
  18045. have_immintrin_h_hdr=yes
  18046. else $as_nop
  18047. have_immintrin_h_hdr=no
  18048. fi
  18049. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18051. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18052. if test x$have_immintrin_h_hdr = xyes; then
  18053. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18054. fi
  18055. # Check whether --enable-altivec was given.
  18056. if test ${enable_altivec+y}
  18057. then :
  18058. enableval=$enable_altivec;
  18059. else $as_nop
  18060. enable_altivec=yes
  18061. fi
  18062. if test x$enable_altivec = xyes; then
  18063. save_CFLAGS="$CFLAGS"
  18064. have_gcc_altivec=no
  18065. have_altivec_h_hdr=no
  18066. altivec_CFLAGS="-maltivec"
  18067. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18069. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18071. /* end confdefs.h. */
  18072. #include <altivec.h>
  18073. vector unsigned int vzero() {
  18074. return vec_splat_u32(0);
  18075. }
  18076. int
  18077. main (void)
  18078. {
  18079. ;
  18080. return 0;
  18081. }
  18082. _ACEOF
  18083. if ac_fn_c_try_compile "$LINENO"
  18084. then :
  18085. have_gcc_altivec=yes
  18086. have_altivec_h_hdr=yes
  18087. fi
  18088. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18090. printf "%s\n" "$have_gcc_altivec" >&6; }
  18091. if test x$have_gcc_altivec = xno; then
  18092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18093. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18095. /* end confdefs.h. */
  18096. vector unsigned int vzero() {
  18097. return vec_splat_u32(0);
  18098. }
  18099. int
  18100. main (void)
  18101. {
  18102. ;
  18103. return 0;
  18104. }
  18105. _ACEOF
  18106. if ac_fn_c_try_compile "$LINENO"
  18107. then :
  18108. have_gcc_altivec=yes
  18109. fi
  18110. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18112. printf "%s\n" "$have_gcc_altivec" >&6; }
  18113. fi
  18114. if test x$have_gcc_altivec = xno; then
  18115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18116. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18117. altivec_CFLAGS="-faltivec"
  18118. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18120. /* end confdefs.h. */
  18121. #include <altivec.h>
  18122. vector unsigned int vzero() {
  18123. return vec_splat_u32(0);
  18124. }
  18125. int
  18126. main (void)
  18127. {
  18128. ;
  18129. return 0;
  18130. }
  18131. _ACEOF
  18132. if ac_fn_c_try_compile "$LINENO"
  18133. then :
  18134. have_gcc_altivec=yes
  18135. have_altivec_h_hdr=yes
  18136. fi
  18137. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18139. printf "%s\n" "$have_gcc_altivec" >&6; }
  18140. fi
  18141. if test x$have_gcc_altivec = xno; then
  18142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18143. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18145. /* end confdefs.h. */
  18146. vector unsigned int vzero() {
  18147. return vec_splat_u32(0);
  18148. }
  18149. int
  18150. main (void)
  18151. {
  18152. ;
  18153. return 0;
  18154. }
  18155. _ACEOF
  18156. if ac_fn_c_try_compile "$LINENO"
  18157. then :
  18158. have_gcc_altivec=yes
  18159. fi
  18160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18162. printf "%s\n" "$have_gcc_altivec" >&6; }
  18163. fi
  18164. CFLAGS="$save_CFLAGS"
  18165. if test x$have_gcc_altivec = xyes; then
  18166. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18167. if test x$have_altivec_h_hdr = xyes; then
  18168. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18169. fi
  18170. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18171. SUMMARY_math="${SUMMARY_math} altivec"
  18172. fi
  18173. fi
  18174. fi
  18175. # Check whether --enable-lsx was given.
  18176. if test ${enable_lsx+y}
  18177. then :
  18178. enableval=$enable_lsx;
  18179. else $as_nop
  18180. enable_lsx=yes
  18181. fi
  18182. if test x$enable_lsx = xyes; then
  18183. save_CFLAGS="$CFLAGS"
  18184. have_gcc_lsx=no
  18185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18186. printf %s "checking for GCC -mlsx option... " >&6; }
  18187. lsx_CFLAGS="-mlsx"
  18188. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18190. /* end confdefs.h. */
  18191. #ifndef __loongarch_sx
  18192. #error Assembler CPP flag not enabled
  18193. #endif
  18194. int
  18195. main (void)
  18196. {
  18197. ;
  18198. return 0;
  18199. }
  18200. _ACEOF
  18201. if ac_fn_c_try_compile "$LINENO"
  18202. then :
  18203. have_gcc_lsx=yes
  18204. fi
  18205. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18207. printf "%s\n" "$have_gcc_lsx" >&6; }
  18208. CFLAGS="$save_CFLAGS"
  18209. if test x$have_gcc_lsx = xyes; then
  18210. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18211. SUMMARY_math="${SUMMARY_math} lsx"
  18212. fi
  18213. fi
  18214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18215. printf %s "checking for lsxintrin.h... " >&6; }
  18216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18217. /* end confdefs.h. */
  18218. #include <lsxintrin.h>
  18219. int
  18220. main (void)
  18221. {
  18222. ;
  18223. return 0;
  18224. }
  18225. _ACEOF
  18226. if ac_fn_c_try_compile "$LINENO"
  18227. then :
  18228. have_lsxintrin_h_hdr=yes
  18229. else $as_nop
  18230. have_lsxintrin_h_hdr=no
  18231. fi
  18232. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18234. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18235. if test x$have_lsxintrin_h_hdr = xyes; then
  18236. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18237. fi
  18238. # Check whether --enable-lasx was given.
  18239. if test ${enable_lasx+y}
  18240. then :
  18241. enableval=$enable_lasx;
  18242. else $as_nop
  18243. enable_LASX=yes
  18244. fi
  18245. if test x$enable_LASX = xyes; then
  18246. save_CFLAGS="$CFLAGS"
  18247. have_gcc_lasx=no
  18248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18249. printf %s "checking for GCC -mlasx option... " >&6; }
  18250. lasx_CFLAGS="-mlasx"
  18251. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18253. /* end confdefs.h. */
  18254. #ifndef __loongarch_asx
  18255. #error Assembler CPP flag not enabled
  18256. #endif
  18257. int
  18258. main (void)
  18259. {
  18260. ;
  18261. return 0;
  18262. }
  18263. _ACEOF
  18264. if ac_fn_c_try_compile "$LINENO"
  18265. then :
  18266. have_gcc_lasx=yes
  18267. fi
  18268. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18270. printf "%s\n" "$have_gcc_lasx" >&6; }
  18271. CFLAGS="$save_CFLAGS"
  18272. if test x$have_gcc_lasx = xyes; then
  18273. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18274. SUMMARY_math="${SUMMARY_math} lasx"
  18275. fi
  18276. fi
  18277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18278. printf %s "checking for lasxintrin.h... " >&6; }
  18279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18280. /* end confdefs.h. */
  18281. #include <lasxintrin.h>
  18282. int
  18283. main (void)
  18284. {
  18285. ;
  18286. return 0;
  18287. }
  18288. _ACEOF
  18289. if ac_fn_c_try_compile "$LINENO"
  18290. then :
  18291. have_lasxintrin_h_hdr=yes
  18292. else $as_nop
  18293. have_lasxintrin_h_hdr=no
  18294. fi
  18295. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18297. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18298. if test x$have_lasxintrin_h_hdr = xyes; then
  18299. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18300. fi
  18301. CheckOSS()
  18302. {
  18303. # Check whether --enable-oss was given.
  18304. if test ${enable_oss+y}
  18305. then :
  18306. enableval=$enable_oss;
  18307. else $as_nop
  18308. enable_oss=maybe
  18309. fi
  18310. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18311. # use sndio instead. So on there, we default to disabled. You can force
  18312. # it on if you really want, though.
  18313. if test x$enable_oss = xmaybe; then
  18314. enable_oss=yes
  18315. case "$host" in
  18316. *-*-openbsd*)
  18317. enable_oss=no;;
  18318. esac
  18319. fi
  18320. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18322. printf %s "checking for OSS audio support... " >&6; }
  18323. have_oss=no
  18324. if test x$have_oss != xyes; then
  18325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18326. /* end confdefs.h. */
  18327. #include <sys/soundcard.h>
  18328. int
  18329. main (void)
  18330. {
  18331. int arg = SNDCTL_DSP_SETFRAGMENT;
  18332. ;
  18333. return 0;
  18334. }
  18335. _ACEOF
  18336. if ac_fn_c_try_compile "$LINENO"
  18337. then :
  18338. have_oss=yes
  18339. fi
  18340. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18341. fi
  18342. if test x$have_oss != xyes; then
  18343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18344. /* end confdefs.h. */
  18345. #include <soundcard.h>
  18346. int
  18347. main (void)
  18348. {
  18349. int arg = SNDCTL_DSP_SETFRAGMENT;
  18350. ;
  18351. return 0;
  18352. }
  18353. _ACEOF
  18354. if ac_fn_c_try_compile "$LINENO"
  18355. then :
  18356. have_oss=yes
  18357. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18358. fi
  18359. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18360. fi
  18361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18362. printf "%s\n" "$have_oss" >&6; }
  18363. if test x$have_oss = xyes; then
  18364. SUMMARY_audio="${SUMMARY_audio} oss"
  18365. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18366. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18367. have_audio=yes
  18368. # We may need to link with ossaudio emulation library
  18369. case "$host" in
  18370. *-*-openbsd*|*-*-netbsd*)
  18371. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18372. esac
  18373. fi
  18374. fi
  18375. }
  18376. CheckALSA()
  18377. {
  18378. # Check whether --enable-alsa was given.
  18379. if test ${enable_alsa+y}
  18380. then :
  18381. enableval=$enable_alsa;
  18382. else $as_nop
  18383. enable_alsa=yes
  18384. fi
  18385. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18386. alsa_save_CFLAGS="$CFLAGS"
  18387. alsa_save_LDFLAGS="$LDFLAGS"
  18388. alsa_save_LIBS="$LIBS"
  18389. alsa_found=yes
  18390. # Check whether --with-alsa-prefix was given.
  18391. if test ${with_alsa_prefix+y}
  18392. then :
  18393. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18394. else $as_nop
  18395. alsa_prefix=""
  18396. fi
  18397. # Check whether --with-alsa-inc-prefix was given.
  18398. if test ${with_alsa_inc_prefix+y}
  18399. then :
  18400. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18401. else $as_nop
  18402. alsa_inc_prefix=""
  18403. fi
  18404. # Check whether --enable-alsatest was given.
  18405. if test ${enable_alsatest+y}
  18406. then :
  18407. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18408. else $as_nop
  18409. enable_alsatest=yes
  18410. fi
  18411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18412. printf %s "checking for ALSA CFLAGS... " >&6; }
  18413. if test "$alsa_inc_prefix" != "" ; then
  18414. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18415. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18416. fi
  18417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18418. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18420. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18421. if test "$alsa_prefix" != "" ; then
  18422. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18423. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18424. fi
  18425. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18426. LIBS=`echo $LIBS | sed 's/-lm//'`
  18427. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18428. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18429. LIBS=`echo $LIBS | sed 's/ //'`
  18430. LIBS="$ALSA_LIBS $LIBS"
  18431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18432. printf "%s\n" "$ALSA_LIBS" >&6; }
  18433. min_alsa_version=1.0.11
  18434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18435. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18436. no_alsa=""
  18437. alsa_min_major_version=`echo $min_alsa_version | \
  18438. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18439. alsa_min_minor_version=`echo $min_alsa_version | \
  18440. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18441. alsa_min_micro_version=`echo $min_alsa_version | \
  18442. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18443. ac_ext=c
  18444. ac_cpp='$CPP $CPPFLAGS'
  18445. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18446. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18447. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18449. /* end confdefs.h. */
  18450. #include <alsa/asoundlib.h>
  18451. int
  18452. main (void)
  18453. {
  18454. /* ensure backward compatibility */
  18455. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18456. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18457. #endif
  18458. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18459. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18460. #endif
  18461. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18462. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18463. #endif
  18464. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18465. exit(0);
  18466. # else
  18467. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18468. # error not present
  18469. # endif
  18470. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18471. exit(0);
  18472. # else
  18473. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18474. # error not present
  18475. # endif
  18476. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18477. # error not present
  18478. # endif
  18479. # endif
  18480. # endif
  18481. exit(0);
  18482. ;
  18483. return 0;
  18484. }
  18485. _ACEOF
  18486. if ac_fn_c_try_compile "$LINENO"
  18487. then :
  18488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18489. printf "%s\n" "found." >&6; }
  18490. else $as_nop
  18491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18492. printf "%s\n" "not present." >&6; }
  18493. alsa_found=no
  18494. fi
  18495. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18496. ac_ext=c
  18497. ac_cpp='$CPP $CPPFLAGS'
  18498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18501. if test "x$enable_alsatest" = "xyes"; then
  18502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18503. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18504. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18505. then :
  18506. printf %s "(cached) " >&6
  18507. else $as_nop
  18508. ac_check_lib_save_LIBS=$LIBS
  18509. LIBS="-lasound $LIBS"
  18510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18511. /* end confdefs.h. */
  18512. /* Override any GCC internal prototype to avoid an error.
  18513. Use char because int might match the return type of a GCC
  18514. builtin and then its argument prototype would still apply. */
  18515. char snd_ctl_open ();
  18516. int
  18517. main (void)
  18518. {
  18519. return snd_ctl_open ();
  18520. ;
  18521. return 0;
  18522. }
  18523. _ACEOF
  18524. if ac_fn_c_try_link "$LINENO"
  18525. then :
  18526. ac_cv_lib_asound_snd_ctl_open=yes
  18527. else $as_nop
  18528. ac_cv_lib_asound_snd_ctl_open=no
  18529. fi
  18530. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18531. conftest$ac_exeext conftest.$ac_ext
  18532. LIBS=$ac_check_lib_save_LIBS
  18533. fi
  18534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18535. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18536. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18537. then :
  18538. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18539. LIBS="-lasound $LIBS"
  18540. else $as_nop
  18541. alsa_found=no
  18542. fi
  18543. fi
  18544. if test "x$alsa_found" = "xyes" ; then
  18545. have_alsa=yes
  18546. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18547. LIBS=`echo $LIBS | sed 's/ //'`
  18548. LIBS="-lasound $LIBS"
  18549. fi
  18550. if test "x$alsa_found" = "xno" ; then
  18551. have_alsa=no
  18552. CFLAGS="$alsa_save_CFLAGS"
  18553. LDFLAGS="$alsa_save_LDFLAGS"
  18554. LIBS="$alsa_save_LIBS"
  18555. ALSA_CFLAGS=""
  18556. ALSA_LIBS=""
  18557. fi
  18558. # Restore all flags from before the ALSA detection runs
  18559. CFLAGS="$alsa_save_CFLAGS"
  18560. LDFLAGS="$alsa_save_LDFLAGS"
  18561. LIBS="$alsa_save_LIBS"
  18562. if test x$have_alsa = xyes; then
  18563. # Check whether --enable-alsa-shared was given.
  18564. if test ${enable_alsa_shared+y}
  18565. then :
  18566. enableval=$enable_alsa_shared;
  18567. else $as_nop
  18568. enable_alsa_shared=yes
  18569. fi
  18570. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18571. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18572. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18573. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18574. if test x$have_loadso != xyes && \
  18575. test x$enable_alsa_shared = xyes; then
  18576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18577. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18578. fi
  18579. if test x$have_loadso = xyes && \
  18580. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18581. echo "-- dynamic libasound -> $alsa_lib"
  18582. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18583. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18584. else
  18585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18586. SUMMARY_audio="${SUMMARY_audio} alsa"
  18587. fi
  18588. have_audio=yes
  18589. fi
  18590. fi
  18591. }
  18592. CheckJACK()
  18593. {
  18594. # Check whether --enable-jack was given.
  18595. if test ${enable_jack+y}
  18596. then :
  18597. enableval=$enable_jack;
  18598. else $as_nop
  18599. enable_jack=yes
  18600. fi
  18601. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18602. pkg_failed=no
  18603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18604. printf %s "checking for jack >= 0.125... " >&6; }
  18605. if test -n "$JACK_CFLAGS"; then
  18606. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18607. elif test -n "$PKG_CONFIG"; then
  18608. if test -n "$PKG_CONFIG" && \
  18609. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18610. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18611. ac_status=$?
  18612. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18613. test $ac_status = 0; }; then
  18614. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18615. test "x$?" != "x0" && pkg_failed=yes
  18616. else
  18617. pkg_failed=yes
  18618. fi
  18619. else
  18620. pkg_failed=untried
  18621. fi
  18622. if test -n "$JACK_LIBS"; then
  18623. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18624. elif test -n "$PKG_CONFIG"; then
  18625. if test -n "$PKG_CONFIG" && \
  18626. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18627. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18628. ac_status=$?
  18629. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18630. test $ac_status = 0; }; then
  18631. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18632. test "x$?" != "x0" && pkg_failed=yes
  18633. else
  18634. pkg_failed=yes
  18635. fi
  18636. else
  18637. pkg_failed=untried
  18638. fi
  18639. if test $pkg_failed = yes; then
  18640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18641. printf "%s\n" "no" >&6; }
  18642. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18643. _pkg_short_errors_supported=yes
  18644. else
  18645. _pkg_short_errors_supported=no
  18646. fi
  18647. if test $_pkg_short_errors_supported = yes; then
  18648. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18649. else
  18650. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18651. fi
  18652. # Put the nasty error message in config.log where it belongs
  18653. echo "$JACK_PKG_ERRORS" >&5
  18654. audio_jack=no
  18655. elif test $pkg_failed = untried; then
  18656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18657. printf "%s\n" "no" >&6; }
  18658. audio_jack=no
  18659. else
  18660. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18661. JACK_LIBS=$pkg_cv_JACK_LIBS
  18662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18663. printf "%s\n" "yes" >&6; }
  18664. audio_jack=yes
  18665. fi
  18666. if test x$audio_jack = xyes; then
  18667. # Check whether --enable-jack-shared was given.
  18668. if test ${enable_jack_shared+y}
  18669. then :
  18670. enableval=$enable_jack_shared;
  18671. else $as_nop
  18672. enable_jack_shared=yes
  18673. fi
  18674. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18675. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18676. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18677. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18678. if test x$have_loadso != xyes && \
  18679. test x$enable_jack_shared = xyes; then
  18680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18681. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18682. fi
  18683. if test x$have_loadso = xyes && \
  18684. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18685. echo "-- dynamic libjack -> $jack_lib"
  18686. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18687. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18688. case "$host" in
  18689. # On Solaris, jack must be linked deferred explicitly
  18690. # to prevent undefined symbol failures.
  18691. *-*-solaris*)
  18692. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18694. esac
  18695. else
  18696. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18697. SUMMARY_audio="${SUMMARY_audio} jack"
  18698. fi
  18699. have_audio=yes
  18700. fi
  18701. fi
  18702. }
  18703. CheckESD()
  18704. {
  18705. # Check whether --enable-esd was given.
  18706. if test ${enable_esd+y}
  18707. then :
  18708. enableval=$enable_esd;
  18709. else $as_nop
  18710. enable_esd=yes
  18711. fi
  18712. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18713. # Check whether --with-esd-prefix was given.
  18714. if test ${with_esd_prefix+y}
  18715. then :
  18716. withval=$with_esd_prefix; esd_prefix="$withval"
  18717. else $as_nop
  18718. esd_prefix=""
  18719. fi
  18720. # Check whether --with-esd-exec-prefix was given.
  18721. if test ${with_esd_exec_prefix+y}
  18722. then :
  18723. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18724. else $as_nop
  18725. esd_exec_prefix=""
  18726. fi
  18727. # Check whether --enable-esdtest was given.
  18728. if test ${enable_esdtest+y}
  18729. then :
  18730. enableval=$enable_esdtest;
  18731. else $as_nop
  18732. enable_esdtest=yes
  18733. fi
  18734. if test x$esd_exec_prefix != x ; then
  18735. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18736. if test x${ESD_CONFIG+set} != xset ; then
  18737. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18738. fi
  18739. fi
  18740. if test x$esd_prefix != x ; then
  18741. esd_args="$esd_args --prefix=$esd_prefix"
  18742. if test x${ESD_CONFIG+set} != xset ; then
  18743. ESD_CONFIG=$esd_prefix/bin/esd-config
  18744. fi
  18745. fi
  18746. # Extract the first word of "esd-config", so it can be a program name with args.
  18747. set dummy esd-config; ac_word=$2
  18748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18749. printf %s "checking for $ac_word... " >&6; }
  18750. if test ${ac_cv_path_ESD_CONFIG+y}
  18751. then :
  18752. printf %s "(cached) " >&6
  18753. else $as_nop
  18754. case $ESD_CONFIG in
  18755. [\\/]* | ?:[\\/]*)
  18756. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18757. ;;
  18758. *)
  18759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18760. for as_dir in $PATH
  18761. do
  18762. IFS=$as_save_IFS
  18763. case $as_dir in #(((
  18764. '') as_dir=./ ;;
  18765. */) ;;
  18766. *) as_dir=$as_dir/ ;;
  18767. esac
  18768. for ac_exec_ext in '' $ac_executable_extensions; do
  18769. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18770. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18771. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18772. break 2
  18773. fi
  18774. done
  18775. done
  18776. IFS=$as_save_IFS
  18777. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18778. ;;
  18779. esac
  18780. fi
  18781. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18782. if test -n "$ESD_CONFIG"; then
  18783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18784. printf "%s\n" "$ESD_CONFIG" >&6; }
  18785. else
  18786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18787. printf "%s\n" "no" >&6; }
  18788. fi
  18789. min_esd_version=0.2.8
  18790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18791. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18792. no_esd=""
  18793. if test "$ESD_CONFIG" = "no" ; then
  18794. no_esd=yes
  18795. else
  18796. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18797. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18798. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18799. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18800. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18801. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18802. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18803. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18804. if test "x$enable_esdtest" = "xyes" ; then
  18805. ac_ext=c
  18806. ac_cpp='$CPP $CPPFLAGS'
  18807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18810. ac_save_CFLAGS="$CFLAGS"
  18811. ac_save_LIBS="$LIBS"
  18812. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18813. LIBS="$LIBS $ESD_LIBS"
  18814. rm -f conf.esdtest
  18815. if test "$cross_compiling" = yes
  18816. then :
  18817. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18818. else $as_nop
  18819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18820. /* end confdefs.h. */
  18821. #include <stdio.h>
  18822. #include <stdlib.h>
  18823. #include <esd.h>
  18824. int main (void)
  18825. {
  18826. int major, minor, micro;
  18827. FILE *fp = fopen("conf.esdtest", "w");
  18828. if (fp) fclose(fp);
  18829. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18830. printf("%s, bad version string\n", "$min_esd_version");
  18831. exit(1);
  18832. }
  18833. if (($esd_major_version > major) ||
  18834. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18835. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18836. {
  18837. return 0;
  18838. }
  18839. else
  18840. {
  18841. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18842. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18843. printf("*** best to upgrade to the required version.\n");
  18844. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18845. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18846. printf("*** config.cache before re-running configure\n");
  18847. return 1;
  18848. }
  18849. }
  18850. _ACEOF
  18851. if ac_fn_c_try_run "$LINENO"
  18852. then :
  18853. else $as_nop
  18854. no_esd=yes
  18855. fi
  18856. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18857. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18858. fi
  18859. CFLAGS="$ac_save_CFLAGS"
  18860. LIBS="$ac_save_LIBS"
  18861. ac_ext=c
  18862. ac_cpp='$CPP $CPPFLAGS'
  18863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18866. fi
  18867. fi
  18868. if test "x$no_esd" = x ; then
  18869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18870. printf "%s\n" "yes" >&6; }
  18871. have_esd=yes
  18872. else
  18873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18874. printf "%s\n" "no" >&6; }
  18875. if test "$ESD_CONFIG" = "no" ; then
  18876. echo "*** The esd-config script installed by ESD could not be found"
  18877. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  18878. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  18879. echo "*** full path to esd-config."
  18880. else
  18881. if test -f conf.esdtest ; then
  18882. :
  18883. else
  18884. echo "*** Could not run ESD test program, checking why..."
  18885. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18886. LIBS="$LIBS $ESD_LIBS"
  18887. ac_ext=c
  18888. ac_cpp='$CPP $CPPFLAGS'
  18889. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18890. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18891. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18893. /* end confdefs.h. */
  18894. #include <stdio.h>
  18895. #include <esd.h>
  18896. int
  18897. main (void)
  18898. {
  18899. return 0;
  18900. ;
  18901. return 0;
  18902. }
  18903. _ACEOF
  18904. if ac_fn_c_try_link "$LINENO"
  18905. then :
  18906. echo "*** The test program compiled, but did not run. This usually means"
  18907. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18908. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18909. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18910. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18911. echo "*** is required on your system"
  18912. echo "***"
  18913. echo "*** If you have an old version installed, it is best to remove it, although"
  18914. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18915. else $as_nop
  18916. echo "*** The test program failed to compile or link. See the file config.log for the"
  18917. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18918. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18919. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18920. fi
  18921. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18922. conftest$ac_exeext conftest.$ac_ext
  18923. CFLAGS="$ac_save_CFLAGS"
  18924. LIBS="$ac_save_LIBS"
  18925. ac_ext=c
  18926. ac_cpp='$CPP $CPPFLAGS'
  18927. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18928. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18929. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18930. fi
  18931. fi
  18932. ESD_CFLAGS=""
  18933. ESD_LIBS=""
  18934. have_esd=no
  18935. fi
  18936. rm -f conf.esdtest
  18937. if test x$have_esd = xyes; then
  18938. # Check whether --enable-esd-shared was given.
  18939. if test ${enable_esd_shared+y}
  18940. then :
  18941. enableval=$enable_esd_shared;
  18942. else $as_nop
  18943. enable_esd_shared=yes
  18944. fi
  18945. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18946. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18947. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18948. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18949. if test x$have_loadso != xyes && \
  18950. test x$enable_esd_shared = xyes; then
  18951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18952. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18953. fi
  18954. if test x$have_loadso = xyes && \
  18955. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18956. echo "-- dynamic libesd -> $esd_lib"
  18957. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18958. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18959. else
  18960. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18961. SUMMARY_audio="${SUMMARY_audio} esd"
  18962. fi
  18963. have_audio=yes
  18964. fi
  18965. fi
  18966. }
  18967. CheckPipewire()
  18968. {
  18969. # Check whether --enable-pipewire was given.
  18970. if test ${enable_pipewire+y}
  18971. then :
  18972. enableval=$enable_pipewire;
  18973. else $as_nop
  18974. enable_pipewire=yes
  18975. fi
  18976. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18977. pkg_failed=no
  18978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18979. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18980. if test -n "$PIPEWIRE_CFLAGS"; then
  18981. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18982. elif test -n "$PKG_CONFIG"; then
  18983. if test -n "$PKG_CONFIG" && \
  18984. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18985. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18986. ac_status=$?
  18987. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18988. test $ac_status = 0; }; then
  18989. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18990. test "x$?" != "x0" && pkg_failed=yes
  18991. else
  18992. pkg_failed=yes
  18993. fi
  18994. else
  18995. pkg_failed=untried
  18996. fi
  18997. if test -n "$PIPEWIRE_LIBS"; then
  18998. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18999. elif test -n "$PKG_CONFIG"; then
  19000. if test -n "$PKG_CONFIG" && \
  19001. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19002. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19003. ac_status=$?
  19004. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19005. test $ac_status = 0; }; then
  19006. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19007. test "x$?" != "x0" && pkg_failed=yes
  19008. else
  19009. pkg_failed=yes
  19010. fi
  19011. else
  19012. pkg_failed=untried
  19013. fi
  19014. if test $pkg_failed = yes; then
  19015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19016. printf "%s\n" "no" >&6; }
  19017. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19018. _pkg_short_errors_supported=yes
  19019. else
  19020. _pkg_short_errors_supported=no
  19021. fi
  19022. if test $_pkg_short_errors_supported = yes; then
  19023. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19024. else
  19025. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19026. fi
  19027. # Put the nasty error message in config.log where it belongs
  19028. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19029. audio_pipewire=no
  19030. elif test $pkg_failed = untried; then
  19031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19032. printf "%s\n" "no" >&6; }
  19033. audio_pipewire=no
  19034. else
  19035. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19036. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19038. printf "%s\n" "yes" >&6; }
  19039. audio_pipewire=yes
  19040. fi
  19041. if test x$audio_pipewire = xyes; then
  19042. # Check whether --enable-pipewire-shared was given.
  19043. if test ${enable_pipewire_shared+y}
  19044. then :
  19045. enableval=$enable_pipewire_shared;
  19046. else $as_nop
  19047. enable_pipewire_shared=yes
  19048. fi
  19049. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19050. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19051. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19052. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19053. if test x$have_loadso != xyes && \
  19054. test x$enable_pipewire_shared = xyes; then
  19055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19056. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19057. fi
  19058. if test x$have_loadso = xyes && \
  19059. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19060. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19061. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19062. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19063. else
  19064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19065. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19066. fi
  19067. have_audio=yes
  19068. fi
  19069. fi
  19070. }
  19071. CheckPulseAudio()
  19072. {
  19073. # Check whether --enable-pulseaudio was given.
  19074. if test ${enable_pulseaudio+y}
  19075. then :
  19076. enableval=$enable_pulseaudio;
  19077. else $as_nop
  19078. enable_pulseaudio=yes
  19079. fi
  19080. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19081. pkg_failed=no
  19082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19083. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19084. if test -n "$PULSEAUDIO_CFLAGS"; then
  19085. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19086. elif test -n "$PKG_CONFIG"; then
  19087. if test -n "$PKG_CONFIG" && \
  19088. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19089. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19090. ac_status=$?
  19091. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19092. test $ac_status = 0; }; then
  19093. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19094. test "x$?" != "x0" && pkg_failed=yes
  19095. else
  19096. pkg_failed=yes
  19097. fi
  19098. else
  19099. pkg_failed=untried
  19100. fi
  19101. if test -n "$PULSEAUDIO_LIBS"; then
  19102. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19103. elif test -n "$PKG_CONFIG"; then
  19104. if test -n "$PKG_CONFIG" && \
  19105. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19106. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19107. ac_status=$?
  19108. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19109. test $ac_status = 0; }; then
  19110. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19111. test "x$?" != "x0" && pkg_failed=yes
  19112. else
  19113. pkg_failed=yes
  19114. fi
  19115. else
  19116. pkg_failed=untried
  19117. fi
  19118. if test $pkg_failed = yes; then
  19119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19120. printf "%s\n" "no" >&6; }
  19121. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19122. _pkg_short_errors_supported=yes
  19123. else
  19124. _pkg_short_errors_supported=no
  19125. fi
  19126. if test $_pkg_short_errors_supported = yes; then
  19127. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19128. else
  19129. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19130. fi
  19131. # Put the nasty error message in config.log where it belongs
  19132. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19133. audio_pulseaudio=no
  19134. elif test $pkg_failed = untried; then
  19135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19136. printf "%s\n" "no" >&6; }
  19137. audio_pulseaudio=no
  19138. else
  19139. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19140. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19142. printf "%s\n" "yes" >&6; }
  19143. audio_pulseaudio=yes
  19144. fi
  19145. if test x$audio_pulseaudio = xyes; then
  19146. # Check whether --enable-pulseaudio-shared was given.
  19147. if test ${enable_pulseaudio_shared+y}
  19148. then :
  19149. enableval=$enable_pulseaudio_shared;
  19150. else $as_nop
  19151. enable_pulseaudio_shared=yes
  19152. fi
  19153. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19154. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19155. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19156. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19157. if test x$have_loadso != xyes && \
  19158. test x$enable_pulseaudio_shared = xyes; then
  19159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19160. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19161. fi
  19162. if test x$have_loadso = xyes && \
  19163. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19164. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19165. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19166. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19167. case "$host" in
  19168. # On Solaris, pulseaudio must be linked deferred explicitly
  19169. # to prevent undefined symbol failures.
  19170. *-*-solaris*)
  19171. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19173. esac
  19174. else
  19175. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19176. SUMMARY_audio="${SUMMARY_audio} pulse"
  19177. fi
  19178. have_audio=yes
  19179. fi
  19180. fi
  19181. }
  19182. CheckARTSC()
  19183. {
  19184. # Check whether --enable-arts was given.
  19185. if test ${enable_arts+y}
  19186. then :
  19187. enableval=$enable_arts;
  19188. else $as_nop
  19189. enable_arts=yes
  19190. fi
  19191. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19192. # Extract the first word of "artsc-config", so it can be a program name with args.
  19193. set dummy artsc-config; ac_word=$2
  19194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19195. printf %s "checking for $ac_word... " >&6; }
  19196. if test ${ac_cv_path_ARTSCONFIG+y}
  19197. then :
  19198. printf %s "(cached) " >&6
  19199. else $as_nop
  19200. case $ARTSCONFIG in
  19201. [\\/]* | ?:[\\/]*)
  19202. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19203. ;;
  19204. *)
  19205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19206. for as_dir in $PATH
  19207. do
  19208. IFS=$as_save_IFS
  19209. case $as_dir in #(((
  19210. '') as_dir=./ ;;
  19211. */) ;;
  19212. *) as_dir=$as_dir/ ;;
  19213. esac
  19214. for ac_exec_ext in '' $ac_executable_extensions; do
  19215. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19216. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19217. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19218. break 2
  19219. fi
  19220. done
  19221. done
  19222. IFS=$as_save_IFS
  19223. ;;
  19224. esac
  19225. fi
  19226. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19227. if test -n "$ARTSCONFIG"; then
  19228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19229. printf "%s\n" "$ARTSCONFIG" >&6; }
  19230. else
  19231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19232. printf "%s\n" "no" >&6; }
  19233. fi
  19234. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19235. : # arts isn't installed
  19236. else
  19237. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19238. ARTS_LIBS=`$ARTSCONFIG --libs`
  19239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19240. printf %s "checking for aRts development environment... " >&6; }
  19241. audio_arts=no
  19242. save_CFLAGS="$CFLAGS"
  19243. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19245. /* end confdefs.h. */
  19246. #include <artsc.h>
  19247. int
  19248. main (void)
  19249. {
  19250. arts_stream_t stream;
  19251. ;
  19252. return 0;
  19253. }
  19254. _ACEOF
  19255. if ac_fn_c_try_compile "$LINENO"
  19256. then :
  19257. audio_arts=yes
  19258. fi
  19259. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19260. CFLAGS="$save_CFLAGS"
  19261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19262. printf "%s\n" "$audio_arts" >&6; }
  19263. if test x$audio_arts = xyes; then
  19264. # Check whether --enable-arts-shared was given.
  19265. if test ${enable_arts_shared+y}
  19266. then :
  19267. enableval=$enable_arts_shared;
  19268. else $as_nop
  19269. enable_arts_shared=yes
  19270. fi
  19271. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19272. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19273. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19274. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19275. if test x$have_loadso != xyes && \
  19276. test x$enable_arts_shared = xyes; then
  19277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19278. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19279. fi
  19280. if test x$have_loadso = xyes && \
  19281. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19282. echo "-- dynamic libartsc -> $arts_lib"
  19283. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19284. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19285. else
  19286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19287. SUMMARY_audio="${SUMMARY_audio} arts"
  19288. fi
  19289. have_audio=yes
  19290. fi
  19291. fi
  19292. fi
  19293. }
  19294. CheckNAS()
  19295. {
  19296. # Check whether --enable-nas was given.
  19297. if test ${enable_nas+y}
  19298. then :
  19299. enableval=$enable_nas;
  19300. else $as_nop
  19301. enable_nas=yes
  19302. fi
  19303. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19304. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19305. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19306. then :
  19307. have_nas_hdr=yes
  19308. fi
  19309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19310. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19311. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19312. then :
  19313. printf %s "(cached) " >&6
  19314. else $as_nop
  19315. ac_check_lib_save_LIBS=$LIBS
  19316. LIBS="-laudio $LIBS"
  19317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19318. /* end confdefs.h. */
  19319. /* Override any GCC internal prototype to avoid an error.
  19320. Use char because int might match the return type of a GCC
  19321. builtin and then its argument prototype would still apply. */
  19322. char AuOpenServer ();
  19323. int
  19324. main (void)
  19325. {
  19326. return AuOpenServer ();
  19327. ;
  19328. return 0;
  19329. }
  19330. _ACEOF
  19331. if ac_fn_c_try_link "$LINENO"
  19332. then :
  19333. ac_cv_lib_audio_AuOpenServer=yes
  19334. else $as_nop
  19335. ac_cv_lib_audio_AuOpenServer=no
  19336. fi
  19337. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19338. conftest$ac_exeext conftest.$ac_ext
  19339. LIBS=$ac_check_lib_save_LIBS
  19340. fi
  19341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19342. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19343. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19344. then :
  19345. have_nas_lib=yes
  19346. fi
  19347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19348. printf %s "checking for NAS audio support... " >&6; }
  19349. have_nas=no
  19350. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19351. have_nas=yes
  19352. NAS_LIBS="-laudio"
  19353. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19354. have_nas=yes
  19355. NAS_CFLAGS="-I/usr/X11R6/include/"
  19356. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19357. fi
  19358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19359. printf "%s\n" "$have_nas" >&6; }
  19360. if test x$have_nas = xyes; then
  19361. # Check whether --enable-nas-shared was given.
  19362. if test ${enable_nas_shared+y}
  19363. then :
  19364. enableval=$enable_nas_shared;
  19365. else $as_nop
  19366. enable_nas_shared=yes
  19367. fi
  19368. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19369. if test x$have_loadso != xyes && \
  19370. test x$enable_nas_shared = xyes; then
  19371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19372. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19373. fi
  19374. if test x$have_loadso = xyes && \
  19375. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19376. echo "-- dynamic libaudio -> $nas_lib"
  19377. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19378. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19379. else
  19380. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19381. SUMMARY_audio="${SUMMARY_audio} nas"
  19382. fi
  19383. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19384. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19385. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19386. have_audio=yes
  19387. fi
  19388. fi
  19389. }
  19390. CheckSNDIO()
  19391. {
  19392. # Check whether --enable-sndio was given.
  19393. if test ${enable_sndio+y}
  19394. then :
  19395. enableval=$enable_sndio;
  19396. else $as_nop
  19397. enable_sndio=yes
  19398. fi
  19399. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19400. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19401. if test "x$ac_cv_header_sndio_h" = xyes
  19402. then :
  19403. have_sndio_hdr=yes
  19404. fi
  19405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19406. printf %s "checking for sio_open in -lsndio... " >&6; }
  19407. if test ${ac_cv_lib_sndio_sio_open+y}
  19408. then :
  19409. printf %s "(cached) " >&6
  19410. else $as_nop
  19411. ac_check_lib_save_LIBS=$LIBS
  19412. LIBS="-lsndio $LIBS"
  19413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19414. /* end confdefs.h. */
  19415. /* Override any GCC internal prototype to avoid an error.
  19416. Use char because int might match the return type of a GCC
  19417. builtin and then its argument prototype would still apply. */
  19418. char sio_open ();
  19419. int
  19420. main (void)
  19421. {
  19422. return sio_open ();
  19423. ;
  19424. return 0;
  19425. }
  19426. _ACEOF
  19427. if ac_fn_c_try_link "$LINENO"
  19428. then :
  19429. ac_cv_lib_sndio_sio_open=yes
  19430. else $as_nop
  19431. ac_cv_lib_sndio_sio_open=no
  19432. fi
  19433. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19434. conftest$ac_exeext conftest.$ac_ext
  19435. LIBS=$ac_check_lib_save_LIBS
  19436. fi
  19437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19438. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19439. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19440. then :
  19441. have_sndio_lib=yes
  19442. fi
  19443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19444. printf %s "checking for sndio audio support... " >&6; }
  19445. have_sndio=no
  19446. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19447. have_sndio=yes
  19448. SNDIO_LIBS="-lsndio"
  19449. fi
  19450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19451. printf "%s\n" "$have_sndio" >&6; }
  19452. if test x$have_sndio = xyes; then
  19453. # Check whether --enable-sndio-shared was given.
  19454. if test ${enable_sndio_shared+y}
  19455. then :
  19456. enableval=$enable_sndio_shared;
  19457. else $as_nop
  19458. enable_sndio_shared=yes
  19459. fi
  19460. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19461. if test x$have_loadso != xyes && \
  19462. test x$enable_sndio_shared = xyes; then
  19463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19464. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19465. fi
  19466. if test x$have_loadso = xyes && \
  19467. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19468. echo "-- dynamic libsndio -> $sndio_lib"
  19469. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19470. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19471. else
  19472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19473. SUMMARY_audio="${SUMMARY_audio} sndio"
  19474. fi
  19475. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19476. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19477. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19478. have_audio=yes
  19479. fi
  19480. fi
  19481. }
  19482. CheckFusionSound()
  19483. {
  19484. # Check whether --enable-fusionsound was given.
  19485. if test ${enable_fusionsound+y}
  19486. then :
  19487. enableval=$enable_fusionsound;
  19488. else $as_nop
  19489. enable_fusionsound=no
  19490. fi
  19491. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19492. pkg_failed=no
  19493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19494. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19495. if test -n "$FUSIONSOUND_CFLAGS"; then
  19496. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19497. elif test -n "$PKG_CONFIG"; then
  19498. if test -n "$PKG_CONFIG" && \
  19499. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19500. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19501. ac_status=$?
  19502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19503. test $ac_status = 0; }; then
  19504. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19505. test "x$?" != "x0" && pkg_failed=yes
  19506. else
  19507. pkg_failed=yes
  19508. fi
  19509. else
  19510. pkg_failed=untried
  19511. fi
  19512. if test -n "$FUSIONSOUND_LIBS"; then
  19513. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19514. elif test -n "$PKG_CONFIG"; then
  19515. if test -n "$PKG_CONFIG" && \
  19516. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19517. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19518. ac_status=$?
  19519. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19520. test $ac_status = 0; }; then
  19521. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19522. test "x$?" != "x0" && pkg_failed=yes
  19523. else
  19524. pkg_failed=yes
  19525. fi
  19526. else
  19527. pkg_failed=untried
  19528. fi
  19529. if test $pkg_failed = yes; then
  19530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19531. printf "%s\n" "no" >&6; }
  19532. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19533. _pkg_short_errors_supported=yes
  19534. else
  19535. _pkg_short_errors_supported=no
  19536. fi
  19537. if test $_pkg_short_errors_supported = yes; then
  19538. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19539. else
  19540. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19541. fi
  19542. # Put the nasty error message in config.log where it belongs
  19543. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19544. fusionsound=no
  19545. elif test $pkg_failed = untried; then
  19546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19547. printf "%s\n" "no" >&6; }
  19548. fusionsound=no
  19549. else
  19550. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19551. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19553. printf "%s\n" "yes" >&6; }
  19554. fusionsound=yes
  19555. fi
  19556. if test x$fusionsound = xyes; then
  19557. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19558. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19559. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19560. # Check whether --enable-fusionsound-shared was given.
  19561. if test ${enable_fusionsound_shared+y}
  19562. then :
  19563. enableval=$enable_fusionsound_shared;
  19564. else $as_nop
  19565. enable_fusionsound_shared=yes
  19566. fi
  19567. fusionsound_shared=no
  19568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19569. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19570. if test x$have_loadso != xyes && \
  19571. test x$enable_fusionsound_shared = xyes; then
  19572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19573. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19574. fi
  19575. if test x$have_loadso = xyes && \
  19576. test x$enable_fusionsound_shared = xyes; then
  19577. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19578. fusionsound_shared=yes
  19579. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19580. else
  19581. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19582. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19583. fi
  19584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19585. printf "%s\n" "$fusionsound_shared" >&6; }
  19586. have_audio=yes
  19587. fi
  19588. fi
  19589. }
  19590. CheckDiskAudio()
  19591. {
  19592. # Check whether --enable-diskaudio was given.
  19593. if test ${enable_diskaudio+y}
  19594. then :
  19595. enableval=$enable_diskaudio;
  19596. else $as_nop
  19597. enable_diskaudio=yes
  19598. fi
  19599. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19600. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19601. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19602. SUMMARY_audio="${SUMMARY_audio} disk"
  19603. have_audio=yes
  19604. fi
  19605. }
  19606. CheckDummyAudio()
  19607. {
  19608. # Check whether --enable-dummyaudio was given.
  19609. if test ${enable_dummyaudio+y}
  19610. then :
  19611. enableval=$enable_dummyaudio;
  19612. else $as_nop
  19613. enable_dummyaudio=yes
  19614. fi
  19615. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19616. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19617. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19618. SUMMARY_audio="${SUMMARY_audio} dummy"
  19619. have_audio=yes
  19620. fi
  19621. }
  19622. CheckLibSampleRate()
  19623. {
  19624. # Check whether --enable-libsamplerate was given.
  19625. if test ${enable_libsamplerate+y}
  19626. then :
  19627. enableval=$enable_libsamplerate;
  19628. else $as_nop
  19629. enable_libsamplerate=yes
  19630. fi
  19631. if test x$enable_libsamplerate = xyes; then
  19632. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19633. if test "x$ac_cv_header_samplerate_h" = xyes
  19634. then :
  19635. have_samplerate_h_hdr=yes
  19636. else $as_nop
  19637. have_samplerate_h_hdr=no
  19638. fi
  19639. if test x$have_samplerate_h_hdr = xyes; then
  19640. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19641. # Check whether --enable-libsamplerate-shared was given.
  19642. if test ${enable_libsamplerate_shared+y}
  19643. then :
  19644. enableval=$enable_libsamplerate_shared;
  19645. else $as_nop
  19646. enable_libsamplerate_shared=yes
  19647. fi
  19648. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19649. if test x$have_loadso != xyes && \
  19650. test x$enable_libsamplerate_shared = xyes; then
  19651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19652. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19653. fi
  19654. if test x$have_loadso = xyes && \
  19655. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19656. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19657. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19658. else
  19659. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19660. fi
  19661. fi
  19662. fi
  19663. }
  19664. CheckARM()
  19665. {
  19666. # Check whether --enable-arm-simd was given.
  19667. if test ${enable_arm_simd+y}
  19668. then :
  19669. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19670. else $as_nop
  19671. enable_arm_simd=no
  19672. fi
  19673. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19674. save_CFLAGS="$CFLAGS"
  19675. have_arm_simd=no
  19676. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19678. printf %s "checking for ARM SIMD... " >&6; }
  19679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19680. /* end confdefs.h. */
  19681. .text
  19682. .arch armv6
  19683. .object_arch armv4
  19684. .arm
  19685. .altmacro
  19686. #ifndef __ARM_EABI__
  19687. #error EABI is required (to be sure that calling conventions are compatible)
  19688. #endif
  19689. pld [r0]
  19690. uqadd8 r0, r0, r0
  19691. _ACEOF
  19692. if ac_fn_c_try_compile "$LINENO"
  19693. then :
  19694. have_arm_simd=yes
  19695. fi
  19696. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19698. printf "%s\n" "$have_arm_simd" >&6; }
  19699. CFLAGS="$save_CFLAGS"
  19700. if test x$have_arm_simd = xyes; then
  19701. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19702. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19703. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19704. fi
  19705. fi
  19706. }
  19707. CheckNEON()
  19708. {
  19709. # Check whether --enable-arm-neon was given.
  19710. if test ${enable_arm_neon+y}
  19711. then :
  19712. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19713. else $as_nop
  19714. enable_arm_neon=no
  19715. fi
  19716. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19717. save_CFLAGS="$CFLAGS"
  19718. have_arm_neon=no
  19719. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19721. printf %s "checking for ARM NEON... " >&6; }
  19722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19723. /* end confdefs.h. */
  19724. .text
  19725. .fpu neon
  19726. .arch armv7a
  19727. .object_arch armv4
  19728. .eabi_attribute 10, 0
  19729. .arm
  19730. .altmacro
  19731. #ifndef __ARM_EABI__
  19732. #error EABI is required (to be sure that calling conventions are compatible)
  19733. #endif
  19734. pld [r0]
  19735. vmovn.u16 d0, q0
  19736. _ACEOF
  19737. if ac_fn_c_try_compile "$LINENO"
  19738. then :
  19739. have_arm_neon=yes
  19740. fi
  19741. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19743. printf "%s\n" "$have_arm_neon" >&6; }
  19744. CFLAGS="$save_CFLAGS"
  19745. if test x$have_arm_neon = xyes; then
  19746. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19747. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19748. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19749. fi
  19750. fi
  19751. }
  19752. CheckObjectiveCARC()
  19753. {
  19754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19755. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19756. have_clang_objc_arc=no
  19757. save_CFLAGS="$CFLAGS"
  19758. CFLAGS="$save_CFLAGS -fobjc-arc"
  19759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19760. /* end confdefs.h. */
  19761. int x = 0;
  19762. int
  19763. main (void)
  19764. {
  19765. ;
  19766. return 0;
  19767. }
  19768. _ACEOF
  19769. if ac_fn_c_try_compile "$LINENO"
  19770. then :
  19771. have_clang_objc_arc=yes
  19772. fi
  19773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19775. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19776. CFLAGS="$save_CFLAGS"
  19777. if test x$have_clang_objc_arc = xyes; then
  19778. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19779. fi
  19780. }
  19781. CheckVisibilityHidden()
  19782. {
  19783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19784. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19785. have_gcc_fvisibility=no
  19786. visibility_CFLAGS="-fvisibility=hidden"
  19787. save_CFLAGS="$CFLAGS"
  19788. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19790. /* end confdefs.h. */
  19791. #if !defined(__GNUC__) || __GNUC__ < 4
  19792. #error SDL only uses visibility attributes in GCC 4 or newer
  19793. #endif
  19794. int
  19795. main (void)
  19796. {
  19797. ;
  19798. return 0;
  19799. }
  19800. _ACEOF
  19801. if ac_fn_c_try_compile "$LINENO"
  19802. then :
  19803. have_gcc_fvisibility=yes
  19804. fi
  19805. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19807. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19808. CFLAGS="$save_CFLAGS"
  19809. if test x$have_gcc_fvisibility = xyes; then
  19810. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19811. fi
  19812. }
  19813. CheckNoStrictAliasing()
  19814. {
  19815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19816. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19817. have_gcc_no_strict_aliasing=no
  19818. save_CFLAGS="$CFLAGS"
  19819. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19821. /* end confdefs.h. */
  19822. int x = 0;
  19823. int
  19824. main (void)
  19825. {
  19826. ;
  19827. return 0;
  19828. }
  19829. _ACEOF
  19830. if ac_fn_c_try_compile "$LINENO"
  19831. then :
  19832. have_gcc_no_strict_aliasing=yes
  19833. fi
  19834. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19836. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19837. CFLAGS="$save_CFLAGS"
  19838. if test x$have_gcc_no_strict_aliasing = xyes; then
  19839. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19840. fi
  19841. }
  19842. CheckStackBoundary()
  19843. {
  19844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19845. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19846. have_gcc_preferred_stack_boundary=no
  19847. save_CFLAGS="$CFLAGS"
  19848. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19850. /* end confdefs.h. */
  19851. int x = 0;
  19852. int
  19853. main (void)
  19854. {
  19855. ;
  19856. return 0;
  19857. }
  19858. _ACEOF
  19859. if ac_fn_c_try_compile "$LINENO"
  19860. then :
  19861. have_gcc_preferred_stack_boundary=yes
  19862. fi
  19863. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19865. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19866. CFLAGS="$save_CFLAGS"
  19867. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19868. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19869. fi
  19870. }
  19871. CheckDeclarationAfterStatement()
  19872. {
  19873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19874. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19875. have_gcc_declaration_after_statement=no
  19876. save_CFLAGS="$CFLAGS"
  19877. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19879. /* end confdefs.h. */
  19880. int x = 0;
  19881. int
  19882. main (void)
  19883. {
  19884. ;
  19885. return 0;
  19886. }
  19887. _ACEOF
  19888. if ac_fn_c_try_compile "$LINENO"
  19889. then :
  19890. have_gcc_declaration_after_statement=yes
  19891. fi
  19892. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19894. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19895. CFLAGS="$save_CFLAGS"
  19896. if test x$have_gcc_declaration_after_statement = xyes; then
  19897. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19898. fi
  19899. }
  19900. CheckWarnAll()
  19901. {
  19902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19903. printf %s "checking for GCC -Wall option... " >&6; }
  19904. have_gcc_Wall=no
  19905. save_CFLAGS="$CFLAGS"
  19906. CFLAGS="$save_CFLAGS -Wall"
  19907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19908. /* end confdefs.h. */
  19909. int x = 0;
  19910. int
  19911. main (void)
  19912. {
  19913. ;
  19914. return 0;
  19915. }
  19916. _ACEOF
  19917. if ac_fn_c_try_compile "$LINENO"
  19918. then :
  19919. have_gcc_Wall=yes
  19920. fi
  19921. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19923. printf "%s\n" "$have_gcc_Wall" >&6; }
  19924. CFLAGS="$save_CFLAGS"
  19925. if test x$have_gcc_Wall = xyes; then
  19926. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19928. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19929. need_gcc_Wno_multichar=no
  19930. case "$host" in
  19931. *-*-haiku*)
  19932. need_gcc_Wno_multichar=yes
  19933. ;;
  19934. esac
  19935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19936. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19937. if test x$need_gcc_Wno_multichar = xyes; then
  19938. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19939. fi
  19940. fi
  19941. }
  19942. CheckWayland()
  19943. {
  19944. # Check whether --enable-video-wayland was given.
  19945. if test ${enable_video_wayland+y}
  19946. then :
  19947. enableval=$enable_video_wayland;
  19948. else $as_nop
  19949. enable_video_wayland=yes
  19950. fi
  19951. # Check whether --enable-video-wayland-qt-touch was given.
  19952. if test ${enable_video_wayland_qt_touch+y}
  19953. then :
  19954. enableval=$enable_video_wayland_qt_touch;
  19955. else $as_nop
  19956. enable_video_wayland_qt_touch=yes
  19957. fi
  19958. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19960. printf %s "checking for Wayland support... " >&6; }
  19961. video_wayland=no
  19962. if test x$video_opengl_egl = xyes && \
  19963. test x$video_opengles_v2 = xyes; then
  19964. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19965. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19966. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19967. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19968. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19969. then :
  19970. WAYLAND_SCANNER_CODE_MODE=private-code
  19971. else $as_nop
  19972. WAYLAND_SCANNER_CODE_MODE=code
  19973. fi
  19974. video_wayland=yes
  19975. fi
  19976. fi
  19977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19978. printf "%s\n" "$video_wayland" >&6; }
  19979. if test x$video_wayland = xyes; then
  19980. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19981. if test x$enable_video_wayland_qt_touch = xyes; then
  19982. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19983. fi
  19984. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19985. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19986. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19987. # Check whether --enable-wayland-shared was given.
  19988. if test ${enable_wayland_shared+y}
  19989. then :
  19990. enableval=$enable_wayland_shared;
  19991. else $as_nop
  19992. enable_wayland_shared=maybe
  19993. fi
  19994. case "$host" in
  19995. *)
  19996. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19997. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19998. if test x$wayland_egl_lib = x; then
  19999. # This works in Ubuntu 13.10, maybe others
  20000. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20001. fi
  20002. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20003. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20004. ;;
  20005. esac
  20006. if test x$enable_wayland_shared = xmaybe; then
  20007. enable_wayland_shared=yes
  20008. fi
  20009. if test x$have_loadso != xyes && \
  20010. test x$enable_wayland_shared = xyes; then
  20011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20012. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20013. enable_wayland_shared=no
  20014. fi
  20015. if test x$have_loadso = xyes && \
  20016. test x$enable_wayland_shared = xyes && \
  20017. test x$wayland_client_lib != x && \
  20018. test x$wayland_egl_lib != x && \
  20019. test x$wayland_cursor_lib != x && \
  20020. test x$xkbcommon_lib != x; then
  20021. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20022. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20023. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20024. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20025. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20026. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20027. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20028. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20029. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20030. else
  20031. enable_wayland_shared=no
  20032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20033. SUMMARY_video="${SUMMARY_video} wayland"
  20034. fi
  20035. have_video=yes
  20036. # Check whether --enable-libdecor was given.
  20037. if test ${enable_libdecor+y}
  20038. then :
  20039. enableval=$enable_libdecor;
  20040. else $as_nop
  20041. enable_libdecor=yes
  20042. fi
  20043. if test x$enable_libdecor = xyes; then
  20044. pkg_failed=no
  20045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20046. printf %s "checking for libdecor-0... " >&6; }
  20047. if test -n "$DECOR_CFLAGS"; then
  20048. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20049. elif test -n "$PKG_CONFIG"; then
  20050. if test -n "$PKG_CONFIG" && \
  20051. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20052. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20053. ac_status=$?
  20054. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20055. test $ac_status = 0; }; then
  20056. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20057. test "x$?" != "x0" && pkg_failed=yes
  20058. else
  20059. pkg_failed=yes
  20060. fi
  20061. else
  20062. pkg_failed=untried
  20063. fi
  20064. if test -n "$DECOR_LIBS"; then
  20065. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20066. elif test -n "$PKG_CONFIG"; then
  20067. if test -n "$PKG_CONFIG" && \
  20068. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20069. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20070. ac_status=$?
  20071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20072. test $ac_status = 0; }; then
  20073. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20074. test "x$?" != "x0" && pkg_failed=yes
  20075. else
  20076. pkg_failed=yes
  20077. fi
  20078. else
  20079. pkg_failed=untried
  20080. fi
  20081. if test $pkg_failed = yes; then
  20082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20083. printf "%s\n" "no" >&6; }
  20084. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20085. _pkg_short_errors_supported=yes
  20086. else
  20087. _pkg_short_errors_supported=no
  20088. fi
  20089. if test $_pkg_short_errors_supported = yes; then
  20090. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20091. else
  20092. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20093. fi
  20094. # Put the nasty error message in config.log where it belongs
  20095. echo "$DECOR_PKG_ERRORS" >&5
  20096. video_libdecor=no
  20097. elif test $pkg_failed = untried; then
  20098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20099. printf "%s\n" "no" >&6; }
  20100. video_libdecor=no
  20101. else
  20102. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20103. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20105. printf "%s\n" "yes" >&6; }
  20106. video_libdecor=yes
  20107. fi
  20108. if test x$video_libdecor = xyes; then
  20109. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20110. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20111. # Check whether --enable-libdecor-shared was given.
  20112. if test ${enable_libdecor_shared+y}
  20113. then :
  20114. enableval=$enable_libdecor_shared;
  20115. else $as_nop
  20116. enable_libdecor_shared=yes
  20117. fi
  20118. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20119. if test x$enable_wayland_shared != xyes; then
  20120. enable_libdecor_shared=no
  20121. fi
  20122. if test x$have_loadso != xyes && \
  20123. test x$enable_libdecor_shared = xyes; then
  20124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20125. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20126. fi
  20127. if test x$have_loadso = xyes && \
  20128. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20129. echo "-- dynamic libdecor -> $decor_lib"
  20130. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20131. else
  20132. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20133. fi
  20134. fi
  20135. fi
  20136. fi
  20137. fi
  20138. }
  20139. CheckNativeClient()
  20140. {
  20141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20142. /* end confdefs.h. */
  20143. #if !defined(__native_client__)
  20144. #error "NO NACL"
  20145. #endif
  20146. int
  20147. main (void)
  20148. {
  20149. ;
  20150. return 0;
  20151. }
  20152. _ACEOF
  20153. if ac_fn_c_try_compile "$LINENO"
  20154. then :
  20155. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20156. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20157. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20158. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20159. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20160. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20161. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20162. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20163. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20164. SUMMARY_audio="${SUMMARY_audio} nacl"
  20165. have_audio=yes
  20166. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20167. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20168. have_video=yes
  20169. fi
  20170. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20171. }
  20172. CheckRPI()
  20173. {
  20174. # Check whether --enable-video-rpi was given.
  20175. if test ${enable_video_rpi+y}
  20176. then :
  20177. enableval=$enable_video_rpi;
  20178. else $as_nop
  20179. enable_video_rpi=yes
  20180. fi
  20181. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20182. pkg_failed=no
  20183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20184. printf %s "checking for bcm_host brcmegl... " >&6; }
  20185. if test -n "$RPI_CFLAGS"; then
  20186. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20187. elif test -n "$PKG_CONFIG"; then
  20188. if test -n "$PKG_CONFIG" && \
  20189. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20190. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20191. ac_status=$?
  20192. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20193. test $ac_status = 0; }; then
  20194. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20195. test "x$?" != "x0" && pkg_failed=yes
  20196. else
  20197. pkg_failed=yes
  20198. fi
  20199. else
  20200. pkg_failed=untried
  20201. fi
  20202. if test -n "$RPI_LIBS"; then
  20203. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20204. elif test -n "$PKG_CONFIG"; then
  20205. if test -n "$PKG_CONFIG" && \
  20206. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20207. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20208. ac_status=$?
  20209. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20210. test $ac_status = 0; }; then
  20211. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20212. test "x$?" != "x0" && pkg_failed=yes
  20213. else
  20214. pkg_failed=yes
  20215. fi
  20216. else
  20217. pkg_failed=untried
  20218. fi
  20219. if test $pkg_failed = yes; then
  20220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20221. printf "%s\n" "no" >&6; }
  20222. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20223. _pkg_short_errors_supported=yes
  20224. else
  20225. _pkg_short_errors_supported=no
  20226. fi
  20227. if test $_pkg_short_errors_supported = yes; then
  20228. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20229. else
  20230. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20231. fi
  20232. # Put the nasty error message in config.log where it belongs
  20233. echo "$RPI_PKG_ERRORS" >&5
  20234. video_rpi=no
  20235. elif test $pkg_failed = untried; then
  20236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20237. printf "%s\n" "no" >&6; }
  20238. video_rpi=no
  20239. else
  20240. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20241. RPI_LIBS=$pkg_cv_RPI_LIBS
  20242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20243. printf "%s\n" "yes" >&6; }
  20244. video_rpi=yes
  20245. fi
  20246. if test x$video_rpi = xno; then
  20247. if test x$ARCH = xnetbsd; then
  20248. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20249. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20250. else
  20251. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20252. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20253. fi
  20254. fi
  20255. # Save the original compiler flags and libraries
  20256. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20257. # Add the Raspberry Pi compiler flags and libraries
  20258. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20260. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20261. have_video_rpi=no
  20262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20263. /* end confdefs.h. */
  20264. #include <bcm_host.h>
  20265. #include <EGL/eglplatform.h>
  20266. int
  20267. main (void)
  20268. {
  20269. EGL_DISPMANX_WINDOW_T window;
  20270. bcm_host_init();
  20271. ;
  20272. return 0;
  20273. }
  20274. _ACEOF
  20275. if ac_fn_c_try_link "$LINENO"
  20276. then :
  20277. have_video_rpi=yes
  20278. fi
  20279. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20280. conftest$ac_exeext conftest.$ac_ext
  20281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20282. printf "%s\n" "$have_video_rpi" >&6; }
  20283. # Restore the compiler flags and libraries
  20284. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20285. if test x$have_video_rpi = xyes; then
  20286. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20287. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20288. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20289. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20290. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20291. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20292. SUMMARY_video="${SUMMARY_video} rpi"
  20293. have_video=yes
  20294. fi
  20295. fi
  20296. }
  20297. CheckX11()
  20298. {
  20299. # Check whether --enable-video-x11 was given.
  20300. if test ${enable_video_x11+y}
  20301. then :
  20302. enableval=$enable_video_x11;
  20303. else $as_nop
  20304. enable_video_x11=yes
  20305. fi
  20306. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20307. case "$host" in
  20308. *-*-darwin*)
  20309. # This isn't necessary for X11, but fixes GLX detection
  20310. if test "x$x_includes" = xNONE && \
  20311. test "x$x_libraries" = xNONE && \
  20312. test -d /opt/X11/include && \
  20313. test -d /opt/X11/lib; then
  20314. x_includes="/opt/X11/include"
  20315. x_libraries="/opt/X11/lib"
  20316. fi
  20317. ;;
  20318. esac
  20319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20320. printf %s "checking for X... " >&6; }
  20321. # Check whether --with-x was given.
  20322. if test ${with_x+y}
  20323. then :
  20324. withval=$with_x;
  20325. fi
  20326. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20327. if test "x$with_x" = xno; then
  20328. # The user explicitly disabled X.
  20329. have_x=disabled
  20330. else
  20331. case $x_includes,$x_libraries in #(
  20332. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20333. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20334. then :
  20335. printf %s "(cached) " >&6
  20336. else $as_nop
  20337. # One or both of the vars are not set, and there is no cached value.
  20338. ac_x_includes=no
  20339. ac_x_libraries=no
  20340. # Do we need to do anything special at all?
  20341. ac_save_LIBS=$LIBS
  20342. LIBS="-lX11 $LIBS"
  20343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20344. /* end confdefs.h. */
  20345. #include <X11/Xlib.h>
  20346. int
  20347. main (void)
  20348. {
  20349. XrmInitialize ()
  20350. ;
  20351. return 0;
  20352. }
  20353. _ACEOF
  20354. if ac_fn_c_try_link "$LINENO"
  20355. then :
  20356. # We can compile and link X programs with no special options.
  20357. ac_x_includes=
  20358. ac_x_libraries=
  20359. fi
  20360. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20361. conftest$ac_exeext conftest.$ac_ext
  20362. LIBS="$ac_save_LIBS"
  20363. # If that didn't work, only try xmkmf and file system searches
  20364. # for native compilation.
  20365. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20366. then :
  20367. rm -f -r conftest.dir
  20368. if mkdir conftest.dir; then
  20369. cd conftest.dir
  20370. cat >Imakefile <<'_ACEOF'
  20371. incroot:
  20372. @echo incroot='${INCROOT}'
  20373. usrlibdir:
  20374. @echo usrlibdir='${USRLIBDIR}'
  20375. libdir:
  20376. @echo libdir='${LIBDIR}'
  20377. _ACEOF
  20378. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20379. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20380. for ac_var in incroot usrlibdir libdir; do
  20381. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20382. done
  20383. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20384. for ac_extension in a so sl dylib la dll; do
  20385. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20386. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20387. ac_im_usrlibdir=$ac_im_libdir; break
  20388. fi
  20389. done
  20390. # Screen out bogus values from the imake configuration. They are
  20391. # bogus both because they are the default anyway, and because
  20392. # using them would break gcc on systems where it needs fixed includes.
  20393. case $ac_im_incroot in
  20394. /usr/include) ac_x_includes= ;;
  20395. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20396. esac
  20397. case $ac_im_usrlibdir in
  20398. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20399. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20400. esac
  20401. fi
  20402. cd ..
  20403. rm -f -r conftest.dir
  20404. fi
  20405. # Standard set of common directories for X headers.
  20406. # Check X11 before X11Rn because it is often a symlink to the current release.
  20407. ac_x_header_dirs='
  20408. /usr/X11/include
  20409. /usr/X11R7/include
  20410. /usr/X11R6/include
  20411. /usr/X11R5/include
  20412. /usr/X11R4/include
  20413. /usr/include/X11
  20414. /usr/include/X11R7
  20415. /usr/include/X11R6
  20416. /usr/include/X11R5
  20417. /usr/include/X11R4
  20418. /usr/local/X11/include
  20419. /usr/local/X11R7/include
  20420. /usr/local/X11R6/include
  20421. /usr/local/X11R5/include
  20422. /usr/local/X11R4/include
  20423. /usr/local/include/X11
  20424. /usr/local/include/X11R7
  20425. /usr/local/include/X11R6
  20426. /usr/local/include/X11R5
  20427. /usr/local/include/X11R4
  20428. /opt/X11/include
  20429. /usr/X386/include
  20430. /usr/x386/include
  20431. /usr/XFree86/include/X11
  20432. /usr/include
  20433. /usr/local/include
  20434. /usr/unsupported/include
  20435. /usr/athena/include
  20436. /usr/local/x11r5/include
  20437. /usr/lpp/Xamples/include
  20438. /usr/openwin/include
  20439. /usr/openwin/share/include'
  20440. if test "$ac_x_includes" = no; then
  20441. # Guess where to find include files, by looking for Xlib.h.
  20442. # First, try using that file with no special directory specified.
  20443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20444. /* end confdefs.h. */
  20445. #include <X11/Xlib.h>
  20446. _ACEOF
  20447. if ac_fn_c_try_cpp "$LINENO"
  20448. then :
  20449. # We can compile using X headers with no special include directory.
  20450. ac_x_includes=
  20451. else $as_nop
  20452. for ac_dir in $ac_x_header_dirs; do
  20453. if test -r "$ac_dir/X11/Xlib.h"; then
  20454. ac_x_includes=$ac_dir
  20455. break
  20456. fi
  20457. done
  20458. fi
  20459. rm -f conftest.err conftest.i conftest.$ac_ext
  20460. fi # $ac_x_includes = no
  20461. if test "$ac_x_libraries" = no; then
  20462. # Check for the libraries.
  20463. # See if we find them without any special options.
  20464. # Don't add to $LIBS permanently.
  20465. ac_save_LIBS=$LIBS
  20466. LIBS="-lX11 $LIBS"
  20467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20468. /* end confdefs.h. */
  20469. #include <X11/Xlib.h>
  20470. int
  20471. main (void)
  20472. {
  20473. XrmInitialize ()
  20474. ;
  20475. return 0;
  20476. }
  20477. _ACEOF
  20478. if ac_fn_c_try_link "$LINENO"
  20479. then :
  20480. LIBS=$ac_save_LIBS
  20481. # We can link X programs with no special library path.
  20482. ac_x_libraries=
  20483. else $as_nop
  20484. LIBS=$ac_save_LIBS
  20485. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20486. do
  20487. # Don't even attempt the hair of trying to link an X program!
  20488. for ac_extension in a so sl dylib la dll; do
  20489. if test -r "$ac_dir/libX11.$ac_extension"; then
  20490. ac_x_libraries=$ac_dir
  20491. break 2
  20492. fi
  20493. done
  20494. done
  20495. fi
  20496. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20497. conftest$ac_exeext conftest.$ac_ext
  20498. fi # $ac_x_libraries = no
  20499. fi
  20500. # Record the results.
  20501. case $ac_x_includes,$ac_x_libraries in #(
  20502. no,* | *,no | *\'*) :
  20503. # Didn't find X, or a directory has "'" in its name.
  20504. ac_cv_have_x="have_x=no" ;; #(
  20505. *) :
  20506. # Record where we found X for the cache.
  20507. ac_cv_have_x="have_x=yes\
  20508. ac_x_includes='$ac_x_includes'\
  20509. ac_x_libraries='$ac_x_libraries'" ;;
  20510. esac
  20511. fi
  20512. ;; #(
  20513. *) have_x=yes;;
  20514. esac
  20515. eval "$ac_cv_have_x"
  20516. fi # $with_x != no
  20517. if test "$have_x" != yes; then
  20518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20519. printf "%s\n" "$have_x" >&6; }
  20520. no_x=yes
  20521. else
  20522. # If each of the values was on the command line, it overrides each guess.
  20523. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20524. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20525. # Update the cache value to reflect the command line values.
  20526. ac_cv_have_x="have_x=yes\
  20527. ac_x_includes='$x_includes'\
  20528. ac_x_libraries='$x_libraries'"
  20529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20530. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20531. fi
  20532. if test "$no_x" = yes; then
  20533. # Not all programs may use this symbol, but it does not hurt to define it.
  20534. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20535. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20536. else
  20537. if test -n "$x_includes"; then
  20538. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20539. fi
  20540. # It would also be nice to do this for all -L options, not just this one.
  20541. if test -n "$x_libraries"; then
  20542. X_LIBS="$X_LIBS -L$x_libraries"
  20543. # For Solaris; some versions of Sun CC require a space after -R and
  20544. # others require no space. Words are not sufficient . . . .
  20545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20546. printf %s "checking whether -R must be followed by a space... " >&6; }
  20547. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20548. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20549. ac_c_werror_flag=yes
  20550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20551. /* end confdefs.h. */
  20552. int
  20553. main (void)
  20554. {
  20555. ;
  20556. return 0;
  20557. }
  20558. _ACEOF
  20559. if ac_fn_c_try_link "$LINENO"
  20560. then :
  20561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20562. printf "%s\n" "no" >&6; }
  20563. X_LIBS="$X_LIBS -R$x_libraries"
  20564. else $as_nop
  20565. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20567. /* end confdefs.h. */
  20568. int
  20569. main (void)
  20570. {
  20571. ;
  20572. return 0;
  20573. }
  20574. _ACEOF
  20575. if ac_fn_c_try_link "$LINENO"
  20576. then :
  20577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20578. printf "%s\n" "yes" >&6; }
  20579. X_LIBS="$X_LIBS -R $x_libraries"
  20580. else $as_nop
  20581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20582. printf "%s\n" "neither works" >&6; }
  20583. fi
  20584. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20585. conftest$ac_exeext conftest.$ac_ext
  20586. fi
  20587. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20588. conftest$ac_exeext conftest.$ac_ext
  20589. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20590. LIBS=$ac_xsave_LIBS
  20591. fi
  20592. # Check for system-dependent libraries X programs must link with.
  20593. # Do this before checking for the system-independent R6 libraries
  20594. # (-lICE), since we may need -lsocket or whatever for X linking.
  20595. if test "$ISC" = yes; then
  20596. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20597. else
  20598. # Martyn Johnson says this is needed for Ultrix, if the X
  20599. # libraries were built with DECnet support. And Karl Berry says
  20600. # the Alpha needs dnet_stub (dnet does not exist).
  20601. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20603. /* end confdefs.h. */
  20604. /* Override any GCC internal prototype to avoid an error.
  20605. Use char because int might match the return type of a GCC
  20606. builtin and then its argument prototype would still apply. */
  20607. char XOpenDisplay ();
  20608. int
  20609. main (void)
  20610. {
  20611. return XOpenDisplay ();
  20612. ;
  20613. return 0;
  20614. }
  20615. _ACEOF
  20616. if ac_fn_c_try_link "$LINENO"
  20617. then :
  20618. else $as_nop
  20619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20620. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20621. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20622. then :
  20623. printf %s "(cached) " >&6
  20624. else $as_nop
  20625. ac_check_lib_save_LIBS=$LIBS
  20626. LIBS="-ldnet $LIBS"
  20627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20628. /* end confdefs.h. */
  20629. /* Override any GCC internal prototype to avoid an error.
  20630. Use char because int might match the return type of a GCC
  20631. builtin and then its argument prototype would still apply. */
  20632. char dnet_ntoa ();
  20633. int
  20634. main (void)
  20635. {
  20636. return dnet_ntoa ();
  20637. ;
  20638. return 0;
  20639. }
  20640. _ACEOF
  20641. if ac_fn_c_try_link "$LINENO"
  20642. then :
  20643. ac_cv_lib_dnet_dnet_ntoa=yes
  20644. else $as_nop
  20645. ac_cv_lib_dnet_dnet_ntoa=no
  20646. fi
  20647. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20648. conftest$ac_exeext conftest.$ac_ext
  20649. LIBS=$ac_check_lib_save_LIBS
  20650. fi
  20651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20652. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20653. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20654. then :
  20655. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20656. fi
  20657. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20659. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20660. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20661. then :
  20662. printf %s "(cached) " >&6
  20663. else $as_nop
  20664. ac_check_lib_save_LIBS=$LIBS
  20665. LIBS="-ldnet_stub $LIBS"
  20666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20667. /* end confdefs.h. */
  20668. /* Override any GCC internal prototype to avoid an error.
  20669. Use char because int might match the return type of a GCC
  20670. builtin and then its argument prototype would still apply. */
  20671. char dnet_ntoa ();
  20672. int
  20673. main (void)
  20674. {
  20675. return dnet_ntoa ();
  20676. ;
  20677. return 0;
  20678. }
  20679. _ACEOF
  20680. if ac_fn_c_try_link "$LINENO"
  20681. then :
  20682. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20683. else $as_nop
  20684. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20685. fi
  20686. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20687. conftest$ac_exeext conftest.$ac_ext
  20688. LIBS=$ac_check_lib_save_LIBS
  20689. fi
  20690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20691. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20692. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20693. then :
  20694. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20695. fi
  20696. fi
  20697. fi
  20698. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20699. conftest$ac_exeext conftest.$ac_ext
  20700. LIBS="$ac_xsave_LIBS"
  20701. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20702. # to get the SysV transport functions.
  20703. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20704. # needs -lnsl.
  20705. # The nsl library prevents programs from opening the X display
  20706. # on Irix 5.2, according to T.E. Dickey.
  20707. # The functions gethostbyname, getservbyname, and inet_addr are
  20708. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20709. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20710. if test "x$ac_cv_func_gethostbyname" = xyes
  20711. then :
  20712. fi
  20713. if test $ac_cv_func_gethostbyname = no; then
  20714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20715. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20716. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20717. then :
  20718. printf %s "(cached) " >&6
  20719. else $as_nop
  20720. ac_check_lib_save_LIBS=$LIBS
  20721. LIBS="-lnsl $LIBS"
  20722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20723. /* end confdefs.h. */
  20724. /* Override any GCC internal prototype to avoid an error.
  20725. Use char because int might match the return type of a GCC
  20726. builtin and then its argument prototype would still apply. */
  20727. char gethostbyname ();
  20728. int
  20729. main (void)
  20730. {
  20731. return gethostbyname ();
  20732. ;
  20733. return 0;
  20734. }
  20735. _ACEOF
  20736. if ac_fn_c_try_link "$LINENO"
  20737. then :
  20738. ac_cv_lib_nsl_gethostbyname=yes
  20739. else $as_nop
  20740. ac_cv_lib_nsl_gethostbyname=no
  20741. fi
  20742. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20743. conftest$ac_exeext conftest.$ac_ext
  20744. LIBS=$ac_check_lib_save_LIBS
  20745. fi
  20746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20747. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20748. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20749. then :
  20750. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20751. fi
  20752. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20754. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20755. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20756. then :
  20757. printf %s "(cached) " >&6
  20758. else $as_nop
  20759. ac_check_lib_save_LIBS=$LIBS
  20760. LIBS="-lbsd $LIBS"
  20761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20762. /* end confdefs.h. */
  20763. /* Override any GCC internal prototype to avoid an error.
  20764. Use char because int might match the return type of a GCC
  20765. builtin and then its argument prototype would still apply. */
  20766. char gethostbyname ();
  20767. int
  20768. main (void)
  20769. {
  20770. return gethostbyname ();
  20771. ;
  20772. return 0;
  20773. }
  20774. _ACEOF
  20775. if ac_fn_c_try_link "$LINENO"
  20776. then :
  20777. ac_cv_lib_bsd_gethostbyname=yes
  20778. else $as_nop
  20779. ac_cv_lib_bsd_gethostbyname=no
  20780. fi
  20781. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20782. conftest$ac_exeext conftest.$ac_ext
  20783. LIBS=$ac_check_lib_save_LIBS
  20784. fi
  20785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20786. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20787. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20788. then :
  20789. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20790. fi
  20791. fi
  20792. fi
  20793. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20794. # socket/setsockopt and other routines are undefined under SCO ODT
  20795. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20796. # on later versions), says Simon Leinen: it contains gethostby*
  20797. # variants that don't use the name server (or something). -lsocket
  20798. # must be given before -lnsl if both are needed. We assume that
  20799. # if connect needs -lnsl, so does gethostbyname.
  20800. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20801. if test "x$ac_cv_func_connect" = xyes
  20802. then :
  20803. fi
  20804. if test $ac_cv_func_connect = no; then
  20805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20806. printf %s "checking for connect in -lsocket... " >&6; }
  20807. if test ${ac_cv_lib_socket_connect+y}
  20808. then :
  20809. printf %s "(cached) " >&6
  20810. else $as_nop
  20811. ac_check_lib_save_LIBS=$LIBS
  20812. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20814. /* end confdefs.h. */
  20815. /* Override any GCC internal prototype to avoid an error.
  20816. Use char because int might match the return type of a GCC
  20817. builtin and then its argument prototype would still apply. */
  20818. char connect ();
  20819. int
  20820. main (void)
  20821. {
  20822. return connect ();
  20823. ;
  20824. return 0;
  20825. }
  20826. _ACEOF
  20827. if ac_fn_c_try_link "$LINENO"
  20828. then :
  20829. ac_cv_lib_socket_connect=yes
  20830. else $as_nop
  20831. ac_cv_lib_socket_connect=no
  20832. fi
  20833. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20834. conftest$ac_exeext conftest.$ac_ext
  20835. LIBS=$ac_check_lib_save_LIBS
  20836. fi
  20837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20838. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20839. if test "x$ac_cv_lib_socket_connect" = xyes
  20840. then :
  20841. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20842. fi
  20843. fi
  20844. # Guillermo Gomez says -lposix is necessary on A/UX.
  20845. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20846. if test "x$ac_cv_func_remove" = xyes
  20847. then :
  20848. fi
  20849. if test $ac_cv_func_remove = no; then
  20850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20851. printf %s "checking for remove in -lposix... " >&6; }
  20852. if test ${ac_cv_lib_posix_remove+y}
  20853. then :
  20854. printf %s "(cached) " >&6
  20855. else $as_nop
  20856. ac_check_lib_save_LIBS=$LIBS
  20857. LIBS="-lposix $LIBS"
  20858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20859. /* end confdefs.h. */
  20860. /* Override any GCC internal prototype to avoid an error.
  20861. Use char because int might match the return type of a GCC
  20862. builtin and then its argument prototype would still apply. */
  20863. char remove ();
  20864. int
  20865. main (void)
  20866. {
  20867. return remove ();
  20868. ;
  20869. return 0;
  20870. }
  20871. _ACEOF
  20872. if ac_fn_c_try_link "$LINENO"
  20873. then :
  20874. ac_cv_lib_posix_remove=yes
  20875. else $as_nop
  20876. ac_cv_lib_posix_remove=no
  20877. fi
  20878. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20879. conftest$ac_exeext conftest.$ac_ext
  20880. LIBS=$ac_check_lib_save_LIBS
  20881. fi
  20882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20883. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20884. if test "x$ac_cv_lib_posix_remove" = xyes
  20885. then :
  20886. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20887. fi
  20888. fi
  20889. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20890. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20891. if test "x$ac_cv_func_shmat" = xyes
  20892. then :
  20893. fi
  20894. if test $ac_cv_func_shmat = no; then
  20895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20896. printf %s "checking for shmat in -lipc... " >&6; }
  20897. if test ${ac_cv_lib_ipc_shmat+y}
  20898. then :
  20899. printf %s "(cached) " >&6
  20900. else $as_nop
  20901. ac_check_lib_save_LIBS=$LIBS
  20902. LIBS="-lipc $LIBS"
  20903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20904. /* end confdefs.h. */
  20905. /* Override any GCC internal prototype to avoid an error.
  20906. Use char because int might match the return type of a GCC
  20907. builtin and then its argument prototype would still apply. */
  20908. char shmat ();
  20909. int
  20910. main (void)
  20911. {
  20912. return shmat ();
  20913. ;
  20914. return 0;
  20915. }
  20916. _ACEOF
  20917. if ac_fn_c_try_link "$LINENO"
  20918. then :
  20919. ac_cv_lib_ipc_shmat=yes
  20920. else $as_nop
  20921. ac_cv_lib_ipc_shmat=no
  20922. fi
  20923. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20924. conftest$ac_exeext conftest.$ac_ext
  20925. LIBS=$ac_check_lib_save_LIBS
  20926. fi
  20927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20928. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20929. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20930. then :
  20931. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20932. fi
  20933. fi
  20934. fi
  20935. # Check for libraries that X11R6 Xt/Xaw programs need.
  20936. ac_save_LDFLAGS=$LDFLAGS
  20937. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20938. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20939. # check for ICE first), but we must link in the order -lSM -lICE or
  20940. # we get undefined symbols. So assume we have SM if we have ICE.
  20941. # These have to be linked with before -lX11, unlike the other
  20942. # libraries we check for below, so use a different variable.
  20943. # John Interrante, Karl Berry
  20944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20945. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20946. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20947. then :
  20948. printf %s "(cached) " >&6
  20949. else $as_nop
  20950. ac_check_lib_save_LIBS=$LIBS
  20951. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20953. /* end confdefs.h. */
  20954. /* Override any GCC internal prototype to avoid an error.
  20955. Use char because int might match the return type of a GCC
  20956. builtin and then its argument prototype would still apply. */
  20957. char IceConnectionNumber ();
  20958. int
  20959. main (void)
  20960. {
  20961. return IceConnectionNumber ();
  20962. ;
  20963. return 0;
  20964. }
  20965. _ACEOF
  20966. if ac_fn_c_try_link "$LINENO"
  20967. then :
  20968. ac_cv_lib_ICE_IceConnectionNumber=yes
  20969. else $as_nop
  20970. ac_cv_lib_ICE_IceConnectionNumber=no
  20971. fi
  20972. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20973. conftest$ac_exeext conftest.$ac_ext
  20974. LIBS=$ac_check_lib_save_LIBS
  20975. fi
  20976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20977. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20978. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20979. then :
  20980. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20981. fi
  20982. LDFLAGS=$ac_save_LDFLAGS
  20983. fi
  20984. if test x$have_x = xyes; then
  20985. # Check whether --enable-x11-shared was given.
  20986. if test ${enable_x11_shared+y}
  20987. then :
  20988. enableval=$enable_x11_shared;
  20989. else $as_nop
  20990. enable_x11_shared=maybe
  20991. fi
  20992. case "$host" in
  20993. *-*-darwin*)
  20994. # Apple now puts this in /opt/X11
  20995. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20996. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20997. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20998. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20999. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21000. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21001. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21002. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21003. ;;
  21004. *-*-openbsd*)
  21005. x11_lib='libX11.so'
  21006. x11ext_lib='libXext.so'
  21007. xcursor_lib='libXcursor.so'
  21008. xinput_lib='libXi.so'
  21009. xfixes_lib='libXfixes.so'
  21010. xrandr_lib='libXrandr.so'
  21011. xrender_lib='libXrender.so'
  21012. xss_lib='libXss.so'
  21013. ;;
  21014. *)
  21015. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21016. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21017. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21018. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21019. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21020. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21021. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21022. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21023. ;;
  21024. esac
  21025. if test x$ac_cv_func_shmat != xyes; then
  21026. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21027. fi
  21028. CFLAGS="$CFLAGS $X_CFLAGS"
  21029. LDFLAGS="$LDFLAGS $X_LIBS"
  21030. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21031. #include <X11/Xproto.h>
  21032. "
  21033. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21034. then :
  21035. have_xext_h_hdr=yes
  21036. else $as_nop
  21037. have_xext_h_hdr=no
  21038. fi
  21039. if test x$have_xext_h_hdr != xyes; then
  21040. as_fn_error $? "
  21041. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21042. " "$LINENO" 5
  21043. fi
  21044. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21045. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21046. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21047. # Needed so SDL applications can include SDL_syswm.h
  21048. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21049. if test x$enable_x11_shared = xmaybe; then
  21050. enable_x11_shared=yes
  21051. fi
  21052. if test x$have_loadso != xyes && \
  21053. test x$enable_x11_shared = xyes; then
  21054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21055. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21056. enable_x11_shared=no
  21057. fi
  21058. if test x$have_loadso = xyes && \
  21059. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21060. echo "-- dynamic libX11 -> $x11_lib"
  21061. echo "-- dynamic libX11ext -> $x11ext_lib"
  21062. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21063. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21064. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21065. else
  21066. enable_x11_shared=no
  21067. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21068. SUMMARY_video="${SUMMARY_video} x11"
  21069. fi
  21070. have_video=yes
  21071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21072. printf %s "checking for XGenericEvent... " >&6; }
  21073. have_XGenericEvent=no
  21074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21075. /* end confdefs.h. */
  21076. #include <X11/Xlib.h>
  21077. int
  21078. main (void)
  21079. {
  21080. Display *display;
  21081. XEvent event;
  21082. XGenericEventCookie *cookie = &event.xcookie;
  21083. XNextEvent(display, &event);
  21084. XGetEventData(display, cookie);
  21085. XFreeEventData(display, cookie);
  21086. ;
  21087. return 0;
  21088. }
  21089. _ACEOF
  21090. if ac_fn_c_try_compile "$LINENO"
  21091. then :
  21092. have_XGenericEvent=yes
  21093. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21094. fi
  21095. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21097. printf "%s\n" "$have_XGenericEvent" >&6; }
  21098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21099. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21100. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21101. then :
  21102. printf %s "(cached) " >&6
  21103. else $as_nop
  21104. ac_check_lib_save_LIBS=$LIBS
  21105. LIBS="-lX11 $LIBS"
  21106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21107. /* end confdefs.h. */
  21108. /* Override any GCC internal prototype to avoid an error.
  21109. Use char because int might match the return type of a GCC
  21110. builtin and then its argument prototype would still apply. */
  21111. char XkbKeycodeToKeysym ();
  21112. int
  21113. main (void)
  21114. {
  21115. return XkbKeycodeToKeysym ();
  21116. ;
  21117. return 0;
  21118. }
  21119. _ACEOF
  21120. if ac_fn_c_try_link "$LINENO"
  21121. then :
  21122. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21123. else $as_nop
  21124. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21125. fi
  21126. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21127. conftest$ac_exeext conftest.$ac_ext
  21128. LIBS=$ac_check_lib_save_LIBS
  21129. fi
  21130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21131. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21132. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21133. then :
  21134. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21135. fi
  21136. # Check whether --enable-video-x11-xcursor was given.
  21137. if test ${enable_video_x11_xcursor+y}
  21138. then :
  21139. enableval=$enable_video_x11_xcursor;
  21140. else $as_nop
  21141. enable_video_x11_xcursor=yes
  21142. fi
  21143. if test x$enable_video_x11_xcursor = xyes; then
  21144. definitely_enable_video_x11_xcursor=no
  21145. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21146. "
  21147. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21148. then :
  21149. have_xcursor_h_hdr=yes
  21150. else $as_nop
  21151. have_xcursor_h_hdr=no
  21152. fi
  21153. if test x$have_xcursor_h_hdr = xyes; then
  21154. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21155. echo "-- dynamic libXcursor -> $xcursor_lib"
  21156. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21157. definitely_enable_video_x11_xcursor=yes
  21158. else
  21159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21160. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21161. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21162. then :
  21163. printf %s "(cached) " >&6
  21164. else $as_nop
  21165. ac_check_lib_save_LIBS=$LIBS
  21166. LIBS="-lXcursor $LIBS"
  21167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21168. /* end confdefs.h. */
  21169. /* Override any GCC internal prototype to avoid an error.
  21170. Use char because int might match the return type of a GCC
  21171. builtin and then its argument prototype would still apply. */
  21172. char XcursorImageCreate ();
  21173. int
  21174. main (void)
  21175. {
  21176. return XcursorImageCreate ();
  21177. ;
  21178. return 0;
  21179. }
  21180. _ACEOF
  21181. if ac_fn_c_try_link "$LINENO"
  21182. then :
  21183. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21184. else $as_nop
  21185. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21186. fi
  21187. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21188. conftest$ac_exeext conftest.$ac_ext
  21189. LIBS=$ac_check_lib_save_LIBS
  21190. fi
  21191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21192. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21193. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21194. then :
  21195. have_xcursor_lib=yes
  21196. fi
  21197. if test x$have_xcursor_lib = xyes ; then
  21198. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21199. definitely_enable_video_x11_xcursor=yes
  21200. fi
  21201. fi
  21202. fi
  21203. fi
  21204. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21205. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21206. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21207. fi
  21208. # Check whether --enable-video-x11-xdbe was given.
  21209. if test ${enable_video_x11_xdbe+y}
  21210. then :
  21211. enableval=$enable_video_x11_xdbe;
  21212. else $as_nop
  21213. enable_video_x11_xdbe=yes
  21214. fi
  21215. if test x$enable_video_x11_xdbe = xyes; then
  21216. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21217. "
  21218. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21219. then :
  21220. have_dbe_h_hdr=yes
  21221. else $as_nop
  21222. have_dbe_h_hdr=no
  21223. fi
  21224. if test x$have_dbe_h_hdr = xyes; then
  21225. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21226. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21227. fi
  21228. fi
  21229. # Check whether --enable-video-x11-xinput was given.
  21230. if test ${enable_video_x11_xinput+y}
  21231. then :
  21232. enableval=$enable_video_x11_xinput;
  21233. else $as_nop
  21234. enable_video_x11_xinput=yes
  21235. fi
  21236. if test x$enable_video_x11_xinput = xyes; then
  21237. definitely_enable_video_x11_xinput=no
  21238. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21239. "
  21240. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21241. then :
  21242. have_xinput_h_hdr=yes
  21243. else $as_nop
  21244. have_xinput_h_hdr=no
  21245. fi
  21246. if test x$have_xinput_h_hdr = xyes; then
  21247. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21248. echo "-- dynamic libXi -> $xinput_lib"
  21249. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21250. definitely_enable_video_x11_xinput=yes
  21251. else
  21252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21253. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21254. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21255. then :
  21256. printf %s "(cached) " >&6
  21257. else $as_nop
  21258. ac_check_lib_save_LIBS=$LIBS
  21259. LIBS="-lXi $LIBS"
  21260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21261. /* end confdefs.h. */
  21262. /* Override any GCC internal prototype to avoid an error.
  21263. Use char because int might match the return type of a GCC
  21264. builtin and then its argument prototype would still apply. */
  21265. char XOpenDevice ();
  21266. int
  21267. main (void)
  21268. {
  21269. return XOpenDevice ();
  21270. ;
  21271. return 0;
  21272. }
  21273. _ACEOF
  21274. if ac_fn_c_try_link "$LINENO"
  21275. then :
  21276. ac_cv_lib_Xi_XOpenDevice=yes
  21277. else $as_nop
  21278. ac_cv_lib_Xi_XOpenDevice=no
  21279. fi
  21280. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21281. conftest$ac_exeext conftest.$ac_ext
  21282. LIBS=$ac_check_lib_save_LIBS
  21283. fi
  21284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21285. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21286. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21287. then :
  21288. have_xinput_lib=yes
  21289. fi
  21290. if test x$have_xinput_lib = xyes ; then
  21291. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21292. definitely_enable_video_x11_xinput=yes
  21293. fi
  21294. fi
  21295. fi
  21296. fi
  21297. if test x$definitely_enable_video_x11_xinput = xyes; then
  21298. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21299. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21301. printf %s "checking for xinput2 multitouch... " >&6; }
  21302. have_xinput2_multitouch=no
  21303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21304. /* end confdefs.h. */
  21305. #include <X11/Xlib.h>
  21306. #include <X11/Xproto.h>
  21307. #include <X11/extensions/XInput2.h>
  21308. int
  21309. main (void)
  21310. {
  21311. int event_type = XI_TouchBegin;
  21312. XITouchClassInfo *t;
  21313. ;
  21314. return 0;
  21315. }
  21316. _ACEOF
  21317. if ac_fn_c_try_compile "$LINENO"
  21318. then :
  21319. have_xinput2_multitouch=yes
  21320. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21321. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21322. fi
  21323. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21325. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21326. fi
  21327. # Check whether --enable-video-x11-xfixes was given.
  21328. if test ${enable_video_x11_xfixes+y}
  21329. then :
  21330. enableval=$enable_video_x11_xfixes;
  21331. else $as_nop
  21332. enable_video_x11_xfixes=yes
  21333. fi
  21334. if test x$enable_video_x11_xfixes = xyes; then
  21335. definitely_enable_video_x11_xfixes=no
  21336. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21338. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21340. /* end confdefs.h. */
  21341. #include <X11/Xlib.h>
  21342. #include <X11/Xproto.h>
  21343. #include <X11/extensions/XInput2.h>
  21344. #include <X11/extensions/Xfixes.h>
  21345. int
  21346. main (void)
  21347. {
  21348. BarrierEventID b;
  21349. ;
  21350. return 0;
  21351. }
  21352. _ACEOF
  21353. if ac_fn_c_try_compile "$LINENO"
  21354. then :
  21355. have_xfixes_h_hdr=yes
  21356. else $as_nop
  21357. have_xfixes_h_hdr=no
  21358. fi
  21359. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21361. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21362. if test x$have_xfixes_h_hdr = xyes; then
  21363. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21364. echo "-- dynamic libXfixes -> $xfixes_lib"
  21365. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21366. definitely_enable_video_x11_xfixes=yes
  21367. else
  21368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21369. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21370. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21371. then :
  21372. printf %s "(cached) " >&6
  21373. else $as_nop
  21374. ac_check_lib_save_LIBS=$LIBS
  21375. LIBS="-lXfixes $LIBS"
  21376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21377. /* end confdefs.h. */
  21378. /* Override any GCC internal prototype to avoid an error.
  21379. Use char because int might match the return type of a GCC
  21380. builtin and then its argument prototype would still apply. */
  21381. char XFixesCreatePointerBarrier ();
  21382. int
  21383. main (void)
  21384. {
  21385. return XFixesCreatePointerBarrier ();
  21386. ;
  21387. return 0;
  21388. }
  21389. _ACEOF
  21390. if ac_fn_c_try_link "$LINENO"
  21391. then :
  21392. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21393. else $as_nop
  21394. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21395. fi
  21396. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21397. conftest$ac_exeext conftest.$ac_ext
  21398. LIBS=$ac_check_lib_save_LIBS
  21399. fi
  21400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21401. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21402. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21403. then :
  21404. have_xfixes_lib=yes
  21405. fi
  21406. if test x$have_xfixes_lib = xyes ; then
  21407. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21408. definitely_enable_video_x11_xfixes=yes
  21409. fi
  21410. fi
  21411. fi
  21412. fi
  21413. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21414. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21415. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21416. fi
  21417. # Check whether --enable-video-x11-xrandr was given.
  21418. if test ${enable_video_x11_xrandr+y}
  21419. then :
  21420. enableval=$enable_video_x11_xrandr;
  21421. else $as_nop
  21422. enable_video_x11_xrandr=yes
  21423. fi
  21424. if test x$enable_video_x11_xrandr = xyes; then
  21425. definitely_enable_video_x11_xrandr=no
  21426. have_xrandr_h_hdr=no
  21427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21428. /* end confdefs.h. */
  21429. #include <X11/Xlib.h>
  21430. #include <X11/extensions/Xrandr.h>
  21431. int
  21432. main (void)
  21433. {
  21434. XRRScreenResources *res = NULL;
  21435. ;
  21436. return 0;
  21437. }
  21438. _ACEOF
  21439. if ac_fn_c_try_compile "$LINENO"
  21440. then :
  21441. have_xrandr_h_hdr=yes
  21442. fi
  21443. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21444. if test x$have_xrandr_h_hdr = xyes; then
  21445. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21446. echo "-- dynamic libXrandr -> $xrandr_lib"
  21447. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21448. definitely_enable_video_x11_xrandr=yes
  21449. else
  21450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21451. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21452. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21453. then :
  21454. printf %s "(cached) " >&6
  21455. else $as_nop
  21456. ac_check_lib_save_LIBS=$LIBS
  21457. LIBS="-lXrandr $LIBS"
  21458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21459. /* end confdefs.h. */
  21460. /* Override any GCC internal prototype to avoid an error.
  21461. Use char because int might match the return type of a GCC
  21462. builtin and then its argument prototype would still apply. */
  21463. char XRRQueryExtension ();
  21464. int
  21465. main (void)
  21466. {
  21467. return XRRQueryExtension ();
  21468. ;
  21469. return 0;
  21470. }
  21471. _ACEOF
  21472. if ac_fn_c_try_link "$LINENO"
  21473. then :
  21474. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21475. else $as_nop
  21476. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21477. fi
  21478. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21479. conftest$ac_exeext conftest.$ac_ext
  21480. LIBS=$ac_check_lib_save_LIBS
  21481. fi
  21482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21483. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21484. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21485. then :
  21486. have_xrandr_lib=yes
  21487. fi
  21488. if test x$have_xrandr_lib = xyes ; then
  21489. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21490. definitely_enable_video_x11_xrandr=yes
  21491. fi
  21492. fi
  21493. fi
  21494. fi
  21495. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21496. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21497. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21498. fi
  21499. # Check whether --enable-video-x11-scrnsaver was given.
  21500. if test ${enable_video_x11_scrnsaver+y}
  21501. then :
  21502. enableval=$enable_video_x11_scrnsaver;
  21503. else $as_nop
  21504. enable_video_x11_scrnsaver=yes
  21505. fi
  21506. if test x$enable_video_x11_scrnsaver = xyes; then
  21507. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21508. "
  21509. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21510. then :
  21511. have_scrnsaver_h_hdr=yes
  21512. else $as_nop
  21513. have_scrnsaver_h_hdr=no
  21514. fi
  21515. if test x$have_scrnsaver_h_hdr = xyes; then
  21516. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21517. echo "-- dynamic libXss -> $xss_lib"
  21518. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21519. definitely_enable_video_x11_scrnsaver=yes
  21520. else
  21521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21522. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21523. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21524. then :
  21525. printf %s "(cached) " >&6
  21526. else $as_nop
  21527. ac_check_lib_save_LIBS=$LIBS
  21528. LIBS="-lXss $LIBS"
  21529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21530. /* end confdefs.h. */
  21531. /* Override any GCC internal prototype to avoid an error.
  21532. Use char because int might match the return type of a GCC
  21533. builtin and then its argument prototype would still apply. */
  21534. char XScreenSaverSuspend ();
  21535. int
  21536. main (void)
  21537. {
  21538. return XScreenSaverSuspend ();
  21539. ;
  21540. return 0;
  21541. }
  21542. _ACEOF
  21543. if ac_fn_c_try_link "$LINENO"
  21544. then :
  21545. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21546. else $as_nop
  21547. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21548. fi
  21549. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21550. conftest$ac_exeext conftest.$ac_ext
  21551. LIBS=$ac_check_lib_save_LIBS
  21552. fi
  21553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21554. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21555. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21556. then :
  21557. have_xss_lib=yes
  21558. fi
  21559. if test x$have_xss_lib = xyes ; then
  21560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21561. definitely_enable_video_x11_scrnsaver=yes
  21562. fi
  21563. fi
  21564. fi
  21565. fi
  21566. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21567. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21568. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21569. fi
  21570. # Check whether --enable-video-x11-xshape was given.
  21571. if test ${enable_video_x11_xshape+y}
  21572. then :
  21573. enableval=$enable_video_x11_xshape;
  21574. else $as_nop
  21575. enable_video_x11_xshape=yes
  21576. fi
  21577. if test x$enable_video_x11_xshape = xyes; then
  21578. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21579. "
  21580. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21581. then :
  21582. have_shape_h_hdr=yes
  21583. else $as_nop
  21584. have_shape_h_hdr=no
  21585. fi
  21586. if test x$have_shape_h_hdr = xyes; then
  21587. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21588. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21589. fi
  21590. fi
  21591. fi
  21592. fi
  21593. if test x$have_x != xyes; then
  21594. # Prevent Mesa from including X11 headers
  21595. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21596. fi
  21597. }
  21598. CheckVivanteVideo()
  21599. {
  21600. # Check whether --enable-video-vivante was given.
  21601. if test ${enable_video_vivante+y}
  21602. then :
  21603. enableval=$enable_video_vivante;
  21604. else $as_nop
  21605. enable_video_vivante=yes
  21606. fi
  21607. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21609. printf %s "checking for Vivante VDK API... " >&6; }
  21610. have_vivante_vdk=no
  21611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21612. /* end confdefs.h. */
  21613. #define LINUX
  21614. #define EGL_API_FB
  21615. #include <gc_vdk.h>
  21616. int
  21617. main (void)
  21618. {
  21619. ;
  21620. return 0;
  21621. }
  21622. _ACEOF
  21623. if ac_fn_c_try_compile "$LINENO"
  21624. then :
  21625. have_vivante_vdk=yes
  21626. fi
  21627. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21629. printf "%s\n" "$have_vivante_vdk" >&6; }
  21630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21631. printf %s "checking for Vivante FB API... " >&6; }
  21632. have_vivante_egl=no
  21633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21634. /* end confdefs.h. */
  21635. #define LINUX
  21636. #define EGL_API_FB
  21637. #include <EGL/eglvivante.h>
  21638. int
  21639. main (void)
  21640. {
  21641. ;
  21642. return 0;
  21643. }
  21644. _ACEOF
  21645. if ac_fn_c_try_compile "$LINENO"
  21646. then :
  21647. have_vivante_egl=yes
  21648. fi
  21649. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21651. printf "%s\n" "$have_vivante_egl" >&6; }
  21652. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21653. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21654. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21655. if test x$have_vivante_vdk = xyes; then
  21656. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21658. fi
  21659. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21660. SUMMARY_video="${SUMMARY_video} vivante"
  21661. have_video=yes
  21662. fi
  21663. fi
  21664. }
  21665. CheckHaikuVideo()
  21666. {
  21667. if test x$enable_video = xyes; then
  21668. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21669. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21670. have_video=yes
  21671. SUMMARY_video="${SUMMARY_video} haiku"
  21672. fi
  21673. }
  21674. CheckCOCOA()
  21675. {
  21676. # Check whether --enable-video-cocoa was given.
  21677. if test ${enable_video_cocoa+y}
  21678. then :
  21679. enableval=$enable_video_cocoa;
  21680. else $as_nop
  21681. enable_video_cocoa=yes
  21682. fi
  21683. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21684. save_CFLAGS="$CFLAGS"
  21685. CFLAGS="$CFLAGS -x objective-c"
  21686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21687. printf %s "checking for Cocoa framework... " >&6; }
  21688. have_cocoa=no
  21689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21690. /* end confdefs.h. */
  21691. #import <Cocoa/Cocoa.h>
  21692. int
  21693. main (void)
  21694. {
  21695. ;
  21696. return 0;
  21697. }
  21698. _ACEOF
  21699. if ac_fn_c_try_compile "$LINENO"
  21700. then :
  21701. have_cocoa=yes
  21702. fi
  21703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21705. printf "%s\n" "$have_cocoa" >&6; }
  21706. CFLAGS="$save_CFLAGS"
  21707. if test x$have_cocoa = xyes; then
  21708. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21709. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21710. SUMMARY_video="${SUMMARY_video} cocoa"
  21711. have_video=yes
  21712. fi
  21713. fi
  21714. }
  21715. CheckMETAL()
  21716. {
  21717. # Check whether --enable-video-metal was given.
  21718. if test ${enable_video_metal+y}
  21719. then :
  21720. enableval=$enable_video_metal;
  21721. else $as_nop
  21722. enable_video_metal=yes
  21723. fi
  21724. # Check whether --enable-render-metal was given.
  21725. if test ${enable_render_metal+y}
  21726. then :
  21727. enableval=$enable_render_metal;
  21728. else $as_nop
  21729. enable_render_metal=yes
  21730. fi
  21731. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21732. save_CFLAGS="$CFLAGS"
  21733. CFLAGS="$CFLAGS -x objective-c"
  21734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21735. printf %s "checking for Metal framework... " >&6; }
  21736. have_metal=no
  21737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21738. /* end confdefs.h. */
  21739. #import <Cocoa/Cocoa.h>
  21740. #import <Metal/Metal.h>
  21741. #import <QuartzCore/CAMetalLayer.h>
  21742. #if TARGET_CPU_X86
  21743. #error Metal doesn't work on this configuration
  21744. #endif
  21745. int
  21746. main (void)
  21747. {
  21748. ;
  21749. return 0;
  21750. }
  21751. _ACEOF
  21752. if ac_fn_c_try_compile "$LINENO"
  21753. then :
  21754. have_metal=yes
  21755. fi
  21756. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21757. CFLAGS="$save_CFLAGS"
  21758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21759. printf "%s\n" "$have_metal" >&6; }
  21760. if test x$have_metal = xyes; then
  21761. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21762. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21763. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21764. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21765. fi
  21766. SUMMARY_video="${SUMMARY_video} metal"
  21767. else
  21768. enable_video_metal=no
  21769. enable_render_metal=no
  21770. fi
  21771. fi
  21772. }
  21773. CheckDirectFB()
  21774. {
  21775. # Check whether --enable-video-directfb was given.
  21776. if test ${enable_video_directfb+y}
  21777. then :
  21778. enableval=$enable_video_directfb;
  21779. else $as_nop
  21780. enable_video_directfb=no
  21781. fi
  21782. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21783. pkg_failed=no
  21784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21785. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21786. if test -n "$DIRECTFB_CFLAGS"; then
  21787. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21788. elif test -n "$PKG_CONFIG"; then
  21789. if test -n "$PKG_CONFIG" && \
  21790. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21791. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21792. ac_status=$?
  21793. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21794. test $ac_status = 0; }; then
  21795. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21796. test "x$?" != "x0" && pkg_failed=yes
  21797. else
  21798. pkg_failed=yes
  21799. fi
  21800. else
  21801. pkg_failed=untried
  21802. fi
  21803. if test -n "$DIRECTFB_LIBS"; then
  21804. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21805. elif test -n "$PKG_CONFIG"; then
  21806. if test -n "$PKG_CONFIG" && \
  21807. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21808. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21809. ac_status=$?
  21810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21811. test $ac_status = 0; }; then
  21812. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21813. test "x$?" != "x0" && pkg_failed=yes
  21814. else
  21815. pkg_failed=yes
  21816. fi
  21817. else
  21818. pkg_failed=untried
  21819. fi
  21820. if test $pkg_failed = yes; then
  21821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21822. printf "%s\n" "no" >&6; }
  21823. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21824. _pkg_short_errors_supported=yes
  21825. else
  21826. _pkg_short_errors_supported=no
  21827. fi
  21828. if test $_pkg_short_errors_supported = yes; then
  21829. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21830. else
  21831. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21832. fi
  21833. # Put the nasty error message in config.log where it belongs
  21834. echo "$DIRECTFB_PKG_ERRORS" >&5
  21835. video_directfb=no
  21836. elif test $pkg_failed = untried; then
  21837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21838. printf "%s\n" "no" >&6; }
  21839. video_directfb=no
  21840. else
  21841. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21842. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21844. printf "%s\n" "yes" >&6; }
  21845. video_directfb=yes
  21846. fi
  21847. if test x$video_directfb = xyes; then
  21848. # SuSE 11.1 installs directfb-config without directfb-devel
  21849. save_CPPFLAGS="$CPPFLAGS"
  21850. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21851. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21852. if test "x$ac_cv_header_directfb_h" = xyes
  21853. then :
  21854. have_directfb_hdr=yes
  21855. else $as_nop
  21856. have_directfb_hdr=no
  21857. fi
  21858. CPPFLAGS="$save_CPPFLAGS"
  21859. video_directfb=$have_directfb_hdr
  21860. fi
  21861. if test x$video_directfb = xyes; then
  21862. # Check whether --enable-directfb-shared was given.
  21863. if test ${enable_directfb_shared+y}
  21864. then :
  21865. enableval=$enable_directfb_shared;
  21866. else $as_nop
  21867. enable_directfb_shared=yes
  21868. fi
  21869. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21870. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21871. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21872. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21873. directfb_shared=no
  21874. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21875. if test x$have_loadso != xyes && \
  21876. test x$enable_directfb_shared = xyes; then
  21877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21878. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21879. fi
  21880. if test x$have_loadso = xyes && \
  21881. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21882. directfb_shared=yes
  21883. echo "-- dynamic libdirectfb -> $directfb_lib"
  21884. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21885. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21886. else
  21887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21888. SUMMARY_video="${SUMMARY_video} directfb"
  21889. fi
  21890. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21891. have_video=yes
  21892. fi
  21893. fi
  21894. }
  21895. CheckKMSDRM()
  21896. {
  21897. # Check whether --enable-video-kmsdrm was given.
  21898. if test ${enable_video_kmsdrm+y}
  21899. then :
  21900. enableval=$enable_video_kmsdrm;
  21901. else $as_nop
  21902. enable_video_kmsdrm=yes
  21903. fi
  21904. if test x$enable_video = xyes && \
  21905. test x$enable_video_kmsdrm = xyes && \
  21906. test x$video_opengl_egl = xyes; then
  21907. video_kmsdrm=no
  21908. pkg_failed=no
  21909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21910. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21911. if test -n "$LIBDRM_CFLAGS"; then
  21912. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21913. elif test -n "$PKG_CONFIG"; then
  21914. if test -n "$PKG_CONFIG" && \
  21915. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21916. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21917. ac_status=$?
  21918. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21919. test $ac_status = 0; }; then
  21920. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21921. test "x$?" != "x0" && pkg_failed=yes
  21922. else
  21923. pkg_failed=yes
  21924. fi
  21925. else
  21926. pkg_failed=untried
  21927. fi
  21928. if test -n "$LIBDRM_LIBS"; then
  21929. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21930. elif test -n "$PKG_CONFIG"; then
  21931. if test -n "$PKG_CONFIG" && \
  21932. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21933. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21934. ac_status=$?
  21935. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21936. test $ac_status = 0; }; then
  21937. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21938. test "x$?" != "x0" && pkg_failed=yes
  21939. else
  21940. pkg_failed=yes
  21941. fi
  21942. else
  21943. pkg_failed=untried
  21944. fi
  21945. if test $pkg_failed = yes; then
  21946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21947. printf "%s\n" "no" >&6; }
  21948. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21949. _pkg_short_errors_supported=yes
  21950. else
  21951. _pkg_short_errors_supported=no
  21952. fi
  21953. if test $_pkg_short_errors_supported = yes; then
  21954. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21955. else
  21956. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21957. fi
  21958. # Put the nasty error message in config.log where it belongs
  21959. echo "$LIBDRM_PKG_ERRORS" >&5
  21960. libdrm_avail=no
  21961. elif test $pkg_failed = untried; then
  21962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21963. printf "%s\n" "no" >&6; }
  21964. libdrm_avail=no
  21965. else
  21966. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21967. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21969. printf "%s\n" "yes" >&6; }
  21970. libdrm_avail=yes
  21971. fi
  21972. pkg_failed=no
  21973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21974. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21975. if test -n "$LIBGBM_CFLAGS"; then
  21976. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21977. elif test -n "$PKG_CONFIG"; then
  21978. if test -n "$PKG_CONFIG" && \
  21979. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21980. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21981. ac_status=$?
  21982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21983. test $ac_status = 0; }; then
  21984. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21985. test "x$?" != "x0" && pkg_failed=yes
  21986. else
  21987. pkg_failed=yes
  21988. fi
  21989. else
  21990. pkg_failed=untried
  21991. fi
  21992. if test -n "$LIBGBM_LIBS"; then
  21993. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21994. elif test -n "$PKG_CONFIG"; then
  21995. if test -n "$PKG_CONFIG" && \
  21996. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21997. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21998. ac_status=$?
  21999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22000. test $ac_status = 0; }; then
  22001. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22002. test "x$?" != "x0" && pkg_failed=yes
  22003. else
  22004. pkg_failed=yes
  22005. fi
  22006. else
  22007. pkg_failed=untried
  22008. fi
  22009. if test $pkg_failed = yes; then
  22010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22011. printf "%s\n" "no" >&6; }
  22012. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22013. _pkg_short_errors_supported=yes
  22014. else
  22015. _pkg_short_errors_supported=no
  22016. fi
  22017. if test $_pkg_short_errors_supported = yes; then
  22018. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22019. else
  22020. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22021. fi
  22022. # Put the nasty error message in config.log where it belongs
  22023. echo "$LIBGBM_PKG_ERRORS" >&5
  22024. libgbm_avail=no
  22025. elif test $pkg_failed = untried; then
  22026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22027. printf "%s\n" "no" >&6; }
  22028. libgbm_avail=no
  22029. else
  22030. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22031. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22033. printf "%s\n" "yes" >&6; }
  22034. libgbm_avail=yes
  22035. fi
  22036. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22037. video_kmsdrm=yes
  22038. fi
  22039. if test x$video_kmsdrm = xyes; then
  22040. # Check whether --enable-kmsdrm-shared was given.
  22041. if test ${enable_kmsdrm_shared+y}
  22042. then :
  22043. enableval=$enable_kmsdrm_shared;
  22044. else $as_nop
  22045. enable_kmsdrm_shared=yes
  22046. fi
  22047. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22048. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22049. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22051. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22052. kmsdrm_shared=no
  22053. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22054. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22055. if test x$have_loadso != xyes && \
  22056. test x$enable_kmsdrm_shared = xyes; then
  22057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22058. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22059. fi
  22060. if test x$have_loadso = xyes && \
  22061. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22062. kmsdrm_shared=yes
  22063. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22064. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22065. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22066. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22067. else
  22068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22069. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22070. fi
  22071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22072. printf "%s\n" "$kmsdrm_shared" >&6; }
  22073. if test x$kmsdrm_shared = xyes; then
  22074. echo "-- dynamic libdrm -> $drm_lib"
  22075. echo "-- dynamic libgbm -> $gbm_lib"
  22076. fi
  22077. have_video=yes
  22078. fi
  22079. fi
  22080. }
  22081. CheckDummyVideo()
  22082. {
  22083. # Check whether --enable-video-dummy was given.
  22084. if test ${enable_video_dummy+y}
  22085. then :
  22086. enableval=$enable_video_dummy;
  22087. else $as_nop
  22088. enable_video_dummy=yes
  22089. fi
  22090. if test x$enable_video_dummy = xyes; then
  22091. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22092. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22093. have_video=yes
  22094. SUMMARY_video="${SUMMARY_video} dummy"
  22095. fi
  22096. }
  22097. CheckOffscreenVideo()
  22098. {
  22099. # Check whether --enable-video-offscreen was given.
  22100. if test ${enable_video_offscreen+y}
  22101. then :
  22102. enableval=$enable_video_offscreen;
  22103. else $as_nop
  22104. enable_video_offscreen=no
  22105. fi
  22106. if test x$enable_video_offscreen = xyes; then
  22107. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22108. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22109. have_video=yes
  22110. SUMMARY_video="${SUMMARY_video} offscreen"
  22111. fi
  22112. }
  22113. CheckQNXVideo()
  22114. {
  22115. if test x$enable_video = xyes; then
  22116. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22117. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22118. have_video=yes
  22119. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22120. SUMMARY_video="${SUMMARY_video} qnx"
  22121. fi
  22122. }
  22123. CheckQNXAudio()
  22124. {
  22125. if test x$enable_audio = xyes; then
  22126. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22127. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22128. have_audio=yes
  22129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22130. SUMMARY_audio="${SUMMARY_audio} qsa"
  22131. fi
  22132. }
  22133. # Check whether --enable-video-opengl was given.
  22134. if test ${enable_video_opengl+y}
  22135. then :
  22136. enableval=$enable_video_opengl;
  22137. else $as_nop
  22138. enable_video_opengl=yes
  22139. fi
  22140. CheckGLX()
  22141. {
  22142. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22144. printf %s "checking for GLX support... " >&6; }
  22145. video_opengl_glx=no
  22146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22147. /* end confdefs.h. */
  22148. #include <GL/glx.h>
  22149. int
  22150. main (void)
  22151. {
  22152. ;
  22153. return 0;
  22154. }
  22155. _ACEOF
  22156. if ac_fn_c_try_compile "$LINENO"
  22157. then :
  22158. video_opengl_glx=yes
  22159. fi
  22160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22162. printf "%s\n" "$video_opengl_glx" >&6; }
  22163. if test x$video_opengl_glx = xyes; then
  22164. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22165. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22166. fi
  22167. fi
  22168. }
  22169. # Check whether --enable-video-opengles was given.
  22170. if test ${enable_video_opengles+y}
  22171. then :
  22172. enableval=$enable_video_opengles;
  22173. else $as_nop
  22174. enable_video_opengles=yes
  22175. fi
  22176. # Check whether --enable-video-opengles1 was given.
  22177. if test ${enable_video_opengles1+y}
  22178. then :
  22179. enableval=$enable_video_opengles1;
  22180. else $as_nop
  22181. enable_video_opengles1=yes
  22182. fi
  22183. # Check whether --enable-video-opengles2 was given.
  22184. if test ${enable_video_opengles2+y}
  22185. then :
  22186. enableval=$enable_video_opengles2;
  22187. else $as_nop
  22188. enable_video_opengles2=yes
  22189. fi
  22190. CheckEGL()
  22191. {
  22192. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22194. printf %s "checking for EGL support... " >&6; }
  22195. video_opengl_egl=no
  22196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22197. /* end confdefs.h. */
  22198. #define LINUX
  22199. #define EGL_API_FB
  22200. #define MESA_EGL_NO_X11_HEADERS
  22201. #define EGL_NO_X11
  22202. #include <EGL/egl.h>
  22203. #include <EGL/eglext.h>
  22204. int
  22205. main (void)
  22206. {
  22207. ;
  22208. return 0;
  22209. }
  22210. _ACEOF
  22211. if ac_fn_c_try_compile "$LINENO"
  22212. then :
  22213. video_opengl_egl=yes
  22214. fi
  22215. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22217. printf "%s\n" "$video_opengl_egl" >&6; }
  22218. if test x$video_opengl_egl = xyes; then
  22219. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22220. fi
  22221. fi
  22222. }
  22223. CheckOpenGL()
  22224. {
  22225. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22227. printf %s "checking for OpenGL headers... " >&6; }
  22228. video_opengl=no
  22229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22230. /* end confdefs.h. */
  22231. #include <GL/gl.h>
  22232. #include <GL/glext.h>
  22233. int
  22234. main (void)
  22235. {
  22236. ;
  22237. return 0;
  22238. }
  22239. _ACEOF
  22240. if ac_fn_c_try_compile "$LINENO"
  22241. then :
  22242. video_opengl=yes
  22243. fi
  22244. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22246. printf "%s\n" "$video_opengl" >&6; }
  22247. if test x$video_opengl = xyes; then
  22248. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22249. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22250. SUMMARY_video="${SUMMARY_video} opengl"
  22251. fi
  22252. fi
  22253. }
  22254. CheckOpenGLES()
  22255. {
  22256. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22257. if test x$enable_video_opengles1 = xyes; then
  22258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22259. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22260. video_opengles_v1=no
  22261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22262. /* end confdefs.h. */
  22263. #include <GLES/gl.h>
  22264. #include <GLES/glext.h>
  22265. int
  22266. main (void)
  22267. {
  22268. ;
  22269. return 0;
  22270. }
  22271. _ACEOF
  22272. if ac_fn_c_try_compile "$LINENO"
  22273. then :
  22274. video_opengles_v1=yes
  22275. fi
  22276. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22278. printf "%s\n" "$video_opengles_v1" >&6; }
  22279. if test x$video_opengles_v1 = xyes; then
  22280. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22281. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22282. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22283. fi
  22284. fi
  22285. if test x$enable_video_opengles2 = xyes; then
  22286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22287. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22288. video_opengles_v2=no
  22289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22290. /* end confdefs.h. */
  22291. #include <GLES2/gl2.h>
  22292. #include <GLES2/gl2ext.h>
  22293. int
  22294. main (void)
  22295. {
  22296. ;
  22297. return 0;
  22298. }
  22299. _ACEOF
  22300. if ac_fn_c_try_compile "$LINENO"
  22301. then :
  22302. video_opengles_v2=yes
  22303. fi
  22304. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22306. printf "%s\n" "$video_opengles_v2" >&6; }
  22307. if test x$video_opengles_v2 = xyes; then
  22308. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22309. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22310. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22311. fi
  22312. fi
  22313. fi
  22314. }
  22315. CheckWINDOWSGL()
  22316. {
  22317. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22318. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22319. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22320. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22321. SUMMARY_video="${SUMMARY_video} opengl"
  22322. fi
  22323. }
  22324. CheckWINDOWSGLES()
  22325. {
  22326. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22328. printf %s "checking for EGL support... " >&6; }
  22329. video_opengl_egl=no
  22330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22331. /* end confdefs.h. */
  22332. #include <EGL/egl.h>
  22333. int
  22334. main (void)
  22335. {
  22336. ;
  22337. return 0;
  22338. }
  22339. _ACEOF
  22340. if ac_fn_c_try_compile "$LINENO"
  22341. then :
  22342. video_opengl_egl=yes
  22343. fi
  22344. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22346. printf "%s\n" "$video_opengl_egl" >&6; }
  22347. if test x$video_opengl_egl = xyes; then
  22348. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22349. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22350. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22351. fi
  22352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22353. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22354. video_opengles_v2=no
  22355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22356. /* end confdefs.h. */
  22357. #include <GLES2/gl2.h>
  22358. #include <GLES2/gl2ext.h>
  22359. int
  22360. main (void)
  22361. {
  22362. ;
  22363. return 0;
  22364. }
  22365. _ACEOF
  22366. if ac_fn_c_try_compile "$LINENO"
  22367. then :
  22368. video_opengles_v2=yes
  22369. fi
  22370. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22372. printf "%s\n" "$video_opengles_v2" >&6; }
  22373. if test x$video_opengles_v2 = xyes; then
  22374. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22375. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22376. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22377. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22378. fi
  22379. fi
  22380. }
  22381. CheckHaikuGL()
  22382. {
  22383. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22384. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22385. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22386. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22388. SUMMARY_video="${SUMMARY_video} opengl"
  22389. fi
  22390. }
  22391. CheckMacGL()
  22392. {
  22393. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22394. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22395. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22396. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22397. SUMMARY_video="${SUMMARY_video} opengl"
  22398. fi
  22399. }
  22400. CheckMacGLES()
  22401. {
  22402. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22403. video_opengl_egl=yes
  22404. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22405. video_opengles_v2=yes
  22406. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22407. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22408. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22409. fi
  22410. }
  22411. CheckEmscriptenGLES()
  22412. {
  22413. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22415. printf %s "checking for EGL support... " >&6; }
  22416. video_opengl_egl=no
  22417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22418. /* end confdefs.h. */
  22419. #include <EGL/egl.h>
  22420. int
  22421. main (void)
  22422. {
  22423. ;
  22424. return 0;
  22425. }
  22426. _ACEOF
  22427. if ac_fn_c_try_compile "$LINENO"
  22428. then :
  22429. video_opengl_egl=yes
  22430. fi
  22431. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22433. printf "%s\n" "$video_opengl_egl" >&6; }
  22434. if test x$video_opengl_egl = xyes; then
  22435. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22436. fi
  22437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22438. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22439. video_opengles_v2=no
  22440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22441. /* end confdefs.h. */
  22442. #include <GLES2/gl2.h>
  22443. #include <GLES2/gl2ext.h>
  22444. int
  22445. main (void)
  22446. {
  22447. ;
  22448. return 0;
  22449. }
  22450. _ACEOF
  22451. if ac_fn_c_try_compile "$LINENO"
  22452. then :
  22453. video_opengles_v2=yes
  22454. fi
  22455. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22457. printf "%s\n" "$video_opengles_v2" >&6; }
  22458. if test x$video_opengles_v2 = xyes; then
  22459. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22460. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22461. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22462. fi
  22463. fi
  22464. }
  22465. # Check whether --enable-video-vulkan was given.
  22466. if test ${enable_video_vulkan+y}
  22467. then :
  22468. enableval=$enable_video_vulkan;
  22469. else $as_nop
  22470. enable_video_vulkan=yes
  22471. fi
  22472. CheckVulkan()
  22473. {
  22474. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22475. case "$host" in
  22476. *-*-android*)
  22477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22478. /* end confdefs.h. */
  22479. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22480. #error Vulkan doesn't work on this configuration
  22481. #endif
  22482. int
  22483. main (void)
  22484. {
  22485. ;
  22486. return 0;
  22487. }
  22488. _ACEOF
  22489. if ac_fn_c_try_compile "$LINENO"
  22490. then :
  22491. else $as_nop
  22492. enable_video_vulkan=no
  22493. fi
  22494. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22495. ;;
  22496. *-*-darwin*)
  22497. save_CFLAGS="$CFLAGS"
  22498. CFLAGS="$CFLAGS -x objective-c"
  22499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22500. /* end confdefs.h. */
  22501. #include <Cocoa/Cocoa.h>
  22502. #include <Metal/Metal.h>
  22503. #include <QuartzCore/CAMetalLayer.h>
  22504. #if TARGET_CPU_X86
  22505. #error Vulkan doesn't work on this configuration
  22506. #endif
  22507. int
  22508. main (void)
  22509. {
  22510. ;
  22511. return 0;
  22512. }
  22513. _ACEOF
  22514. if ac_fn_c_try_compile "$LINENO"
  22515. then :
  22516. else $as_nop
  22517. enable_video_vulkan=no
  22518. fi
  22519. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22520. CFLAGS="$save_CFLAGS"
  22521. ;;
  22522. *)
  22523. ;;
  22524. esac
  22525. if test x$enable_video_vulkan = xno; then
  22526. # For reasons I am totally unable to see, I get an undefined macro error if
  22527. # I put this in the AC_TRY_COMPILE.
  22528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22529. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22530. fi
  22531. fi
  22532. if test x$have_loadso != xyes; then
  22533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22534. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22535. enable_video_vulkan=no
  22536. fi
  22537. if test x$enable_video_vulkan = xyes; then
  22538. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22539. SUMMARY_video="${SUMMARY_video} vulkan"
  22540. fi
  22541. }
  22542. CheckInputEvents()
  22543. {
  22544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22545. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22546. use_input_events=no
  22547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22548. /* end confdefs.h. */
  22549. #include <linux/input.h>
  22550. int
  22551. main (void)
  22552. {
  22553. #ifndef EVIOCGNAME
  22554. #error EVIOCGNAME() ioctl not available
  22555. #endif
  22556. ;
  22557. return 0;
  22558. }
  22559. _ACEOF
  22560. if ac_fn_c_try_compile "$LINENO"
  22561. then :
  22562. use_input_events=yes
  22563. fi
  22564. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22566. printf "%s\n" "$use_input_events" >&6; }
  22567. if test x$use_input_events = xyes; then
  22568. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22569. SUMMARY_input="${SUMMARY_input} linuxev"
  22570. fi
  22571. }
  22572. CheckInputKD()
  22573. {
  22574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22575. printf %s "checking for Linux kd.h... " >&6; }
  22576. use_input_kd=no
  22577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22578. /* end confdefs.h. */
  22579. #include <linux/kd.h>
  22580. #include <linux/keyboard.h>
  22581. int
  22582. main (void)
  22583. {
  22584. struct kbentry kbe;
  22585. kbe.kb_table = KG_CTRL;
  22586. ioctl(0, KDGKBENT, &kbe);
  22587. ;
  22588. return 0;
  22589. }
  22590. _ACEOF
  22591. if ac_fn_c_try_compile "$LINENO"
  22592. then :
  22593. use_input_kd=yes
  22594. fi
  22595. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22597. printf "%s\n" "$use_input_kd" >&6; }
  22598. if test x$use_input_kd = xyes; then
  22599. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22600. SUMMARY_input="${SUMMARY_input} linuxkd"
  22601. fi
  22602. }
  22603. CheckInputKBIO()
  22604. {
  22605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22606. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22607. use_input_kbio=no
  22608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22609. /* end confdefs.h. */
  22610. #include <sys/kbio.h>
  22611. #include <sys/ioctl.h>
  22612. int
  22613. main (void)
  22614. {
  22615. accentmap_t accTable;
  22616. ioctl(0, KDENABIO, 1);
  22617. ;
  22618. return 0;
  22619. }
  22620. _ACEOF
  22621. if ac_fn_c_try_compile "$LINENO"
  22622. then :
  22623. use_input_kbio=yes
  22624. fi
  22625. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22627. printf "%s\n" "$use_input_kbio" >&6; }
  22628. if test x$use_input_kbio = xyes; then
  22629. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22630. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22631. fi
  22632. }
  22633. CheckInputWSCONS()
  22634. {
  22635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22636. printf %s "checking for OpenBSD wscons... " >&6; }
  22637. use_input_wscons=no
  22638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22639. /* end confdefs.h. */
  22640. #include <sys/time.h>
  22641. #include <dev/wscons/wsconsio.h>
  22642. #include <dev/wscons/wsksymdef.h>
  22643. #include <dev/wscons/wsksymvar.h>
  22644. #include <sys/ioctl.h>
  22645. int
  22646. main (void)
  22647. {
  22648. struct wskbd_map_data data;
  22649. ioctl(0, WSKBDIO_GETMAP, &data);
  22650. ;
  22651. return 0;
  22652. }
  22653. _ACEOF
  22654. if ac_fn_c_try_compile "$LINENO"
  22655. then :
  22656. use_input_wscons=yes
  22657. fi
  22658. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22660. printf "%s\n" "$use_input_wscons" >&6; }
  22661. if test x$use_input_wscons = xyes; then
  22662. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22663. SUMMARY_input="${SUMMARY_input} wscons"
  22664. fi
  22665. }
  22666. CheckLibUDev()
  22667. {
  22668. # Check whether --enable-libudev was given.
  22669. if test ${enable_libudev+y}
  22670. then :
  22671. enableval=$enable_libudev;
  22672. else $as_nop
  22673. enable_libudev=yes
  22674. fi
  22675. if test x$enable_libudev = xyes; then
  22676. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22677. if test "x$ac_cv_header_libudev_h" = xyes
  22678. then :
  22679. have_libudev_h_hdr=yes
  22680. else $as_nop
  22681. have_libudev_h_hdr=no
  22682. fi
  22683. if test x$have_libudev_h_hdr = xyes; then
  22684. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22685. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22686. if test x$udev_lib != x; then
  22687. echo "-- dynamic udev -> $udev_lib"
  22688. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22689. fi
  22690. fi
  22691. fi
  22692. }
  22693. CheckDBus()
  22694. {
  22695. # Check whether --enable-dbus was given.
  22696. if test ${enable_dbus+y}
  22697. then :
  22698. enableval=$enable_dbus;
  22699. else $as_nop
  22700. enable_dbus=yes
  22701. fi
  22702. if test x$enable_dbus = xyes; then
  22703. pkg_failed=no
  22704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22705. printf %s "checking for dbus-1... " >&6; }
  22706. if test -n "$DBUS_CFLAGS"; then
  22707. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22708. elif test -n "$PKG_CONFIG"; then
  22709. if test -n "$PKG_CONFIG" && \
  22710. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22711. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22712. ac_status=$?
  22713. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22714. test $ac_status = 0; }; then
  22715. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22716. test "x$?" != "x0" && pkg_failed=yes
  22717. else
  22718. pkg_failed=yes
  22719. fi
  22720. else
  22721. pkg_failed=untried
  22722. fi
  22723. if test -n "$DBUS_LIBS"; then
  22724. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22725. elif test -n "$PKG_CONFIG"; then
  22726. if test -n "$PKG_CONFIG" && \
  22727. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22728. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22729. ac_status=$?
  22730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22731. test $ac_status = 0; }; then
  22732. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22733. test "x$?" != "x0" && pkg_failed=yes
  22734. else
  22735. pkg_failed=yes
  22736. fi
  22737. else
  22738. pkg_failed=untried
  22739. fi
  22740. if test $pkg_failed = yes; then
  22741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22742. printf "%s\n" "no" >&6; }
  22743. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22744. _pkg_short_errors_supported=yes
  22745. else
  22746. _pkg_short_errors_supported=no
  22747. fi
  22748. if test $_pkg_short_errors_supported = yes; then
  22749. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22750. else
  22751. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22752. fi
  22753. # Put the nasty error message in config.log where it belongs
  22754. echo "$DBUS_PKG_ERRORS" >&5
  22755. have_dbus=no
  22756. elif test $pkg_failed = untried; then
  22757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22758. printf "%s\n" "no" >&6; }
  22759. have_dbus=no
  22760. else
  22761. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22762. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22764. printf "%s\n" "yes" >&6; }
  22765. have_dbus=yes
  22766. fi
  22767. save_CPPFLAGS="$CPPFLAGS"
  22768. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22769. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22770. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22771. then :
  22772. have_dbus_dbus_h_hdr=yes
  22773. else $as_nop
  22774. have_dbus_dbus_h_hdr=no
  22775. fi
  22776. CPPFLAGS="$save_CPPFLAGS"
  22777. if test x$have_dbus_dbus_h_hdr = xyes; then
  22778. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22779. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22780. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22781. fi
  22782. fi
  22783. }
  22784. CheckIME()
  22785. {
  22786. # Check whether --enable-ime was given.
  22787. if test ${enable_ime+y}
  22788. then :
  22789. enableval=$enable_ime;
  22790. else $as_nop
  22791. enable_ime=yes
  22792. fi
  22793. if test x$enable_ime = xyes; then
  22794. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22795. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22796. fi
  22797. }
  22798. CheckInotify()
  22799. {
  22800. save_LIBS="$LIBS"
  22801. case "$host" in
  22802. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22803. ;;
  22804. esac
  22805. for ac_header in sys/inotify.h
  22806. do :
  22807. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22808. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22809. then :
  22810. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22811. have_inotify_inotify_h_hdr=yes
  22812. fi
  22813. done
  22814. for ac_func in inotify_init
  22815. do :
  22816. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22817. if test "x$ac_cv_func_inotify_init" = xyes
  22818. then :
  22819. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22820. have_inotify=yes
  22821. fi
  22822. done
  22823. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22824. if test "x$ac_cv_func_inotify_init1" = xyes
  22825. then :
  22826. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22827. fi
  22828. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22829. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22830. case "$host" in
  22831. *-*-freebsd*|*-*-dragonfly*)
  22832. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22833. ;;
  22834. esac
  22835. fi
  22836. LIBS="$save_LIBS"
  22837. }
  22838. CheckIBus()
  22839. {
  22840. # Check whether --enable-ibus was given.
  22841. if test ${enable_ibus+y}
  22842. then :
  22843. enableval=$enable_ibus;
  22844. else $as_nop
  22845. enable_ibus=yes
  22846. fi
  22847. if test x$enable_ibus = xyes; then
  22848. pkg_failed=no
  22849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22850. printf %s "checking for ibus-1.0... " >&6; }
  22851. if test -n "$IBUS_CFLAGS"; then
  22852. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22853. elif test -n "$PKG_CONFIG"; then
  22854. if test -n "$PKG_CONFIG" && \
  22855. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22856. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22857. ac_status=$?
  22858. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22859. test $ac_status = 0; }; then
  22860. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22861. test "x$?" != "x0" && pkg_failed=yes
  22862. else
  22863. pkg_failed=yes
  22864. fi
  22865. else
  22866. pkg_failed=untried
  22867. fi
  22868. if test -n "$IBUS_LIBS"; then
  22869. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22870. elif test -n "$PKG_CONFIG"; then
  22871. if test -n "$PKG_CONFIG" && \
  22872. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22873. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22874. ac_status=$?
  22875. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22876. test $ac_status = 0; }; then
  22877. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22878. test "x$?" != "x0" && pkg_failed=yes
  22879. else
  22880. pkg_failed=yes
  22881. fi
  22882. else
  22883. pkg_failed=untried
  22884. fi
  22885. if test $pkg_failed = yes; then
  22886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22887. printf "%s\n" "no" >&6; }
  22888. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22889. _pkg_short_errors_supported=yes
  22890. else
  22891. _pkg_short_errors_supported=no
  22892. fi
  22893. if test $_pkg_short_errors_supported = yes; then
  22894. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22895. else
  22896. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22897. fi
  22898. # Put the nasty error message in config.log where it belongs
  22899. echo "$IBUS_PKG_ERRORS" >&5
  22900. have_ibus=no
  22901. elif test $pkg_failed = untried; then
  22902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22903. printf "%s\n" "no" >&6; }
  22904. have_ibus=no
  22905. else
  22906. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22907. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22909. printf "%s\n" "yes" >&6; }
  22910. have_ibus=yes
  22911. fi
  22912. save_CPPFLAGS="$CPPFLAGS"
  22913. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22914. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22915. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22916. then :
  22917. have_ibus_ibus_h_hdr=yes
  22918. else $as_nop
  22919. have_ibus_ibus_h_hdr=no
  22920. fi
  22921. CPPFLAGS="$save_CPPFLAGS"
  22922. if test x$have_ibus_ibus_h_hdr = xyes; then
  22923. if test x$enable_ime != xyes; then
  22924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22925. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22926. have_ibus_ibus_h_hdr=no
  22927. elif test x$enable_dbus != xyes; then
  22928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22929. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22930. have_ibus_ibus_h_hdr=no
  22931. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22933. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22934. have_ibus_ibus_h_hdr=no
  22935. else
  22936. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22937. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22938. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22939. fi
  22940. fi
  22941. fi
  22942. }
  22943. CheckFcitx()
  22944. {
  22945. # Check whether --enable-fcitx was given.
  22946. if test ${enable_fcitx+y}
  22947. then :
  22948. enableval=$enable_fcitx;
  22949. else $as_nop
  22950. enable_fcitx=yes
  22951. fi
  22952. if test x$enable_fcitx = xyes; then
  22953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22954. printf %s "checking for fcitx support... " >&6; }
  22955. have_fcitx=no
  22956. if test x$enable_ime != xyes; then
  22957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22958. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22959. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22961. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22962. else
  22963. have_fcitx=yes
  22964. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22965. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22966. fi
  22967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22968. printf "%s\n" "$have_fcitx" >&6; }
  22969. fi
  22970. }
  22971. CheckJoystickMFI()
  22972. {
  22973. # Check whether --enable-joystick-mfi was given.
  22974. if test ${enable_joystick_mfi+y}
  22975. then :
  22976. enableval=$enable_joystick_mfi;
  22977. else $as_nop
  22978. enable_joystick_mfi=yes
  22979. fi
  22980. if test x$enable_joystick_mfi = xyes; then
  22981. save_CFLAGS="$CFLAGS"
  22982. save_LDFLAGS="$LDFLAGS"
  22983. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22984. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22986. printf %s "checking for GameController framework... " >&6; }
  22987. enable_joystick_mfi=no
  22988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22989. /* end confdefs.h. */
  22990. #include <AvailabilityMacros.h>
  22991. #include <TargetConditionals.h>
  22992. #import <GameController/GameController.h>
  22993. int
  22994. main (void)
  22995. {
  22996. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22997. #error GameController framework doesn't work on this configuration
  22998. #endif
  22999. #if TARGET_CPU_X86
  23000. #error GameController framework doesn't work on this configuration
  23001. #endif
  23002. ;
  23003. return 0;
  23004. }
  23005. _ACEOF
  23006. if ac_fn_c_try_link "$LINENO"
  23007. then :
  23008. enable_joystick_mfi=yes
  23009. fi
  23010. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23011. conftest$ac_exeext conftest.$ac_ext
  23012. CFLAGS="$save_CFLAGS"
  23013. LDFLAGS="$save_LDFLAGS"
  23014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23015. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23016. if test x$enable_joystick_mfi = xyes; then
  23017. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23018. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23020. fi
  23021. fi
  23022. }
  23023. CheckPTHREAD()
  23024. {
  23025. case "$host" in
  23026. *-*-emscripten*)
  23027. enable_pthreads_default=no
  23028. ;;
  23029. *)
  23030. enable_pthreads_default=yes
  23031. ;;
  23032. esac
  23033. # Check whether --enable-pthreads was given.
  23034. if test ${enable_pthreads+y}
  23035. then :
  23036. enableval=$enable_pthreads;
  23037. else $as_nop
  23038. enable_pthreads=maybe
  23039. fi
  23040. # Check whether --enable-pthread-sem was given.
  23041. if test ${enable_pthread_sem+y}
  23042. then :
  23043. enableval=$enable_pthread_sem;
  23044. else $as_nop
  23045. enable_pthread_sem=maybe
  23046. fi
  23047. if test x$enable_pthreads = xmaybe; then
  23048. enable_pthreads=$enable_pthreads_default
  23049. fi
  23050. if test x$enable_pthread_sem = xmaybe; then
  23051. enable_pthread_sem=$enable_pthreads
  23052. fi
  23053. case "$host" in
  23054. *-*-android*)
  23055. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23056. pthread_lib=""
  23057. ;;
  23058. *-*-linux*|*-*-uclinux*)
  23059. pthread_cflags="-D_REENTRANT"
  23060. pthread_lib="-lpthread"
  23061. ;;
  23062. *-*-bsdi*)
  23063. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23064. pthread_lib=""
  23065. ;;
  23066. *-*-darwin*)
  23067. pthread_cflags="-D_THREAD_SAFE"
  23068. # causes Carbon.p complaints?
  23069. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23070. ;;
  23071. *-*-freebsd*|*-*-dragonfly*)
  23072. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23073. pthread_lib="-pthread"
  23074. ;;
  23075. *-*-netbsd*)
  23076. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23077. pthread_lib="-lpthread"
  23078. ;;
  23079. *-*-openbsd*)
  23080. pthread_cflags="-D_REENTRANT"
  23081. pthread_lib="-pthread"
  23082. ;;
  23083. *-*-solaris2.9)
  23084. # From Solaris 9+, posix4's preferred name is rt.
  23085. pthread_cflags="-D_REENTRANT"
  23086. pthread_lib="-lpthread -lrt"
  23087. ;;
  23088. *-*-solaris2.10)
  23089. # Solaris 10+ merged pthread into libc.
  23090. pthread_cflags="-D_REENTRANT"
  23091. pthread_lib="-lrt"
  23092. ;;
  23093. *-*-solaris*)
  23094. # Solaris 11+ merged rt into libc.
  23095. pthread_cflags="-D_REENTRANT"
  23096. pthread_lib=""
  23097. ;;
  23098. *-*-sysv5*)
  23099. pthread_cflags="-D_REENTRANT -Kthread"
  23100. pthread_lib=""
  23101. ;;
  23102. *-*-aix*)
  23103. pthread_cflags="-D_REENTRANT -mthreads"
  23104. pthread_lib="-lpthread"
  23105. ;;
  23106. *-*-hpux11*)
  23107. pthread_cflags="-D_REENTRANT"
  23108. pthread_lib="-L/usr/lib -lpthread"
  23109. ;;
  23110. *-*-haiku*)
  23111. pthread_cflags="-D_REENTRANT"
  23112. pthread_lib=""
  23113. ;;
  23114. *-*-nto*)
  23115. pthread_cflags="-D_REENTRANT"
  23116. pthread_lib=""
  23117. ;;
  23118. *-*-emscripten*)
  23119. pthread_cflags="-D_REENTRANT -pthread"
  23120. pthread_lib="-pthread"
  23121. ;;
  23122. *)
  23123. pthread_cflags="-D_REENTRANT"
  23124. pthread_lib="-lpthread"
  23125. ;;
  23126. esac
  23127. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23128. # Save the original compiler flags and libraries
  23129. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23130. # Add the pthread compiler flags and libraries
  23131. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23132. # Check to see if we have pthread support on this system
  23133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23134. printf %s "checking for pthreads... " >&6; }
  23135. use_pthreads=no
  23136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23137. /* end confdefs.h. */
  23138. #include <pthread.h>
  23139. int
  23140. main (void)
  23141. {
  23142. pthread_attr_t type;
  23143. pthread_attr_init(&type);
  23144. ;
  23145. return 0;
  23146. }
  23147. _ACEOF
  23148. if ac_fn_c_try_link "$LINENO"
  23149. then :
  23150. use_pthreads=yes
  23151. fi
  23152. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23153. conftest$ac_exeext conftest.$ac_ext
  23154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23155. printf "%s\n" "$use_pthreads" >&6; }
  23156. # Restore the compiler flags and libraries
  23157. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23158. # Do futher testing if we have pthread support...
  23159. if test x$use_pthreads = xyes; then
  23160. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23161. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23162. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23163. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23164. # Save the original compiler flags and libraries
  23165. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23166. # Add the pthread compiler flags and libraries
  23167. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23168. # Check to see if recursive mutexes are available
  23169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23170. printf %s "checking for recursive mutexes... " >&6; }
  23171. has_recursive_mutexes=no
  23172. if test x$has_recursive_mutexes = xno; then
  23173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23174. /* end confdefs.h. */
  23175. #define _GNU_SOURCE 1
  23176. #include <pthread.h>
  23177. int
  23178. main (void)
  23179. {
  23180. pthread_mutexattr_t attr;
  23181. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23182. ;
  23183. return 0;
  23184. }
  23185. _ACEOF
  23186. if ac_fn_c_try_link "$LINENO"
  23187. then :
  23188. has_recursive_mutexes=yes
  23189. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23190. fi
  23191. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23192. conftest$ac_exeext conftest.$ac_ext
  23193. fi
  23194. if test x$has_recursive_mutexes = xno; then
  23195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23196. /* end confdefs.h. */
  23197. #define _GNU_SOURCE 1
  23198. #include <pthread.h>
  23199. int
  23200. main (void)
  23201. {
  23202. pthread_mutexattr_t attr;
  23203. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23204. ;
  23205. return 0;
  23206. }
  23207. _ACEOF
  23208. if ac_fn_c_try_link "$LINENO"
  23209. then :
  23210. has_recursive_mutexes=yes
  23211. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23212. fi
  23213. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23214. conftest$ac_exeext conftest.$ac_ext
  23215. fi
  23216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23217. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23218. # Check to see if pthread semaphore support is missing
  23219. if test x$enable_pthread_sem = xyes; then
  23220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23221. printf %s "checking for pthread semaphores... " >&6; }
  23222. have_pthread_sem=no
  23223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23224. /* end confdefs.h. */
  23225. #include <pthread.h>
  23226. #include <semaphore.h>
  23227. int
  23228. main (void)
  23229. {
  23230. ;
  23231. return 0;
  23232. }
  23233. _ACEOF
  23234. if ac_fn_c_try_compile "$LINENO"
  23235. then :
  23236. have_pthread_sem=yes
  23237. fi
  23238. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23240. printf "%s\n" "$have_pthread_sem" >&6; }
  23241. fi
  23242. if test x$have_pthread_sem = xyes; then
  23243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23244. printf %s "checking for sem_timedwait... " >&6; }
  23245. have_sem_timedwait=no
  23246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23247. /* end confdefs.h. */
  23248. #include <pthread.h>
  23249. #include <semaphore.h>
  23250. int
  23251. main (void)
  23252. {
  23253. sem_timedwait(NULL, NULL);
  23254. ;
  23255. return 0;
  23256. }
  23257. _ACEOF
  23258. if ac_fn_c_try_link "$LINENO"
  23259. then :
  23260. have_sem_timedwait=yes
  23261. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23262. fi
  23263. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23264. conftest$ac_exeext conftest.$ac_ext
  23265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23266. printf "%s\n" "$have_sem_timedwait" >&6; }
  23267. fi
  23268. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23269. "
  23270. if test "x$ac_cv_header_pthread_np_h" = xyes
  23271. then :
  23272. have_pthread_np_h=yes
  23273. else $as_nop
  23274. have_pthread_np_h=no
  23275. fi
  23276. if test x$have_pthread_np_h = xyes; then
  23277. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23278. fi
  23279. # Check to see if pthread naming is available
  23280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23281. printf %s "checking for pthread_setname_np... " >&6; }
  23282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23283. /* end confdefs.h. */
  23284. /* Override any GCC internal prototype to avoid an error.
  23285. Use char because int might match the return type of a GCC
  23286. builtin and then its argument prototype would still apply. */
  23287. char pthread_setname_np ();
  23288. int
  23289. main (void)
  23290. {
  23291. return pthread_setname_np ();
  23292. ;
  23293. return 0;
  23294. }
  23295. _ACEOF
  23296. if ac_fn_c_try_link "$LINENO"
  23297. then :
  23298. has_pthread_setname_np=yes
  23299. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23300. else $as_nop
  23301. has_pthread_setname_np=no
  23302. fi
  23303. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23304. conftest$ac_exeext conftest.$ac_ext
  23305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23306. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23308. printf %s "checking for pthread_set_name_np... " >&6; }
  23309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23310. /* end confdefs.h. */
  23311. /* Override any GCC internal prototype to avoid an error.
  23312. Use char because int might match the return type of a GCC
  23313. builtin and then its argument prototype would still apply. */
  23314. char pthread_set_name_np ();
  23315. int
  23316. main (void)
  23317. {
  23318. return pthread_set_name_np ();
  23319. ;
  23320. return 0;
  23321. }
  23322. _ACEOF
  23323. if ac_fn_c_try_link "$LINENO"
  23324. then :
  23325. has_pthread_set_name_np=yes
  23326. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23327. else $as_nop
  23328. has_pthread_set_name_np=no
  23329. fi
  23330. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23331. conftest$ac_exeext conftest.$ac_ext
  23332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23333. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23334. # Restore the compiler flags and libraries
  23335. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23336. # Basic thread creation functions
  23337. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23338. # Semaphores
  23339. # We can fake these with mutexes and condition variables if necessary
  23340. if test x$have_pthread_sem = xyes; then
  23341. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23342. else
  23343. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23344. fi
  23345. # Mutexes
  23346. # We can fake these with semaphores if necessary
  23347. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23348. # Condition variables
  23349. # We can fake these with semaphores and mutexes if necessary
  23350. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23351. # Thread local storage
  23352. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23353. have_threads=yes
  23354. fi
  23355. fi
  23356. }
  23357. CheckWINDOWS()
  23358. {
  23359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23360. printf %s "checking Windows compiler... " >&6; }
  23361. have_win32_gcc=no
  23362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23363. /* end confdefs.h. */
  23364. #include <windows.h>
  23365. int
  23366. main (void)
  23367. {
  23368. ;
  23369. return 0;
  23370. }
  23371. _ACEOF
  23372. if ac_fn_c_try_compile "$LINENO"
  23373. then :
  23374. have_win32_gcc=yes
  23375. fi
  23376. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23378. printf "%s\n" "$have_win32_gcc" >&6; }
  23379. if test x$have_win32_gcc != xyes; then
  23380. as_fn_error $? "
  23381. *** Your compiler ($CC) does not produce Windows executables!
  23382. " "$LINENO" 5
  23383. fi
  23384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23385. printf %s "checking Windows CE... " >&6; }
  23386. have_wince=no
  23387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23388. /* end confdefs.h. */
  23389. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23390. #error This is not Windows CE
  23391. #endif
  23392. int
  23393. main (void)
  23394. {
  23395. ;
  23396. return 0;
  23397. }
  23398. _ACEOF
  23399. if ac_fn_c_try_compile "$LINENO"
  23400. then :
  23401. have_wince=yes
  23402. as_fn_error $? "
  23403. *** Sorry, Windows CE is no longer supported.
  23404. " "$LINENO" 5
  23405. fi
  23406. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23408. printf "%s\n" "$have_wince" >&6; }
  23409. # This fixes Windows stack alignment with newer GCC
  23410. CheckStackBoundary
  23411. # headers needed elsewhere
  23412. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23413. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23414. then :
  23415. have_tpcshrd_h=yes
  23416. fi
  23417. if test x$have_tpcshrd_h = xyes; then
  23418. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23419. fi
  23420. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23421. if test "x$ac_cv_header_roapi_h" = xyes
  23422. then :
  23423. have_roapi_h=yes
  23424. fi
  23425. if test x$have_roapi_h = xyes; then
  23426. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23427. fi
  23428. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23429. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23430. then :
  23431. have_shellscalingapi_h=yes
  23432. fi
  23433. if test x$shellscalingapi_h = xyes; then
  23434. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23435. fi
  23436. }
  23437. CheckOS2()
  23438. {
  23439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23440. printf %s "checking OS/2 compiler... " >&6; }
  23441. have_os2_gcc=no
  23442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23443. /* end confdefs.h. */
  23444. #include <os2.h>
  23445. int
  23446. main (void)
  23447. {
  23448. ;
  23449. return 0;
  23450. }
  23451. _ACEOF
  23452. if ac_fn_c_try_compile "$LINENO"
  23453. then :
  23454. have_os2_gcc=yes
  23455. fi
  23456. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23458. printf "%s\n" "$have_os2_gcc" >&6; }
  23459. if test x$have_os2_gcc != xyes; then
  23460. as_fn_error $? "
  23461. *** Your compiler ($CC) does not produce OS/2 executables!
  23462. " "$LINENO" 5
  23463. fi
  23464. }
  23465. CheckDIRECTX()
  23466. {
  23467. # Check whether --enable-directx was given.
  23468. if test ${enable_directx+y}
  23469. then :
  23470. enableval=$enable_directx;
  23471. else $as_nop
  23472. enable_directx=yes
  23473. fi
  23474. if test x$enable_directx = xyes; then
  23475. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23476. if test "x$ac_cv_header_d3d9_h" = xyes
  23477. then :
  23478. have_d3d=yes
  23479. fi
  23480. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23481. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23482. then :
  23483. have_d3d11=yes
  23484. fi
  23485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23486. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23488. /* end confdefs.h. */
  23489. #include <winsdkver.h>
  23490. #include <sdkddkver.h>
  23491. #include <d3d12.h>
  23492. ID3D12Device1 *device;
  23493. #if WDK_NTDDI_VERSION <= 0x0A000008
  23494. asdf
  23495. #endif
  23496. int
  23497. main (void)
  23498. {
  23499. ;
  23500. return 0;
  23501. }
  23502. _ACEOF
  23503. if ac_fn_c_try_compile "$LINENO"
  23504. then :
  23505. have_d3d12=yes
  23506. else $as_nop
  23507. have_d3d12=no
  23508. fi
  23509. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23511. printf "%s\n" "$have_d3d12" >&6; }
  23512. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23513. if test "x$ac_cv_header_ddraw_h" = xyes
  23514. then :
  23515. have_ddraw=yes
  23516. fi
  23517. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23518. if test "x$ac_cv_header_dsound_h" = xyes
  23519. then :
  23520. have_dsound=yes
  23521. fi
  23522. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23523. if test "x$ac_cv_header_dinput_h" = xyes
  23524. then :
  23525. have_dinput=yes
  23526. fi
  23527. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23528. if test "x$ac_cv_header_dxgi_h" = xyes
  23529. then :
  23530. have_dxgi=yes
  23531. fi
  23532. if test x$have_ddraw = xyes; then
  23533. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23534. fi
  23535. if test x$have_dinput = xyes; then
  23536. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23537. fi
  23538. if test x$have_dsound = xyes; then
  23539. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23540. fi
  23541. if test x$have_dxgi = xyes; then
  23542. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23543. fi
  23544. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23545. # FIXME: ...so force it off for now.
  23546. case "$host" in
  23547. *-*-cygwin*)
  23548. have_dinput=false
  23549. ;;
  23550. esac
  23551. fi
  23552. # Check whether --enable-xinput was given.
  23553. if test ${enable_xinput+y}
  23554. then :
  23555. enableval=$enable_xinput;
  23556. else $as_nop
  23557. enable_xinput=yes
  23558. fi
  23559. if test x$enable_xinput = xyes; then
  23560. have_xinput_gamepadex=no
  23561. have_xinput_stateex=no
  23562. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23563. if test "x$ac_cv_header_xinput_h" = xyes
  23564. then :
  23565. have_xinput=yes
  23566. fi
  23567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23568. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23570. /* end confdefs.h. */
  23571. #include <windows.h>
  23572. #include <xinput.h>
  23573. XINPUT_GAMEPAD_EX x1;
  23574. int
  23575. main (void)
  23576. {
  23577. ;
  23578. return 0;
  23579. }
  23580. _ACEOF
  23581. if ac_fn_c_try_compile "$LINENO"
  23582. then :
  23583. have_xinput_gamepadex=yes
  23584. fi
  23585. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23587. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23589. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23591. /* end confdefs.h. */
  23592. #include <windows.h>
  23593. #include <xinput.h>
  23594. XINPUT_STATE_EX s1;
  23595. int
  23596. main (void)
  23597. {
  23598. ;
  23599. return 0;
  23600. }
  23601. _ACEOF
  23602. if ac_fn_c_try_compile "$LINENO"
  23603. then :
  23604. have_xinput_stateex=yes
  23605. fi
  23606. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23608. printf "%s\n" "$have_xinput_stateex" >&6; }
  23609. if test x$have_xinput = xyes; then
  23610. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23611. fi
  23612. if test x$have_xinput_gamepadex = xyes; then
  23613. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23614. fi
  23615. if test x$have_xinput_stateex = xyes; then
  23616. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23617. fi
  23618. fi
  23619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23620. printf %s "checking for windows.gaming.input.h... " >&6; }
  23621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23622. /* end confdefs.h. */
  23623. #define COBJMACROS
  23624. #include <windows.gaming.input.h>
  23625. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23626. int
  23627. main (void)
  23628. {
  23629. ;
  23630. return 0;
  23631. }
  23632. _ACEOF
  23633. if ac_fn_c_try_compile "$LINENO"
  23634. then :
  23635. have_wgi=yes
  23636. else $as_nop
  23637. have_wgi=no
  23638. fi
  23639. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23641. printf "%s\n" "$have_wgi" >&6; }
  23642. if test x$have_wgi = xyes; then
  23643. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23644. fi
  23645. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23646. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23647. then :
  23648. have_wasapi=yes
  23649. fi
  23650. if test x$have_wasapi = xyes; then
  23651. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23652. fi
  23653. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23654. if test "x$ac_cv_header_audioclient_h" = xyes
  23655. then :
  23656. else $as_nop
  23657. have_wasapi=no
  23658. fi
  23659. if test x$have_wasapi = xyes; then
  23660. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23661. fi
  23662. # Check whether --enable-wasapi was given.
  23663. if test ${enable_wasapi+y}
  23664. then :
  23665. enableval=$enable_wasapi;
  23666. else $as_nop
  23667. enable_wasapi=yes
  23668. fi
  23669. }
  23670. CheckDLOPEN()
  23671. {
  23672. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23673. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23674. if test "x$ac_cv_header_dlfcn_h" = xyes
  23675. then :
  23676. have_dlfcn_h=yes
  23677. else $as_nop
  23678. have_dlfcn_h=no
  23679. fi
  23680. have_dlopen=no
  23681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23682. printf %s "checking for dlopen in -lc... " >&6; }
  23683. if test ${ac_cv_lib_c_dlopen+y}
  23684. then :
  23685. printf %s "(cached) " >&6
  23686. else $as_nop
  23687. ac_check_lib_save_LIBS=$LIBS
  23688. LIBS="-lc $LIBS"
  23689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23690. /* end confdefs.h. */
  23691. /* Override any GCC internal prototype to avoid an error.
  23692. Use char because int might match the return type of a GCC
  23693. builtin and then its argument prototype would still apply. */
  23694. char dlopen ();
  23695. int
  23696. main (void)
  23697. {
  23698. return dlopen ();
  23699. ;
  23700. return 0;
  23701. }
  23702. _ACEOF
  23703. if ac_fn_c_try_link "$LINENO"
  23704. then :
  23705. ac_cv_lib_c_dlopen=yes
  23706. else $as_nop
  23707. ac_cv_lib_c_dlopen=no
  23708. fi
  23709. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23710. conftest$ac_exeext conftest.$ac_ext
  23711. LIBS=$ac_check_lib_save_LIBS
  23712. fi
  23713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23714. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23715. if test "x$ac_cv_lib_c_dlopen" = xyes
  23716. then :
  23717. have_dlopen=yes
  23718. else $as_nop
  23719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23720. printf %s "checking for dlopen in -ldl... " >&6; }
  23721. if test ${ac_cv_lib_dl_dlopen+y}
  23722. then :
  23723. printf %s "(cached) " >&6
  23724. else $as_nop
  23725. ac_check_lib_save_LIBS=$LIBS
  23726. LIBS="-ldl $LIBS"
  23727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23728. /* end confdefs.h. */
  23729. /* Override any GCC internal prototype to avoid an error.
  23730. Use char because int might match the return type of a GCC
  23731. builtin and then its argument prototype would still apply. */
  23732. char dlopen ();
  23733. int
  23734. main (void)
  23735. {
  23736. return dlopen ();
  23737. ;
  23738. return 0;
  23739. }
  23740. _ACEOF
  23741. if ac_fn_c_try_link "$LINENO"
  23742. then :
  23743. ac_cv_lib_dl_dlopen=yes
  23744. else $as_nop
  23745. ac_cv_lib_dl_dlopen=no
  23746. fi
  23747. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23748. conftest$ac_exeext conftest.$ac_ext
  23749. LIBS=$ac_check_lib_save_LIBS
  23750. fi
  23751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23752. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23753. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23754. then :
  23755. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23756. fi
  23757. fi
  23758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23759. printf %s "checking for dlopen... " >&6; }
  23760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23761. printf "%s\n" "$have_dlopen" >&6; }
  23762. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23763. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23764. if test x$enable_loadso = xyes; then
  23765. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23766. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23767. have_loadso=yes
  23768. fi
  23769. fi
  23770. }
  23771. CheckO_CLOEXEC()
  23772. {
  23773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23774. printf %s "checking for O_CLOEXEC... " >&6; }
  23775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23776. /* end confdefs.h. */
  23777. #include <fcntl.h>
  23778. int flag = O_CLOEXEC;
  23779. int
  23780. main (void)
  23781. {
  23782. ;
  23783. return 0;
  23784. }
  23785. _ACEOF
  23786. if ac_fn_c_try_compile "$LINENO"
  23787. then :
  23788. have_o_cloexec=yes
  23789. else $as_nop
  23790. have_o_cloexec=no
  23791. fi
  23792. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23794. printf "%s\n" "$have_o_cloexec" >&6; }
  23795. if test $have_o_cloexec = yes; then
  23796. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23797. fi
  23798. }
  23799. CheckUSBHID()
  23800. {
  23801. case "$host" in
  23802. *-*-*bsd*|*-*-dragonfly*)
  23803. if test x$enable_joystick = xyes; then
  23804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23805. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23806. if test ${ac_cv_lib_usbhid_hid_init+y}
  23807. then :
  23808. printf %s "(cached) " >&6
  23809. else $as_nop
  23810. ac_check_lib_save_LIBS=$LIBS
  23811. LIBS="-lusbhid $LIBS"
  23812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23813. /* end confdefs.h. */
  23814. /* Override any GCC internal prototype to avoid an error.
  23815. Use char because int might match the return type of a GCC
  23816. builtin and then its argument prototype would still apply. */
  23817. char hid_init ();
  23818. int
  23819. main (void)
  23820. {
  23821. return hid_init ();
  23822. ;
  23823. return 0;
  23824. }
  23825. _ACEOF
  23826. if ac_fn_c_try_link "$LINENO"
  23827. then :
  23828. ac_cv_lib_usbhid_hid_init=yes
  23829. else $as_nop
  23830. ac_cv_lib_usbhid_hid_init=no
  23831. fi
  23832. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23833. conftest$ac_exeext conftest.$ac_ext
  23834. LIBS=$ac_check_lib_save_LIBS
  23835. fi
  23836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23837. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23838. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23839. then :
  23840. have_libusbhid=yes
  23841. fi
  23842. if test x$have_libusbhid = xyes; then
  23843. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23844. if test "x$ac_cv_header_usbhid_h" = xyes
  23845. then :
  23846. USB_CFLAGS="-DHAVE_USBHID_H"
  23847. fi
  23848. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23849. if test "x$ac_cv_header_libusbhid_h" = xyes
  23850. then :
  23851. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23852. fi
  23853. USB_LIBS="$USB_LIBS -lusbhid"
  23854. else
  23855. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23856. if test "x$ac_cv_header_usb_h" = xyes
  23857. then :
  23858. USB_CFLAGS="-DHAVE_USB_H"
  23859. fi
  23860. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23861. if test "x$ac_cv_header_libusb_h" = xyes
  23862. then :
  23863. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23864. fi
  23865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23866. printf %s "checking for hid_init in -lusb... " >&6; }
  23867. if test ${ac_cv_lib_usb_hid_init+y}
  23868. then :
  23869. printf %s "(cached) " >&6
  23870. else $as_nop
  23871. ac_check_lib_save_LIBS=$LIBS
  23872. LIBS="-lusb $LIBS"
  23873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23874. /* end confdefs.h. */
  23875. /* Override any GCC internal prototype to avoid an error.
  23876. Use char because int might match the return type of a GCC
  23877. builtin and then its argument prototype would still apply. */
  23878. char hid_init ();
  23879. int
  23880. main (void)
  23881. {
  23882. return hid_init ();
  23883. ;
  23884. return 0;
  23885. }
  23886. _ACEOF
  23887. if ac_fn_c_try_link "$LINENO"
  23888. then :
  23889. ac_cv_lib_usb_hid_init=yes
  23890. else $as_nop
  23891. ac_cv_lib_usb_hid_init=no
  23892. fi
  23893. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23894. conftest$ac_exeext conftest.$ac_ext
  23895. LIBS=$ac_check_lib_save_LIBS
  23896. fi
  23897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23898. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23899. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23900. then :
  23901. USB_LIBS="$USB_LIBS -lusb"
  23902. fi
  23903. fi
  23904. save_CFLAGS="$CFLAGS"
  23905. CFLAGS="$CFLAGS $USB_CFLAGS"
  23906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23907. printf %s "checking for usbhid... " >&6; }
  23908. have_usbhid=no
  23909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23910. /* end confdefs.h. */
  23911. #include <sys/types.h>
  23912. #if defined(HAVE_USB_H)
  23913. #include <usb.h>
  23914. #endif
  23915. #ifdef __DragonFly__
  23916. # include <bus/u4b/usb.h>
  23917. # include <bus/u4b/usbhid.h>
  23918. #else
  23919. # include <dev/usb/usb.h>
  23920. # include <dev/usb/usbhid.h>
  23921. #endif
  23922. #if defined(HAVE_USBHID_H)
  23923. #include <usbhid.h>
  23924. #elif defined(HAVE_LIBUSB_H)
  23925. #include <libusb.h>
  23926. #elif defined(HAVE_LIBUSBHID_H)
  23927. #include <libusbhid.h>
  23928. #endif
  23929. int
  23930. main (void)
  23931. {
  23932. struct report_desc *repdesc;
  23933. struct usb_ctl_report *repbuf;
  23934. hid_kind_t hidkind;
  23935. ;
  23936. return 0;
  23937. }
  23938. _ACEOF
  23939. if ac_fn_c_try_compile "$LINENO"
  23940. then :
  23941. have_usbhid=yes
  23942. fi
  23943. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23945. printf "%s\n" "$have_usbhid" >&6; }
  23946. if test x$have_usbhid = xyes; then
  23947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23948. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23949. have_usbhid_ucr_data=no
  23950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23951. /* end confdefs.h. */
  23952. #include <sys/types.h>
  23953. #if defined(HAVE_USB_H)
  23954. #include <usb.h>
  23955. #endif
  23956. #ifdef __DragonFly__
  23957. # include <bus/u4b/usb.h>
  23958. # include <bus/u4b/usbhid.h>
  23959. #else
  23960. # include <dev/usb/usb.h>
  23961. # include <dev/usb/usbhid.h>
  23962. #endif
  23963. #if defined(HAVE_USBHID_H)
  23964. #include <usbhid.h>
  23965. #elif defined(HAVE_LIBUSB_H)
  23966. #include <libusb.h>
  23967. #elif defined(HAVE_LIBUSBHID_H)
  23968. #include <libusbhid.h>
  23969. #endif
  23970. int
  23971. main (void)
  23972. {
  23973. struct usb_ctl_report buf;
  23974. if (buf.ucr_data) { }
  23975. ;
  23976. return 0;
  23977. }
  23978. _ACEOF
  23979. if ac_fn_c_try_compile "$LINENO"
  23980. then :
  23981. have_usbhid_ucr_data=yes
  23982. fi
  23983. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23984. if test x$have_usbhid_ucr_data = xyes; then
  23985. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23986. fi
  23987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23988. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23990. printf %s "checking for new usbhid API... " >&6; }
  23991. have_usbhid_new=no
  23992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23993. /* end confdefs.h. */
  23994. #include <sys/types.h>
  23995. #if defined(HAVE_USB_H)
  23996. #include <usb.h>
  23997. #endif
  23998. #ifdef __DragonFly__
  23999. #include <bus/u4b/usb.h>
  24000. #include <bus/u4b/usbhid.h>
  24001. #else
  24002. #include <dev/usb/usb.h>
  24003. #include <dev/usb/usbhid.h>
  24004. #endif
  24005. #if defined(HAVE_USBHID_H)
  24006. #include <usbhid.h>
  24007. #elif defined(HAVE_LIBUSB_H)
  24008. #include <libusb.h>
  24009. #elif defined(HAVE_LIBUSBHID_H)
  24010. #include <libusbhid.h>
  24011. #endif
  24012. int
  24013. main (void)
  24014. {
  24015. report_desc_t d;
  24016. hid_start_parse(d, 1, 1);
  24017. ;
  24018. return 0;
  24019. }
  24020. _ACEOF
  24021. if ac_fn_c_try_compile "$LINENO"
  24022. then :
  24023. have_usbhid_new=yes
  24024. fi
  24025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24026. if test x$have_usbhid_new = xyes; then
  24027. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24028. fi
  24029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24030. printf "%s\n" "$have_usbhid_new" >&6; }
  24031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24032. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24033. have_machine_joystick=no
  24034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24035. /* end confdefs.h. */
  24036. #include <machine/joystick.h>
  24037. int
  24038. main (void)
  24039. {
  24040. struct joystick t;
  24041. ;
  24042. return 0;
  24043. }
  24044. _ACEOF
  24045. if ac_fn_c_try_compile "$LINENO"
  24046. then :
  24047. have_machine_joystick=yes
  24048. fi
  24049. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24050. if test x$have_machine_joystick = xyes; then
  24051. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24052. fi
  24053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24054. printf "%s\n" "$have_machine_joystick" >&6; }
  24055. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24056. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24057. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24059. have_joystick=yes
  24060. fi
  24061. CFLAGS="$save_CFLAGS"
  24062. fi
  24063. ;;
  24064. esac
  24065. }
  24066. CheckHIDAPI()
  24067. {
  24068. # Check whether --enable-hidapi-joystick was given.
  24069. if test ${enable_hidapi_joystick+y}
  24070. then :
  24071. enableval=$enable_hidapi_joystick;
  24072. else $as_nop
  24073. enable_hidapi_joystick=yes
  24074. fi
  24075. # Check whether --enable-hidapi-libusb was given.
  24076. if test ${enable_hidapi_libusb+y}
  24077. then :
  24078. enableval=$enable_hidapi_libusb;
  24079. else $as_nop
  24080. enable_hidapi_libusb=maybe
  24081. fi
  24082. if test x$enable_hidapi = xyes; then
  24083. case "$host" in
  24084. # libusb does not support iOS
  24085. *-ios-* )
  24086. enable_hidapi_libusb=no
  24087. ;;
  24088. # On the other hand, *BSD specifically uses libusb only
  24089. *-*-*bsd* )
  24090. enable_hidapi_libusb=yes
  24091. require_hidapi_libusb=yes
  24092. ;;
  24093. *-*-os2* )
  24094. enable_hidapi_libusb=yes
  24095. ;;
  24096. esac
  24097. hidapi_support=yes
  24098. if test x$enable_hidapi_libusb = xyes; then
  24099. pkg_failed=no
  24100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24101. printf %s "checking for libusb-1.0... " >&6; }
  24102. if test -n "$LIBUSB_CFLAGS"; then
  24103. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24104. elif test -n "$PKG_CONFIG"; then
  24105. if test -n "$PKG_CONFIG" && \
  24106. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24107. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24108. ac_status=$?
  24109. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24110. test $ac_status = 0; }; then
  24111. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24112. test "x$?" != "x0" && pkg_failed=yes
  24113. else
  24114. pkg_failed=yes
  24115. fi
  24116. else
  24117. pkg_failed=untried
  24118. fi
  24119. if test -n "$LIBUSB_LIBS"; then
  24120. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24121. elif test -n "$PKG_CONFIG"; then
  24122. if test -n "$PKG_CONFIG" && \
  24123. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24124. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24125. ac_status=$?
  24126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24127. test $ac_status = 0; }; then
  24128. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24129. test "x$?" != "x0" && pkg_failed=yes
  24130. else
  24131. pkg_failed=yes
  24132. fi
  24133. else
  24134. pkg_failed=untried
  24135. fi
  24136. if test $pkg_failed = yes; then
  24137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24138. printf "%s\n" "no" >&6; }
  24139. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24140. _pkg_short_errors_supported=yes
  24141. else
  24142. _pkg_short_errors_supported=no
  24143. fi
  24144. if test $_pkg_short_errors_supported = yes; then
  24145. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24146. else
  24147. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24148. fi
  24149. # Put the nasty error message in config.log where it belongs
  24150. echo "$LIBUSB_PKG_ERRORS" >&5
  24151. have_libusb=no
  24152. elif test $pkg_failed = untried; then
  24153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24154. printf "%s\n" "no" >&6; }
  24155. have_libusb=no
  24156. else
  24157. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24158. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24160. printf "%s\n" "yes" >&6; }
  24161. have_libusb=yes
  24162. fi
  24163. save_CPPFLAGS="$CPPFLAGS"
  24164. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24165. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24166. if test "x$ac_cv_header_libusb_h" = xyes
  24167. then :
  24168. have_libusb_h=yes
  24169. else $as_nop
  24170. have_libusb_h=no
  24171. fi
  24172. CPPFLAGS="$save_CPPFLAGS"
  24173. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24174. hidapi_support=no
  24175. fi
  24176. fi
  24177. if test x$hidapi_support = xyes; then
  24178. if test x$have_libusb_h = xyes; then
  24179. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24180. if test x$require_hidapi_libusb = xyes; then
  24181. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24182. else
  24183. if test x$have_loadso != xyes; then
  24184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24185. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24186. fi
  24187. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24188. libusb_lib=""
  24189. case "$host" in
  24190. *-*-darwin* )
  24191. libusb_lib="libusb-1.0.0.dylib"
  24192. ;;
  24193. *-*-cygwin* | *-*-mingw* )
  24194. libusb_lib="libusb-1.0.dll"
  24195. ;;
  24196. *-*-os2* )
  24197. libusb_lib="usb100.dll"
  24198. ;;
  24199. esac
  24200. if test x$libusb_lib = x; then
  24201. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24202. fi
  24203. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24204. fi
  24205. fi
  24206. fi
  24207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24208. printf %s "checking for hidapi joystick support... " >&6; }
  24209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24210. printf "%s\n" "$hidapi_support" >&6; }
  24211. fi
  24212. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24213. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24214. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24215. fi
  24216. }
  24217. CheckClockGettime()
  24218. {
  24219. # Check whether --enable-clock_gettime was given.
  24220. if test ${enable_clock_gettime+y}
  24221. then :
  24222. enableval=$enable_clock_gettime;
  24223. else $as_nop
  24224. enable_clock_gettime=yes
  24225. fi
  24226. if test x$enable_clock_gettime = xyes; then
  24227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24228. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24229. if test ${ac_cv_lib_rt_clock_gettime+y}
  24230. then :
  24231. printf %s "(cached) " >&6
  24232. else $as_nop
  24233. ac_check_lib_save_LIBS=$LIBS
  24234. LIBS="-lrt $LIBS"
  24235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24236. /* end confdefs.h. */
  24237. /* Override any GCC internal prototype to avoid an error.
  24238. Use char because int might match the return type of a GCC
  24239. builtin and then its argument prototype would still apply. */
  24240. char clock_gettime ();
  24241. int
  24242. main (void)
  24243. {
  24244. return clock_gettime ();
  24245. ;
  24246. return 0;
  24247. }
  24248. _ACEOF
  24249. if ac_fn_c_try_link "$LINENO"
  24250. then :
  24251. ac_cv_lib_rt_clock_gettime=yes
  24252. else $as_nop
  24253. ac_cv_lib_rt_clock_gettime=no
  24254. fi
  24255. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24256. conftest$ac_exeext conftest.$ac_ext
  24257. LIBS=$ac_check_lib_save_LIBS
  24258. fi
  24259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24260. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24261. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24262. then :
  24263. have_clock_gettime=yes
  24264. fi
  24265. if test x$have_clock_gettime = xyes; then
  24266. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24267. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24268. else
  24269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24270. printf %s "checking for clock_gettime in -lc... " >&6; }
  24271. if test ${ac_cv_lib_c_clock_gettime+y}
  24272. then :
  24273. printf %s "(cached) " >&6
  24274. else $as_nop
  24275. ac_check_lib_save_LIBS=$LIBS
  24276. LIBS="-lc $LIBS"
  24277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24278. /* end confdefs.h. */
  24279. /* Override any GCC internal prototype to avoid an error.
  24280. Use char because int might match the return type of a GCC
  24281. builtin and then its argument prototype would still apply. */
  24282. char clock_gettime ();
  24283. int
  24284. main (void)
  24285. {
  24286. return clock_gettime ();
  24287. ;
  24288. return 0;
  24289. }
  24290. _ACEOF
  24291. if ac_fn_c_try_link "$LINENO"
  24292. then :
  24293. ac_cv_lib_c_clock_gettime=yes
  24294. else $as_nop
  24295. ac_cv_lib_c_clock_gettime=no
  24296. fi
  24297. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24298. conftest$ac_exeext conftest.$ac_ext
  24299. LIBS=$ac_check_lib_save_LIBS
  24300. fi
  24301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24302. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24303. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24304. then :
  24305. have_clock_gettime=yes
  24306. fi
  24307. if test x$have_clock_gettime = xyes; then
  24308. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24310. fi
  24311. fi
  24312. fi
  24313. }
  24314. CheckLinuxVersion()
  24315. {
  24316. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24317. if test "x$ac_cv_header_linux_version_h" = xyes
  24318. then :
  24319. have_linux_version_h=yes
  24320. fi
  24321. if test x$have_linux_version_h = xyes; then
  24322. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24323. fi
  24324. }
  24325. CheckRPATH()
  24326. {
  24327. # Check whether --enable-rpath was given.
  24328. if test ${enable_rpath+y}
  24329. then :
  24330. enableval=$enable_rpath;
  24331. else $as_nop
  24332. enable_rpath=yes
  24333. fi
  24334. }
  24335. CheckEventSignals()
  24336. {
  24337. # Check whether --enable-backgrounding-signal was given.
  24338. if test ${enable_backgrounding_signal+y}
  24339. then :
  24340. enableval=$enable_backgrounding_signal;
  24341. else $as_nop
  24342. enable_backgrounding_signal=no
  24343. fi
  24344. if test x$enable_backgrounding_signal != xno; then
  24345. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24346. fi
  24347. # Check whether --enable-foregrounding-signal was given.
  24348. if test ${enable_foregrounding_signal+y}
  24349. then :
  24350. enableval=$enable_foregrounding_signal;
  24351. else $as_nop
  24352. enable_foregrounding_signal=no
  24353. fi
  24354. if test x$enable_foregrounding_signal != xno; then
  24355. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24356. fi
  24357. }
  24358. CheckVirtualJoystick()
  24359. {
  24360. # Check whether --enable-joystick-virtual was given.
  24361. if test ${enable_joystick_virtual+y}
  24362. then :
  24363. enableval=$enable_joystick_virtual;
  24364. else $as_nop
  24365. enable_joystick_virtual=yes
  24366. fi
  24367. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24368. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24369. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24370. have_joystick_virtual=yes
  24371. fi
  24372. }
  24373. CheckWarnAll
  24374. CheckNoStrictAliasing
  24375. CheckEventSignals
  24376. have_locale=no
  24377. case "$host" in
  24378. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24379. case "$host" in
  24380. *-*-android*)
  24381. # Android
  24382. ARCH=android
  24383. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24384. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24385. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24386. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24388. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24389. if test x$enable_video = xyes; then
  24390. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24391. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24392. SUMMARY_video="${SUMMARY_video} android"
  24393. have_video=yes
  24394. fi
  24395. ;;
  24396. *-*-linux*) ARCH=linux ;;
  24397. *-*-uclinux*) ARCH=linux ;;
  24398. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24399. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24400. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24401. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24402. *-*-bsdi*) ARCH=bsdi ;;
  24403. *-*-freebsd*) ARCH=freebsd ;;
  24404. *-*-dragonfly*) ARCH=freebsd ;;
  24405. *-*-netbsd*) ARCH=netbsd ;;
  24406. *-*-openbsd*) ARCH=openbsd ;;
  24407. *-*-sysv5*) ARCH=sysv5 ;;
  24408. *-*-solaris*) ARCH=solaris ;;
  24409. *-*-hpux*) ARCH=hpux ;;
  24410. *-*-aix*) ARCH=aix ;;
  24411. *-*-minix*) ARCH=minix ;;
  24412. *-*-nto*) ARCH=nto
  24413. CheckQNXVideo
  24414. ;;
  24415. esac
  24416. CheckVisibilityHidden
  24417. CheckDeclarationAfterStatement
  24418. CheckDummyVideo
  24419. CheckOffscreenVideo
  24420. CheckDiskAudio
  24421. CheckDummyAudio
  24422. CheckDLOPEN
  24423. CheckARM
  24424. CheckNEON
  24425. CheckO_CLOEXEC
  24426. CheckOSS
  24427. CheckALSA
  24428. CheckPipewire
  24429. CheckPulseAudio
  24430. CheckJACK
  24431. CheckARTSC
  24432. CheckESD
  24433. CheckNAS
  24434. CheckSNDIO
  24435. CheckFusionSound
  24436. CheckLibSampleRate
  24437. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24438. CheckRPI
  24439. CheckX11
  24440. CheckDirectFB
  24441. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24442. CheckEGL
  24443. CheckKMSDRM
  24444. CheckGLX
  24445. CheckOpenGL
  24446. CheckOpenGLES
  24447. CheckVulkan
  24448. CheckWayland
  24449. CheckInputEvents
  24450. CheckLibUDev
  24451. CheckDBus
  24452. CheckIME
  24453. CheckInotify
  24454. CheckIBus
  24455. CheckFcitx
  24456. case $ARCH in
  24457. linux)
  24458. CheckInputKD
  24459. ;;
  24460. freebsd)
  24461. CheckInputKBIO
  24462. ;;
  24463. openbsd|netbsd)
  24464. CheckInputWSCONS
  24465. ;;
  24466. esac
  24467. CheckUSBHID
  24468. CheckHIDAPI
  24469. CheckPTHREAD
  24470. CheckClockGettime
  24471. CheckLinuxVersion
  24472. CheckRPATH
  24473. CheckVivanteVideo
  24474. # Set up files for the misc library
  24475. if test x$enable_misc = xyes; then
  24476. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24477. have_misc=yes
  24478. fi
  24479. # Set up files for the locale library
  24480. if test x$enable_locale = xyes; then
  24481. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24482. have_locale=yes
  24483. fi
  24484. # Set up files for the audio library
  24485. if test x$enable_audio = xyes; then
  24486. case $ARCH in
  24487. sysv5|solaris|hpux)
  24488. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24489. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24490. SUMMARY_audio="${SUMMARY_audio} sun"
  24491. have_audio=yes
  24492. ;;
  24493. netbsd) # Don't use this on OpenBSD, it's busted.
  24494. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24495. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24496. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24497. have_audio=yes
  24498. ;;
  24499. aix)
  24500. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24501. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24502. SUMMARY_audio="${SUMMARY_audio} paudio"
  24503. have_audio=yes
  24504. ;;
  24505. android)
  24506. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24507. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24508. SUMMARY_audio="${SUMMARY_audio} android"
  24509. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24510. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24511. SUMMARY_audio="${SUMMARY_audio} openslES"
  24512. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24513. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24514. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24515. have_audio=yes
  24516. ;;
  24517. nto)
  24518. CheckQNXAudio
  24519. ;;
  24520. esac
  24521. fi
  24522. # Set up files for the joystick library
  24523. if test x$enable_joystick = xyes; then
  24524. case $ARCH in
  24525. linux)
  24526. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24527. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24528. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24529. have_joystick=yes
  24530. ;;
  24531. freebsd)
  24532. if test x$use_input_events = xyes; then
  24533. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24534. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24535. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24536. have_joystick=yes
  24537. fi
  24538. ;;
  24539. android)
  24540. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24541. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24542. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24543. have_joystick=yes
  24544. ;;
  24545. esac
  24546. fi
  24547. # Set up files for the haptic library
  24548. if test x$enable_haptic = xyes; then
  24549. case $ARCH in
  24550. linux|freebsd)
  24551. if test x$use_input_events = xyes; then
  24552. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24553. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24554. have_haptic=yes
  24555. fi
  24556. ;;
  24557. android)
  24558. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24559. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24560. have_haptic=yes
  24561. ;;
  24562. esac
  24563. fi
  24564. # Set up files for the sensor library
  24565. if test x$enable_sensor = xyes; then
  24566. case $ARCH in
  24567. android)
  24568. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24569. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24570. have_sensor=yes
  24571. ;;
  24572. esac
  24573. fi
  24574. # Set up files for the power library
  24575. if test x$enable_power = xyes; then
  24576. case $ARCH in
  24577. linux)
  24578. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24579. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24580. have_power=yes
  24581. ;;
  24582. android)
  24583. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24584. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24585. have_power=yes
  24586. ;;
  24587. esac
  24588. fi
  24589. # Set up files for the filesystem library
  24590. if test x$enable_filesystem = xyes; then
  24591. case $ARCH in
  24592. android)
  24593. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24594. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24595. have_filesystem=yes
  24596. ;;
  24597. *)
  24598. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24599. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24600. have_filesystem=yes
  24601. ;;
  24602. esac
  24603. fi
  24604. # Set up files for the timer library
  24605. if test x$enable_timers = xyes; then
  24606. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24607. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24608. have_timers=yes
  24609. fi
  24610. # Set up files for udev hotplugging support
  24611. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24612. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24613. fi
  24614. # Set up files for evdev input
  24615. if test x$use_input_events = xyes; then
  24616. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24617. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24618. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24619. fi
  24620. # Set up files for wscons input
  24621. if test x$use_input_wscons = xyes; then
  24622. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24623. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24624. fi
  24625. # Set up other core UNIX files
  24626. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24627. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24628. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24629. ;;
  24630. *-*-cygwin* | *-*-mingw*)
  24631. ARCH=win32
  24632. if test "$build" != "$host"; then # cross-compiling
  24633. # Default cross-compile location
  24634. ac_default_prefix=/usr/local/cross-tools/$host
  24635. else
  24636. # Look for the location of the tools and install there
  24637. if test "$BUILD_PREFIX" != ""; then
  24638. ac_default_prefix=$BUILD_PREFIX
  24639. fi
  24640. fi
  24641. if test x$enable_loadso = xyes; then
  24642. have_loadso=yes
  24643. fi
  24644. CheckDeclarationAfterStatement
  24645. CheckDummyVideo
  24646. CheckOffscreenVideo
  24647. CheckDiskAudio
  24648. CheckDummyAudio
  24649. CheckWINDOWS
  24650. CheckWINDOWSGL
  24651. CheckWINDOWSGLES
  24652. CheckVulkan
  24653. CheckDIRECTX
  24654. CheckHIDAPI
  24655. # Set up the core platform files
  24656. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24657. # Set up files for the misc library
  24658. if test x$enable_misc = xyes; then
  24659. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24660. have_misc=yes
  24661. fi
  24662. # Use the Windows locale APIs.
  24663. if test x$enable_locale = xyes; then
  24664. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24665. have_locale=yes
  24666. fi
  24667. # Set up files for the video library
  24668. if test x$enable_video = xyes; then
  24669. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24670. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24671. have_video=yes
  24672. # Check whether --enable-render-d3d was given.
  24673. if test ${enable_render_d3d+y}
  24674. then :
  24675. enableval=$enable_render_d3d;
  24676. else $as_nop
  24677. enable_render_d3d=yes
  24678. fi
  24679. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24680. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24681. SUMMARY_video="${SUMMARY_video} d3d9"
  24682. fi
  24683. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24684. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24685. SUMMARY_video="${SUMMARY_video} d3d11"
  24686. fi
  24687. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24688. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24689. SUMMARY_video="${SUMMARY_video} d3d12"
  24690. fi
  24691. fi
  24692. # Set up files for the audio library
  24693. if test x$enable_audio = xyes; then
  24694. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24695. SUMMARY_audio="${SUMMARY_audio} winmm"
  24696. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24697. if test x$have_dsound = xyes; then
  24698. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24699. SUMMARY_audio="${SUMMARY_audio} directsound"
  24700. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24701. fi
  24702. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24703. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24704. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24705. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24706. fi
  24707. have_audio=yes
  24708. fi
  24709. # Set up files for the joystick library
  24710. if test x$enable_joystick = xyes; then
  24711. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24712. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24713. if test x$have_xinput = xyes; then
  24714. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24715. fi
  24716. if test x$have_wgi = xyes; then
  24717. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24718. fi
  24719. if test x$have_dinput = xyes; then
  24720. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24721. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24722. fi
  24723. fi
  24724. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24725. have_joystick=yes
  24726. fi
  24727. if test x$enable_haptic = xyes; then
  24728. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24729. if test x$have_xinput = xyes; then
  24730. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24731. fi
  24732. if test x$have_dinput = xyes; then
  24733. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24734. fi
  24735. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24736. have_haptic=yes
  24737. fi
  24738. fi
  24739. # Set up files for the sensor library
  24740. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24741. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24742. then :
  24743. have_winsensors=yes
  24744. else $as_nop
  24745. have_winsensors=no
  24746. fi
  24747. if test x$have_winsensors = xyes; then
  24748. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24749. fi
  24750. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24751. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24752. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24753. have_sensor=yes
  24754. fi
  24755. # Set up files for the power library
  24756. if test x$enable_power = xyes; then
  24757. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24758. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24759. have_power=yes
  24760. fi
  24761. # Set up files for the filesystem library
  24762. if test x$enable_filesystem = xyes; then
  24763. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24764. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24765. have_filesystem=yes
  24766. fi
  24767. # Set up files for the thread library
  24768. if test x$enable_threads = xyes; then
  24769. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24770. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24771. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24772. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24773. have_threads=yes
  24774. fi
  24775. # Set up files for the timer library
  24776. if test x$enable_timers = xyes; then
  24777. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24778. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24779. have_timers=yes
  24780. fi
  24781. # Set up files for the shared object loading library
  24782. if test x$enable_loadso = xyes; then
  24783. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24784. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24785. fi
  24786. # Set up the system libraries we need
  24787. if test -f /lib/w32api/libuuid.a; then
  24788. LIBUUID=/lib/w32api/libuuid.a
  24789. else
  24790. LIBUUID=-luuid
  24791. fi
  24792. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24793. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24794. # The Windows platform requires special setup
  24795. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24796. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24797. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24798. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24799. # Check to see if this is a mingw or cygwin build
  24800. have_mingw32=
  24801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24802. printf %s "checking for main in -lmingw32... " >&6; }
  24803. if test ${ac_cv_lib_mingw32_main+y}
  24804. then :
  24805. printf %s "(cached) " >&6
  24806. else $as_nop
  24807. ac_check_lib_save_LIBS=$LIBS
  24808. LIBS="-lmingw32 $LIBS"
  24809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24810. /* end confdefs.h. */
  24811. int
  24812. main (void)
  24813. {
  24814. return main ();
  24815. ;
  24816. return 0;
  24817. }
  24818. _ACEOF
  24819. if ac_fn_c_try_link "$LINENO"
  24820. then :
  24821. ac_cv_lib_mingw32_main=yes
  24822. else $as_nop
  24823. ac_cv_lib_mingw32_main=no
  24824. fi
  24825. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24826. conftest$ac_exeext conftest.$ac_ext
  24827. LIBS=$ac_check_lib_save_LIBS
  24828. fi
  24829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24830. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24831. if test "x$ac_cv_lib_mingw32_main" = xyes
  24832. then :
  24833. have_mingw32=yes
  24834. fi
  24835. if test x$have_mingw32 = xyes; then
  24836. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24837. else
  24838. SDL_LIBS="-lcygwin $SDL_LIBS"
  24839. fi
  24840. ;;
  24841. *-*-beos*)
  24842. as_fn_error $? "
  24843. *** BeOS support has been removed as of SDL 2.0.2.
  24844. " "$LINENO" 5
  24845. ;;
  24846. *-*-haiku*)
  24847. ARCH=haiku
  24848. ac_default_prefix=/boot/system
  24849. CheckDummyVideo
  24850. CheckOffscreenVideo
  24851. CheckDiskAudio
  24852. CheckDummyAudio
  24853. CheckDLOPEN
  24854. CheckO_CLOEXEC
  24855. CheckHaikuVideo
  24856. CheckHaikuGL
  24857. CheckPTHREAD
  24858. # Set up files for the audio library
  24859. if test x$enable_audio = xyes; then
  24860. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24861. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24862. SUMMARY_audio="${SUMMARY_audio} haiku"
  24863. have_audio=yes
  24864. fi
  24865. # Set up files for the joystick library
  24866. if test x$enable_joystick = xyes; then
  24867. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24868. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24869. have_joystick=yes
  24870. fi
  24871. # Set up files for the timer library
  24872. if test x$enable_timers = xyes; then
  24873. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24874. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24875. have_timers=yes
  24876. fi
  24877. # Set up files for the system power library
  24878. if test x$enable_power = xyes; then
  24879. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24880. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24881. have_power=yes
  24882. fi
  24883. # Set up files for the system filesystem library
  24884. if test x$enable_filesystem = xyes; then
  24885. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24886. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24887. have_filesystem=yes
  24888. fi
  24889. # Set up files for the misc library
  24890. if test x$enable_misc = xyes; then
  24891. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24892. have_misc=yes
  24893. fi
  24894. # Set up files for the locale library
  24895. if test x$enable_locale = xyes; then
  24896. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24897. have_locale=yes
  24898. fi
  24899. # The Haiku platform requires special setup.
  24900. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24901. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24902. ;;
  24903. *-ios-*)
  24904. ARCH=ios
  24905. CheckVisibilityHidden
  24906. CheckDeclarationAfterStatement
  24907. CheckDummyVideo
  24908. CheckOffscreenVideo
  24909. CheckDiskAudio
  24910. CheckDummyAudio
  24911. CheckDLOPEN
  24912. CheckO_CLOEXEC
  24913. CheckMETAL
  24914. CheckVulkan
  24915. CheckPTHREAD
  24916. # Set up files for the misc library
  24917. if test x$enable_misc = xyes; then
  24918. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24919. have_misc=yes
  24920. fi
  24921. # Set up files for the locale library
  24922. if test x$enable_locale = xyes; then
  24923. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24924. have_locale=yes
  24925. fi
  24926. # Set up files for the audio library
  24927. if test x$enable_audio = xyes; then
  24928. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24929. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24930. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24931. have_audio=yes
  24932. fi
  24933. # Set up files for the joystick library
  24934. if test x$enable_joystick = xyes; then
  24935. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24936. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24937. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24938. have_joystick=yes
  24939. else
  24940. # Need this code for accelerometer as joystick support
  24941. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24942. fi
  24943. # Set up files for the haptic library
  24944. #if test x$enable_haptic = xyes; then
  24945. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24946. # have_haptic=yes
  24947. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24948. #fi
  24949. # Set up files for the sensor library
  24950. if test x$enable_sensor = xyes; then
  24951. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24952. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24953. have_sensor=yes
  24954. fi
  24955. # Set up files for the power library
  24956. if test x$enable_power = xyes; then
  24957. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24958. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24959. have_power=yes
  24960. fi
  24961. # Set up files for the filesystem library
  24962. if test x$enable_filesystem = xyes; then
  24963. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24964. have_filesystem=yes
  24965. fi
  24966. # Set up additional files for the file library
  24967. if test x$enable_file = xyes; then
  24968. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24969. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24970. fi
  24971. # Set up files for the timer library
  24972. if test x$enable_timers = xyes; then
  24973. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24974. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24975. have_timers=yes
  24976. fi
  24977. # Set up other core UNIX files
  24978. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24979. # The iOS platform requires special setup.
  24980. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24981. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24982. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24983. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24984. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24985. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24986. SUMMARY_video="${SUMMARY_video} uikit"
  24987. have_video=yes
  24988. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  24989. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24990. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24991. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24992. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24993. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24994. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24996. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24997. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24999. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25001. fi
  25002. ;;
  25003. *-*-darwin* )
  25004. # This could be either full "Mac OS X", or plain "Darwin" which is
  25005. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25006. # Next line is broken, and a few files below require Mac OS X (full)
  25007. ARCH=macosx
  25008. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25009. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25010. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25011. CheckObjectiveCARC
  25012. CheckVisibilityHidden
  25013. CheckDeclarationAfterStatement
  25014. CheckDummyVideo
  25015. CheckOffscreenVideo
  25016. CheckDiskAudio
  25017. CheckDummyAudio
  25018. CheckDLOPEN
  25019. CheckO_CLOEXEC
  25020. CheckCOCOA
  25021. CheckMETAL
  25022. CheckX11
  25023. CheckMacGL
  25024. CheckMacGLES
  25025. CheckGLX
  25026. CheckOpenGL
  25027. CheckVulkan
  25028. CheckPTHREAD
  25029. CheckHIDAPI
  25030. # Set up files for the misc library
  25031. if test x$enable_misc = xyes; then
  25032. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25033. have_misc=yes
  25034. fi
  25035. # Set up files for the locale library
  25036. if test x$enable_locale = xyes; then
  25037. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25038. have_locale=yes
  25039. fi
  25040. # Set up files for the audio library
  25041. if test x$enable_audio = xyes; then
  25042. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25043. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25044. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25045. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25046. have_audio=yes
  25047. fi
  25048. # Set up files for the joystick library
  25049. if test x$enable_joystick = xyes; then
  25050. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25051. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25052. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25053. CheckJoystickMFI
  25054. have_joystick=yes
  25055. fi
  25056. # Set up files for the haptic library
  25057. if test x$enable_haptic = xyes; then
  25058. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25059. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25060. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25061. have_haptic=yes
  25062. fi
  25063. # Set up files for the power library
  25064. if test x$enable_power = xyes; then
  25065. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25066. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25067. have_power=yes
  25068. fi
  25069. # Set up files for the filesystem library
  25070. if test x$enable_filesystem = xyes; then
  25071. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25072. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25073. have_filesystem=yes
  25074. fi
  25075. # Set up files for the timer library
  25076. if test x$enable_timers = xyes; then
  25077. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25078. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25079. have_timers=yes
  25080. fi
  25081. # Set up additional files for the file library
  25082. if test x$enable_file = xyes; then
  25083. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25084. fi
  25085. # Set up other core UNIX files
  25086. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25087. # The Mac OS X platform requires special setup.
  25088. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25090. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25091. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25092. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25093. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25095. fi
  25096. ;;
  25097. *-nacl|*-pnacl)
  25098. ARCH=nacl
  25099. CheckNativeClient
  25100. CheckDummyAudio
  25101. CheckDummyVideo
  25102. CheckOffscreenVideo
  25103. CheckInputEvents
  25104. CheckPTHREAD
  25105. CheckO_CLOEXEC
  25106. # Set up files for the timer library
  25107. if test x$enable_timers = xyes; then
  25108. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25109. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25110. have_timers=yes
  25111. fi
  25112. if test x$enable_filesystem = xyes; then
  25113. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25114. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25115. have_filesystem=yes
  25116. fi
  25117. ;;
  25118. *-*-emscripten* )
  25119. if test x$enable_video = xyes; then
  25120. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25121. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25122. have_video=yes
  25123. SUMMARY_video="${SUMMARY_video} emscripten"
  25124. fi
  25125. if test x$enable_audio = xyes; then
  25126. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25127. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25128. have_audio=yes
  25129. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25130. fi
  25131. CheckVisibilityHidden
  25132. CheckDeclarationAfterStatement
  25133. CheckDummyVideo
  25134. CheckOffscreenVideo
  25135. CheckDiskAudio
  25136. CheckDummyAudio
  25137. CheckPTHREAD
  25138. CheckDLOPEN
  25139. CheckClockGettime
  25140. CheckEmscriptenGLES
  25141. # Set up files for the misc library
  25142. if test x$enable_misc = xyes; then
  25143. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25144. have_misc=yes
  25145. fi
  25146. # Set up files for the power library
  25147. if test x$enable_power = xyes; then
  25148. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25149. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25150. have_power=yes
  25151. fi
  25152. # Set up files for the joystick library
  25153. if test x$enable_joystick = xyes; then
  25154. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25155. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25156. have_joystick=yes
  25157. fi
  25158. # Set up files for the filesystem library
  25159. if test x$enable_filesystem = xyes; then
  25160. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25161. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25162. have_filesystem=yes
  25163. fi
  25164. # Set up files for the timer library
  25165. if test x$enable_timers = xyes; then
  25166. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25167. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25168. have_timers=yes
  25169. fi
  25170. # Set up files for the locale library
  25171. if test x$enable_locale = xyes; then
  25172. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25173. have_locale=yes
  25174. fi
  25175. ;;
  25176. *-*-riscos*)
  25177. ARCH=riscos
  25178. CheckVisibilityHidden
  25179. CheckDeclarationAfterStatement
  25180. CheckDummyVideo
  25181. CheckOffscreenVideo
  25182. CheckDiskAudio
  25183. CheckDummyAudio
  25184. CheckDLOPEN
  25185. CheckO_CLOEXEC
  25186. CheckOSS
  25187. CheckPTHREAD
  25188. CheckClockGettime
  25189. # Set up files for the misc library
  25190. if test x$enable_misc = xyes; then
  25191. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25192. have_misc=yes
  25193. fi
  25194. # Set up files for the video library
  25195. if test x$enable_video = xyes; then
  25196. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25197. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25198. have_video=yes
  25199. SUMMARY_video="${SUMMARY_video} riscos"
  25200. fi
  25201. # Set up files for the filesystem library
  25202. if test x$enable_filesystem = xyes; then
  25203. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25204. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25205. have_filesystem=yes
  25206. fi
  25207. # Set up files for the timer library
  25208. if test x$enable_timers = xyes; then
  25209. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25210. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25211. have_timers=yes
  25212. fi
  25213. ;;
  25214. *-*-os2*)
  25215. ARCH=os2
  25216. if test "$build" != "$host"; then # cross-compiling
  25217. # Default cross-compile location
  25218. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25219. else
  25220. # Look for the location of the tools and install there
  25221. if test "$BUILD_PREFIX" != ""; then
  25222. ac_default_prefix=$BUILD_PREFIX
  25223. fi
  25224. fi
  25225. enable_static=no # disable static builds
  25226. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25227. CheckOS2
  25228. CheckDeclarationAfterStatement
  25229. CheckDummyVideo
  25230. CheckDiskAudio
  25231. CheckDummyAudio
  25232. CheckHIDAPI
  25233. # Set up the core platform files
  25234. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25235. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25236. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25237. fi
  25238. # Use the Unix locale APIs.
  25239. if test x$enable_locale = xyes; then
  25240. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25241. have_locale=yes
  25242. fi
  25243. # Set up files for the video library
  25244. if test x$enable_video = xyes; then
  25245. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25246. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25247. have_video=yes
  25248. SUMMARY_video="${SUMMARY_video} os/2"
  25249. fi
  25250. # Set up files for the audio library
  25251. if test x$enable_audio = xyes; then
  25252. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25253. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25254. have_audio=yes
  25255. SUMMARY_audio="${SUMMARY_audio} os/2"
  25256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25257. fi
  25258. # Set up files for the thread library
  25259. if test x$enable_threads = xyes; then
  25260. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25261. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25262. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25263. have_threads=yes
  25264. fi
  25265. # Set up files for the timer library
  25266. if test x$enable_timers = xyes; then
  25267. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25268. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25269. have_timers=yes
  25270. fi
  25271. # Set up files for the shared object loading library
  25272. if test x$enable_loadso = xyes; then
  25273. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25274. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25275. have_loadso=yes
  25276. fi
  25277. # Set up files for the filesystem library
  25278. if test x$enable_filesystem = xyes; then
  25279. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25280. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25281. have_filesystem=yes
  25282. fi
  25283. # Set up files for the joystick library
  25284. if test x$enable_joystick = xyes; then
  25285. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25286. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25287. have_joystick=yes
  25288. fi
  25289. ;;
  25290. *)
  25291. as_fn_error $? "
  25292. *** Unsupported host: Please add to configure.ac
  25293. " "$LINENO" 5
  25294. ;;
  25295. esac
  25296. CheckVirtualJoystick
  25297. # Check whether to install sdl2-config
  25298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25299. printf %s "checking whether to install sdl2-config... " >&6; }
  25300. # Check whether --enable-sdl2-config was given.
  25301. if test ${enable_sdl2_config+y}
  25302. then :
  25303. enableval=$enable_sdl2_config; case "${enableval}" in
  25304. yes) enable_sdl2_config="TRUE" ;;
  25305. no) enable_sdl2_config="FALSE" ;;
  25306. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25307. esac
  25308. else $as_nop
  25309. enable_sdl2_config="TRUE"
  25310. fi
  25311. if test "$enable_sdl2_config" = "TRUE"; then
  25312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25313. printf "%s\n" "yes" >&6; }
  25314. else
  25315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25316. printf "%s\n" "no" >&6; }
  25317. fi
  25318. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25319. # Verify that we have all the platform specific files we need
  25320. if test x$have_audio != xyes; then
  25321. if test x$enable_audio = xyes; then
  25322. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25323. fi
  25324. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25325. fi
  25326. if test x$have_video != xyes; then
  25327. if test x$enable_video = xyes; then
  25328. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25329. fi
  25330. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25331. fi
  25332. if test x$have_misc != xyes; then
  25333. if test x$enable_misc = xyes; then
  25334. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25335. fi
  25336. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25337. fi
  25338. if test x$have_locale != xyes; then
  25339. if test x$enable_locale = xyes; then
  25340. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25341. fi
  25342. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25343. fi
  25344. if test x$have_joystick != xyes; then
  25345. if test x$enable_joystick = xyes; then
  25346. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25347. fi
  25348. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25349. fi
  25350. if test x$have_haptic != xyes; then
  25351. if test x$enable_haptic = xyes; then
  25352. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25353. fi
  25354. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25355. fi
  25356. if test x$have_sensor != xyes; then
  25357. if test x$enable_sensor = xyes; then
  25358. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25359. fi
  25360. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25361. fi
  25362. if test x$have_threads != xyes; then
  25363. if test x$enable_threads = xyes; then
  25364. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25365. fi
  25366. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25367. fi
  25368. if test x$have_timers != xyes; then
  25369. if test x$enable_timers = xyes; then
  25370. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25371. fi
  25372. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25373. fi
  25374. if test x$have_filesystem != xyes; then
  25375. if test x$enable_filesystem = xyes; then
  25376. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25377. fi
  25378. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25379. fi
  25380. if test x$have_loadso != xyes; then
  25381. if test x$enable_loadso = xyes; then
  25382. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25383. fi
  25384. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25385. fi
  25386. if test x$SDLMAIN_SOURCES = x; then
  25387. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25388. fi
  25389. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25390. if test x$video_wayland = xyes; then
  25391. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25392. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25393. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25394. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25395. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25396. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25397. echo ;\
  25398. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25399. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25400. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25401. echo ;\
  25402. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25403. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25404. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25405. echo ;\
  25406. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25407. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25408. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25409. done ;\
  25410. echo ;\
  25411. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25412. fi
  25413. OBJECTS=`echo $SOURCES`
  25414. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25415. for EXT in asm cc m c S; do
  25416. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25417. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25418. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25419. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25420. done
  25421. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25422. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25423. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25424. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25425. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25426. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25427. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25428. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25429. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25430. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25431. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25432. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25433. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25434. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25435. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25436. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25437. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25438. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25439. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25440. # Set runtime shared library paths as needed
  25441. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25442. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25443. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25445. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25446. have_enable_new_dtags=no
  25447. save_LDFLAGS="$LDFLAGS"
  25448. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25450. /* end confdefs.h. */
  25451. int
  25452. main (void)
  25453. {
  25454. ;
  25455. return 0;
  25456. }
  25457. _ACEOF
  25458. if ac_fn_c_try_link "$LINENO"
  25459. then :
  25460. have_enable_new_dtags=yes
  25461. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25462. fi
  25463. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25464. conftest$ac_exeext conftest.$ac_ext
  25465. LDFLAGS="$save_LDFLAGS"
  25466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25467. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25468. fi
  25469. if test $ARCH = solaris; then
  25470. SDL_RLD_FLAGS="-R\${libdir}"
  25471. fi
  25472. else
  25473. SDL_RLD_FLAGS=""
  25474. fi
  25475. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25476. pkg_cmakedir='$libdir/cmake/SDL2'
  25477. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25478. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25479. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25480. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25481. _lcl_receval="$_lcl_from"
  25482. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25483. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25484. _lcl_receval_old=''
  25485. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25486. _lcl_receval_old="$_lcl_receval"
  25487. eval _lcl_receval="\"$_lcl_receval\""
  25488. done
  25489. echo "$_lcl_receval")`
  25490. _lcl_receval="$_lcl_to"
  25491. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25492. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25493. _lcl_receval_old=''
  25494. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25495. _lcl_receval_old="$_lcl_receval"
  25496. eval _lcl_receval="\"$_lcl_receval\""
  25497. done
  25498. echo "$_lcl_receval")`
  25499. _lcl_notation="$_lcl_from$_lcl_to"
  25500. case ":$_lcl_from:" in
  25501. # change empty paths to '.'
  25502. ::) _lcl_from='.' ;;
  25503. # strip trailing slashes
  25504. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25505. :*:) ;;
  25506. esac
  25507. # squeeze repeated slashes
  25508. case '/' in
  25509. # if the path contains any backslashes, turn slashes into backslashes
  25510. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25511. # if the path contains slashes, also turn backslashes into slashes
  25512. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25513. esac
  25514. case ":$_lcl_to:" in
  25515. # change empty paths to '.'
  25516. ::) _lcl_to='.' ;;
  25517. # strip trailing slashes
  25518. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25519. :*:) ;;
  25520. esac
  25521. # squeeze repeated slashes
  25522. case '/' in
  25523. # if the path contains any backslashes, turn slashes into backslashes
  25524. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25525. # if the path contains slashes, also turn backslashes into slashes
  25526. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25527. esac
  25528. _lcl_common_prefix=''
  25529. _lcl_second_prefix_match=''
  25530. while test "$_lcl_second_prefix_match" != 0; do
  25531. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25532. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25533. if test "$_lcl_second_prefix_match" != 0; then
  25534. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25535. _lcl_common_prefix="$_lcl_first_prefix"
  25536. else
  25537. _lcl_second_prefix_match=0
  25538. fi
  25539. fi
  25540. done
  25541. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25542. _lcl_first_rel=''
  25543. _lcl_tmp='xxx'
  25544. while test "$_lcl_tmp" != ''; do
  25545. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25546. if test "$_lcl_first_suffix" != ''; then
  25547. _lcl_first_suffix="$_lcl_tmp"
  25548. _lcl_first_rel="../$_lcl_first_rel"
  25549. fi
  25550. done
  25551. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25552. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25553. case ":$_lcl_result_tmp:" in
  25554. # change empty paths to '.'
  25555. ::) _lcl_result_tmp='.' ;;
  25556. # strip trailing slashes
  25557. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25558. :*:) ;;
  25559. esac
  25560. # squeeze repeated slashes
  25561. case "$_lcl_notation" in
  25562. # if the path contains any backslashes, turn slashes into backslashes
  25563. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25564. # if the path contains slashes, also turn backslashes into slashes
  25565. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25566. esac
  25567. eval $_lcl_result_var='$_lcl_result_tmp'
  25568. done
  25569. if test x$enable_shared = xyes; then
  25570. PKGCONFIG_LIBS_PRIV="
  25571. Libs.private:"
  25572. ENABLE_SHARED_TRUE=
  25573. ENABLE_SHARED_FALSE="#"
  25574. else
  25575. PKGCONFIG_LIBS_PRIV=
  25576. ENABLE_SHARED_TRUE="#"
  25577. ENABLE_SHARED_FALSE=
  25578. fi
  25579. if test x$enable_static = xyes; then
  25580. ENABLE_STATIC_TRUE=
  25581. ENABLE_STATIC_FALSE="#"
  25582. else
  25583. ENABLE_STATIC_TRUE="#"
  25584. ENABLE_STATIC_FALSE=
  25585. fi
  25586. cat >Makefile.rules <<__EOF__
  25587. # Build rules for objects
  25588. -include \$(OBJECTS:.lo=.d)
  25589. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25590. $srcdir/src/SDL.c: update-revision
  25591. $DEPENDS
  25592. $VERSION_DEPENDS
  25593. $SDLMAIN_DEPENDS
  25594. $SDLTEST_DEPENDS
  25595. $WAYLAND_PROTOCOLS_DEPENDS
  25596. __EOF__
  25597. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25598. ac_config_commands="$ac_config_commands sdl2_config"
  25599. SUMMARY="SDL2 Configure Summary:\n"
  25600. if test x$enable_shared = xyes; then
  25601. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25602. fi
  25603. if test x$enable_static = xyes; then
  25604. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25605. fi
  25606. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25607. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25608. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25609. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25610. if test x$have_x = xyes; then
  25611. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25612. fi
  25613. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25614. if test x$have_joystick_virtual = xyes; then
  25615. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25616. else
  25617. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25618. fi
  25619. if test x$have_samplerate_h_hdr = xyes; then
  25620. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25621. else
  25622. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25623. fi
  25624. if test x$have_libudev_h_hdr = xyes; then
  25625. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25626. else
  25627. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25628. fi
  25629. if test x$have_dbus_dbus_h_hdr = xyes; then
  25630. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25631. else
  25632. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25633. fi
  25634. if test x$enable_ime = xyes; then
  25635. SUMMARY="${SUMMARY}Using ime : YES\n"
  25636. else
  25637. SUMMARY="${SUMMARY}Using ime : NO\n"
  25638. fi
  25639. if test x$have_ibus_ibus_h_hdr = xyes; then
  25640. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25641. else
  25642. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25643. fi
  25644. if test x$have_fcitx = xyes; then
  25645. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25646. else
  25647. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25648. fi
  25649. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25650. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25651. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25652. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25653. SUMMARY="${SUMMARY}configure script with:\n"
  25654. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25655. fi
  25656. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25657. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25658. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25659. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25660. SUMMARY="${SUMMARY}configure script with:\n"
  25661. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25662. fi
  25663. ac_config_commands="$ac_config_commands summary"
  25664. cat >confcache <<\_ACEOF
  25665. # This file is a shell script that caches the results of configure
  25666. # tests run on this system so they can be shared between configure
  25667. # scripts and configure runs, see configure's option --config-cache.
  25668. # It is not useful on other systems. If it contains results you don't
  25669. # want to keep, you may remove or edit it.
  25670. #
  25671. # config.status only pays attention to the cache file if you give it
  25672. # the --recheck option to rerun configure.
  25673. #
  25674. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25675. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25676. # following values.
  25677. _ACEOF
  25678. # The following way of writing the cache mishandles newlines in values,
  25679. # but we know of no workaround that is simple, portable, and efficient.
  25680. # So, we kill variables containing newlines.
  25681. # Ultrix sh set writes to stderr and can't be redirected directly,
  25682. # and sets the high bit in the cache file unless we assign to the vars.
  25683. (
  25684. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25685. eval ac_val=\$$ac_var
  25686. case $ac_val in #(
  25687. *${as_nl}*)
  25688. case $ac_var in #(
  25689. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25690. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25691. esac
  25692. case $ac_var in #(
  25693. _ | IFS | as_nl) ;; #(
  25694. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25695. *) { eval $ac_var=; unset $ac_var;} ;;
  25696. esac ;;
  25697. esac
  25698. done
  25699. (set) 2>&1 |
  25700. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25701. *${as_nl}ac_space=\ *)
  25702. # `set' does not quote correctly, so add quotes: double-quote
  25703. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25704. sed -n \
  25705. "s/'/'\\\\''/g;
  25706. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25707. ;; #(
  25708. *)
  25709. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25710. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25711. ;;
  25712. esac |
  25713. sort
  25714. ) |
  25715. sed '
  25716. /^ac_cv_env_/b end
  25717. t clear
  25718. :clear
  25719. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25720. t end
  25721. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25722. :end' >>confcache
  25723. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25724. if test -w "$cache_file"; then
  25725. if test "x$cache_file" != "x/dev/null"; then
  25726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25727. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25728. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25729. cat confcache >"$cache_file"
  25730. else
  25731. case $cache_file in #(
  25732. */* | ?:*)
  25733. mv -f confcache "$cache_file"$$ &&
  25734. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25735. *)
  25736. mv -f confcache "$cache_file" ;;
  25737. esac
  25738. fi
  25739. fi
  25740. else
  25741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25742. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25743. fi
  25744. fi
  25745. rm -f confcache
  25746. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25747. # Let make expand exec_prefix.
  25748. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25749. DEFS=-DHAVE_CONFIG_H
  25750. ac_libobjs=
  25751. ac_ltlibobjs=
  25752. U=
  25753. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25754. # 1. Remove the extension, and $U if already installed.
  25755. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25756. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25757. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25758. # will be set to the directory where LIBOBJS objects are built.
  25759. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25760. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25761. done
  25762. LIBOBJS=$ac_libobjs
  25763. LTLIBOBJS=$ac_ltlibobjs
  25764. : "${CONFIG_STATUS=./config.status}"
  25765. ac_write_fail=0
  25766. ac_clean_files_save=$ac_clean_files
  25767. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25769. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25770. as_write_fail=0
  25771. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25772. #! $SHELL
  25773. # Generated by $as_me.
  25774. # Run this file to recreate the current configuration.
  25775. # Compiler output produced by configure, useful for debugging
  25776. # configure, is in config.log if it exists.
  25777. debug=false
  25778. ac_cs_recheck=false
  25779. ac_cs_silent=false
  25780. SHELL=\${CONFIG_SHELL-$SHELL}
  25781. export SHELL
  25782. _ASEOF
  25783. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25784. ## -------------------- ##
  25785. ## M4sh Initialization. ##
  25786. ## -------------------- ##
  25787. # Be more Bourne compatible
  25788. DUALCASE=1; export DUALCASE # for MKS sh
  25789. as_nop=:
  25790. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25791. then :
  25792. emulate sh
  25793. NULLCMD=:
  25794. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25795. # is contrary to our usage. Disable this feature.
  25796. alias -g '${1+"$@"}'='"$@"'
  25797. setopt NO_GLOB_SUBST
  25798. else $as_nop
  25799. case `(set -o) 2>/dev/null` in #(
  25800. *posix*) :
  25801. set -o posix ;; #(
  25802. *) :
  25803. ;;
  25804. esac
  25805. fi
  25806. # Reset variables that may have inherited troublesome values from
  25807. # the environment.
  25808. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25809. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25810. # side effect of setting IFS to empty, thus disabling word splitting.)
  25811. # Quoting is to prevent editors from complaining about space-tab.
  25812. as_nl='
  25813. '
  25814. export as_nl
  25815. IFS=" "" $as_nl"
  25816. PS1='$ '
  25817. PS2='> '
  25818. PS4='+ '
  25819. # Ensure predictable behavior from utilities with locale-dependent output.
  25820. LC_ALL=C
  25821. export LC_ALL
  25822. LANGUAGE=C
  25823. export LANGUAGE
  25824. # We cannot yet rely on "unset" to work, but we need these variables
  25825. # to be unset--not just set to an empty or harmless value--now, to
  25826. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25827. # also avoids known problems related to "unset" and subshell syntax
  25828. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25829. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25830. do eval test \${$as_var+y} \
  25831. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25832. done
  25833. # Ensure that fds 0, 1, and 2 are open.
  25834. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25835. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25836. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25837. # The user is always right.
  25838. if ${PATH_SEPARATOR+false} :; then
  25839. PATH_SEPARATOR=:
  25840. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25841. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25842. PATH_SEPARATOR=';'
  25843. }
  25844. fi
  25845. # Find who we are. Look in the path if we contain no directory separator.
  25846. as_myself=
  25847. case $0 in #((
  25848. *[\\/]* ) as_myself=$0 ;;
  25849. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25850. for as_dir in $PATH
  25851. do
  25852. IFS=$as_save_IFS
  25853. case $as_dir in #(((
  25854. '') as_dir=./ ;;
  25855. */) ;;
  25856. *) as_dir=$as_dir/ ;;
  25857. esac
  25858. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25859. done
  25860. IFS=$as_save_IFS
  25861. ;;
  25862. esac
  25863. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25864. # in which case we are not to be found in the path.
  25865. if test "x$as_myself" = x; then
  25866. as_myself=$0
  25867. fi
  25868. if test ! -f "$as_myself"; then
  25869. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25870. exit 1
  25871. fi
  25872. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25873. # ----------------------------------------
  25874. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25875. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25876. # script with STATUS, using 1 if that was 0.
  25877. as_fn_error ()
  25878. {
  25879. as_status=$1; test $as_status -eq 0 && as_status=1
  25880. if test "$4"; then
  25881. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25883. fi
  25884. printf "%s\n" "$as_me: error: $2" >&2
  25885. as_fn_exit $as_status
  25886. } # as_fn_error
  25887. # as_fn_set_status STATUS
  25888. # -----------------------
  25889. # Set $? to STATUS, without forking.
  25890. as_fn_set_status ()
  25891. {
  25892. return $1
  25893. } # as_fn_set_status
  25894. # as_fn_exit STATUS
  25895. # -----------------
  25896. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25897. as_fn_exit ()
  25898. {
  25899. set +e
  25900. as_fn_set_status $1
  25901. exit $1
  25902. } # as_fn_exit
  25903. # as_fn_unset VAR
  25904. # ---------------
  25905. # Portably unset VAR.
  25906. as_fn_unset ()
  25907. {
  25908. { eval $1=; unset $1;}
  25909. }
  25910. as_unset=as_fn_unset
  25911. # as_fn_append VAR VALUE
  25912. # ----------------------
  25913. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25914. # advantage of any shell optimizations that allow amortized linear growth over
  25915. # repeated appends, instead of the typical quadratic growth present in naive
  25916. # implementations.
  25917. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25918. then :
  25919. eval 'as_fn_append ()
  25920. {
  25921. eval $1+=\$2
  25922. }'
  25923. else $as_nop
  25924. as_fn_append ()
  25925. {
  25926. eval $1=\$$1\$2
  25927. }
  25928. fi # as_fn_append
  25929. # as_fn_arith ARG...
  25930. # ------------------
  25931. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25932. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25933. # must be portable across $(()) and expr.
  25934. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25935. then :
  25936. eval 'as_fn_arith ()
  25937. {
  25938. as_val=$(( $* ))
  25939. }'
  25940. else $as_nop
  25941. as_fn_arith ()
  25942. {
  25943. as_val=`expr "$@" || test $? -eq 1`
  25944. }
  25945. fi # as_fn_arith
  25946. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25947. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25948. as_expr=expr
  25949. else
  25950. as_expr=false
  25951. fi
  25952. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25953. as_basename=basename
  25954. else
  25955. as_basename=false
  25956. fi
  25957. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25958. as_dirname=dirname
  25959. else
  25960. as_dirname=false
  25961. fi
  25962. as_me=`$as_basename -- "$0" ||
  25963. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25964. X"$0" : 'X\(//\)$' \| \
  25965. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25966. printf "%s\n" X/"$0" |
  25967. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25968. s//\1/
  25969. q
  25970. }
  25971. /^X\/\(\/\/\)$/{
  25972. s//\1/
  25973. q
  25974. }
  25975. /^X\/\(\/\).*/{
  25976. s//\1/
  25977. q
  25978. }
  25979. s/.*/./; q'`
  25980. # Avoid depending upon Character Ranges.
  25981. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25982. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25983. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25984. as_cr_digits='0123456789'
  25985. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25986. # Determine whether it's possible to make 'echo' print without a newline.
  25987. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25988. # for compatibility with existing Makefiles.
  25989. ECHO_C= ECHO_N= ECHO_T=
  25990. case `echo -n x` in #(((((
  25991. -n*)
  25992. case `echo 'xy\c'` in
  25993. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25994. xy) ECHO_C='\c';;
  25995. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25996. ECHO_T=' ';;
  25997. esac;;
  25998. *)
  25999. ECHO_N='-n';;
  26000. esac
  26001. # For backward compatibility with old third-party macros, we provide
  26002. # the shell variables $as_echo and $as_echo_n. New code should use
  26003. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26004. as_echo='printf %s\n'
  26005. as_echo_n='printf %s'
  26006. rm -f conf$$ conf$$.exe conf$$.file
  26007. if test -d conf$$.dir; then
  26008. rm -f conf$$.dir/conf$$.file
  26009. else
  26010. rm -f conf$$.dir
  26011. mkdir conf$$.dir 2>/dev/null
  26012. fi
  26013. if (echo >conf$$.file) 2>/dev/null; then
  26014. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26015. as_ln_s='ln -s'
  26016. # ... but there are two gotchas:
  26017. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26018. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26019. # In both cases, we have to default to `cp -pR'.
  26020. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26021. as_ln_s='cp -pR'
  26022. elif ln conf$$.file conf$$ 2>/dev/null; then
  26023. as_ln_s=ln
  26024. else
  26025. as_ln_s='cp -pR'
  26026. fi
  26027. else
  26028. as_ln_s='cp -pR'
  26029. fi
  26030. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26031. rmdir conf$$.dir 2>/dev/null
  26032. # as_fn_mkdir_p
  26033. # -------------
  26034. # Create "$as_dir" as a directory, including parents if necessary.
  26035. as_fn_mkdir_p ()
  26036. {
  26037. case $as_dir in #(
  26038. -*) as_dir=./$as_dir;;
  26039. esac
  26040. test -d "$as_dir" || eval $as_mkdir_p || {
  26041. as_dirs=
  26042. while :; do
  26043. case $as_dir in #(
  26044. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26045. *) as_qdir=$as_dir;;
  26046. esac
  26047. as_dirs="'$as_qdir' $as_dirs"
  26048. as_dir=`$as_dirname -- "$as_dir" ||
  26049. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26050. X"$as_dir" : 'X\(//\)[^/]' \| \
  26051. X"$as_dir" : 'X\(//\)$' \| \
  26052. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26053. printf "%s\n" X"$as_dir" |
  26054. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26055. s//\1/
  26056. q
  26057. }
  26058. /^X\(\/\/\)[^/].*/{
  26059. s//\1/
  26060. q
  26061. }
  26062. /^X\(\/\/\)$/{
  26063. s//\1/
  26064. q
  26065. }
  26066. /^X\(\/\).*/{
  26067. s//\1/
  26068. q
  26069. }
  26070. s/.*/./; q'`
  26071. test -d "$as_dir" && break
  26072. done
  26073. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26074. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26075. } # as_fn_mkdir_p
  26076. if mkdir -p . 2>/dev/null; then
  26077. as_mkdir_p='mkdir -p "$as_dir"'
  26078. else
  26079. test -d ./-p && rmdir ./-p
  26080. as_mkdir_p=false
  26081. fi
  26082. # as_fn_executable_p FILE
  26083. # -----------------------
  26084. # Test if FILE is an executable regular file.
  26085. as_fn_executable_p ()
  26086. {
  26087. test -f "$1" && test -x "$1"
  26088. } # as_fn_executable_p
  26089. as_test_x='test -x'
  26090. as_executable_p=as_fn_executable_p
  26091. # Sed expression to map a string onto a valid CPP name.
  26092. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26093. # Sed expression to map a string onto a valid variable name.
  26094. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26095. exec 6>&1
  26096. ## ----------------------------------- ##
  26097. ## Main body of $CONFIG_STATUS script. ##
  26098. ## ----------------------------------- ##
  26099. _ASEOF
  26100. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26101. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26102. # Save the log message, to keep $0 and so on meaningful, and to
  26103. # report actual input values of CONFIG_FILES etc. instead of their
  26104. # values after options handling.
  26105. ac_log="
  26106. This file was extended by $as_me, which was
  26107. generated by GNU Autoconf 2.71. Invocation command line was
  26108. CONFIG_FILES = $CONFIG_FILES
  26109. CONFIG_HEADERS = $CONFIG_HEADERS
  26110. CONFIG_LINKS = $CONFIG_LINKS
  26111. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26112. $ $0 $@
  26113. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26114. "
  26115. _ACEOF
  26116. case $ac_config_files in *"
  26117. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26118. esac
  26119. case $ac_config_headers in *"
  26120. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26121. esac
  26122. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26123. # Files that config.status was made for.
  26124. config_files="$ac_config_files"
  26125. config_headers="$ac_config_headers"
  26126. config_commands="$ac_config_commands"
  26127. _ACEOF
  26128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26129. ac_cs_usage="\
  26130. \`$as_me' instantiates files and other configuration actions
  26131. from templates according to the current configuration. Unless the files
  26132. and actions are specified as TAGs, all are instantiated by default.
  26133. Usage: $0 [OPTION]... [TAG]...
  26134. -h, --help print this help, then exit
  26135. -V, --version print version number and configuration settings, then exit
  26136. --config print configuration, then exit
  26137. -q, --quiet, --silent
  26138. do not print progress messages
  26139. -d, --debug don't remove temporary files
  26140. --recheck update $as_me by reconfiguring in the same conditions
  26141. --file=FILE[:TEMPLATE]
  26142. instantiate the configuration file FILE
  26143. --header=FILE[:TEMPLATE]
  26144. instantiate the configuration header FILE
  26145. Configuration files:
  26146. $config_files
  26147. Configuration headers:
  26148. $config_headers
  26149. Configuration commands:
  26150. $config_commands
  26151. Report bugs to the package provider."
  26152. _ACEOF
  26153. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26154. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26156. ac_cs_config='$ac_cs_config_escaped'
  26157. ac_cs_version="\\
  26158. config.status
  26159. configured by $0, generated by GNU Autoconf 2.71,
  26160. with options \\"\$ac_cs_config\\"
  26161. Copyright (C) 2021 Free Software Foundation, Inc.
  26162. This config.status script is free software; the Free Software Foundation
  26163. gives unlimited permission to copy, distribute and modify it."
  26164. ac_pwd='$ac_pwd'
  26165. srcdir='$srcdir'
  26166. INSTALL='$INSTALL'
  26167. AWK='$AWK'
  26168. test -n "\$AWK" || AWK=awk
  26169. _ACEOF
  26170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26171. # The default lists apply if the user does not specify any file.
  26172. ac_need_defaults=:
  26173. while test $# != 0
  26174. do
  26175. case $1 in
  26176. --*=?*)
  26177. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26178. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26179. ac_shift=:
  26180. ;;
  26181. --*=)
  26182. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26183. ac_optarg=
  26184. ac_shift=:
  26185. ;;
  26186. *)
  26187. ac_option=$1
  26188. ac_optarg=$2
  26189. ac_shift=shift
  26190. ;;
  26191. esac
  26192. case $ac_option in
  26193. # Handling of the options.
  26194. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26195. ac_cs_recheck=: ;;
  26196. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26197. printf "%s\n" "$ac_cs_version"; exit ;;
  26198. --config | --confi | --conf | --con | --co | --c )
  26199. printf "%s\n" "$ac_cs_config"; exit ;;
  26200. --debug | --debu | --deb | --de | --d | -d )
  26201. debug=: ;;
  26202. --file | --fil | --fi | --f )
  26203. $ac_shift
  26204. case $ac_optarg in
  26205. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26206. '') as_fn_error $? "missing file argument" ;;
  26207. esac
  26208. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26209. ac_need_defaults=false;;
  26210. --header | --heade | --head | --hea )
  26211. $ac_shift
  26212. case $ac_optarg in
  26213. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26214. esac
  26215. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26216. ac_need_defaults=false;;
  26217. --he | --h)
  26218. # Conflict between --help and --header
  26219. as_fn_error $? "ambiguous option: \`$1'
  26220. Try \`$0 --help' for more information.";;
  26221. --help | --hel | -h )
  26222. printf "%s\n" "$ac_cs_usage"; exit ;;
  26223. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26224. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26225. ac_cs_silent=: ;;
  26226. # This is an error.
  26227. -*) as_fn_error $? "unrecognized option: \`$1'
  26228. Try \`$0 --help' for more information." ;;
  26229. *) as_fn_append ac_config_targets " $1"
  26230. ac_need_defaults=false ;;
  26231. esac
  26232. shift
  26233. done
  26234. ac_configure_extra_args=
  26235. if $ac_cs_silent; then
  26236. exec 6>/dev/null
  26237. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26238. fi
  26239. _ACEOF
  26240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26241. if \$ac_cs_recheck; then
  26242. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26243. shift
  26244. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26245. CONFIG_SHELL='$SHELL'
  26246. export CONFIG_SHELL
  26247. exec "\$@"
  26248. fi
  26249. _ACEOF
  26250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26251. exec 5>>config.log
  26252. {
  26253. echo
  26254. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26255. ## Running $as_me. ##
  26256. _ASBOX
  26257. printf "%s\n" "$ac_log"
  26258. } >&5
  26259. _ACEOF
  26260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26261. #
  26262. # INIT-COMMANDS
  26263. #
  26264. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26265. # if CDPATH is set.
  26266. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26267. sed_quote_subst='$sed_quote_subst'
  26268. double_quote_subst='$double_quote_subst'
  26269. delay_variable_subst='$delay_variable_subst'
  26270. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26271. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26272. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26273. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26274. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26275. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26276. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26277. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26278. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26279. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26280. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26281. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26282. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26283. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26284. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26285. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26286. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26287. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26288. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26289. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26290. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26291. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26292. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26293. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26294. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26295. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26296. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26297. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26298. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26299. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26300. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26301. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26302. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26303. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26304. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26305. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26306. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26307. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26308. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26309. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26310. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26311. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26312. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26313. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26314. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26315. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26316. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26317. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26318. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26319. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26320. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26321. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26322. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26323. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26324. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26325. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26326. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26327. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26328. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26329. 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"`'
  26330. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26331. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26332. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26333. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26334. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26335. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26336. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26337. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26338. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26339. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26340. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26341. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26342. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26343. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26344. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26345. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26346. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26347. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26348. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26349. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26350. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26351. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26352. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26353. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26354. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26355. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26356. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26357. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26358. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26359. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26360. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26361. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26362. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26363. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26364. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26365. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26366. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26367. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26368. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26369. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26370. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26371. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26372. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26373. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26374. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26375. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26376. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26377. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26378. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26379. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26380. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26381. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26382. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26383. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26384. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26385. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26386. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26387. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26388. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26389. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26390. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26391. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26392. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26393. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26394. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26395. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26396. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26397. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26398. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26399. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26400. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26401. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26402. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26403. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26404. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26405. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26406. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26407. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26408. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26409. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26410. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26411. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26412. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26413. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26414. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26415. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26416. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26417. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26418. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26419. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26420. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26421. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26422. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26423. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26424. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26425. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26426. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26427. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26428. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26429. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26430. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26431. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26432. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26433. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26434. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26435. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26436. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26437. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26438. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26439. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26440. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26441. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26442. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26443. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26444. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26445. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26446. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26447. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26448. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26449. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26450. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26451. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26452. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26453. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26454. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26455. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26456. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26457. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26458. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26459. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26460. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26461. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26462. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26463. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26464. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26465. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26466. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26467. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26468. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26469. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26470. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26471. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26472. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26473. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26474. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26475. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26476. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26477. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26478. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26479. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26480. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26481. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26482. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26483. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26484. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26485. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26486. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26487. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26488. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26489. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26490. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26491. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26492. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26493. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26494. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26495. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26496. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26497. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26498. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26499. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26500. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26501. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26502. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26503. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26504. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26505. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26506. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26507. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26508. LTCC='$LTCC'
  26509. LTCFLAGS='$LTCFLAGS'
  26510. compiler='$compiler_DEFAULT'
  26511. # A function that is used when there is no print builtin or printf.
  26512. func_fallback_echo ()
  26513. {
  26514. eval 'cat <<_LTECHO_EOF
  26515. \$1
  26516. _LTECHO_EOF'
  26517. }
  26518. # Quote evaled strings.
  26519. for var in AS \
  26520. DLLTOOL \
  26521. OBJDUMP \
  26522. SHELL \
  26523. ECHO \
  26524. PATH_SEPARATOR \
  26525. SED \
  26526. GREP \
  26527. EGREP \
  26528. FGREP \
  26529. LD \
  26530. NM \
  26531. LN_S \
  26532. lt_SP2NL \
  26533. lt_NL2SP \
  26534. reload_flag \
  26535. deplibs_check_method \
  26536. file_magic_cmd \
  26537. file_magic_glob \
  26538. want_nocaseglob \
  26539. sharedlib_from_linklib_cmd \
  26540. AR \
  26541. AR_FLAGS \
  26542. archiver_list_spec \
  26543. STRIP \
  26544. RANLIB \
  26545. CC \
  26546. CFLAGS \
  26547. compiler \
  26548. lt_cv_sys_global_symbol_pipe \
  26549. lt_cv_sys_global_symbol_to_cdecl \
  26550. lt_cv_sys_global_symbol_to_import \
  26551. lt_cv_sys_global_symbol_to_c_name_address \
  26552. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26553. lt_cv_nm_interface \
  26554. nm_file_list_spec \
  26555. lt_cv_truncate_bin \
  26556. lt_prog_compiler_no_builtin_flag \
  26557. lt_prog_compiler_pic \
  26558. lt_prog_compiler_wl \
  26559. lt_prog_compiler_static \
  26560. lt_cv_prog_compiler_c_o \
  26561. need_locks \
  26562. MANIFEST_TOOL \
  26563. DSYMUTIL \
  26564. NMEDIT \
  26565. LIPO \
  26566. OTOOL \
  26567. OTOOL64 \
  26568. shrext_cmds \
  26569. export_dynamic_flag_spec \
  26570. whole_archive_flag_spec \
  26571. compiler_needs_object \
  26572. with_gnu_ld \
  26573. allow_undefined_flag \
  26574. no_undefined_flag \
  26575. hardcode_libdir_flag_spec \
  26576. hardcode_libdir_separator \
  26577. exclude_expsyms \
  26578. include_expsyms \
  26579. file_list_spec \
  26580. variables_saved_for_relink \
  26581. libname_spec \
  26582. library_names_spec \
  26583. soname_spec \
  26584. install_override_mode \
  26585. finish_eval \
  26586. old_striplib \
  26587. striplib \
  26588. compiler_lib_search_dirs \
  26589. predep_objects \
  26590. postdep_objects \
  26591. predeps \
  26592. postdeps \
  26593. compiler_lib_search_path \
  26594. LD_RC \
  26595. LD_CXX \
  26596. reload_flag_RC \
  26597. reload_flag_CXX \
  26598. compiler_RC \
  26599. compiler_CXX \
  26600. lt_prog_compiler_no_builtin_flag_RC \
  26601. lt_prog_compiler_no_builtin_flag_CXX \
  26602. lt_prog_compiler_pic_RC \
  26603. lt_prog_compiler_pic_CXX \
  26604. lt_prog_compiler_wl_RC \
  26605. lt_prog_compiler_wl_CXX \
  26606. lt_prog_compiler_static_RC \
  26607. lt_prog_compiler_static_CXX \
  26608. lt_cv_prog_compiler_c_o_RC \
  26609. lt_cv_prog_compiler_c_o_CXX \
  26610. export_dynamic_flag_spec_RC \
  26611. export_dynamic_flag_spec_CXX \
  26612. whole_archive_flag_spec_RC \
  26613. whole_archive_flag_spec_CXX \
  26614. compiler_needs_object_RC \
  26615. compiler_needs_object_CXX \
  26616. with_gnu_ld_RC \
  26617. with_gnu_ld_CXX \
  26618. allow_undefined_flag_RC \
  26619. allow_undefined_flag_CXX \
  26620. no_undefined_flag_RC \
  26621. no_undefined_flag_CXX \
  26622. hardcode_libdir_flag_spec_RC \
  26623. hardcode_libdir_flag_spec_CXX \
  26624. hardcode_libdir_separator_RC \
  26625. hardcode_libdir_separator_CXX \
  26626. exclude_expsyms_RC \
  26627. exclude_expsyms_CXX \
  26628. include_expsyms_RC \
  26629. include_expsyms_CXX \
  26630. file_list_spec_RC \
  26631. file_list_spec_CXX \
  26632. compiler_lib_search_dirs_RC \
  26633. compiler_lib_search_dirs_CXX \
  26634. predep_objects_RC \
  26635. predep_objects_CXX \
  26636. postdep_objects_RC \
  26637. postdep_objects_CXX \
  26638. predeps_RC \
  26639. predeps_CXX \
  26640. postdeps_RC \
  26641. postdeps_CXX \
  26642. compiler_lib_search_path_RC \
  26643. compiler_lib_search_path_CXX; do
  26644. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26645. *[\\\\\\\`\\"\\\$]*)
  26646. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26647. ;;
  26648. *)
  26649. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26650. ;;
  26651. esac
  26652. done
  26653. # Double-quote double-evaled strings.
  26654. for var in reload_cmds \
  26655. old_postinstall_cmds \
  26656. old_postuninstall_cmds \
  26657. old_archive_cmds \
  26658. extract_expsyms_cmds \
  26659. old_archive_from_new_cmds \
  26660. old_archive_from_expsyms_cmds \
  26661. archive_cmds \
  26662. archive_expsym_cmds \
  26663. module_cmds \
  26664. module_expsym_cmds \
  26665. export_symbols_cmds \
  26666. prelink_cmds \
  26667. postlink_cmds \
  26668. postinstall_cmds \
  26669. postuninstall_cmds \
  26670. finish_cmds \
  26671. sys_lib_search_path_spec \
  26672. configure_time_dlsearch_path \
  26673. configure_time_lt_sys_library_path \
  26674. reload_cmds_RC \
  26675. reload_cmds_CXX \
  26676. old_archive_cmds_RC \
  26677. old_archive_cmds_CXX \
  26678. old_archive_from_new_cmds_RC \
  26679. old_archive_from_new_cmds_CXX \
  26680. old_archive_from_expsyms_cmds_RC \
  26681. old_archive_from_expsyms_cmds_CXX \
  26682. archive_cmds_RC \
  26683. archive_cmds_CXX \
  26684. archive_expsym_cmds_RC \
  26685. archive_expsym_cmds_CXX \
  26686. module_cmds_RC \
  26687. module_cmds_CXX \
  26688. module_expsym_cmds_RC \
  26689. module_expsym_cmds_CXX \
  26690. export_symbols_cmds_RC \
  26691. export_symbols_cmds_CXX \
  26692. prelink_cmds_RC \
  26693. prelink_cmds_CXX \
  26694. postlink_cmds_RC \
  26695. postlink_cmds_CXX; do
  26696. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26697. *[\\\\\\\`\\"\\\$]*)
  26698. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26699. ;;
  26700. *)
  26701. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26702. ;;
  26703. esac
  26704. done
  26705. ac_aux_dir='$ac_aux_dir'
  26706. # See if we are running on zsh, and set the options that allow our
  26707. # commands through without removal of \ escapes INIT.
  26708. if test -n "\${ZSH_VERSION+set}"; then
  26709. setopt NO_GLOB_SUBST
  26710. fi
  26711. PACKAGE='$PACKAGE'
  26712. VERSION='$VERSION'
  26713. RM='$RM'
  26714. ofile='$ofile'
  26715. SUMMARY="$SUMMARY"
  26716. _ACEOF
  26717. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26718. # Handling of arguments.
  26719. for ac_config_target in $ac_config_targets
  26720. do
  26721. case $ac_config_target in
  26722. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26723. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26724. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26725. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26726. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26727. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26728. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26729. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26730. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26731. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26732. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26733. esac
  26734. done
  26735. # If the user did not use the arguments to specify the items to instantiate,
  26736. # then the envvar interface is used. Set only those that are not.
  26737. # We use the long form for the default assignment because of an extremely
  26738. # bizarre bug on SunOS 4.1.3.
  26739. if $ac_need_defaults; then
  26740. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26741. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26742. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26743. fi
  26744. # Have a temporary directory for convenience. Make it in the build tree
  26745. # simply because there is no reason against having it here, and in addition,
  26746. # creating and moving files from /tmp can sometimes cause problems.
  26747. # Hook for its removal unless debugging.
  26748. # Note that there is a small window in which the directory will not be cleaned:
  26749. # after its creation but before its name has been assigned to `$tmp'.
  26750. $debug ||
  26751. {
  26752. tmp= ac_tmp=
  26753. trap 'exit_status=$?
  26754. : "${ac_tmp:=$tmp}"
  26755. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26756. ' 0
  26757. trap 'as_fn_exit 1' 1 2 13 15
  26758. }
  26759. # Create a (secure) tmp directory for tmp files.
  26760. {
  26761. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26762. test -d "$tmp"
  26763. } ||
  26764. {
  26765. tmp=./conf$$-$RANDOM
  26766. (umask 077 && mkdir "$tmp")
  26767. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26768. ac_tmp=$tmp
  26769. # Set up the scripts for CONFIG_FILES section.
  26770. # No need to generate them if there are no CONFIG_FILES.
  26771. # This happens for instance with `./config.status config.h'.
  26772. if test -n "$CONFIG_FILES"; then
  26773. ac_cr=`echo X | tr X '\015'`
  26774. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26775. # But we know of no other shell where ac_cr would be empty at this
  26776. # point, so we can use a bashism as a fallback.
  26777. if test "x$ac_cr" = x; then
  26778. eval ac_cr=\$\'\\r\'
  26779. fi
  26780. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26781. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26782. ac_cs_awk_cr='\\r'
  26783. else
  26784. ac_cs_awk_cr=$ac_cr
  26785. fi
  26786. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26787. _ACEOF
  26788. {
  26789. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26790. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26791. echo "_ACEOF"
  26792. } >conf$$subs.sh ||
  26793. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26794. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26795. ac_delim='%!_!# '
  26796. for ac_last_try in false false false false false :; do
  26797. . ./conf$$subs.sh ||
  26798. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26799. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26800. if test $ac_delim_n = $ac_delim_num; then
  26801. break
  26802. elif $ac_last_try; then
  26803. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26804. else
  26805. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26806. fi
  26807. done
  26808. rm -f conf$$subs.sh
  26809. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26810. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26811. _ACEOF
  26812. sed -n '
  26813. h
  26814. s/^/S["/; s/!.*/"]=/
  26815. p
  26816. g
  26817. s/^[^!]*!//
  26818. :repl
  26819. t repl
  26820. s/'"$ac_delim"'$//
  26821. t delim
  26822. :nl
  26823. h
  26824. s/\(.\{148\}\)..*/\1/
  26825. t more1
  26826. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26827. p
  26828. n
  26829. b repl
  26830. :more1
  26831. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26832. p
  26833. g
  26834. s/.\{148\}//
  26835. t nl
  26836. :delim
  26837. h
  26838. s/\(.\{148\}\)..*/\1/
  26839. t more2
  26840. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26841. p
  26842. b
  26843. :more2
  26844. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26845. p
  26846. g
  26847. s/.\{148\}//
  26848. t delim
  26849. ' <conf$$subs.awk | sed '
  26850. /^[^""]/{
  26851. N
  26852. s/\n//
  26853. }
  26854. ' >>$CONFIG_STATUS || ac_write_fail=1
  26855. rm -f conf$$subs.awk
  26856. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26857. _ACAWK
  26858. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26859. for (key in S) S_is_set[key] = 1
  26860. FS = ""
  26861. }
  26862. {
  26863. line = $ 0
  26864. nfields = split(line, field, "@")
  26865. substed = 0
  26866. len = length(field[1])
  26867. for (i = 2; i < nfields; i++) {
  26868. key = field[i]
  26869. keylen = length(key)
  26870. if (S_is_set[key]) {
  26871. value = S[key]
  26872. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26873. len += length(value) + length(field[++i])
  26874. substed = 1
  26875. } else
  26876. len += 1 + keylen
  26877. }
  26878. print line
  26879. }
  26880. _ACAWK
  26881. _ACEOF
  26882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26883. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26884. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26885. else
  26886. cat
  26887. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26888. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26889. _ACEOF
  26890. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26891. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26892. # trailing colons and then remove the whole line if VPATH becomes empty
  26893. # (actually we leave an empty line to preserve line numbers).
  26894. if test "x$srcdir" = x.; then
  26895. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26896. h
  26897. s///
  26898. s/^/:/
  26899. s/[ ]*$/:/
  26900. s/:\$(srcdir):/:/g
  26901. s/:\${srcdir}:/:/g
  26902. s/:@srcdir@:/:/g
  26903. s/^:*//
  26904. s/:*$//
  26905. x
  26906. s/\(=[ ]*\).*/\1/
  26907. G
  26908. s/\n//
  26909. s/^[^=]*=[ ]*$//
  26910. }'
  26911. fi
  26912. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26913. fi # test -n "$CONFIG_FILES"
  26914. # Set up the scripts for CONFIG_HEADERS section.
  26915. # No need to generate them if there are no CONFIG_HEADERS.
  26916. # This happens for instance with `./config.status Makefile'.
  26917. if test -n "$CONFIG_HEADERS"; then
  26918. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26919. BEGIN {
  26920. _ACEOF
  26921. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26922. # here-document in config.status, that substitutes the proper values into
  26923. # config.h.in to produce config.h.
  26924. # Create a delimiter string that does not exist in confdefs.h, to ease
  26925. # handling of long lines.
  26926. ac_delim='%!_!# '
  26927. for ac_last_try in false false :; do
  26928. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26929. if test -z "$ac_tt"; then
  26930. break
  26931. elif $ac_last_try; then
  26932. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26933. else
  26934. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26935. fi
  26936. done
  26937. # For the awk script, D is an array of macro values keyed by name,
  26938. # likewise P contains macro parameters if any. Preserve backslash
  26939. # newline sequences.
  26940. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26941. sed -n '
  26942. s/.\{148\}/&'"$ac_delim"'/g
  26943. t rset
  26944. :rset
  26945. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26946. t def
  26947. d
  26948. :def
  26949. s/\\$//
  26950. t bsnl
  26951. s/["\\]/\\&/g
  26952. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26953. D["\1"]=" \3"/p
  26954. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26955. d
  26956. :bsnl
  26957. s/["\\]/\\&/g
  26958. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26959. D["\1"]=" \3\\\\\\n"\\/p
  26960. t cont
  26961. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26962. t cont
  26963. d
  26964. :cont
  26965. n
  26966. s/.\{148\}/&'"$ac_delim"'/g
  26967. t clear
  26968. :clear
  26969. s/\\$//
  26970. t bsnlc
  26971. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26972. d
  26973. :bsnlc
  26974. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26975. b cont
  26976. ' <confdefs.h | sed '
  26977. s/'"$ac_delim"'/"\\\
  26978. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26979. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26980. for (key in D) D_is_set[key] = 1
  26981. FS = ""
  26982. }
  26983. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26984. line = \$ 0
  26985. split(line, arg, " ")
  26986. if (arg[1] == "#") {
  26987. defundef = arg[2]
  26988. mac1 = arg[3]
  26989. } else {
  26990. defundef = substr(arg[1], 2)
  26991. mac1 = arg[2]
  26992. }
  26993. split(mac1, mac2, "(") #)
  26994. macro = mac2[1]
  26995. prefix = substr(line, 1, index(line, defundef) - 1)
  26996. if (D_is_set[macro]) {
  26997. # Preserve the white space surrounding the "#".
  26998. print prefix "define", macro P[macro] D[macro]
  26999. next
  27000. } else {
  27001. # Replace #undef with comments. This is necessary, for example,
  27002. # in the case of _POSIX_SOURCE, which is predefined and required
  27003. # on some systems where configure will not decide to define it.
  27004. if (defundef == "undef") {
  27005. print "/*", prefix defundef, macro, "*/"
  27006. next
  27007. }
  27008. }
  27009. }
  27010. { print }
  27011. _ACAWK
  27012. _ACEOF
  27013. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27014. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27015. fi # test -n "$CONFIG_HEADERS"
  27016. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27017. shift
  27018. for ac_tag
  27019. do
  27020. case $ac_tag in
  27021. :[FHLC]) ac_mode=$ac_tag; continue;;
  27022. esac
  27023. case $ac_mode$ac_tag in
  27024. :[FHL]*:*);;
  27025. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27026. :[FH]-) ac_tag=-:-;;
  27027. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27028. esac
  27029. ac_save_IFS=$IFS
  27030. IFS=:
  27031. set x $ac_tag
  27032. IFS=$ac_save_IFS
  27033. shift
  27034. ac_file=$1
  27035. shift
  27036. case $ac_mode in
  27037. :L) ac_source=$1;;
  27038. :[FH])
  27039. ac_file_inputs=
  27040. for ac_f
  27041. do
  27042. case $ac_f in
  27043. -) ac_f="$ac_tmp/stdin";;
  27044. *) # Look for the file first in the build tree, then in the source tree
  27045. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27046. # because $ac_f cannot contain `:'.
  27047. test -f "$ac_f" ||
  27048. case $ac_f in
  27049. [\\/$]*) false;;
  27050. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27051. esac ||
  27052. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27053. esac
  27054. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27055. as_fn_append ac_file_inputs " '$ac_f'"
  27056. done
  27057. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27058. # use $as_me), people would be surprised to read:
  27059. # /* config.h. Generated by config.status. */
  27060. configure_input='Generated from '`
  27061. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27062. `' by configure.'
  27063. if test x"$ac_file" != x-; then
  27064. configure_input="$ac_file. $configure_input"
  27065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27066. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27067. fi
  27068. # Neutralize special characters interpreted by sed in replacement strings.
  27069. case $configure_input in #(
  27070. *\&* | *\|* | *\\* )
  27071. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27072. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27073. *) ac_sed_conf_input=$configure_input;;
  27074. esac
  27075. case $ac_tag in
  27076. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27077. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27078. esac
  27079. ;;
  27080. esac
  27081. ac_dir=`$as_dirname -- "$ac_file" ||
  27082. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27083. X"$ac_file" : 'X\(//\)[^/]' \| \
  27084. X"$ac_file" : 'X\(//\)$' \| \
  27085. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27086. printf "%s\n" X"$ac_file" |
  27087. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27088. s//\1/
  27089. q
  27090. }
  27091. /^X\(\/\/\)[^/].*/{
  27092. s//\1/
  27093. q
  27094. }
  27095. /^X\(\/\/\)$/{
  27096. s//\1/
  27097. q
  27098. }
  27099. /^X\(\/\).*/{
  27100. s//\1/
  27101. q
  27102. }
  27103. s/.*/./; q'`
  27104. as_dir="$ac_dir"; as_fn_mkdir_p
  27105. ac_builddir=.
  27106. case "$ac_dir" in
  27107. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27108. *)
  27109. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27110. # A ".." for each directory in $ac_dir_suffix.
  27111. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27112. case $ac_top_builddir_sub in
  27113. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27114. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27115. esac ;;
  27116. esac
  27117. ac_abs_top_builddir=$ac_pwd
  27118. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27119. # for backward compatibility:
  27120. ac_top_builddir=$ac_top_build_prefix
  27121. case $srcdir in
  27122. .) # We are building in place.
  27123. ac_srcdir=.
  27124. ac_top_srcdir=$ac_top_builddir_sub
  27125. ac_abs_top_srcdir=$ac_pwd ;;
  27126. [\\/]* | ?:[\\/]* ) # Absolute name.
  27127. ac_srcdir=$srcdir$ac_dir_suffix;
  27128. ac_top_srcdir=$srcdir
  27129. ac_abs_top_srcdir=$srcdir ;;
  27130. *) # Relative name.
  27131. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27132. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27133. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27134. esac
  27135. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27136. case $ac_mode in
  27137. :F)
  27138. #
  27139. # CONFIG_FILE
  27140. #
  27141. case $INSTALL in
  27142. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27143. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27144. esac
  27145. _ACEOF
  27146. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27147. # If the template does not know about datarootdir, expand it.
  27148. # FIXME: This hack should be removed a few years after 2.60.
  27149. ac_datarootdir_hack=; ac_datarootdir_seen=
  27150. ac_sed_dataroot='
  27151. /datarootdir/ {
  27152. p
  27153. q
  27154. }
  27155. /@datadir@/p
  27156. /@docdir@/p
  27157. /@infodir@/p
  27158. /@localedir@/p
  27159. /@mandir@/p'
  27160. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27161. *datarootdir*) ac_datarootdir_seen=yes;;
  27162. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27164. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27165. _ACEOF
  27166. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27167. ac_datarootdir_hack='
  27168. s&@datadir@&$datadir&g
  27169. s&@docdir@&$docdir&g
  27170. s&@infodir@&$infodir&g
  27171. s&@localedir@&$localedir&g
  27172. s&@mandir@&$mandir&g
  27173. s&\\\${datarootdir}&$datarootdir&g' ;;
  27174. esac
  27175. _ACEOF
  27176. # Neutralize VPATH when `$srcdir' = `.'.
  27177. # Shell code in configure.ac might set extrasub.
  27178. # FIXME: do we really want to maintain this feature?
  27179. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27180. ac_sed_extra="$ac_vpsub
  27181. $extrasub
  27182. _ACEOF
  27183. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27184. :t
  27185. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27186. s|@configure_input@|$ac_sed_conf_input|;t t
  27187. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27188. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27189. s&@srcdir@&$ac_srcdir&;t t
  27190. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27191. s&@top_srcdir@&$ac_top_srcdir&;t t
  27192. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27193. s&@builddir@&$ac_builddir&;t t
  27194. s&@abs_builddir@&$ac_abs_builddir&;t t
  27195. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27196. s&@INSTALL@&$ac_INSTALL&;t t
  27197. $ac_datarootdir_hack
  27198. "
  27199. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27200. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27201. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27202. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27203. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27204. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27206. which seems to be undefined. Please make sure it is defined" >&5
  27207. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27208. which seems to be undefined. Please make sure it is defined" >&2;}
  27209. rm -f "$ac_tmp/stdin"
  27210. case $ac_file in
  27211. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27212. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27213. esac \
  27214. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27215. ;;
  27216. :H)
  27217. #
  27218. # CONFIG_HEADER
  27219. #
  27220. if test x"$ac_file" != x-; then
  27221. {
  27222. printf "%s\n" "/* $configure_input */" >&1 \
  27223. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27224. } >"$ac_tmp/config.h" \
  27225. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27226. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27228. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27229. else
  27230. rm -f "$ac_file"
  27231. mv "$ac_tmp/config.h" "$ac_file" \
  27232. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27233. fi
  27234. else
  27235. printf "%s\n" "/* $configure_input */" >&1 \
  27236. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27237. || as_fn_error $? "could not create -" "$LINENO" 5
  27238. fi
  27239. ;;
  27240. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27241. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27242. ;;
  27243. esac
  27244. case $ac_file$ac_mode in
  27245. "libtool":C)
  27246. # See if we are running on zsh, and set the options that allow our
  27247. # commands through without removal of \ escapes.
  27248. if test -n "${ZSH_VERSION+set}"; then
  27249. setopt NO_GLOB_SUBST
  27250. fi
  27251. cfgfile=${ofile}T
  27252. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27253. $RM "$cfgfile"
  27254. cat <<_LT_EOF >> "$cfgfile"
  27255. #! $SHELL
  27256. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27257. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27258. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27259. # Provide generalized library-building support services.
  27260. # Written by Gordon Matzigkeit, 1996
  27261. # Copyright (C) 2014 Free Software Foundation, Inc.
  27262. # This is free software; see the source for copying conditions. There is NO
  27263. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27264. # GNU Libtool is free software; you can redistribute it and/or modify
  27265. # it under the terms of the GNU General Public License as published by
  27266. # the Free Software Foundation; either version 2 of of the License, or
  27267. # (at your option) any later version.
  27268. #
  27269. # As a special exception to the GNU General Public License, if you
  27270. # distribute this file as part of a program or library that is built
  27271. # using GNU Libtool, you may include this file under the same
  27272. # distribution terms that you use for the rest of that program.
  27273. #
  27274. # GNU Libtool is distributed in the hope that it will be useful, but
  27275. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27276. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27277. # GNU General Public License for more details.
  27278. #
  27279. # You should have received a copy of the GNU General Public License
  27280. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27281. # The names of the tagged configurations supported by this script.
  27282. available_tags='RC CXX '
  27283. # Configured defaults for sys_lib_dlsearch_path munging.
  27284. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27285. # ### BEGIN LIBTOOL CONFIG
  27286. # Which release of libtool.m4 was used?
  27287. macro_version=$macro_version
  27288. macro_revision=$macro_revision
  27289. # Assembler program.
  27290. AS=$lt_AS
  27291. # DLL creation program.
  27292. DLLTOOL=$lt_DLLTOOL
  27293. # Object dumper program.
  27294. OBJDUMP=$lt_OBJDUMP
  27295. # Whether or not to build shared libraries.
  27296. build_libtool_libs=$enable_shared
  27297. # Whether or not to build static libraries.
  27298. build_old_libs=$enable_static
  27299. # What type of objects to build.
  27300. pic_mode=$pic_mode
  27301. # Whether or not to optimize for fast installation.
  27302. fast_install=$enable_fast_install
  27303. # Shared archive member basename,for filename based shared library versioning on AIX.
  27304. shared_archive_member_spec=$shared_archive_member_spec
  27305. # Shell to use when invoking shell scripts.
  27306. SHELL=$lt_SHELL
  27307. # An echo program that protects backslashes.
  27308. ECHO=$lt_ECHO
  27309. # The PATH separator for the build system.
  27310. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27311. # The host system.
  27312. host_alias=$host_alias
  27313. host=$host
  27314. host_os=$host_os
  27315. # The build system.
  27316. build_alias=$build_alias
  27317. build=$build
  27318. build_os=$build_os
  27319. # A sed program that does not truncate output.
  27320. SED=$lt_SED
  27321. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27322. Xsed="\$SED -e 1s/^X//"
  27323. # A grep program that handles long lines.
  27324. GREP=$lt_GREP
  27325. # An ERE matcher.
  27326. EGREP=$lt_EGREP
  27327. # A literal string matcher.
  27328. FGREP=$lt_FGREP
  27329. # A BSD- or MS-compatible name lister.
  27330. NM=$lt_NM
  27331. # Whether we need soft or hard links.
  27332. LN_S=$lt_LN_S
  27333. # What is the maximum length of a command?
  27334. max_cmd_len=$max_cmd_len
  27335. # Object file suffix (normally "o").
  27336. objext=$ac_objext
  27337. # Executable file suffix (normally "").
  27338. exeext=$exeext
  27339. # whether the shell understands "unset".
  27340. lt_unset=$lt_unset
  27341. # turn spaces into newlines.
  27342. SP2NL=$lt_lt_SP2NL
  27343. # turn newlines into spaces.
  27344. NL2SP=$lt_lt_NL2SP
  27345. # convert \$build file names to \$host format.
  27346. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27347. # convert \$build files to toolchain format.
  27348. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27349. # Method to check whether dependent libraries are shared objects.
  27350. deplibs_check_method=$lt_deplibs_check_method
  27351. # Command to use when deplibs_check_method = "file_magic".
  27352. file_magic_cmd=$lt_file_magic_cmd
  27353. # How to find potential files when deplibs_check_method = "file_magic".
  27354. file_magic_glob=$lt_file_magic_glob
  27355. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27356. want_nocaseglob=$lt_want_nocaseglob
  27357. # Command to associate shared and link libraries.
  27358. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27359. # The archiver.
  27360. AR=$lt_AR
  27361. # Flags to create an archive.
  27362. AR_FLAGS=$lt_AR_FLAGS
  27363. # How to feed a file listing to the archiver.
  27364. archiver_list_spec=$lt_archiver_list_spec
  27365. # A symbol stripping program.
  27366. STRIP=$lt_STRIP
  27367. # Commands used to install an old-style archive.
  27368. RANLIB=$lt_RANLIB
  27369. old_postinstall_cmds=$lt_old_postinstall_cmds
  27370. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27371. # Whether to use a lock for old archive extraction.
  27372. lock_old_archive_extraction=$lock_old_archive_extraction
  27373. # A C compiler.
  27374. LTCC=$lt_CC
  27375. # LTCC compiler flags.
  27376. LTCFLAGS=$lt_CFLAGS
  27377. # Take the output of nm and produce a listing of raw symbols and C names.
  27378. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27379. # Transform the output of nm in a proper C declaration.
  27380. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27381. # Transform the output of nm into a list of symbols to manually relocate.
  27382. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27383. # Transform the output of nm in a C name address pair.
  27384. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27385. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27386. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27387. # The name lister interface.
  27388. nm_interface=$lt_lt_cv_nm_interface
  27389. # Specify filename containing input files for \$NM.
  27390. nm_file_list_spec=$lt_nm_file_list_spec
  27391. # The root where to search for dependent libraries,and where our libraries should be installed.
  27392. lt_sysroot=$lt_sysroot
  27393. # Command to truncate a binary pipe.
  27394. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27395. # The name of the directory that contains temporary libtool files.
  27396. objdir=$objdir
  27397. # Used to examine libraries when file_magic_cmd begins with "file".
  27398. MAGIC_CMD=$MAGIC_CMD
  27399. # Must we lock files when doing compilation?
  27400. need_locks=$lt_need_locks
  27401. # Manifest tool.
  27402. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27403. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27404. DSYMUTIL=$lt_DSYMUTIL
  27405. # Tool to change global to local symbols on Mac OS X.
  27406. NMEDIT=$lt_NMEDIT
  27407. # Tool to manipulate fat objects and archives on Mac OS X.
  27408. LIPO=$lt_LIPO
  27409. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27410. OTOOL=$lt_OTOOL
  27411. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27412. OTOOL64=$lt_OTOOL64
  27413. # Old archive suffix (normally "a").
  27414. libext=$libext
  27415. # Shared library suffix (normally ".so").
  27416. shrext_cmds=$lt_shrext_cmds
  27417. # The commands to extract the exported symbol list from a shared archive.
  27418. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27419. # Variables whose values should be saved in libtool wrapper scripts and
  27420. # restored at link time.
  27421. variables_saved_for_relink=$lt_variables_saved_for_relink
  27422. # Do we need the "lib" prefix for modules?
  27423. need_lib_prefix=$need_lib_prefix
  27424. # Do we need a version for libraries?
  27425. need_version=$need_version
  27426. # Library versioning type.
  27427. version_type=$version_type
  27428. # Shared library runtime path variable.
  27429. runpath_var=$runpath_var
  27430. # Shared library path variable.
  27431. shlibpath_var=$shlibpath_var
  27432. # Is shlibpath searched before the hard-coded library search path?
  27433. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27434. # Format of library name prefix.
  27435. libname_spec=$lt_libname_spec
  27436. # List of archive names. First name is the real one, the rest are links.
  27437. # The last name is the one that the linker finds with -lNAME
  27438. library_names_spec=$lt_library_names_spec
  27439. # The coded name of the library, if different from the real name.
  27440. soname_spec=$lt_soname_spec
  27441. # Permission mode override for installation of shared libraries.
  27442. install_override_mode=$lt_install_override_mode
  27443. # Command to use after installation of a shared archive.
  27444. postinstall_cmds=$lt_postinstall_cmds
  27445. # Command to use after uninstallation of a shared archive.
  27446. postuninstall_cmds=$lt_postuninstall_cmds
  27447. # Commands used to finish a libtool library installation in a directory.
  27448. finish_cmds=$lt_finish_cmds
  27449. # As "finish_cmds", except a single script fragment to be evaled but
  27450. # not shown.
  27451. finish_eval=$lt_finish_eval
  27452. # Whether we should hardcode library paths into libraries.
  27453. hardcode_into_libs=$hardcode_into_libs
  27454. # Compile-time system search path for libraries.
  27455. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27456. # Detected run-time system search path for libraries.
  27457. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27458. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27459. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27460. # Whether dlopen is supported.
  27461. dlopen_support=$enable_dlopen
  27462. # Whether dlopen of programs is supported.
  27463. dlopen_self=$enable_dlopen_self
  27464. # Whether dlopen of statically linked programs is supported.
  27465. dlopen_self_static=$enable_dlopen_self_static
  27466. # Commands to strip libraries.
  27467. old_striplib=$lt_old_striplib
  27468. striplib=$lt_striplib
  27469. # The linker used to build libraries.
  27470. LD=$lt_LD
  27471. # How to create reloadable object files.
  27472. reload_flag=$lt_reload_flag
  27473. reload_cmds=$lt_reload_cmds
  27474. # Commands used to build an old-style archive.
  27475. old_archive_cmds=$lt_old_archive_cmds
  27476. # A language specific compiler.
  27477. CC=$lt_compiler
  27478. # Is the compiler the GNU compiler?
  27479. with_gcc=$GCC
  27480. # Compiler flag to turn off builtin functions.
  27481. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27482. # Additional compiler flags for building library objects.
  27483. pic_flag=$lt_lt_prog_compiler_pic
  27484. # How to pass a linker flag through the compiler.
  27485. wl=$lt_lt_prog_compiler_wl
  27486. # Compiler flag to prevent dynamic linking.
  27487. link_static_flag=$lt_lt_prog_compiler_static
  27488. # Does compiler simultaneously support -c and -o options?
  27489. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27490. # Whether or not to add -lc for building shared libraries.
  27491. build_libtool_need_lc=$archive_cmds_need_lc
  27492. # Whether or not to disallow shared libs when runtime libs are static.
  27493. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27494. # Compiler flag to allow reflexive dlopens.
  27495. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27496. # Compiler flag to generate shared objects directly from archives.
  27497. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27498. # Whether the compiler copes with passing no objects directly.
  27499. compiler_needs_object=$lt_compiler_needs_object
  27500. # Create an old-style archive from a shared archive.
  27501. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27502. # Create a temporary old-style archive to link instead of a shared archive.
  27503. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27504. # Commands used to build a shared archive.
  27505. archive_cmds=$lt_archive_cmds
  27506. archive_expsym_cmds=$lt_archive_expsym_cmds
  27507. # Commands used to build a loadable module if different from building
  27508. # a shared archive.
  27509. module_cmds=$lt_module_cmds
  27510. module_expsym_cmds=$lt_module_expsym_cmds
  27511. # Whether we are building with GNU ld or not.
  27512. with_gnu_ld=$lt_with_gnu_ld
  27513. # Flag that allows shared libraries with undefined symbols to be built.
  27514. allow_undefined_flag=$lt_allow_undefined_flag
  27515. # Flag that enforces no undefined symbols.
  27516. no_undefined_flag=$lt_no_undefined_flag
  27517. # Flag to hardcode \$libdir into a binary during linking.
  27518. # This must work even if \$libdir does not exist
  27519. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27520. # Whether we need a single "-rpath" flag with a separated argument.
  27521. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27522. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27523. # DIR into the resulting binary.
  27524. hardcode_direct=$hardcode_direct
  27525. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27526. # DIR into the resulting binary and the resulting library dependency is
  27527. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27528. # library is relocated.
  27529. hardcode_direct_absolute=$hardcode_direct_absolute
  27530. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27531. # into the resulting binary.
  27532. hardcode_minus_L=$hardcode_minus_L
  27533. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27534. # into the resulting binary.
  27535. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27536. # Set to "yes" if building a shared library automatically hardcodes DIR
  27537. # into the library and all subsequent libraries and executables linked
  27538. # against it.
  27539. hardcode_automatic=$hardcode_automatic
  27540. # Set to yes if linker adds runtime paths of dependent libraries
  27541. # to runtime path list.
  27542. inherit_rpath=$inherit_rpath
  27543. # Whether libtool must link a program against all its dependency libraries.
  27544. link_all_deplibs=$link_all_deplibs
  27545. # Set to "yes" if exported symbols are required.
  27546. always_export_symbols=$always_export_symbols
  27547. # The commands to list exported symbols.
  27548. export_symbols_cmds=$lt_export_symbols_cmds
  27549. # Symbols that should not be listed in the preloaded symbols.
  27550. exclude_expsyms=$lt_exclude_expsyms
  27551. # Symbols that must always be exported.
  27552. include_expsyms=$lt_include_expsyms
  27553. # Commands necessary for linking programs (against libraries) with templates.
  27554. prelink_cmds=$lt_prelink_cmds
  27555. # Commands necessary for finishing linking programs.
  27556. postlink_cmds=$lt_postlink_cmds
  27557. # Specify filename containing input files.
  27558. file_list_spec=$lt_file_list_spec
  27559. # How to hardcode a shared library path into an executable.
  27560. hardcode_action=$hardcode_action
  27561. # The directories searched by this compiler when creating a shared library.
  27562. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27563. # Dependencies to place before and after the objects being linked to
  27564. # create a shared library.
  27565. predep_objects=$lt_predep_objects
  27566. postdep_objects=$lt_postdep_objects
  27567. predeps=$lt_predeps
  27568. postdeps=$lt_postdeps
  27569. # The library search path used internally by the compiler when linking
  27570. # a shared library.
  27571. compiler_lib_search_path=$lt_compiler_lib_search_path
  27572. # ### END LIBTOOL CONFIG
  27573. _LT_EOF
  27574. cat <<'_LT_EOF' >> "$cfgfile"
  27575. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27576. # func_munge_path_list VARIABLE PATH
  27577. # -----------------------------------
  27578. # VARIABLE is name of variable containing _space_ separated list of
  27579. # directories to be munged by the contents of PATH, which is string
  27580. # having a format:
  27581. # "DIR[:DIR]:"
  27582. # string "DIR[ DIR]" will be prepended to VARIABLE
  27583. # ":DIR[:DIR]"
  27584. # string "DIR[ DIR]" will be appended to VARIABLE
  27585. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27586. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27587. # "DIRA[ DIRA]" will be appended to VARIABLE
  27588. # "DIR[:DIR]"
  27589. # VARIABLE will be replaced by "DIR[ DIR]"
  27590. func_munge_path_list ()
  27591. {
  27592. case x$2 in
  27593. x)
  27594. ;;
  27595. *:)
  27596. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27597. ;;
  27598. x:*)
  27599. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27600. ;;
  27601. *::*)
  27602. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27603. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27604. ;;
  27605. *)
  27606. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27607. ;;
  27608. esac
  27609. }
  27610. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27611. func_cc_basename ()
  27612. {
  27613. for cc_temp in $*""; do
  27614. case $cc_temp in
  27615. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27616. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27617. \-*) ;;
  27618. *) break;;
  27619. esac
  27620. done
  27621. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27622. }
  27623. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27624. _LT_EOF
  27625. case $host_os in
  27626. aix3*)
  27627. cat <<\_LT_EOF >> "$cfgfile"
  27628. # AIX sometimes has problems with the GCC collect2 program. For some
  27629. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27630. # vanish in a puff of smoke.
  27631. if test set != "${COLLECT_NAMES+set}"; then
  27632. COLLECT_NAMES=
  27633. export COLLECT_NAMES
  27634. fi
  27635. _LT_EOF
  27636. ;;
  27637. esac
  27638. ltmain=$ac_aux_dir/ltmain.sh
  27639. # We use sed instead of cat because bash on DJGPP gets confused if
  27640. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27641. # text mode, it properly converts lines to CR/LF. This bash problem
  27642. # is reportedly fixed, but why not run on old versions too?
  27643. sed '$q' "$ltmain" >> "$cfgfile" \
  27644. || (rm -f "$cfgfile"; exit 1)
  27645. mv -f "$cfgfile" "$ofile" ||
  27646. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27647. chmod +x "$ofile"
  27648. cat <<_LT_EOF >> "$ofile"
  27649. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27650. # The linker used to build libraries.
  27651. LD=$lt_LD_RC
  27652. # How to create reloadable object files.
  27653. reload_flag=$lt_reload_flag_RC
  27654. reload_cmds=$lt_reload_cmds_RC
  27655. # Commands used to build an old-style archive.
  27656. old_archive_cmds=$lt_old_archive_cmds_RC
  27657. # A language specific compiler.
  27658. CC=$lt_compiler_RC
  27659. # Is the compiler the GNU compiler?
  27660. with_gcc=$GCC_RC
  27661. # Compiler flag to turn off builtin functions.
  27662. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27663. # Additional compiler flags for building library objects.
  27664. pic_flag=$lt_lt_prog_compiler_pic_RC
  27665. # How to pass a linker flag through the compiler.
  27666. wl=$lt_lt_prog_compiler_wl_RC
  27667. # Compiler flag to prevent dynamic linking.
  27668. link_static_flag=$lt_lt_prog_compiler_static_RC
  27669. # Does compiler simultaneously support -c and -o options?
  27670. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27671. # Whether or not to add -lc for building shared libraries.
  27672. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27673. # Whether or not to disallow shared libs when runtime libs are static.
  27674. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27675. # Compiler flag to allow reflexive dlopens.
  27676. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27677. # Compiler flag to generate shared objects directly from archives.
  27678. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27679. # Whether the compiler copes with passing no objects directly.
  27680. compiler_needs_object=$lt_compiler_needs_object_RC
  27681. # Create an old-style archive from a shared archive.
  27682. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27683. # Create a temporary old-style archive to link instead of a shared archive.
  27684. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27685. # Commands used to build a shared archive.
  27686. archive_cmds=$lt_archive_cmds_RC
  27687. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27688. # Commands used to build a loadable module if different from building
  27689. # a shared archive.
  27690. module_cmds=$lt_module_cmds_RC
  27691. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27692. # Whether we are building with GNU ld or not.
  27693. with_gnu_ld=$lt_with_gnu_ld_RC
  27694. # Flag that allows shared libraries with undefined symbols to be built.
  27695. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27696. # Flag that enforces no undefined symbols.
  27697. no_undefined_flag=$lt_no_undefined_flag_RC
  27698. # Flag to hardcode \$libdir into a binary during linking.
  27699. # This must work even if \$libdir does not exist
  27700. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27701. # Whether we need a single "-rpath" flag with a separated argument.
  27702. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27703. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27704. # DIR into the resulting binary.
  27705. hardcode_direct=$hardcode_direct_RC
  27706. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27707. # DIR into the resulting binary and the resulting library dependency is
  27708. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27709. # library is relocated.
  27710. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27711. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27712. # into the resulting binary.
  27713. hardcode_minus_L=$hardcode_minus_L_RC
  27714. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27715. # into the resulting binary.
  27716. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27717. # Set to "yes" if building a shared library automatically hardcodes DIR
  27718. # into the library and all subsequent libraries and executables linked
  27719. # against it.
  27720. hardcode_automatic=$hardcode_automatic_RC
  27721. # Set to yes if linker adds runtime paths of dependent libraries
  27722. # to runtime path list.
  27723. inherit_rpath=$inherit_rpath_RC
  27724. # Whether libtool must link a program against all its dependency libraries.
  27725. link_all_deplibs=$link_all_deplibs_RC
  27726. # Set to "yes" if exported symbols are required.
  27727. always_export_symbols=$always_export_symbols_RC
  27728. # The commands to list exported symbols.
  27729. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27730. # Symbols that should not be listed in the preloaded symbols.
  27731. exclude_expsyms=$lt_exclude_expsyms_RC
  27732. # Symbols that must always be exported.
  27733. include_expsyms=$lt_include_expsyms_RC
  27734. # Commands necessary for linking programs (against libraries) with templates.
  27735. prelink_cmds=$lt_prelink_cmds_RC
  27736. # Commands necessary for finishing linking programs.
  27737. postlink_cmds=$lt_postlink_cmds_RC
  27738. # Specify filename containing input files.
  27739. file_list_spec=$lt_file_list_spec_RC
  27740. # How to hardcode a shared library path into an executable.
  27741. hardcode_action=$hardcode_action_RC
  27742. # The directories searched by this compiler when creating a shared library.
  27743. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27744. # Dependencies to place before and after the objects being linked to
  27745. # create a shared library.
  27746. predep_objects=$lt_predep_objects_RC
  27747. postdep_objects=$lt_postdep_objects_RC
  27748. predeps=$lt_predeps_RC
  27749. postdeps=$lt_postdeps_RC
  27750. # The library search path used internally by the compiler when linking
  27751. # a shared library.
  27752. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27753. # ### END LIBTOOL TAG CONFIG: RC
  27754. _LT_EOF
  27755. cat <<_LT_EOF >> "$ofile"
  27756. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27757. # The linker used to build libraries.
  27758. LD=$lt_LD_CXX
  27759. # How to create reloadable object files.
  27760. reload_flag=$lt_reload_flag_CXX
  27761. reload_cmds=$lt_reload_cmds_CXX
  27762. # Commands used to build an old-style archive.
  27763. old_archive_cmds=$lt_old_archive_cmds_CXX
  27764. # A language specific compiler.
  27765. CC=$lt_compiler_CXX
  27766. # Is the compiler the GNU compiler?
  27767. with_gcc=$GCC_CXX
  27768. # Compiler flag to turn off builtin functions.
  27769. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27770. # Additional compiler flags for building library objects.
  27771. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27772. # How to pass a linker flag through the compiler.
  27773. wl=$lt_lt_prog_compiler_wl_CXX
  27774. # Compiler flag to prevent dynamic linking.
  27775. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27776. # Does compiler simultaneously support -c and -o options?
  27777. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27778. # Whether or not to add -lc for building shared libraries.
  27779. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27780. # Whether or not to disallow shared libs when runtime libs are static.
  27781. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27782. # Compiler flag to allow reflexive dlopens.
  27783. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27784. # Compiler flag to generate shared objects directly from archives.
  27785. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27786. # Whether the compiler copes with passing no objects directly.
  27787. compiler_needs_object=$lt_compiler_needs_object_CXX
  27788. # Create an old-style archive from a shared archive.
  27789. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27790. # Create a temporary old-style archive to link instead of a shared archive.
  27791. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27792. # Commands used to build a shared archive.
  27793. archive_cmds=$lt_archive_cmds_CXX
  27794. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27795. # Commands used to build a loadable module if different from building
  27796. # a shared archive.
  27797. module_cmds=$lt_module_cmds_CXX
  27798. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27799. # Whether we are building with GNU ld or not.
  27800. with_gnu_ld=$lt_with_gnu_ld_CXX
  27801. # Flag that allows shared libraries with undefined symbols to be built.
  27802. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27803. # Flag that enforces no undefined symbols.
  27804. no_undefined_flag=$lt_no_undefined_flag_CXX
  27805. # Flag to hardcode \$libdir into a binary during linking.
  27806. # This must work even if \$libdir does not exist
  27807. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27808. # Whether we need a single "-rpath" flag with a separated argument.
  27809. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27810. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27811. # DIR into the resulting binary.
  27812. hardcode_direct=$hardcode_direct_CXX
  27813. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27814. # DIR into the resulting binary and the resulting library dependency is
  27815. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27816. # library is relocated.
  27817. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27818. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27819. # into the resulting binary.
  27820. hardcode_minus_L=$hardcode_minus_L_CXX
  27821. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27822. # into the resulting binary.
  27823. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27824. # Set to "yes" if building a shared library automatically hardcodes DIR
  27825. # into the library and all subsequent libraries and executables linked
  27826. # against it.
  27827. hardcode_automatic=$hardcode_automatic_CXX
  27828. # Set to yes if linker adds runtime paths of dependent libraries
  27829. # to runtime path list.
  27830. inherit_rpath=$inherit_rpath_CXX
  27831. # Whether libtool must link a program against all its dependency libraries.
  27832. link_all_deplibs=$link_all_deplibs_CXX
  27833. # Set to "yes" if exported symbols are required.
  27834. always_export_symbols=$always_export_symbols_CXX
  27835. # The commands to list exported symbols.
  27836. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27837. # Symbols that should not be listed in the preloaded symbols.
  27838. exclude_expsyms=$lt_exclude_expsyms_CXX
  27839. # Symbols that must always be exported.
  27840. include_expsyms=$lt_include_expsyms_CXX
  27841. # Commands necessary for linking programs (against libraries) with templates.
  27842. prelink_cmds=$lt_prelink_cmds_CXX
  27843. # Commands necessary for finishing linking programs.
  27844. postlink_cmds=$lt_postlink_cmds_CXX
  27845. # Specify filename containing input files.
  27846. file_list_spec=$lt_file_list_spec_CXX
  27847. # How to hardcode a shared library path into an executable.
  27848. hardcode_action=$hardcode_action_CXX
  27849. # The directories searched by this compiler when creating a shared library.
  27850. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27851. # Dependencies to place before and after the objects being linked to
  27852. # create a shared library.
  27853. predep_objects=$lt_predep_objects_CXX
  27854. postdep_objects=$lt_postdep_objects_CXX
  27855. predeps=$lt_predeps_CXX
  27856. postdeps=$lt_postdeps_CXX
  27857. # The library search path used internally by the compiler when linking
  27858. # a shared library.
  27859. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27860. # ### END LIBTOOL TAG CONFIG: CXX
  27861. _LT_EOF
  27862. ;;
  27863. "sdl2_config":C) chmod a+x sdl2-config ;;
  27864. "summary":C) printf "$SUMMARY" ;;
  27865. esac
  27866. done # for ac_tag
  27867. as_fn_exit 0
  27868. _ACEOF
  27869. ac_clean_files=$ac_clean_files_save
  27870. test $ac_write_fail = 0 ||
  27871. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27872. # configure is writing to config.log, and then calls config.status.
  27873. # config.status does its own redirection, appending to config.log.
  27874. # Unfortunately, on DOS this fails, as config.log is still kept open
  27875. # by configure, so config.status won't be able to write to it; its
  27876. # output is simply discarded. So we exec the FD to /dev/null,
  27877. # effectively closing config.log, so it can be properly (re)opened and
  27878. # appended to by config.status. When coming back to configure, we
  27879. # need to make the FD available again.
  27880. if test "$no_create" != yes; then
  27881. ac_cs_success=:
  27882. ac_config_status_args=
  27883. test "$silent" = yes &&
  27884. ac_config_status_args="$ac_config_status_args --quiet"
  27885. exec 5>/dev/null
  27886. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27887. exec 5>>config.log
  27888. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27889. # would make configure fail if this is the last instruction.
  27890. $ac_cs_success || as_fn_exit 1
  27891. fi
  27892. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27894. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27895. fi