configure 885 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. bin_prefix_relpath
  605. cmake_prefix_relpath
  606. INSTALL_SDL2_CONFIG
  607. LIBUSB_LIBS
  608. LIBUSB_CFLAGS
  609. IBUS_LIBS
  610. IBUS_CFLAGS
  611. DBUS_LIBS
  612. DBUS_CFLAGS
  613. LIBGBM_LIBS
  614. LIBGBM_CFLAGS
  615. LIBDRM_LIBS
  616. LIBDRM_CFLAGS
  617. DIRECTFB_LIBS
  618. DIRECTFB_CFLAGS
  619. X_EXTRA_LIBS
  620. X_LIBS
  621. X_PRE_LIBS
  622. X_CFLAGS
  623. XMKMF
  624. RPI_LIBS
  625. RPI_CFLAGS
  626. DECOR_LIBS
  627. DECOR_CFLAGS
  628. FUSIONSOUND_LIBS
  629. FUSIONSOUND_CFLAGS
  630. ARTSCONFIG
  631. PULSEAUDIO_LIBS
  632. PULSEAUDIO_CFLAGS
  633. PIPEWIRE_LIBS
  634. PIPEWIRE_CFLAGS
  635. ESD_LIBS
  636. ESD_CFLAGS
  637. ESD_CONFIG
  638. JACK_LIBS
  639. JACK_CFLAGS
  640. ALSA_LIBS
  641. ALSA_CFLAGS
  642. POW_LIB
  643. LIBOBJS
  644. ALLOCA
  645. LIBTOOLLINKERTAG
  646. LINKER
  647. PKG_CONFIG_LIBDIR
  648. PKG_CONFIG_PATH
  649. PKG_CONFIG
  650. SET_MAKE
  651. INSTALL_DATA
  652. INSTALL_SCRIPT
  653. INSTALL_PROGRAM
  654. CXXCPP
  655. ac_ct_CXX
  656. CXXFLAGS
  657. CXX
  658. LT_AGE
  659. LT_REVISION
  660. LT_CURRENT
  661. LT_RELEASE
  662. RC
  663. CPP
  664. LT_SYS_LIBRARY_PATH
  665. OTOOL64
  666. OTOOL
  667. LIPO
  668. NMEDIT
  669. DSYMUTIL
  670. MANIFEST_TOOL
  671. AWK
  672. RANLIB
  673. STRIP
  674. ac_ct_AR
  675. AR
  676. LN_S
  677. NM
  678. ac_ct_DUMPBIN
  679. DUMPBIN
  680. LD
  681. FGREP
  682. EGREP
  683. GREP
  684. SED
  685. OBJEXT
  686. EXEEXT
  687. ac_ct_CC
  688. CPPFLAGS
  689. LDFLAGS
  690. CFLAGS
  691. CC
  692. host_os
  693. host_vendor
  694. host_cpu
  695. host
  696. build_os
  697. build_vendor
  698. build_cpu
  699. build
  700. LIBTOOL
  701. OBJDUMP
  702. DLLTOOL
  703. AS
  704. SDL_VERSION
  705. SDL_BINARY_AGE
  706. SDL_INTERFACE_AGE
  707. SDL_MICRO_VERSION
  708. SDL_MINOR_VERSION
  709. SDL_MAJOR_VERSION
  710. target_alias
  711. host_alias
  712. build_alias
  713. LIBS
  714. ECHO_T
  715. ECHO_N
  716. ECHO_C
  717. DEFS
  718. mandir
  719. localedir
  720. libdir
  721. psdir
  722. pdfdir
  723. dvidir
  724. htmldir
  725. infodir
  726. docdir
  727. oldincludedir
  728. includedir
  729. localstatedir
  730. sharedstatedir
  731. sysconfdir
  732. datadir
  733. datarootdir
  734. libexecdir
  735. sbindir
  736. bindir
  737. program_transform_name
  738. prefix
  739. exec_prefix
  740. PACKAGE_URL
  741. PACKAGE_BUGREPORT
  742. PACKAGE_STRING
  743. PACKAGE_VERSION
  744. PACKAGE_TARNAME
  745. PACKAGE_NAME
  746. PATH_SEPARATOR
  747. SHELL'
  748. ac_subst_files=''
  749. ac_user_opts='
  750. enable_option_checking
  751. enable_shared
  752. enable_static
  753. with_pic
  754. enable_fast_install
  755. with_aix_soname
  756. with_gnu_ld
  757. with_sysroot
  758. enable_libtool_lock
  759. enable_assertions
  760. enable_dependency_tracking
  761. enable_libc
  762. enable_gcc_atomics
  763. enable_atomic
  764. enable_audio
  765. enable_video
  766. enable_render
  767. enable_events
  768. enable_joystick
  769. enable_haptic
  770. enable_hidapi
  771. enable_sensor
  772. enable_power
  773. enable_filesystem
  774. enable_threads
  775. enable_timers
  776. enable_file
  777. enable_misc
  778. enable_locale
  779. enable_loadso
  780. enable_cpuinfo
  781. enable_assembly
  782. enable_ssemath
  783. enable_mmx
  784. enable_3dnow
  785. enable_sse
  786. enable_sse2
  787. enable_sse3
  788. enable_altivec
  789. enable_oss
  790. enable_alsa
  791. with_alsa_prefix
  792. with_alsa_inc_prefix
  793. enable_alsatest
  794. enable_alsa_shared
  795. enable_jack
  796. enable_jack_shared
  797. enable_esd
  798. with_esd_prefix
  799. with_esd_exec_prefix
  800. enable_esdtest
  801. enable_esd_shared
  802. enable_pipewire
  803. enable_pipewire_shared
  804. enable_pulseaudio
  805. enable_pulseaudio_shared
  806. enable_arts
  807. enable_arts_shared
  808. enable_nas
  809. enable_nas_shared
  810. enable_sndio
  811. enable_sndio_shared
  812. enable_fusionsound
  813. enable_fusionsound_shared
  814. enable_diskaudio
  815. enable_dummyaudio
  816. enable_libsamplerate
  817. enable_libsamplerate_shared
  818. enable_arm_simd
  819. enable_arm_neon
  820. enable_video_wayland
  821. enable_video_wayland_qt_touch
  822. enable_wayland_shared
  823. enable_libdecor
  824. enable_libdecor_shared
  825. enable_video_rpi
  826. enable_video_x11
  827. with_x
  828. enable_x11_shared
  829. enable_video_x11_xcursor
  830. enable_video_x11_xdbe
  831. enable_video_x11_xinput
  832. enable_video_x11_xfixes
  833. enable_video_x11_xrandr
  834. enable_video_x11_scrnsaver
  835. enable_video_x11_xshape
  836. enable_video_vivante
  837. enable_video_cocoa
  838. enable_video_metal
  839. enable_render_metal
  840. enable_video_directfb
  841. enable_directfb_shared
  842. enable_video_kmsdrm
  843. enable_kmsdrm_shared
  844. enable_video_dummy
  845. enable_video_offscreen
  846. enable_video_opengl
  847. enable_video_opengles
  848. enable_video_opengles1
  849. enable_video_opengles2
  850. enable_video_vulkan
  851. enable_libudev
  852. enable_dbus
  853. enable_ime
  854. enable_ibus
  855. enable_fcitx
  856. enable_joystick_mfi
  857. enable_pthreads
  858. enable_pthread_sem
  859. enable_directx
  860. enable_xinput
  861. enable_wasapi
  862. enable_hidapi_joystick
  863. enable_hidapi_libusb
  864. enable_clock_gettime
  865. enable_rpath
  866. enable_backgrounding_signal
  867. enable_foregrounding_signal
  868. enable_joystick_virtual
  869. enable_render_d3d
  870. enable_sdl2_config
  871. '
  872. ac_precious_vars='build_alias
  873. host_alias
  874. target_alias
  875. CC
  876. CFLAGS
  877. LDFLAGS
  878. LIBS
  879. CPPFLAGS
  880. LT_SYS_LIBRARY_PATH
  881. CPP
  882. CXX
  883. CXXFLAGS
  884. CCC
  885. CXXCPP
  886. PKG_CONFIG
  887. PKG_CONFIG_PATH
  888. PKG_CONFIG_LIBDIR
  889. JACK_CFLAGS
  890. JACK_LIBS
  891. PIPEWIRE_CFLAGS
  892. PIPEWIRE_LIBS
  893. PULSEAUDIO_CFLAGS
  894. PULSEAUDIO_LIBS
  895. FUSIONSOUND_CFLAGS
  896. FUSIONSOUND_LIBS
  897. DECOR_CFLAGS
  898. DECOR_LIBS
  899. RPI_CFLAGS
  900. RPI_LIBS
  901. XMKMF
  902. DIRECTFB_CFLAGS
  903. DIRECTFB_LIBS
  904. LIBDRM_CFLAGS
  905. LIBDRM_LIBS
  906. LIBGBM_CFLAGS
  907. LIBGBM_LIBS
  908. DBUS_CFLAGS
  909. DBUS_LIBS
  910. IBUS_CFLAGS
  911. IBUS_LIBS
  912. LIBUSB_CFLAGS
  913. LIBUSB_LIBS'
  914. # Initialize some variables set by options.
  915. ac_init_help=
  916. ac_init_version=false
  917. ac_unrecognized_opts=
  918. ac_unrecognized_sep=
  919. # The variables have the same names as the options, with
  920. # dashes changed to underlines.
  921. cache_file=/dev/null
  922. exec_prefix=NONE
  923. no_create=
  924. no_recursion=
  925. prefix=NONE
  926. program_prefix=NONE
  927. program_suffix=NONE
  928. program_transform_name=s,x,x,
  929. silent=
  930. site=
  931. srcdir=
  932. verbose=
  933. x_includes=NONE
  934. x_libraries=NONE
  935. # Installation directory options.
  936. # These are left unexpanded so users can "make install exec_prefix=/foo"
  937. # and all the variables that are supposed to be based on exec_prefix
  938. # by default will actually change.
  939. # Use braces instead of parens because sh, perl, etc. also accept them.
  940. # (The list follows the same order as the GNU Coding Standards.)
  941. bindir='${exec_prefix}/bin'
  942. sbindir='${exec_prefix}/sbin'
  943. libexecdir='${exec_prefix}/libexec'
  944. datarootdir='${prefix}/share'
  945. datadir='${datarootdir}'
  946. sysconfdir='${prefix}/etc'
  947. sharedstatedir='${prefix}/com'
  948. localstatedir='${prefix}/var'
  949. includedir='${prefix}/include'
  950. oldincludedir='/usr/include'
  951. docdir='${datarootdir}/doc/${PACKAGE}'
  952. infodir='${datarootdir}/info'
  953. htmldir='${docdir}'
  954. dvidir='${docdir}'
  955. pdfdir='${docdir}'
  956. psdir='${docdir}'
  957. libdir='${exec_prefix}/lib'
  958. localedir='${datarootdir}/locale'
  959. mandir='${datarootdir}/man'
  960. ac_prev=
  961. ac_dashdash=
  962. for ac_option
  963. do
  964. # If the previous option needs an argument, assign it.
  965. if test -n "$ac_prev"; then
  966. eval $ac_prev=\$ac_option
  967. ac_prev=
  968. continue
  969. fi
  970. case $ac_option in
  971. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  972. *=) ac_optarg= ;;
  973. *) ac_optarg=yes ;;
  974. esac
  975. # Accept the important Cygnus configure options, so we can diagnose typos.
  976. case $ac_dashdash$ac_option in
  977. --)
  978. ac_dashdash=yes ;;
  979. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  980. ac_prev=bindir ;;
  981. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  982. bindir=$ac_optarg ;;
  983. -build | --build | --buil | --bui | --bu)
  984. ac_prev=build_alias ;;
  985. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  986. build_alias=$ac_optarg ;;
  987. -cache-file | --cache-file | --cache-fil | --cache-fi \
  988. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  989. ac_prev=cache_file ;;
  990. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  991. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  992. cache_file=$ac_optarg ;;
  993. --config-cache | -C)
  994. cache_file=config.cache ;;
  995. -datadir | --datadir | --datadi | --datad)
  996. ac_prev=datadir ;;
  997. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  998. datadir=$ac_optarg ;;
  999. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1000. | --dataroo | --dataro | --datar)
  1001. ac_prev=datarootdir ;;
  1002. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1003. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1004. datarootdir=$ac_optarg ;;
  1005. -disable-* | --disable-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error $? "invalid feature name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "enable_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval enable_$ac_useropt=no ;;
  1020. -docdir | --docdir | --docdi | --doc | --do)
  1021. ac_prev=docdir ;;
  1022. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1023. docdir=$ac_optarg ;;
  1024. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1025. ac_prev=dvidir ;;
  1026. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1027. dvidir=$ac_optarg ;;
  1028. -enable-* | --enable-*)
  1029. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1032. as_fn_error $? "invalid feature name: $ac_useropt"
  1033. ac_useropt_orig=$ac_useropt
  1034. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1035. case $ac_user_opts in
  1036. *"
  1037. "enable_$ac_useropt"
  1038. "*) ;;
  1039. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1040. ac_unrecognized_sep=', ';;
  1041. esac
  1042. eval enable_$ac_useropt=\$ac_optarg ;;
  1043. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1044. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1045. | --exec | --exe | --ex)
  1046. ac_prev=exec_prefix ;;
  1047. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1048. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1049. | --exec=* | --exe=* | --ex=*)
  1050. exec_prefix=$ac_optarg ;;
  1051. -gas | --gas | --ga | --g)
  1052. # Obsolete; use --with-gas.
  1053. with_gas=yes ;;
  1054. -help | --help | --hel | --he | -h)
  1055. ac_init_help=long ;;
  1056. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1057. ac_init_help=recursive ;;
  1058. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1059. ac_init_help=short ;;
  1060. -host | --host | --hos | --ho)
  1061. ac_prev=host_alias ;;
  1062. -host=* | --host=* | --hos=* | --ho=*)
  1063. host_alias=$ac_optarg ;;
  1064. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1065. ac_prev=htmldir ;;
  1066. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1067. | --ht=*)
  1068. htmldir=$ac_optarg ;;
  1069. -includedir | --includedir | --includedi | --included | --include \
  1070. | --includ | --inclu | --incl | --inc)
  1071. ac_prev=includedir ;;
  1072. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1073. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1074. includedir=$ac_optarg ;;
  1075. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1076. ac_prev=infodir ;;
  1077. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1078. infodir=$ac_optarg ;;
  1079. -libdir | --libdir | --libdi | --libd)
  1080. ac_prev=libdir ;;
  1081. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1082. libdir=$ac_optarg ;;
  1083. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1084. | --libexe | --libex | --libe)
  1085. ac_prev=libexecdir ;;
  1086. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1087. | --libexe=* | --libex=* | --libe=*)
  1088. libexecdir=$ac_optarg ;;
  1089. -localedir | --localedir | --localedi | --localed | --locale)
  1090. ac_prev=localedir ;;
  1091. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1092. localedir=$ac_optarg ;;
  1093. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1094. | --localstate | --localstat | --localsta | --localst | --locals)
  1095. ac_prev=localstatedir ;;
  1096. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1097. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1098. localstatedir=$ac_optarg ;;
  1099. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1100. ac_prev=mandir ;;
  1101. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1102. mandir=$ac_optarg ;;
  1103. -nfp | --nfp | --nf)
  1104. # Obsolete; use --without-fp.
  1105. with_fp=no ;;
  1106. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1107. | --no-cr | --no-c | -n)
  1108. no_create=yes ;;
  1109. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1110. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1111. no_recursion=yes ;;
  1112. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1113. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1114. | --oldin | --oldi | --old | --ol | --o)
  1115. ac_prev=oldincludedir ;;
  1116. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1117. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1118. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1119. oldincludedir=$ac_optarg ;;
  1120. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1121. ac_prev=prefix ;;
  1122. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1123. prefix=$ac_optarg ;;
  1124. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1125. | --program-pre | --program-pr | --program-p)
  1126. ac_prev=program_prefix ;;
  1127. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1128. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1129. program_prefix=$ac_optarg ;;
  1130. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1131. | --program-suf | --program-su | --program-s)
  1132. ac_prev=program_suffix ;;
  1133. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1134. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1135. program_suffix=$ac_optarg ;;
  1136. -program-transform-name | --program-transform-name \
  1137. | --program-transform-nam | --program-transform-na \
  1138. | --program-transform-n | --program-transform- \
  1139. | --program-transform | --program-transfor \
  1140. | --program-transfo | --program-transf \
  1141. | --program-trans | --program-tran \
  1142. | --progr-tra | --program-tr | --program-t)
  1143. ac_prev=program_transform_name ;;
  1144. -program-transform-name=* | --program-transform-name=* \
  1145. | --program-transform-nam=* | --program-transform-na=* \
  1146. | --program-transform-n=* | --program-transform-=* \
  1147. | --program-transform=* | --program-transfor=* \
  1148. | --program-transfo=* | --program-transf=* \
  1149. | --program-trans=* | --program-tran=* \
  1150. | --progr-tra=* | --program-tr=* | --program-t=*)
  1151. program_transform_name=$ac_optarg ;;
  1152. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1153. ac_prev=pdfdir ;;
  1154. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1155. pdfdir=$ac_optarg ;;
  1156. -psdir | --psdir | --psdi | --psd | --ps)
  1157. ac_prev=psdir ;;
  1158. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1159. psdir=$ac_optarg ;;
  1160. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1161. | -silent | --silent | --silen | --sile | --sil)
  1162. silent=yes ;;
  1163. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1164. ac_prev=sbindir ;;
  1165. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1166. | --sbi=* | --sb=*)
  1167. sbindir=$ac_optarg ;;
  1168. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1169. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1170. | --sharedst | --shareds | --shared | --share | --shar \
  1171. | --sha | --sh)
  1172. ac_prev=sharedstatedir ;;
  1173. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1174. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1175. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1176. | --sha=* | --sh=*)
  1177. sharedstatedir=$ac_optarg ;;
  1178. -site | --site | --sit)
  1179. ac_prev=site ;;
  1180. -site=* | --site=* | --sit=*)
  1181. site=$ac_optarg ;;
  1182. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1183. ac_prev=srcdir ;;
  1184. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1185. srcdir=$ac_optarg ;;
  1186. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1187. | --syscon | --sysco | --sysc | --sys | --sy)
  1188. ac_prev=sysconfdir ;;
  1189. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1190. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1191. sysconfdir=$ac_optarg ;;
  1192. -target | --target | --targe | --targ | --tar | --ta | --t)
  1193. ac_prev=target_alias ;;
  1194. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1195. target_alias=$ac_optarg ;;
  1196. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1197. verbose=yes ;;
  1198. -version | --version | --versio | --versi | --vers | -V)
  1199. ac_init_version=: ;;
  1200. -with-* | --with-*)
  1201. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1202. # Reject names that are not valid shell variable names.
  1203. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1204. as_fn_error $? "invalid package name: $ac_useropt"
  1205. ac_useropt_orig=$ac_useropt
  1206. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1207. case $ac_user_opts in
  1208. *"
  1209. "with_$ac_useropt"
  1210. "*) ;;
  1211. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1212. ac_unrecognized_sep=', ';;
  1213. esac
  1214. eval with_$ac_useropt=\$ac_optarg ;;
  1215. -without-* | --without-*)
  1216. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1217. # Reject names that are not valid shell variable names.
  1218. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1219. as_fn_error $? "invalid package name: $ac_useropt"
  1220. ac_useropt_orig=$ac_useropt
  1221. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1222. case $ac_user_opts in
  1223. *"
  1224. "with_$ac_useropt"
  1225. "*) ;;
  1226. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1227. ac_unrecognized_sep=', ';;
  1228. esac
  1229. eval with_$ac_useropt=no ;;
  1230. --x)
  1231. # Obsolete; use --with-x.
  1232. with_x=yes ;;
  1233. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1234. | --x-incl | --x-inc | --x-in | --x-i)
  1235. ac_prev=x_includes ;;
  1236. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1237. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1238. x_includes=$ac_optarg ;;
  1239. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1240. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1241. ac_prev=x_libraries ;;
  1242. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1243. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1244. x_libraries=$ac_optarg ;;
  1245. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1246. Try \`$0 --help' for more information"
  1247. ;;
  1248. *=*)
  1249. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1250. # Reject names that are not valid shell variable names.
  1251. case $ac_envvar in #(
  1252. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1253. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1254. esac
  1255. eval $ac_envvar=\$ac_optarg
  1256. export $ac_envvar ;;
  1257. *)
  1258. # FIXME: should be removed in autoconf 3.0.
  1259. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1260. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1261. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1262. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1263. ;;
  1264. esac
  1265. done
  1266. if test -n "$ac_prev"; then
  1267. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1268. as_fn_error $? "missing argument to $ac_option"
  1269. fi
  1270. if test -n "$ac_unrecognized_opts"; then
  1271. case $enable_option_checking in
  1272. no) ;;
  1273. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1274. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1275. esac
  1276. fi
  1277. # Check all directory arguments for consistency.
  1278. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1279. datadir sysconfdir sharedstatedir localstatedir includedir \
  1280. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1281. libdir localedir mandir
  1282. do
  1283. eval ac_val=\$$ac_var
  1284. # Remove trailing slashes.
  1285. case $ac_val in
  1286. */ )
  1287. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1288. eval $ac_var=\$ac_val;;
  1289. esac
  1290. # Be sure to have absolute directory names.
  1291. case $ac_val in
  1292. [\\/$]* | ?:[\\/]* ) continue;;
  1293. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1294. esac
  1295. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1296. done
  1297. # There might be people who depend on the old broken behavior: `$host'
  1298. # used to hold the argument of --host etc.
  1299. # FIXME: To remove some day.
  1300. build=$build_alias
  1301. host=$host_alias
  1302. target=$target_alias
  1303. # FIXME: To remove some day.
  1304. if test "x$host_alias" != x; then
  1305. if test "x$build_alias" = x; then
  1306. cross_compiling=maybe
  1307. elif test "x$build_alias" != "x$host_alias"; then
  1308. cross_compiling=yes
  1309. fi
  1310. fi
  1311. ac_tool_prefix=
  1312. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1313. test "$silent" = yes && exec 6>/dev/null
  1314. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1315. ac_ls_di=`ls -di .` &&
  1316. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1317. as_fn_error $? "working directory cannot be determined"
  1318. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1319. as_fn_error $? "pwd does not report name of working directory"
  1320. # Find the source files, if location was not specified.
  1321. if test -z "$srcdir"; then
  1322. ac_srcdir_defaulted=yes
  1323. # Try the directory containing this script, then the parent directory.
  1324. ac_confdir=`$as_dirname -- "$as_myself" ||
  1325. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1326. X"$as_myself" : 'X\(//\)[^/]' \| \
  1327. X"$as_myself" : 'X\(//\)$' \| \
  1328. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1329. $as_echo X"$as_myself" |
  1330. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1331. s//\1/
  1332. q
  1333. }
  1334. /^X\(\/\/\)[^/].*/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\/\)$/{
  1339. s//\1/
  1340. q
  1341. }
  1342. /^X\(\/\).*/{
  1343. s//\1/
  1344. q
  1345. }
  1346. s/.*/./; q'`
  1347. srcdir=$ac_confdir
  1348. if test ! -r "$srcdir/$ac_unique_file"; then
  1349. srcdir=..
  1350. fi
  1351. else
  1352. ac_srcdir_defaulted=no
  1353. fi
  1354. if test ! -r "$srcdir/$ac_unique_file"; then
  1355. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1356. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1357. fi
  1358. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1359. ac_abs_confdir=`(
  1360. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1361. pwd)`
  1362. # When building in place, set srcdir=.
  1363. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1364. srcdir=.
  1365. fi
  1366. # Remove unnecessary trailing slashes from srcdir.
  1367. # Double slashes in file names in object file debugging info
  1368. # mess up M-x gdb in Emacs.
  1369. case $srcdir in
  1370. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1371. esac
  1372. for ac_var in $ac_precious_vars; do
  1373. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1374. eval ac_env_${ac_var}_value=\$${ac_var}
  1375. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1376. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1377. done
  1378. #
  1379. # Report the --help message.
  1380. #
  1381. if test "$ac_init_help" = "long"; then
  1382. # Omit some internal or obsolete options to make the list less imposing.
  1383. # This message is too long to be a string in the A/UX 3.1 sh.
  1384. cat <<_ACEOF
  1385. \`configure' configures this package to adapt to many kinds of systems.
  1386. Usage: $0 [OPTION]... [VAR=VALUE]...
  1387. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1388. VAR=VALUE. See below for descriptions of some of the useful variables.
  1389. Defaults for the options are specified in brackets.
  1390. Configuration:
  1391. -h, --help display this help and exit
  1392. --help=short display options specific to this package
  1393. --help=recursive display the short help of all the included packages
  1394. -V, --version display version information and exit
  1395. -q, --quiet, --silent do not print \`checking ...' messages
  1396. --cache-file=FILE cache test results in FILE [disabled]
  1397. -C, --config-cache alias for \`--cache-file=config.cache'
  1398. -n, --no-create do not create output files
  1399. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1400. Installation directories:
  1401. --prefix=PREFIX install architecture-independent files in PREFIX
  1402. [$ac_default_prefix]
  1403. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1404. [PREFIX]
  1405. By default, \`make install' will install all the files in
  1406. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1407. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1408. for instance \`--prefix=\$HOME'.
  1409. For better control, use the options below.
  1410. Fine tuning of the installation directories:
  1411. --bindir=DIR user executables [EPREFIX/bin]
  1412. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1413. --libexecdir=DIR program executables [EPREFIX/libexec]
  1414. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1415. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1416. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1417. --libdir=DIR object code libraries [EPREFIX/lib]
  1418. --includedir=DIR C header files [PREFIX/include]
  1419. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1420. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1421. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1422. --infodir=DIR info documentation [DATAROOTDIR/info]
  1423. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1424. --mandir=DIR man documentation [DATAROOTDIR/man]
  1425. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1426. --htmldir=DIR html documentation [DOCDIR]
  1427. --dvidir=DIR dvi documentation [DOCDIR]
  1428. --pdfdir=DIR pdf documentation [DOCDIR]
  1429. --psdir=DIR ps documentation [DOCDIR]
  1430. _ACEOF
  1431. cat <<\_ACEOF
  1432. X features:
  1433. --x-includes=DIR X include files are in DIR
  1434. --x-libraries=DIR X library files are in DIR
  1435. System types:
  1436. --build=BUILD configure for building on BUILD [guessed]
  1437. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1438. _ACEOF
  1439. fi
  1440. if test -n "$ac_init_help"; then
  1441. cat <<\_ACEOF
  1442. Optional Features:
  1443. --disable-option-checking ignore unrecognized --enable/--with options
  1444. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1445. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1446. --enable-shared[=PKGS] build shared libraries [default=yes]
  1447. --enable-static[=PKGS] build static libraries [default=yes]
  1448. --enable-fast-install[=PKGS]
  1449. optimize for fast installation [default=yes]
  1450. --disable-libtool-lock avoid locking (might break parallel builds)
  1451. --enable-assertions Enable internal sanity checks
  1452. (auto/disabled/release/enabled/paranoid)
  1453. [default=auto]
  1454. --enable-dependency-tracking
  1455. Use gcc -MMD -MT dependency tracking [default=yes]
  1456. --enable-libc Use the system C library [default=yes]
  1457. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1458. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1459. --enable-audio Enable the audio subsystem [default=yes]
  1460. --enable-video Enable the video subsystem [default=yes]
  1461. --enable-render Enable the render subsystem [default=yes]
  1462. --enable-events Enable the events subsystem [default=yes]
  1463. --enable-joystick Enable the joystick subsystem [default=yes]
  1464. --enable-haptic Enable the haptic (force feedback) subsystem
  1465. [default=yes]
  1466. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1467. --enable-sensor Enable the sensor subsystem [default=yes]
  1468. --enable-power Enable the power subsystem [default=yes]
  1469. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1470. --enable-threads Enable the threading subsystem [default=yes]
  1471. --enable-timers Enable the timer subsystem [default=yes]
  1472. --enable-file Enable the file subsystem [default=yes]
  1473. --enable-misc Enable the misc subsystem [default=yes]
  1474. --enable-locale Enable the locale subsystem [default=yes]
  1475. --enable-loadso Enable the shared object loading subsystem
  1476. [default=yes]
  1477. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1478. --enable-assembly Enable assembly routines [default=yes]
  1479. --enable-ssemath Allow GCC to use SSE floating point math
  1480. [default=maybe]
  1481. --enable-mmx use MMX assembly routines [default=yes]
  1482. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1483. --enable-sse use SSE assembly routines [default=yes]
  1484. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1485. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1486. --enable-altivec use Altivec assembly routines [default=yes]
  1487. --enable-oss support the OSS audio API [default=maybe]
  1488. --enable-alsa support the ALSA audio API [default=yes]
  1489. --disable-alsatest Do not try to compile and run a test Alsa program
  1490. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1491. --enable-jack use JACK audio [default=yes]
  1492. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1493. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1494. --disable-esdtest Do not try to compile and run a test ESD program
  1495. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1496. --enable-pipewire use Pipewire audio [default=yes]
  1497. --enable-pipewire-shared
  1498. dynamically load Pipewire support [default=yes]
  1499. --enable-pulseaudio use PulseAudio [default=yes]
  1500. --enable-pulseaudio-shared
  1501. dynamically load PulseAudio support [default=yes]
  1502. --enable-arts support the Analog Real Time Synthesizer
  1503. [default=yes]
  1504. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1505. --enable-nas support the NAS audio API [default=yes]
  1506. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1507. --enable-sndio support the sndio audio API [default=yes]
  1508. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1509. --enable-fusionsound use FusionSound audio driver [default=no]
  1510. --enable-fusionsound-shared
  1511. dynamically load fusionsound audio support
  1512. [default=yes]
  1513. --enable-diskaudio support the disk writer audio driver [default=yes]
  1514. --enable-dummyaudio support the dummy audio driver [default=yes]
  1515. --enable-libsamplerate use libsamplerate for audio rate conversion
  1516. [default=yes]
  1517. --enable-libsamplerate-shared
  1518. dynamically load libsamplerate [default=yes]
  1519. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1520. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1521. --enable-video-wayland use Wayland video driver [default=yes]
  1522. --enable-video-wayland-qt-touch
  1523. QtWayland server support for Wayland video driver
  1524. [default=yes]
  1525. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1526. --enable-libdecor use libdecor for Wayland client-side decorations
  1527. [default=yes]
  1528. --enable-libdecor-shared
  1529. dynamically load libdecor [default=yes]
  1530. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1531. --enable-video-x11 use X11 video driver [default=yes]
  1532. --enable-x11-shared dynamically load X11 support [default=maybe]
  1533. --enable-video-x11-xcursor
  1534. enable X11 Xcursor support [default=yes]
  1535. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1536. --enable-video-x11-xinput
  1537. enable X11 XInput extension for manymouse, tablets,
  1538. etc [default=yes]
  1539. --enable-video-x11-xfixes
  1540. enable X11 Xfixes support [default=yes]
  1541. --enable-video-x11-xrandr
  1542. enable X11 Xrandr extension for fullscreen
  1543. [default=yes]
  1544. --enable-video-x11-scrnsaver
  1545. enable X11 screensaver extension [default=yes]
  1546. --enable-video-x11-xshape
  1547. enable X11 XShape support [default=yes]
  1548. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1549. --enable-video-cocoa use Cocoa video driver [default=yes]
  1550. --enable-video-metal include Metal support [default=yes]
  1551. --enable-render-metal enable the Metal render driver [default=yes]
  1552. --enable-video-directfb use DirectFB video driver [default=no]
  1553. --enable-directfb-shared
  1554. dynamically load directfb support [default=yes]
  1555. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1556. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1557. --enable-video-dummy use dummy video driver [default=yes]
  1558. --enable-video-offscreen
  1559. use offscreen video driver [default=no]
  1560. --enable-video-opengl include OpenGL support [default=yes]
  1561. --enable-video-opengles include OpenGL ES support [default=yes]
  1562. --enable-video-opengles1
  1563. include OpenGL ES 1.1 support [default=yes]
  1564. --enable-video-opengles2
  1565. include OpenGL ES 2.0 support [default=yes]
  1566. --enable-video-vulkan include Vulkan support [default=yes]
  1567. --enable-libudev enable libudev support [default=yes]
  1568. --enable-dbus enable D-Bus support [default=yes]
  1569. --enable-ime enable IME support [default=yes]
  1570. --enable-ibus enable IBus support [default=yes]
  1571. --enable-fcitx enable fcitx support [default=yes]
  1572. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1573. --enable-pthreads use POSIX threads for multi-threading
  1574. [default=maybe]
  1575. --enable-pthread-sem use pthread semaphores [default=maybe]
  1576. --enable-directx use DirectX for Windows audio/video [default=yes]
  1577. --enable-xinput use Xinput for Windows [default=yes]
  1578. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1579. --enable-hidapi-joystick
  1580. use HIDAPI for low level joystick drivers
  1581. [default=yes]
  1582. --enable-hidapi-libusb use libusb for low level joystick drivers
  1583. [default=maybe]
  1584. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1585. UNIX [default=yes]
  1586. --enable-rpath use an rpath when linking SDL [default=yes]
  1587. --enable-backgrounding-signal
  1588. number to use for magic backgrounding signal or 'no'
  1589. [default=no]
  1590. --enable-foregrounding-signal
  1591. number to use for magic foregrounding signal or 'no'
  1592. [default=no]
  1593. --enable-joystick-virtual
  1594. enable virtual joystick APIs [default=yes]
  1595. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1596. --enable-sdl2-config Install sdl2-config [default=yes]
  1597. Optional Packages:
  1598. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1599. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1600. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1601. both]
  1602. --with-aix-soname=aix|svr4|both
  1603. shared library versioning (aka "SONAME") variant to
  1604. provide on AIX, [default=aix].
  1605. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1606. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1607. compiler's sysroot if not specified).
  1608. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1609. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1610. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1611. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1612. --with-x use the X Window System
  1613. Some influential environment variables:
  1614. CC C compiler command
  1615. CFLAGS C compiler flags
  1616. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1617. nonstandard directory <lib dir>
  1618. LIBS libraries to pass to the linker, e.g. -l<library>
  1619. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1620. you have headers in a nonstandard directory <include dir>
  1621. LT_SYS_LIBRARY_PATH
  1622. User-defined run-time library search path.
  1623. CPP C preprocessor
  1624. CXX C++ compiler command
  1625. CXXFLAGS C++ compiler flags
  1626. CXXCPP C++ preprocessor
  1627. PKG_CONFIG path to pkg-config utility
  1628. PKG_CONFIG_PATH
  1629. directories to add to pkg-config's search path
  1630. PKG_CONFIG_LIBDIR
  1631. path overriding pkg-config's built-in search path
  1632. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1633. JACK_LIBS linker flags for JACK, overriding pkg-config
  1634. PIPEWIRE_CFLAGS
  1635. C compiler flags for PIPEWIRE, overriding pkg-config
  1636. PIPEWIRE_LIBS
  1637. linker flags for PIPEWIRE, overriding pkg-config
  1638. PULSEAUDIO_CFLAGS
  1639. C compiler flags for PULSEAUDIO, overriding pkg-config
  1640. PULSEAUDIO_LIBS
  1641. linker flags for PULSEAUDIO, overriding pkg-config
  1642. FUSIONSOUND_CFLAGS
  1643. C compiler flags for FUSIONSOUND, overriding pkg-config
  1644. FUSIONSOUND_LIBS
  1645. linker flags for FUSIONSOUND, overriding pkg-config
  1646. DECOR_CFLAGS
  1647. C compiler flags for DECOR, overriding pkg-config
  1648. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1649. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1650. RPI_LIBS linker flags for RPI, overriding pkg-config
  1651. XMKMF Path to xmkmf, Makefile generator for X Window System
  1652. DIRECTFB_CFLAGS
  1653. C compiler flags for DIRECTFB, overriding pkg-config
  1654. DIRECTFB_LIBS
  1655. linker flags for DIRECTFB, overriding pkg-config
  1656. LIBDRM_CFLAGS
  1657. C compiler flags for LIBDRM, overriding pkg-config
  1658. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1659. LIBGBM_CFLAGS
  1660. C compiler flags for LIBGBM, overriding pkg-config
  1661. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1662. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1663. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1664. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1665. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1666. LIBUSB_CFLAGS
  1667. C compiler flags for LIBUSB, overriding pkg-config
  1668. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1669. Use these variables to override the choices made by `configure' or to help
  1670. it to find libraries and programs with nonstandard names/locations.
  1671. Report bugs to the package provider.
  1672. _ACEOF
  1673. ac_status=$?
  1674. fi
  1675. if test "$ac_init_help" = "recursive"; then
  1676. # If there are subdirs, report their specific --help.
  1677. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1678. test -d "$ac_dir" ||
  1679. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1680. continue
  1681. ac_builddir=.
  1682. case "$ac_dir" in
  1683. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1684. *)
  1685. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1686. # A ".." for each directory in $ac_dir_suffix.
  1687. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1688. case $ac_top_builddir_sub in
  1689. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1690. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1691. esac ;;
  1692. esac
  1693. ac_abs_top_builddir=$ac_pwd
  1694. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1695. # for backward compatibility:
  1696. ac_top_builddir=$ac_top_build_prefix
  1697. case $srcdir in
  1698. .) # We are building in place.
  1699. ac_srcdir=.
  1700. ac_top_srcdir=$ac_top_builddir_sub
  1701. ac_abs_top_srcdir=$ac_pwd ;;
  1702. [\\/]* | ?:[\\/]* ) # Absolute name.
  1703. ac_srcdir=$srcdir$ac_dir_suffix;
  1704. ac_top_srcdir=$srcdir
  1705. ac_abs_top_srcdir=$srcdir ;;
  1706. *) # Relative name.
  1707. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1708. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1709. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1710. esac
  1711. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1712. cd "$ac_dir" || { ac_status=$?; continue; }
  1713. # Check for guested configure.
  1714. if test -f "$ac_srcdir/configure.gnu"; then
  1715. echo &&
  1716. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1717. elif test -f "$ac_srcdir/configure"; then
  1718. echo &&
  1719. $SHELL "$ac_srcdir/configure" --help=recursive
  1720. else
  1721. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1722. fi || ac_status=$?
  1723. cd "$ac_pwd" || { ac_status=$?; break; }
  1724. done
  1725. fi
  1726. test -n "$ac_init_help" && exit $ac_status
  1727. if $ac_init_version; then
  1728. cat <<\_ACEOF
  1729. configure
  1730. generated by GNU Autoconf 2.69
  1731. Copyright (C) 2012 Free Software Foundation, Inc.
  1732. This configure script is free software; the Free Software Foundation
  1733. gives unlimited permission to copy, distribute and modify it.
  1734. _ACEOF
  1735. exit
  1736. fi
  1737. ## ------------------------ ##
  1738. ## Autoconf initialization. ##
  1739. ## ------------------------ ##
  1740. # ac_fn_c_try_compile LINENO
  1741. # --------------------------
  1742. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1743. ac_fn_c_try_compile ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. rm -f conftest.$ac_objext
  1747. if { { ac_try="$ac_compile"
  1748. case "(($ac_try" in
  1749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1750. *) ac_try_echo=$ac_try;;
  1751. esac
  1752. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1753. $as_echo "$ac_try_echo"; } >&5
  1754. (eval "$ac_compile") 2>conftest.err
  1755. ac_status=$?
  1756. if test -s conftest.err; then
  1757. grep -v '^ *+' conftest.err >conftest.er1
  1758. cat conftest.er1 >&5
  1759. mv -f conftest.er1 conftest.err
  1760. fi
  1761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1762. test $ac_status = 0; } && {
  1763. test -z "$ac_c_werror_flag" ||
  1764. test ! -s conftest.err
  1765. } && test -s conftest.$ac_objext; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: failed program was:" >&5
  1769. sed 's/^/| /' conftest.$ac_ext >&5
  1770. ac_retval=1
  1771. fi
  1772. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1773. as_fn_set_status $ac_retval
  1774. } # ac_fn_c_try_compile
  1775. # ac_fn_c_try_link LINENO
  1776. # -----------------------
  1777. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1778. ac_fn_c_try_link ()
  1779. {
  1780. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1781. rm -f conftest.$ac_objext conftest$ac_exeext
  1782. if { { ac_try="$ac_link"
  1783. case "(($ac_try" in
  1784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1785. *) ac_try_echo=$ac_try;;
  1786. esac
  1787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1788. $as_echo "$ac_try_echo"; } >&5
  1789. (eval "$ac_link") 2>conftest.err
  1790. ac_status=$?
  1791. if test -s conftest.err; then
  1792. grep -v '^ *+' conftest.err >conftest.er1
  1793. cat conftest.er1 >&5
  1794. mv -f conftest.er1 conftest.err
  1795. fi
  1796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1797. test $ac_status = 0; } && {
  1798. test -z "$ac_c_werror_flag" ||
  1799. test ! -s conftest.err
  1800. } && test -s conftest$ac_exeext && {
  1801. test "$cross_compiling" = yes ||
  1802. test -x conftest$ac_exeext
  1803. }; then :
  1804. ac_retval=0
  1805. else
  1806. $as_echo "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808. ac_retval=1
  1809. fi
  1810. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1811. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1812. # interfere with the next link command; also delete a directory that is
  1813. # left behind by Apple's compiler. We do this before executing the actions.
  1814. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1815. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1816. as_fn_set_status $ac_retval
  1817. } # ac_fn_c_try_link
  1818. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1819. # -------------------------------------------------------
  1820. # Tests whether HEADER exists and can be compiled using the include files in
  1821. # INCLUDES, setting the cache variable VAR accordingly.
  1822. ac_fn_c_check_header_compile ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1826. $as_echo_n "checking for $2... " >&6; }
  1827. if eval \${$3+:} false; then :
  1828. $as_echo_n "(cached) " >&6
  1829. else
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. $4
  1833. #include <$2>
  1834. _ACEOF
  1835. if ac_fn_c_try_compile "$LINENO"; then :
  1836. eval "$3=yes"
  1837. else
  1838. eval "$3=no"
  1839. fi
  1840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1841. fi
  1842. eval ac_res=\$$3
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1844. $as_echo "$ac_res" >&6; }
  1845. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1846. } # ac_fn_c_check_header_compile
  1847. # ac_fn_c_try_cpp LINENO
  1848. # ----------------------
  1849. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1850. ac_fn_c_try_cpp ()
  1851. {
  1852. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1853. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1854. case "(($ac_try" in
  1855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1856. *) ac_try_echo=$ac_try;;
  1857. esac
  1858. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1859. $as_echo "$ac_try_echo"; } >&5
  1860. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1861. ac_status=$?
  1862. if test -s conftest.err; then
  1863. grep -v '^ *+' conftest.err >conftest.er1
  1864. cat conftest.er1 >&5
  1865. mv -f conftest.er1 conftest.err
  1866. fi
  1867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1868. test $ac_status = 0; } > conftest.i && {
  1869. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1870. test ! -s conftest.err
  1871. }; then :
  1872. ac_retval=0
  1873. else
  1874. $as_echo "$as_me: failed program was:" >&5
  1875. sed 's/^/| /' conftest.$ac_ext >&5
  1876. ac_retval=1
  1877. fi
  1878. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1879. as_fn_set_status $ac_retval
  1880. } # ac_fn_c_try_cpp
  1881. # ac_fn_c_try_run LINENO
  1882. # ----------------------
  1883. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1884. # that executables *can* be run.
  1885. ac_fn_c_try_run ()
  1886. {
  1887. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1888. if { { ac_try="$ac_link"
  1889. case "(($ac_try" in
  1890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1891. *) ac_try_echo=$ac_try;;
  1892. esac
  1893. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1894. $as_echo "$ac_try_echo"; } >&5
  1895. (eval "$ac_link") 2>&5
  1896. ac_status=$?
  1897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1898. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1899. { { case "(($ac_try" in
  1900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1901. *) ac_try_echo=$ac_try;;
  1902. esac
  1903. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1904. $as_echo "$ac_try_echo"; } >&5
  1905. (eval "$ac_try") 2>&5
  1906. ac_status=$?
  1907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1908. test $ac_status = 0; }; }; then :
  1909. ac_retval=0
  1910. else
  1911. $as_echo "$as_me: program exited with status $ac_status" >&5
  1912. $as_echo "$as_me: failed program was:" >&5
  1913. sed 's/^/| /' conftest.$ac_ext >&5
  1914. ac_retval=$ac_status
  1915. fi
  1916. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1917. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1918. as_fn_set_status $ac_retval
  1919. } # ac_fn_c_try_run
  1920. # ac_fn_c_check_func LINENO FUNC VAR
  1921. # ----------------------------------
  1922. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1923. ac_fn_c_check_func ()
  1924. {
  1925. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1927. $as_echo_n "checking for $2... " >&6; }
  1928. if eval \${$3+:} false; then :
  1929. $as_echo_n "(cached) " >&6
  1930. else
  1931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1932. /* end confdefs.h. */
  1933. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1934. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1935. #define $2 innocuous_$2
  1936. /* System header to define __stub macros and hopefully few prototypes,
  1937. which can conflict with char $2 (); below.
  1938. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1939. <limits.h> exists even on freestanding compilers. */
  1940. #ifdef __STDC__
  1941. # include <limits.h>
  1942. #else
  1943. # include <assert.h>
  1944. #endif
  1945. #undef $2
  1946. /* Override any GCC internal prototype to avoid an error.
  1947. Use char because int might match the return type of a GCC
  1948. builtin and then its argument prototype would still apply. */
  1949. #ifdef __cplusplus
  1950. extern "C"
  1951. #endif
  1952. char $2 ();
  1953. /* The GNU C library defines this for functions which it implements
  1954. to always fail with ENOSYS. Some functions are actually named
  1955. something starting with __ and the normal name is an alias. */
  1956. #if defined __stub_$2 || defined __stub___$2
  1957. choke me
  1958. #endif
  1959. int
  1960. main ()
  1961. {
  1962. return $2 ();
  1963. ;
  1964. return 0;
  1965. }
  1966. _ACEOF
  1967. if ac_fn_c_try_link "$LINENO"; then :
  1968. eval "$3=yes"
  1969. else
  1970. eval "$3=no"
  1971. fi
  1972. rm -f core conftest.err conftest.$ac_objext \
  1973. conftest$ac_exeext conftest.$ac_ext
  1974. fi
  1975. eval ac_res=\$$3
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1977. $as_echo "$ac_res" >&6; }
  1978. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979. } # ac_fn_c_check_func
  1980. # ac_fn_cxx_try_compile LINENO
  1981. # ----------------------------
  1982. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1983. ac_fn_cxx_try_compile ()
  1984. {
  1985. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1986. rm -f conftest.$ac_objext
  1987. if { { ac_try="$ac_compile"
  1988. case "(($ac_try" in
  1989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1990. *) ac_try_echo=$ac_try;;
  1991. esac
  1992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1993. $as_echo "$ac_try_echo"; } >&5
  1994. (eval "$ac_compile") 2>conftest.err
  1995. ac_status=$?
  1996. if test -s conftest.err; then
  1997. grep -v '^ *+' conftest.err >conftest.er1
  1998. cat conftest.er1 >&5
  1999. mv -f conftest.er1 conftest.err
  2000. fi
  2001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2002. test $ac_status = 0; } && {
  2003. test -z "$ac_cxx_werror_flag" ||
  2004. test ! -s conftest.err
  2005. } && test -s conftest.$ac_objext; then :
  2006. ac_retval=0
  2007. else
  2008. $as_echo "$as_me: failed program was:" >&5
  2009. sed 's/^/| /' conftest.$ac_ext >&5
  2010. ac_retval=1
  2011. fi
  2012. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2013. as_fn_set_status $ac_retval
  2014. } # ac_fn_cxx_try_compile
  2015. # ac_fn_cxx_try_cpp LINENO
  2016. # ------------------------
  2017. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2018. ac_fn_cxx_try_cpp ()
  2019. {
  2020. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2021. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2022. case "(($ac_try" in
  2023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2024. *) ac_try_echo=$ac_try;;
  2025. esac
  2026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2027. $as_echo "$ac_try_echo"; } >&5
  2028. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2029. ac_status=$?
  2030. if test -s conftest.err; then
  2031. grep -v '^ *+' conftest.err >conftest.er1
  2032. cat conftest.er1 >&5
  2033. mv -f conftest.er1 conftest.err
  2034. fi
  2035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2036. test $ac_status = 0; } > conftest.i && {
  2037. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2038. test ! -s conftest.err
  2039. }; then :
  2040. ac_retval=0
  2041. else
  2042. $as_echo "$as_me: failed program was:" >&5
  2043. sed 's/^/| /' conftest.$ac_ext >&5
  2044. ac_retval=1
  2045. fi
  2046. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2047. as_fn_set_status $ac_retval
  2048. } # ac_fn_cxx_try_cpp
  2049. # ac_fn_cxx_try_link LINENO
  2050. # -------------------------
  2051. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2052. ac_fn_cxx_try_link ()
  2053. {
  2054. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2055. rm -f conftest.$ac_objext conftest$ac_exeext
  2056. if { { ac_try="$ac_link"
  2057. case "(($ac_try" in
  2058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2059. *) ac_try_echo=$ac_try;;
  2060. esac
  2061. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2062. $as_echo "$ac_try_echo"; } >&5
  2063. (eval "$ac_link") 2>conftest.err
  2064. ac_status=$?
  2065. if test -s conftest.err; then
  2066. grep -v '^ *+' conftest.err >conftest.er1
  2067. cat conftest.er1 >&5
  2068. mv -f conftest.er1 conftest.err
  2069. fi
  2070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2071. test $ac_status = 0; } && {
  2072. test -z "$ac_cxx_werror_flag" ||
  2073. test ! -s conftest.err
  2074. } && test -s conftest$ac_exeext && {
  2075. test "$cross_compiling" = yes ||
  2076. test -x conftest$ac_exeext
  2077. }; then :
  2078. ac_retval=0
  2079. else
  2080. $as_echo "$as_me: failed program was:" >&5
  2081. sed 's/^/| /' conftest.$ac_ext >&5
  2082. ac_retval=1
  2083. fi
  2084. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2085. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2086. # interfere with the next link command; also delete a directory that is
  2087. # left behind by Apple's compiler. We do this before executing the actions.
  2088. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2089. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2090. as_fn_set_status $ac_retval
  2091. } # ac_fn_cxx_try_link
  2092. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2093. # -------------------------------------------------------
  2094. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2095. # the include files in INCLUDES and setting the cache variable VAR
  2096. # accordingly.
  2097. ac_fn_c_check_header_mongrel ()
  2098. {
  2099. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2100. if eval \${$3+:} false; then :
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2102. $as_echo_n "checking for $2... " >&6; }
  2103. if eval \${$3+:} false; then :
  2104. $as_echo_n "(cached) " >&6
  2105. fi
  2106. eval ac_res=\$$3
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2108. $as_echo "$ac_res" >&6; }
  2109. else
  2110. # Is the header compilable?
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2112. $as_echo_n "checking $2 usability... " >&6; }
  2113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2114. /* end confdefs.h. */
  2115. $4
  2116. #include <$2>
  2117. _ACEOF
  2118. if ac_fn_c_try_compile "$LINENO"; then :
  2119. ac_header_compiler=yes
  2120. else
  2121. ac_header_compiler=no
  2122. fi
  2123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2125. $as_echo "$ac_header_compiler" >&6; }
  2126. # Is the header present?
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2128. $as_echo_n "checking $2 presence... " >&6; }
  2129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2130. /* end confdefs.h. */
  2131. #include <$2>
  2132. _ACEOF
  2133. if ac_fn_c_try_cpp "$LINENO"; then :
  2134. ac_header_preproc=yes
  2135. else
  2136. ac_header_preproc=no
  2137. fi
  2138. rm -f conftest.err conftest.i conftest.$ac_ext
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2140. $as_echo "$ac_header_preproc" >&6; }
  2141. # So? What about this header?
  2142. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2143. yes:no: )
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2145. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2147. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2148. ;;
  2149. no:yes:* )
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2151. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2153. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2155. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2157. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2159. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2160. ;;
  2161. esac
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2163. $as_echo_n "checking for $2... " >&6; }
  2164. if eval \${$3+:} false; then :
  2165. $as_echo_n "(cached) " >&6
  2166. else
  2167. eval "$3=\$ac_header_compiler"
  2168. fi
  2169. eval ac_res=\$$3
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2171. $as_echo "$ac_res" >&6; }
  2172. fi
  2173. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2174. } # ac_fn_c_check_header_mongrel
  2175. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2176. # -------------------------------------------
  2177. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2178. # variable VAR accordingly.
  2179. ac_fn_c_check_type ()
  2180. {
  2181. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2183. $as_echo_n "checking for $2... " >&6; }
  2184. if eval \${$3+:} false; then :
  2185. $as_echo_n "(cached) " >&6
  2186. else
  2187. eval "$3=no"
  2188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2189. /* end confdefs.h. */
  2190. $4
  2191. int
  2192. main ()
  2193. {
  2194. if (sizeof ($2))
  2195. return 0;
  2196. ;
  2197. return 0;
  2198. }
  2199. _ACEOF
  2200. if ac_fn_c_try_compile "$LINENO"; then :
  2201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2202. /* end confdefs.h. */
  2203. $4
  2204. int
  2205. main ()
  2206. {
  2207. if (sizeof (($2)))
  2208. return 0;
  2209. ;
  2210. return 0;
  2211. }
  2212. _ACEOF
  2213. if ac_fn_c_try_compile "$LINENO"; then :
  2214. else
  2215. eval "$3=yes"
  2216. fi
  2217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. fi
  2221. eval ac_res=\$$3
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2223. $as_echo "$ac_res" >&6; }
  2224. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2225. } # ac_fn_c_check_type
  2226. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2227. # ----------------------------------------------------
  2228. # Tries to find if the field MEMBER exists in type AGGR, after including
  2229. # INCLUDES, setting cache variable VAR accordingly.
  2230. ac_fn_c_check_member ()
  2231. {
  2232. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2234. $as_echo_n "checking for $2.$3... " >&6; }
  2235. if eval \${$4+:} false; then :
  2236. $as_echo_n "(cached) " >&6
  2237. else
  2238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2239. /* end confdefs.h. */
  2240. $5
  2241. int
  2242. main ()
  2243. {
  2244. static $2 ac_aggr;
  2245. if (ac_aggr.$3)
  2246. return 0;
  2247. ;
  2248. return 0;
  2249. }
  2250. _ACEOF
  2251. if ac_fn_c_try_compile "$LINENO"; then :
  2252. eval "$4=yes"
  2253. else
  2254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2255. /* end confdefs.h. */
  2256. $5
  2257. int
  2258. main ()
  2259. {
  2260. static $2 ac_aggr;
  2261. if (sizeof ac_aggr.$3)
  2262. return 0;
  2263. ;
  2264. return 0;
  2265. }
  2266. _ACEOF
  2267. if ac_fn_c_try_compile "$LINENO"; then :
  2268. eval "$4=yes"
  2269. else
  2270. eval "$4=no"
  2271. fi
  2272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2273. fi
  2274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2275. fi
  2276. eval ac_res=\$$4
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2278. $as_echo "$ac_res" >&6; }
  2279. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2280. } # ac_fn_c_check_member
  2281. cat >config.log <<_ACEOF
  2282. This file contains any messages produced by compilers while
  2283. running configure, to aid debugging if configure makes a mistake.
  2284. It was created by $as_me, which was
  2285. generated by GNU Autoconf 2.69. Invocation command line was
  2286. $ $0 $@
  2287. _ACEOF
  2288. exec 5>>config.log
  2289. {
  2290. cat <<_ASUNAME
  2291. ## --------- ##
  2292. ## Platform. ##
  2293. ## --------- ##
  2294. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2295. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2296. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2297. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2298. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2299. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2300. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2301. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2302. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2303. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2304. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2305. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2306. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2307. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2308. _ASUNAME
  2309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2310. for as_dir in $PATH
  2311. do
  2312. IFS=$as_save_IFS
  2313. test -z "$as_dir" && as_dir=.
  2314. $as_echo "PATH: $as_dir"
  2315. done
  2316. IFS=$as_save_IFS
  2317. } >&5
  2318. cat >&5 <<_ACEOF
  2319. ## ----------- ##
  2320. ## Core tests. ##
  2321. ## ----------- ##
  2322. _ACEOF
  2323. # Keep a trace of the command line.
  2324. # Strip out --no-create and --no-recursion so they do not pile up.
  2325. # Strip out --silent because we don't want to record it for future runs.
  2326. # Also quote any args containing shell meta-characters.
  2327. # Make two passes to allow for proper duplicate-argument suppression.
  2328. ac_configure_args=
  2329. ac_configure_args0=
  2330. ac_configure_args1=
  2331. ac_must_keep_next=false
  2332. for ac_pass in 1 2
  2333. do
  2334. for ac_arg
  2335. do
  2336. case $ac_arg in
  2337. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2338. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2339. | -silent | --silent | --silen | --sile | --sil)
  2340. continue ;;
  2341. *\'*)
  2342. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2343. esac
  2344. case $ac_pass in
  2345. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2346. 2)
  2347. as_fn_append ac_configure_args1 " '$ac_arg'"
  2348. if test $ac_must_keep_next = true; then
  2349. ac_must_keep_next=false # Got value, back to normal.
  2350. else
  2351. case $ac_arg in
  2352. *=* | --config-cache | -C | -disable-* | --disable-* \
  2353. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2354. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2355. | -with-* | --with-* | -without-* | --without-* | --x)
  2356. case "$ac_configure_args0 " in
  2357. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2358. esac
  2359. ;;
  2360. -* ) ac_must_keep_next=true ;;
  2361. esac
  2362. fi
  2363. as_fn_append ac_configure_args " '$ac_arg'"
  2364. ;;
  2365. esac
  2366. done
  2367. done
  2368. { ac_configure_args0=; unset ac_configure_args0;}
  2369. { ac_configure_args1=; unset ac_configure_args1;}
  2370. # When interrupted or exit'd, cleanup temporary files, and complete
  2371. # config.log. We remove comments because anyway the quotes in there
  2372. # would cause problems or look ugly.
  2373. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2374. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2375. trap 'exit_status=$?
  2376. # Save into config.log some information that might help in debugging.
  2377. {
  2378. echo
  2379. $as_echo "## ---------------- ##
  2380. ## Cache variables. ##
  2381. ## ---------------- ##"
  2382. echo
  2383. # The following way of writing the cache mishandles newlines in values,
  2384. (
  2385. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2386. eval ac_val=\$$ac_var
  2387. case $ac_val in #(
  2388. *${as_nl}*)
  2389. case $ac_var in #(
  2390. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2391. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2392. esac
  2393. case $ac_var in #(
  2394. _ | IFS | as_nl) ;; #(
  2395. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2396. *) { eval $ac_var=; unset $ac_var;} ;;
  2397. esac ;;
  2398. esac
  2399. done
  2400. (set) 2>&1 |
  2401. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2402. *${as_nl}ac_space=\ *)
  2403. sed -n \
  2404. "s/'\''/'\''\\\\'\'''\''/g;
  2405. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2406. ;; #(
  2407. *)
  2408. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2409. ;;
  2410. esac |
  2411. sort
  2412. )
  2413. echo
  2414. $as_echo "## ----------------- ##
  2415. ## Output variables. ##
  2416. ## ----------------- ##"
  2417. echo
  2418. for ac_var in $ac_subst_vars
  2419. do
  2420. eval ac_val=\$$ac_var
  2421. case $ac_val in
  2422. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2423. esac
  2424. $as_echo "$ac_var='\''$ac_val'\''"
  2425. done | sort
  2426. echo
  2427. if test -n "$ac_subst_files"; then
  2428. $as_echo "## ------------------- ##
  2429. ## File substitutions. ##
  2430. ## ------------------- ##"
  2431. echo
  2432. for ac_var in $ac_subst_files
  2433. do
  2434. eval ac_val=\$$ac_var
  2435. case $ac_val in
  2436. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2437. esac
  2438. $as_echo "$ac_var='\''$ac_val'\''"
  2439. done | sort
  2440. echo
  2441. fi
  2442. if test -s confdefs.h; then
  2443. $as_echo "## ----------- ##
  2444. ## confdefs.h. ##
  2445. ## ----------- ##"
  2446. echo
  2447. cat confdefs.h
  2448. echo
  2449. fi
  2450. test "$ac_signal" != 0 &&
  2451. $as_echo "$as_me: caught signal $ac_signal"
  2452. $as_echo "$as_me: exit $exit_status"
  2453. } >&5
  2454. rm -f core *.core core.conftest.* &&
  2455. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2456. exit $exit_status
  2457. ' 0
  2458. for ac_signal in 1 2 13 15; do
  2459. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2460. done
  2461. ac_signal=0
  2462. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2463. rm -f -r conftest* confdefs.h
  2464. $as_echo "/* confdefs.h */" > confdefs.h
  2465. # Predefined preprocessor variables.
  2466. cat >>confdefs.h <<_ACEOF
  2467. #define PACKAGE_NAME "$PACKAGE_NAME"
  2468. _ACEOF
  2469. cat >>confdefs.h <<_ACEOF
  2470. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2471. _ACEOF
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_STRING "$PACKAGE_STRING"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_URL "$PACKAGE_URL"
  2483. _ACEOF
  2484. # Let the site file select an alternate cache file if it wants to.
  2485. # Prefer an explicitly selected file to automatically selected ones.
  2486. ac_site_file1=NONE
  2487. ac_site_file2=NONE
  2488. if test -n "$CONFIG_SITE"; then
  2489. # We do not want a PATH search for config.site.
  2490. case $CONFIG_SITE in #((
  2491. -*) ac_site_file1=./$CONFIG_SITE;;
  2492. */*) ac_site_file1=$CONFIG_SITE;;
  2493. *) ac_site_file1=./$CONFIG_SITE;;
  2494. esac
  2495. elif test "x$prefix" != xNONE; then
  2496. ac_site_file1=$prefix/share/config.site
  2497. ac_site_file2=$prefix/etc/config.site
  2498. else
  2499. ac_site_file1=$ac_default_prefix/share/config.site
  2500. ac_site_file2=$ac_default_prefix/etc/config.site
  2501. fi
  2502. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2503. do
  2504. test "x$ac_site_file" = xNONE && continue
  2505. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2507. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2508. sed 's/^/| /' "$ac_site_file" >&5
  2509. . "$ac_site_file" \
  2510. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2511. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2512. as_fn_error $? "failed to load site script $ac_site_file
  2513. See \`config.log' for more details" "$LINENO" 5; }
  2514. fi
  2515. done
  2516. if test -r "$cache_file"; then
  2517. # Some versions of bash will fail to source /dev/null (special files
  2518. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2519. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2521. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2522. case $cache_file in
  2523. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2524. *) . "./$cache_file";;
  2525. esac
  2526. fi
  2527. else
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2529. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2530. >$cache_file
  2531. fi
  2532. # Check that the precious variables saved in the cache have kept the same
  2533. # value.
  2534. ac_cache_corrupted=false
  2535. for ac_var in $ac_precious_vars; do
  2536. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2537. eval ac_new_set=\$ac_env_${ac_var}_set
  2538. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2539. eval ac_new_val=\$ac_env_${ac_var}_value
  2540. case $ac_old_set,$ac_new_set in
  2541. set,)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2543. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2544. ac_cache_corrupted=: ;;
  2545. ,set)
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2547. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2548. ac_cache_corrupted=: ;;
  2549. ,);;
  2550. *)
  2551. if test "x$ac_old_val" != "x$ac_new_val"; then
  2552. # differences in whitespace do not lead to failure.
  2553. ac_old_val_w=`echo x $ac_old_val`
  2554. ac_new_val_w=`echo x $ac_new_val`
  2555. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2557. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2558. ac_cache_corrupted=:
  2559. else
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2561. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2562. eval $ac_var=\$ac_old_val
  2563. fi
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2565. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2567. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2568. fi;;
  2569. esac
  2570. # Pass precious variables to config.status.
  2571. if test "$ac_new_set" = set; then
  2572. case $ac_new_val in
  2573. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2574. *) ac_arg=$ac_var=$ac_new_val ;;
  2575. esac
  2576. case " $ac_configure_args " in
  2577. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2578. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2579. esac
  2580. fi
  2581. done
  2582. if $ac_cache_corrupted; then
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2584. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2586. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2587. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2588. fi
  2589. ## -------------------- ##
  2590. ## Main body of script. ##
  2591. ## -------------------- ##
  2592. ac_ext=c
  2593. ac_cpp='$CPP $CPPFLAGS'
  2594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2597. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2598. ac_aux_dir=
  2599. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2600. if test -f "$ac_dir/install-sh"; then
  2601. ac_aux_dir=$ac_dir
  2602. ac_install_sh="$ac_aux_dir/install-sh -c"
  2603. break
  2604. elif test -f "$ac_dir/install.sh"; then
  2605. ac_aux_dir=$ac_dir
  2606. ac_install_sh="$ac_aux_dir/install.sh -c"
  2607. break
  2608. elif test -f "$ac_dir/shtool"; then
  2609. ac_aux_dir=$ac_dir
  2610. ac_install_sh="$ac_aux_dir/shtool install -c"
  2611. break
  2612. fi
  2613. done
  2614. if test -z "$ac_aux_dir"; then
  2615. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2616. fi
  2617. # These three variables are undocumented and unsupported,
  2618. # and are intended to be withdrawn in a future Autoconf release.
  2619. # They can cause serious problems if a builder's source tree is in a directory
  2620. # whose full name contains unusual characters.
  2621. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2622. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2623. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2624. orig_CFLAGS="$CFLAGS"
  2625. # See docs/release_checklist.md
  2626. SDL_MAJOR_VERSION=2
  2627. SDL_MINOR_VERSION=23
  2628. SDL_MICRO_VERSION=0
  2629. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2630. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  2631. case "$SDL_MINOR_VERSION" in #(
  2632. *[02468]) :
  2633. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  2634. *) :
  2635. SDL_INTERFACE_AGE=0 ;; #(
  2636. *) :
  2637. ;;
  2638. esac
  2639. # libtool versioning
  2640. case `pwd` in
  2641. *\ * | *\ *)
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2643. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2644. esac
  2645. macro_version='2.4.6'
  2646. macro_revision='2.4.6'
  2647. ltmain=$ac_aux_dir/ltmain.sh
  2648. # Make sure we can run config.sub.
  2649. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2650. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2652. $as_echo_n "checking build system type... " >&6; }
  2653. if ${ac_cv_build+:} false; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. ac_build_alias=$build_alias
  2657. test "x$ac_build_alias" = x &&
  2658. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2659. test "x$ac_build_alias" = x &&
  2660. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2661. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2662. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2663. fi
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2665. $as_echo "$ac_cv_build" >&6; }
  2666. case $ac_cv_build in
  2667. *-*-*) ;;
  2668. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2669. esac
  2670. build=$ac_cv_build
  2671. ac_save_IFS=$IFS; IFS='-'
  2672. set x $ac_cv_build
  2673. shift
  2674. build_cpu=$1
  2675. build_vendor=$2
  2676. shift; shift
  2677. # Remember, the first character of IFS is used to create $*,
  2678. # except with old shells:
  2679. build_os=$*
  2680. IFS=$ac_save_IFS
  2681. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2683. $as_echo_n "checking host system type... " >&6; }
  2684. if ${ac_cv_host+:} false; then :
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. if test "x$host_alias" = x; then
  2688. ac_cv_host=$ac_cv_build
  2689. else
  2690. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2691. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2692. fi
  2693. fi
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2695. $as_echo "$ac_cv_host" >&6; }
  2696. case $ac_cv_host in
  2697. *-*-*) ;;
  2698. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2699. esac
  2700. host=$ac_cv_host
  2701. ac_save_IFS=$IFS; IFS='-'
  2702. set x $ac_cv_host
  2703. shift
  2704. host_cpu=$1
  2705. host_vendor=$2
  2706. shift; shift
  2707. # Remember, the first character of IFS is used to create $*,
  2708. # except with old shells:
  2709. host_os=$*
  2710. IFS=$ac_save_IFS
  2711. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2712. # Backslashify metacharacters that are still active within
  2713. # double-quoted strings.
  2714. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2715. # Same as above, but do not quote variable references.
  2716. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2717. # Sed substitution to delay expansion of an escaped shell variable in a
  2718. # double_quote_subst'ed string.
  2719. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2720. # Sed substitution to delay expansion of an escaped single quote.
  2721. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2722. # Sed substitution to avoid accidental globbing in evaled expressions
  2723. no_glob_subst='s/\*/\\\*/g'
  2724. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2725. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2726. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2728. $as_echo_n "checking how to print strings... " >&6; }
  2729. # Test print first, because it will be a builtin if present.
  2730. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2731. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2732. ECHO='print -r --'
  2733. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2734. ECHO='printf %s\n'
  2735. else
  2736. # Use this function as a fallback that always works.
  2737. func_fallback_echo ()
  2738. {
  2739. eval 'cat <<_LTECHO_EOF
  2740. $1
  2741. _LTECHO_EOF'
  2742. }
  2743. ECHO='func_fallback_echo'
  2744. fi
  2745. # func_echo_all arg...
  2746. # Invoke $ECHO with all args, space-separated.
  2747. func_echo_all ()
  2748. {
  2749. $ECHO ""
  2750. }
  2751. case $ECHO in
  2752. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2753. $as_echo "printf" >&6; } ;;
  2754. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2755. $as_echo "print -r" >&6; } ;;
  2756. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2757. $as_echo "cat" >&6; } ;;
  2758. esac
  2759. ac_ext=c
  2760. ac_cpp='$CPP $CPPFLAGS'
  2761. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2762. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2763. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2764. if test -n "$ac_tool_prefix"; then
  2765. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2766. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2768. $as_echo_n "checking for $ac_word... " >&6; }
  2769. if ${ac_cv_prog_CC+:} false; then :
  2770. $as_echo_n "(cached) " >&6
  2771. else
  2772. if test -n "$CC"; then
  2773. ac_cv_prog_CC="$CC" # Let the user override the test.
  2774. else
  2775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2776. for as_dir in $PATH
  2777. do
  2778. IFS=$as_save_IFS
  2779. test -z "$as_dir" && as_dir=.
  2780. for ac_exec_ext in '' $ac_executable_extensions; do
  2781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2782. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2784. break 2
  2785. fi
  2786. done
  2787. done
  2788. IFS=$as_save_IFS
  2789. fi
  2790. fi
  2791. CC=$ac_cv_prog_CC
  2792. if test -n "$CC"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2794. $as_echo "$CC" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. fi
  2800. if test -z "$ac_cv_prog_CC"; then
  2801. ac_ct_CC=$CC
  2802. # Extract the first word of "gcc", so it can be a program name with args.
  2803. set dummy gcc; ac_word=$2
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2805. $as_echo_n "checking for $ac_word... " >&6; }
  2806. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. if test -n "$ac_ct_CC"; then
  2810. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2819. ac_cv_prog_ac_ct_CC="gcc"
  2820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. IFS=$as_save_IFS
  2826. fi
  2827. fi
  2828. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2829. if test -n "$ac_ct_CC"; then
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2831. $as_echo "$ac_ct_CC" >&6; }
  2832. else
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. fi
  2836. if test "x$ac_ct_CC" = x; then
  2837. CC=""
  2838. else
  2839. case $cross_compiling:$ac_tool_warned in
  2840. yes:)
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2843. ac_tool_warned=yes ;;
  2844. esac
  2845. CC=$ac_ct_CC
  2846. fi
  2847. else
  2848. CC="$ac_cv_prog_CC"
  2849. fi
  2850. if test -z "$CC"; then
  2851. if test -n "$ac_tool_prefix"; then
  2852. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2853. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2855. $as_echo_n "checking for $ac_word... " >&6; }
  2856. if ${ac_cv_prog_CC+:} false; then :
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. if test -n "$CC"; then
  2860. ac_cv_prog_CC="$CC" # Let the user override the test.
  2861. else
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_exec_ext in '' $ac_executable_extensions; do
  2868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2869. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2871. break 2
  2872. fi
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. fi
  2878. CC=$ac_cv_prog_CC
  2879. if test -n "$CC"; then
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2881. $as_echo "$CC" >&6; }
  2882. else
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2884. $as_echo "no" >&6; }
  2885. fi
  2886. fi
  2887. fi
  2888. if test -z "$CC"; then
  2889. # Extract the first word of "cc", so it can be a program name with args.
  2890. set dummy cc; ac_word=$2
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2892. $as_echo_n "checking for $ac_word... " >&6; }
  2893. if ${ac_cv_prog_CC+:} false; then :
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. if test -n "$CC"; then
  2897. ac_cv_prog_CC="$CC" # Let the user override the test.
  2898. else
  2899. ac_prog_rejected=no
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2908. ac_prog_rejected=yes
  2909. continue
  2910. fi
  2911. ac_cv_prog_CC="cc"
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2913. break 2
  2914. fi
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. if test $ac_prog_rejected = yes; then
  2919. # We found a bogon in the path, so make sure we never use it.
  2920. set dummy $ac_cv_prog_CC
  2921. shift
  2922. if test $# != 0; then
  2923. # We chose a different compiler from the bogus one.
  2924. # However, it has the same basename, so the bogon will be chosen
  2925. # first if we set CC to just the basename; use the full file name.
  2926. shift
  2927. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2928. fi
  2929. fi
  2930. fi
  2931. fi
  2932. CC=$ac_cv_prog_CC
  2933. if test -n "$CC"; then
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2935. $as_echo "$CC" >&6; }
  2936. else
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. $as_echo "no" >&6; }
  2939. fi
  2940. fi
  2941. if test -z "$CC"; then
  2942. if test -n "$ac_tool_prefix"; then
  2943. for ac_prog in cl.exe
  2944. do
  2945. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2946. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if ${ac_cv_prog_CC+:} false; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$CC"; then
  2953. ac_cv_prog_CC="$CC" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2962. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. CC=$ac_cv_prog_CC
  2972. if test -n "$CC"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2974. $as_echo "$CC" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. test -n "$CC" && break
  2980. done
  2981. fi
  2982. if test -z "$CC"; then
  2983. ac_ct_CC=$CC
  2984. for ac_prog in cl.exe
  2985. do
  2986. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2987. set dummy $ac_prog; ac_word=$2
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2989. $as_echo_n "checking for $ac_word... " >&6; }
  2990. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. if test -n "$ac_ct_CC"; then
  2994. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2995. else
  2996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2997. for as_dir in $PATH
  2998. do
  2999. IFS=$as_save_IFS
  3000. test -z "$as_dir" && as_dir=.
  3001. for ac_exec_ext in '' $ac_executable_extensions; do
  3002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3003. ac_cv_prog_ac_ct_CC="$ac_prog"
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3005. break 2
  3006. fi
  3007. done
  3008. done
  3009. IFS=$as_save_IFS
  3010. fi
  3011. fi
  3012. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3013. if test -n "$ac_ct_CC"; then
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3015. $as_echo "$ac_ct_CC" >&6; }
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3018. $as_echo "no" >&6; }
  3019. fi
  3020. test -n "$ac_ct_CC" && break
  3021. done
  3022. if test "x$ac_ct_CC" = x; then
  3023. CC=""
  3024. else
  3025. case $cross_compiling:$ac_tool_warned in
  3026. yes:)
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3028. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3029. ac_tool_warned=yes ;;
  3030. esac
  3031. CC=$ac_ct_CC
  3032. fi
  3033. fi
  3034. fi
  3035. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3037. as_fn_error $? "no acceptable C compiler found in \$PATH
  3038. See \`config.log' for more details" "$LINENO" 5; }
  3039. # Provide some information about the compiler.
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3041. set X $ac_compile
  3042. ac_compiler=$2
  3043. for ac_option in --version -v -V -qversion; do
  3044. { { ac_try="$ac_compiler $ac_option >&5"
  3045. case "(($ac_try" in
  3046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3047. *) ac_try_echo=$ac_try;;
  3048. esac
  3049. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3050. $as_echo "$ac_try_echo"; } >&5
  3051. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3052. ac_status=$?
  3053. if test -s conftest.err; then
  3054. sed '10a\
  3055. ... rest of stderr output deleted ...
  3056. 10q' conftest.err >conftest.er1
  3057. cat conftest.er1 >&5
  3058. fi
  3059. rm -f conftest.er1 conftest.err
  3060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3061. test $ac_status = 0; }
  3062. done
  3063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. ac_clean_files_save=$ac_clean_files
  3073. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3074. # Try to create an executable without -o first, disregard a.out.
  3075. # It will help us diagnose broken compilers, and finding out an intuition
  3076. # of exeext.
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3078. $as_echo_n "checking whether the C compiler works... " >&6; }
  3079. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3080. # The possible output files:
  3081. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3082. ac_rmfiles=
  3083. for ac_file in $ac_files
  3084. do
  3085. case $ac_file in
  3086. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3087. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3088. esac
  3089. done
  3090. rm -f $ac_rmfiles
  3091. if { { ac_try="$ac_link_default"
  3092. case "(($ac_try" in
  3093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3094. *) ac_try_echo=$ac_try;;
  3095. esac
  3096. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3097. $as_echo "$ac_try_echo"; } >&5
  3098. (eval "$ac_link_default") 2>&5
  3099. ac_status=$?
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3101. test $ac_status = 0; }; then :
  3102. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3103. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3104. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3105. # so that the user can short-circuit this test for compilers unknown to
  3106. # Autoconf.
  3107. for ac_file in $ac_files ''
  3108. do
  3109. test -f "$ac_file" || continue
  3110. case $ac_file in
  3111. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3112. ;;
  3113. [ab].out )
  3114. # We found the default executable, but exeext='' is most
  3115. # certainly right.
  3116. break;;
  3117. *.* )
  3118. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3119. then :; else
  3120. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3121. fi
  3122. # We set ac_cv_exeext here because the later test for it is not
  3123. # safe: cross compilers may not add the suffix if given an `-o'
  3124. # argument, so we may need to know it at that point already.
  3125. # Even if this section looks crufty: it has the advantage of
  3126. # actually working.
  3127. break;;
  3128. * )
  3129. break;;
  3130. esac
  3131. done
  3132. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3133. else
  3134. ac_file=''
  3135. fi
  3136. if test -z "$ac_file"; then :
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3138. $as_echo "no" >&6; }
  3139. $as_echo "$as_me: failed program was:" >&5
  3140. sed 's/^/| /' conftest.$ac_ext >&5
  3141. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3142. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3143. as_fn_error 77 "C compiler cannot create executables
  3144. See \`config.log' for more details" "$LINENO" 5; }
  3145. else
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3147. $as_echo "yes" >&6; }
  3148. fi
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3150. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3152. $as_echo "$ac_file" >&6; }
  3153. ac_exeext=$ac_cv_exeext
  3154. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3155. ac_clean_files=$ac_clean_files_save
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3157. $as_echo_n "checking for suffix of executables... " >&6; }
  3158. if { { ac_try="$ac_link"
  3159. case "(($ac_try" in
  3160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3161. *) ac_try_echo=$ac_try;;
  3162. esac
  3163. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3164. $as_echo "$ac_try_echo"; } >&5
  3165. (eval "$ac_link") 2>&5
  3166. ac_status=$?
  3167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3168. test $ac_status = 0; }; then :
  3169. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3170. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3171. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3172. # `rm'.
  3173. for ac_file in conftest.exe conftest conftest.*; do
  3174. test -f "$ac_file" || continue
  3175. case $ac_file in
  3176. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3177. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3178. break;;
  3179. * ) break;;
  3180. esac
  3181. done
  3182. else
  3183. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3184. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3185. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3186. See \`config.log' for more details" "$LINENO" 5; }
  3187. fi
  3188. rm -f conftest conftest$ac_cv_exeext
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3190. $as_echo "$ac_cv_exeext" >&6; }
  3191. rm -f conftest.$ac_ext
  3192. EXEEXT=$ac_cv_exeext
  3193. ac_exeext=$EXEEXT
  3194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end confdefs.h. */
  3196. #include <stdio.h>
  3197. int
  3198. main ()
  3199. {
  3200. FILE *f = fopen ("conftest.out", "w");
  3201. return ferror (f) || fclose (f) != 0;
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. ac_clean_files="$ac_clean_files conftest.out"
  3207. # Check that the compiler produces executables we can run. If not, either
  3208. # the compiler is broken, or we cross compile.
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3210. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3211. if test "$cross_compiling" != yes; then
  3212. { { ac_try="$ac_link"
  3213. case "(($ac_try" in
  3214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3215. *) ac_try_echo=$ac_try;;
  3216. esac
  3217. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3218. $as_echo "$ac_try_echo"; } >&5
  3219. (eval "$ac_link") 2>&5
  3220. ac_status=$?
  3221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3222. test $ac_status = 0; }
  3223. if { ac_try='./conftest$ac_cv_exeext'
  3224. { { case "(($ac_try" in
  3225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3226. *) ac_try_echo=$ac_try;;
  3227. esac
  3228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3229. $as_echo "$ac_try_echo"; } >&5
  3230. (eval "$ac_try") 2>&5
  3231. ac_status=$?
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3233. test $ac_status = 0; }; }; then
  3234. cross_compiling=no
  3235. else
  3236. if test "$cross_compiling" = maybe; then
  3237. cross_compiling=yes
  3238. else
  3239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3241. as_fn_error $? "cannot run C compiled programs.
  3242. If you meant to cross compile, use \`--host'.
  3243. See \`config.log' for more details" "$LINENO" 5; }
  3244. fi
  3245. fi
  3246. fi
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3248. $as_echo "$cross_compiling" >&6; }
  3249. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3250. ac_clean_files=$ac_clean_files_save
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3252. $as_echo_n "checking for suffix of object files... " >&6; }
  3253. if ${ac_cv_objext+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. int
  3259. main ()
  3260. {
  3261. ;
  3262. return 0;
  3263. }
  3264. _ACEOF
  3265. rm -f conftest.o conftest.obj
  3266. if { { ac_try="$ac_compile"
  3267. case "(($ac_try" in
  3268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3269. *) ac_try_echo=$ac_try;;
  3270. esac
  3271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3272. $as_echo "$ac_try_echo"; } >&5
  3273. (eval "$ac_compile") 2>&5
  3274. ac_status=$?
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3276. test $ac_status = 0; }; then :
  3277. for ac_file in conftest.o conftest.obj conftest.*; do
  3278. test -f "$ac_file" || continue;
  3279. case $ac_file in
  3280. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3281. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3282. break;;
  3283. esac
  3284. done
  3285. else
  3286. $as_echo "$as_me: failed program was:" >&5
  3287. sed 's/^/| /' conftest.$ac_ext >&5
  3288. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3290. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3291. See \`config.log' for more details" "$LINENO" 5; }
  3292. fi
  3293. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3294. fi
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3296. $as_echo "$ac_cv_objext" >&6; }
  3297. OBJEXT=$ac_cv_objext
  3298. ac_objext=$OBJEXT
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3300. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3301. if ${ac_cv_c_compiler_gnu+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. #ifndef __GNUC__
  3310. choke me
  3311. #endif
  3312. ;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. if ac_fn_c_try_compile "$LINENO"; then :
  3317. ac_compiler_gnu=yes
  3318. else
  3319. ac_compiler_gnu=no
  3320. fi
  3321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3322. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3323. fi
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3325. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3326. if test $ac_compiler_gnu = yes; then
  3327. GCC=yes
  3328. else
  3329. GCC=
  3330. fi
  3331. ac_test_CFLAGS=${CFLAGS+set}
  3332. ac_save_CFLAGS=$CFLAGS
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3334. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3335. if ${ac_cv_prog_cc_g+:} false; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. ac_save_c_werror_flag=$ac_c_werror_flag
  3339. ac_c_werror_flag=yes
  3340. ac_cv_prog_cc_g=no
  3341. CFLAGS="-g"
  3342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3343. /* end confdefs.h. */
  3344. int
  3345. main ()
  3346. {
  3347. ;
  3348. return 0;
  3349. }
  3350. _ACEOF
  3351. if ac_fn_c_try_compile "$LINENO"; then :
  3352. ac_cv_prog_cc_g=yes
  3353. else
  3354. CFLAGS=""
  3355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3356. /* end confdefs.h. */
  3357. int
  3358. main ()
  3359. {
  3360. ;
  3361. return 0;
  3362. }
  3363. _ACEOF
  3364. if ac_fn_c_try_compile "$LINENO"; then :
  3365. else
  3366. ac_c_werror_flag=$ac_save_c_werror_flag
  3367. CFLAGS="-g"
  3368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3369. /* end confdefs.h. */
  3370. int
  3371. main ()
  3372. {
  3373. ;
  3374. return 0;
  3375. }
  3376. _ACEOF
  3377. if ac_fn_c_try_compile "$LINENO"; then :
  3378. ac_cv_prog_cc_g=yes
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. fi
  3384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3385. ac_c_werror_flag=$ac_save_c_werror_flag
  3386. fi
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3388. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3389. if test "$ac_test_CFLAGS" = set; then
  3390. CFLAGS=$ac_save_CFLAGS
  3391. elif test $ac_cv_prog_cc_g = yes; then
  3392. if test "$GCC" = yes; then
  3393. CFLAGS="-g -O2"
  3394. else
  3395. CFLAGS="-g"
  3396. fi
  3397. else
  3398. if test "$GCC" = yes; then
  3399. CFLAGS="-O2"
  3400. else
  3401. CFLAGS=
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3405. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3406. if ${ac_cv_prog_cc_c89+:} false; then :
  3407. $as_echo_n "(cached) " >&6
  3408. else
  3409. ac_cv_prog_cc_c89=no
  3410. ac_save_CC=$CC
  3411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3412. /* end confdefs.h. */
  3413. #include <stdarg.h>
  3414. #include <stdio.h>
  3415. struct stat;
  3416. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3417. struct buf { int x; };
  3418. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3419. static char *e (p, i)
  3420. char **p;
  3421. int i;
  3422. {
  3423. return p[i];
  3424. }
  3425. static char *f (char * (*g) (char **, int), char **p, ...)
  3426. {
  3427. char *s;
  3428. va_list v;
  3429. va_start (v,p);
  3430. s = g (p, va_arg (v,int));
  3431. va_end (v);
  3432. return s;
  3433. }
  3434. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3435. function prototypes and stuff, but not '\xHH' hex character constants.
  3436. These don't provoke an error unfortunately, instead are silently treated
  3437. as 'x'. The following induces an error, until -std is added to get
  3438. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3439. array size at least. It's necessary to write '\x00'==0 to get something
  3440. that's true only with -std. */
  3441. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3442. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3443. inside strings and character constants. */
  3444. #define FOO(x) 'x'
  3445. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3446. int test (int i, double x);
  3447. struct s1 {int (*f) (int a);};
  3448. struct s2 {int (*f) (double a);};
  3449. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3450. int argc;
  3451. char **argv;
  3452. int
  3453. main ()
  3454. {
  3455. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3456. ;
  3457. return 0;
  3458. }
  3459. _ACEOF
  3460. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3461. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3462. do
  3463. CC="$ac_save_CC $ac_arg"
  3464. if ac_fn_c_try_compile "$LINENO"; then :
  3465. ac_cv_prog_cc_c89=$ac_arg
  3466. fi
  3467. rm -f core conftest.err conftest.$ac_objext
  3468. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3469. done
  3470. rm -f conftest.$ac_ext
  3471. CC=$ac_save_CC
  3472. fi
  3473. # AC_CACHE_VAL
  3474. case "x$ac_cv_prog_cc_c89" in
  3475. x)
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3477. $as_echo "none needed" >&6; } ;;
  3478. xno)
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3480. $as_echo "unsupported" >&6; } ;;
  3481. *)
  3482. CC="$CC $ac_cv_prog_cc_c89"
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3484. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3485. esac
  3486. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3487. fi
  3488. ac_ext=c
  3489. ac_cpp='$CPP $CPPFLAGS'
  3490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3494. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3495. if ${ac_cv_path_SED+:} false; then :
  3496. $as_echo_n "(cached) " >&6
  3497. else
  3498. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3499. for ac_i in 1 2 3 4 5 6 7; do
  3500. ac_script="$ac_script$as_nl$ac_script"
  3501. done
  3502. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3503. { ac_script=; unset ac_script;}
  3504. if test -z "$SED"; then
  3505. ac_path_SED_found=false
  3506. # Loop through the user's path and test for each of PROGNAME-LIST
  3507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3508. for as_dir in $PATH
  3509. do
  3510. IFS=$as_save_IFS
  3511. test -z "$as_dir" && as_dir=.
  3512. for ac_prog in sed gsed; do
  3513. for ac_exec_ext in '' $ac_executable_extensions; do
  3514. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3515. as_fn_executable_p "$ac_path_SED" || continue
  3516. # Check for GNU ac_path_SED and select it if it is found.
  3517. # Check for GNU $ac_path_SED
  3518. case `"$ac_path_SED" --version 2>&1` in
  3519. *GNU*)
  3520. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3521. *)
  3522. ac_count=0
  3523. $as_echo_n 0123456789 >"conftest.in"
  3524. while :
  3525. do
  3526. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3527. mv "conftest.tmp" "conftest.in"
  3528. cp "conftest.in" "conftest.nl"
  3529. $as_echo '' >> "conftest.nl"
  3530. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3531. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3532. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3533. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3534. # Best one so far, save it but keep looking for a better one
  3535. ac_cv_path_SED="$ac_path_SED"
  3536. ac_path_SED_max=$ac_count
  3537. fi
  3538. # 10*(2^10) chars as input seems more than enough
  3539. test $ac_count -gt 10 && break
  3540. done
  3541. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3542. esac
  3543. $ac_path_SED_found && break 3
  3544. done
  3545. done
  3546. done
  3547. IFS=$as_save_IFS
  3548. if test -z "$ac_cv_path_SED"; then
  3549. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3550. fi
  3551. else
  3552. ac_cv_path_SED=$SED
  3553. fi
  3554. fi
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3556. $as_echo "$ac_cv_path_SED" >&6; }
  3557. SED="$ac_cv_path_SED"
  3558. rm -f conftest.sed
  3559. test -z "$SED" && SED=sed
  3560. Xsed="$SED -e 1s/^X//"
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3562. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3563. if ${ac_cv_path_GREP+:} false; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. if test -z "$GREP"; then
  3567. ac_path_GREP_found=false
  3568. # Loop through the user's path and test for each of PROGNAME-LIST
  3569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3570. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3571. do
  3572. IFS=$as_save_IFS
  3573. test -z "$as_dir" && as_dir=.
  3574. for ac_prog in grep ggrep; do
  3575. for ac_exec_ext in '' $ac_executable_extensions; do
  3576. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3577. as_fn_executable_p "$ac_path_GREP" || continue
  3578. # Check for GNU ac_path_GREP and select it if it is found.
  3579. # Check for GNU $ac_path_GREP
  3580. case `"$ac_path_GREP" --version 2>&1` in
  3581. *GNU*)
  3582. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3583. *)
  3584. ac_count=0
  3585. $as_echo_n 0123456789 >"conftest.in"
  3586. while :
  3587. do
  3588. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3589. mv "conftest.tmp" "conftest.in"
  3590. cp "conftest.in" "conftest.nl"
  3591. $as_echo 'GREP' >> "conftest.nl"
  3592. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3593. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3594. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3595. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3596. # Best one so far, save it but keep looking for a better one
  3597. ac_cv_path_GREP="$ac_path_GREP"
  3598. ac_path_GREP_max=$ac_count
  3599. fi
  3600. # 10*(2^10) chars as input seems more than enough
  3601. test $ac_count -gt 10 && break
  3602. done
  3603. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3604. esac
  3605. $ac_path_GREP_found && break 3
  3606. done
  3607. done
  3608. done
  3609. IFS=$as_save_IFS
  3610. if test -z "$ac_cv_path_GREP"; then
  3611. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3612. fi
  3613. else
  3614. ac_cv_path_GREP=$GREP
  3615. fi
  3616. fi
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3618. $as_echo "$ac_cv_path_GREP" >&6; }
  3619. GREP="$ac_cv_path_GREP"
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3621. $as_echo_n "checking for egrep... " >&6; }
  3622. if ${ac_cv_path_EGREP+:} false; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3626. then ac_cv_path_EGREP="$GREP -E"
  3627. else
  3628. if test -z "$EGREP"; then
  3629. ac_path_EGREP_found=false
  3630. # Loop through the user's path and test for each of PROGNAME-LIST
  3631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3632. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3633. do
  3634. IFS=$as_save_IFS
  3635. test -z "$as_dir" && as_dir=.
  3636. for ac_prog in egrep; do
  3637. for ac_exec_ext in '' $ac_executable_extensions; do
  3638. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3639. as_fn_executable_p "$ac_path_EGREP" || continue
  3640. # Check for GNU ac_path_EGREP and select it if it is found.
  3641. # Check for GNU $ac_path_EGREP
  3642. case `"$ac_path_EGREP" --version 2>&1` in
  3643. *GNU*)
  3644. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3645. *)
  3646. ac_count=0
  3647. $as_echo_n 0123456789 >"conftest.in"
  3648. while :
  3649. do
  3650. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3651. mv "conftest.tmp" "conftest.in"
  3652. cp "conftest.in" "conftest.nl"
  3653. $as_echo 'EGREP' >> "conftest.nl"
  3654. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3655. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3656. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3657. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3658. # Best one so far, save it but keep looking for a better one
  3659. ac_cv_path_EGREP="$ac_path_EGREP"
  3660. ac_path_EGREP_max=$ac_count
  3661. fi
  3662. # 10*(2^10) chars as input seems more than enough
  3663. test $ac_count -gt 10 && break
  3664. done
  3665. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3666. esac
  3667. $ac_path_EGREP_found && break 3
  3668. done
  3669. done
  3670. done
  3671. IFS=$as_save_IFS
  3672. if test -z "$ac_cv_path_EGREP"; then
  3673. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3674. fi
  3675. else
  3676. ac_cv_path_EGREP=$EGREP
  3677. fi
  3678. fi
  3679. fi
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3681. $as_echo "$ac_cv_path_EGREP" >&6; }
  3682. EGREP="$ac_cv_path_EGREP"
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3684. $as_echo_n "checking for fgrep... " >&6; }
  3685. if ${ac_cv_path_FGREP+:} false; then :
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3689. then ac_cv_path_FGREP="$GREP -F"
  3690. else
  3691. if test -z "$FGREP"; then
  3692. ac_path_FGREP_found=false
  3693. # Loop through the user's path and test for each of PROGNAME-LIST
  3694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3695. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3696. do
  3697. IFS=$as_save_IFS
  3698. test -z "$as_dir" && as_dir=.
  3699. for ac_prog in fgrep; do
  3700. for ac_exec_ext in '' $ac_executable_extensions; do
  3701. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3702. as_fn_executable_p "$ac_path_FGREP" || continue
  3703. # Check for GNU ac_path_FGREP and select it if it is found.
  3704. # Check for GNU $ac_path_FGREP
  3705. case `"$ac_path_FGREP" --version 2>&1` in
  3706. *GNU*)
  3707. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3708. *)
  3709. ac_count=0
  3710. $as_echo_n 0123456789 >"conftest.in"
  3711. while :
  3712. do
  3713. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3714. mv "conftest.tmp" "conftest.in"
  3715. cp "conftest.in" "conftest.nl"
  3716. $as_echo 'FGREP' >> "conftest.nl"
  3717. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3718. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3719. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3720. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3721. # Best one so far, save it but keep looking for a better one
  3722. ac_cv_path_FGREP="$ac_path_FGREP"
  3723. ac_path_FGREP_max=$ac_count
  3724. fi
  3725. # 10*(2^10) chars as input seems more than enough
  3726. test $ac_count -gt 10 && break
  3727. done
  3728. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3729. esac
  3730. $ac_path_FGREP_found && break 3
  3731. done
  3732. done
  3733. done
  3734. IFS=$as_save_IFS
  3735. if test -z "$ac_cv_path_FGREP"; then
  3736. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3737. fi
  3738. else
  3739. ac_cv_path_FGREP=$FGREP
  3740. fi
  3741. fi
  3742. fi
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3744. $as_echo "$ac_cv_path_FGREP" >&6; }
  3745. FGREP="$ac_cv_path_FGREP"
  3746. test -z "$GREP" && GREP=grep
  3747. # Check whether --with-gnu-ld was given.
  3748. if test "${with_gnu_ld+set}" = set; then :
  3749. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3750. else
  3751. with_gnu_ld=no
  3752. fi
  3753. ac_prog=ld
  3754. if test yes = "$GCC"; then
  3755. # Check if gcc -print-prog-name=ld gives a path.
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3757. $as_echo_n "checking for ld used by $CC... " >&6; }
  3758. case $host in
  3759. *-*-mingw*)
  3760. # gcc leaves a trailing carriage return, which upsets mingw
  3761. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3762. *)
  3763. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3764. esac
  3765. case $ac_prog in
  3766. # Accept absolute paths.
  3767. [\\/]* | ?:[\\/]*)
  3768. re_direlt='/[^/][^/]*/\.\./'
  3769. # Canonicalize the pathname of ld
  3770. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3771. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3772. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3773. done
  3774. test -z "$LD" && LD=$ac_prog
  3775. ;;
  3776. "")
  3777. # If it fails, then pretend we aren't using GCC.
  3778. ac_prog=ld
  3779. ;;
  3780. *)
  3781. # If it is relative, then search for the first ld in PATH.
  3782. with_gnu_ld=unknown
  3783. ;;
  3784. esac
  3785. elif test yes = "$with_gnu_ld"; then
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3787. $as_echo_n "checking for GNU ld... " >&6; }
  3788. else
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3790. $as_echo_n "checking for non-GNU ld... " >&6; }
  3791. fi
  3792. if ${lt_cv_path_LD+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test -z "$LD"; then
  3796. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3797. for ac_dir in $PATH; do
  3798. IFS=$lt_save_ifs
  3799. test -z "$ac_dir" && ac_dir=.
  3800. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3801. lt_cv_path_LD=$ac_dir/$ac_prog
  3802. # Check to see if the program is GNU ld. I'd rather use --version,
  3803. # but apparently some variants of GNU ld only accept -v.
  3804. # Break only if it was the GNU/non-GNU ld that we prefer.
  3805. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3806. *GNU* | *'with BFD'*)
  3807. test no != "$with_gnu_ld" && break
  3808. ;;
  3809. *)
  3810. test yes != "$with_gnu_ld" && break
  3811. ;;
  3812. esac
  3813. fi
  3814. done
  3815. IFS=$lt_save_ifs
  3816. else
  3817. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3818. fi
  3819. fi
  3820. LD=$lt_cv_path_LD
  3821. if test -n "$LD"; then
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3823. $as_echo "$LD" >&6; }
  3824. else
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3826. $as_echo "no" >&6; }
  3827. fi
  3828. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3830. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3831. if ${lt_cv_prog_gnu_ld+:} false; then :
  3832. $as_echo_n "(cached) " >&6
  3833. else
  3834. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3835. case `$LD -v 2>&1 </dev/null` in
  3836. *GNU* | *'with BFD'*)
  3837. lt_cv_prog_gnu_ld=yes
  3838. ;;
  3839. *)
  3840. lt_cv_prog_gnu_ld=no
  3841. ;;
  3842. esac
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3845. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3846. with_gnu_ld=$lt_cv_prog_gnu_ld
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3848. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3849. if ${lt_cv_path_NM+:} false; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. if test -n "$NM"; then
  3853. # Let the user override the test.
  3854. lt_cv_path_NM=$NM
  3855. else
  3856. lt_nm_to_check=${ac_tool_prefix}nm
  3857. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3858. lt_nm_to_check="$lt_nm_to_check nm"
  3859. fi
  3860. for lt_tmp_nm in $lt_nm_to_check; do
  3861. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3862. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3863. IFS=$lt_save_ifs
  3864. test -z "$ac_dir" && ac_dir=.
  3865. tmp_nm=$ac_dir/$lt_tmp_nm
  3866. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3867. # Check to see if the nm accepts a BSD-compat flag.
  3868. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3869. # nm: unknown option "B" ignored
  3870. # Tru64's nm complains that /dev/null is an invalid object file
  3871. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3872. case $build_os in
  3873. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3874. *) lt_bad_file=/dev/null ;;
  3875. esac
  3876. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3877. *$lt_bad_file* | *'Invalid file or object type'*)
  3878. lt_cv_path_NM="$tmp_nm -B"
  3879. break 2
  3880. ;;
  3881. *)
  3882. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3883. */dev/null*)
  3884. lt_cv_path_NM="$tmp_nm -p"
  3885. break 2
  3886. ;;
  3887. *)
  3888. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3889. continue # so that we can try to find one that supports BSD flags
  3890. ;;
  3891. esac
  3892. ;;
  3893. esac
  3894. fi
  3895. done
  3896. IFS=$lt_save_ifs
  3897. done
  3898. : ${lt_cv_path_NM=no}
  3899. fi
  3900. fi
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3902. $as_echo "$lt_cv_path_NM" >&6; }
  3903. if test no != "$lt_cv_path_NM"; then
  3904. NM=$lt_cv_path_NM
  3905. else
  3906. # Didn't find any BSD compatible name lister, look for dumpbin.
  3907. if test -n "$DUMPBIN"; then :
  3908. # Let the user override the test.
  3909. else
  3910. if test -n "$ac_tool_prefix"; then
  3911. for ac_prog in dumpbin "link -dump"
  3912. do
  3913. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3914. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3916. $as_echo_n "checking for $ac_word... " >&6; }
  3917. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3918. $as_echo_n "(cached) " >&6
  3919. else
  3920. if test -n "$DUMPBIN"; then
  3921. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3922. else
  3923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. for ac_exec_ext in '' $ac_executable_extensions; do
  3929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3930. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3932. break 2
  3933. fi
  3934. done
  3935. done
  3936. IFS=$as_save_IFS
  3937. fi
  3938. fi
  3939. DUMPBIN=$ac_cv_prog_DUMPBIN
  3940. if test -n "$DUMPBIN"; then
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3942. $as_echo "$DUMPBIN" >&6; }
  3943. else
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3945. $as_echo "no" >&6; }
  3946. fi
  3947. test -n "$DUMPBIN" && break
  3948. done
  3949. fi
  3950. if test -z "$DUMPBIN"; then
  3951. ac_ct_DUMPBIN=$DUMPBIN
  3952. for ac_prog in dumpbin "link -dump"
  3953. do
  3954. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3955. set dummy $ac_prog; ac_word=$2
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3957. $as_echo_n "checking for $ac_word... " >&6; }
  3958. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3959. $as_echo_n "(cached) " >&6
  3960. else
  3961. if test -n "$ac_ct_DUMPBIN"; then
  3962. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3963. else
  3964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3965. for as_dir in $PATH
  3966. do
  3967. IFS=$as_save_IFS
  3968. test -z "$as_dir" && as_dir=.
  3969. for ac_exec_ext in '' $ac_executable_extensions; do
  3970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3971. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3973. break 2
  3974. fi
  3975. done
  3976. done
  3977. IFS=$as_save_IFS
  3978. fi
  3979. fi
  3980. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3981. if test -n "$ac_ct_DUMPBIN"; then
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3983. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3984. else
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3986. $as_echo "no" >&6; }
  3987. fi
  3988. test -n "$ac_ct_DUMPBIN" && break
  3989. done
  3990. if test "x$ac_ct_DUMPBIN" = x; then
  3991. DUMPBIN=":"
  3992. else
  3993. case $cross_compiling:$ac_tool_warned in
  3994. yes:)
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3997. ac_tool_warned=yes ;;
  3998. esac
  3999. DUMPBIN=$ac_ct_DUMPBIN
  4000. fi
  4001. fi
  4002. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4003. *COFF*)
  4004. DUMPBIN="$DUMPBIN -symbols -headers"
  4005. ;;
  4006. *)
  4007. DUMPBIN=:
  4008. ;;
  4009. esac
  4010. fi
  4011. if test : != "$DUMPBIN"; then
  4012. NM=$DUMPBIN
  4013. fi
  4014. fi
  4015. test -z "$NM" && NM=nm
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4017. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4018. if ${lt_cv_nm_interface+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. lt_cv_nm_interface="BSD nm"
  4022. echo "int some_variable = 0;" > conftest.$ac_ext
  4023. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4024. (eval "$ac_compile" 2>conftest.err)
  4025. cat conftest.err >&5
  4026. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4027. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4028. cat conftest.err >&5
  4029. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4030. cat conftest.out >&5
  4031. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4032. lt_cv_nm_interface="MS dumpbin"
  4033. fi
  4034. rm -f conftest*
  4035. fi
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4037. $as_echo "$lt_cv_nm_interface" >&6; }
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4039. $as_echo_n "checking whether ln -s works... " >&6; }
  4040. LN_S=$as_ln_s
  4041. if test "$LN_S" = "ln -s"; then
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4043. $as_echo "yes" >&6; }
  4044. else
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4046. $as_echo "no, using $LN_S" >&6; }
  4047. fi
  4048. # find the maximum length of command line arguments
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4050. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4051. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4052. $as_echo_n "(cached) " >&6
  4053. else
  4054. i=0
  4055. teststring=ABCD
  4056. case $build_os in
  4057. msdosdjgpp*)
  4058. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4059. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4060. # during glob expansion). Even if it were fixed, the result of this
  4061. # check would be larger than it should be.
  4062. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4063. ;;
  4064. gnu*)
  4065. # Under GNU Hurd, this test is not required because there is
  4066. # no limit to the length of command line arguments.
  4067. # Libtool will interpret -1 as no limit whatsoever
  4068. lt_cv_sys_max_cmd_len=-1;
  4069. ;;
  4070. cygwin* | mingw* | cegcc*)
  4071. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4072. # about 5 minutes as the teststring grows exponentially.
  4073. # Worse, since 9x/ME are not pre-emptively multitasking,
  4074. # you end up with a "frozen" computer, even though with patience
  4075. # the test eventually succeeds (with a max line length of 256k).
  4076. # Instead, let's just punt: use the minimum linelength reported by
  4077. # all of the supported platforms: 8192 (on NT/2K/XP).
  4078. lt_cv_sys_max_cmd_len=8192;
  4079. ;;
  4080. mint*)
  4081. # On MiNT this can take a long time and run out of memory.
  4082. lt_cv_sys_max_cmd_len=8192;
  4083. ;;
  4084. amigaos*)
  4085. # On AmigaOS with pdksh, this test takes hours, literally.
  4086. # So we just punt and use a minimum line length of 8192.
  4087. lt_cv_sys_max_cmd_len=8192;
  4088. ;;
  4089. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4090. # This has been around since 386BSD, at least. Likely further.
  4091. if test -x /sbin/sysctl; then
  4092. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4093. elif test -x /usr/sbin/sysctl; then
  4094. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4095. else
  4096. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4097. fi
  4098. # And add a safety zone
  4099. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4100. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4101. ;;
  4102. interix*)
  4103. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4104. lt_cv_sys_max_cmd_len=196608
  4105. ;;
  4106. os2*)
  4107. # The test takes a long time on OS/2.
  4108. lt_cv_sys_max_cmd_len=8192
  4109. ;;
  4110. osf*)
  4111. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4112. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4113. # nice to cause kernel panics so lets avoid the loop below.
  4114. # First set a reasonable default.
  4115. lt_cv_sys_max_cmd_len=16384
  4116. #
  4117. if test -x /sbin/sysconfig; then
  4118. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4119. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4120. esac
  4121. fi
  4122. ;;
  4123. sco3.2v5*)
  4124. lt_cv_sys_max_cmd_len=102400
  4125. ;;
  4126. sysv5* | sco5v6* | sysv4.2uw2*)
  4127. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4128. if test -n "$kargmax"; then
  4129. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4130. else
  4131. lt_cv_sys_max_cmd_len=32768
  4132. fi
  4133. ;;
  4134. *)
  4135. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4136. if test -n "$lt_cv_sys_max_cmd_len" && \
  4137. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4138. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4139. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4140. else
  4141. # Make teststring a little bigger before we do anything with it.
  4142. # a 1K string should be a reasonable start.
  4143. for i in 1 2 3 4 5 6 7 8; do
  4144. teststring=$teststring$teststring
  4145. done
  4146. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4147. # If test is not a shell built-in, we'll probably end up computing a
  4148. # maximum length that is only half of the actual maximum length, but
  4149. # we can't tell.
  4150. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4151. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4152. test 17 != "$i" # 1/2 MB should be enough
  4153. do
  4154. i=`expr $i + 1`
  4155. teststring=$teststring$teststring
  4156. done
  4157. # Only check the string length outside the loop.
  4158. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4159. teststring=
  4160. # Add a significant safety factor because C++ compilers can tack on
  4161. # massive amounts of additional arguments before passing them to the
  4162. # linker. It appears as though 1/2 is a usable value.
  4163. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4164. fi
  4165. ;;
  4166. esac
  4167. fi
  4168. if test -n "$lt_cv_sys_max_cmd_len"; then
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4170. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4171. else
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4173. $as_echo "none" >&6; }
  4174. fi
  4175. max_cmd_len=$lt_cv_sys_max_cmd_len
  4176. : ${CP="cp -f"}
  4177. : ${MV="mv -f"}
  4178. : ${RM="rm -f"}
  4179. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4180. lt_unset=unset
  4181. else
  4182. lt_unset=false
  4183. fi
  4184. # test EBCDIC or ASCII
  4185. case `echo X|tr X '\101'` in
  4186. A) # ASCII based system
  4187. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4188. lt_SP2NL='tr \040 \012'
  4189. lt_NL2SP='tr \015\012 \040\040'
  4190. ;;
  4191. *) # EBCDIC based system
  4192. lt_SP2NL='tr \100 \n'
  4193. lt_NL2SP='tr \r\n \100\100'
  4194. ;;
  4195. esac
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4197. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4198. if ${lt_cv_to_host_file_cmd+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. case $host in
  4202. *-*-mingw* )
  4203. case $build in
  4204. *-*-mingw* ) # actually msys
  4205. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4206. ;;
  4207. *-*-cygwin* )
  4208. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4209. ;;
  4210. * ) # otherwise, assume *nix
  4211. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4212. ;;
  4213. esac
  4214. ;;
  4215. *-*-cygwin* )
  4216. case $build in
  4217. *-*-mingw* ) # actually msys
  4218. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4219. ;;
  4220. *-*-cygwin* )
  4221. lt_cv_to_host_file_cmd=func_convert_file_noop
  4222. ;;
  4223. * ) # otherwise, assume *nix
  4224. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4225. ;;
  4226. esac
  4227. ;;
  4228. * ) # unhandled hosts (and "normal" native builds)
  4229. lt_cv_to_host_file_cmd=func_convert_file_noop
  4230. ;;
  4231. esac
  4232. fi
  4233. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4235. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4237. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4238. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4239. $as_echo_n "(cached) " >&6
  4240. else
  4241. #assume ordinary cross tools, or native build.
  4242. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4243. case $host in
  4244. *-*-mingw* )
  4245. case $build in
  4246. *-*-mingw* ) # actually msys
  4247. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4248. ;;
  4249. esac
  4250. ;;
  4251. esac
  4252. fi
  4253. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4255. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4257. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4258. if ${lt_cv_ld_reload_flag+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. lt_cv_ld_reload_flag='-r'
  4262. fi
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4264. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4265. reload_flag=$lt_cv_ld_reload_flag
  4266. case $reload_flag in
  4267. "" | " "*) ;;
  4268. *) reload_flag=" $reload_flag" ;;
  4269. esac
  4270. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4271. case $host_os in
  4272. cygwin* | mingw* | pw32* | cegcc*)
  4273. if test yes != "$GCC"; then
  4274. reload_cmds=false
  4275. fi
  4276. ;;
  4277. darwin*)
  4278. if test yes = "$GCC"; then
  4279. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4280. else
  4281. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4282. fi
  4283. ;;
  4284. esac
  4285. if test -n "$ac_tool_prefix"; then
  4286. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4287. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4289. $as_echo_n "checking for $ac_word... " >&6; }
  4290. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. if test -n "$OBJDUMP"; then
  4294. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4295. else
  4296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4297. for as_dir in $PATH
  4298. do
  4299. IFS=$as_save_IFS
  4300. test -z "$as_dir" && as_dir=.
  4301. for ac_exec_ext in '' $ac_executable_extensions; do
  4302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4303. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4305. break 2
  4306. fi
  4307. done
  4308. done
  4309. IFS=$as_save_IFS
  4310. fi
  4311. fi
  4312. OBJDUMP=$ac_cv_prog_OBJDUMP
  4313. if test -n "$OBJDUMP"; then
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4315. $as_echo "$OBJDUMP" >&6; }
  4316. else
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4318. $as_echo "no" >&6; }
  4319. fi
  4320. fi
  4321. if test -z "$ac_cv_prog_OBJDUMP"; then
  4322. ac_ct_OBJDUMP=$OBJDUMP
  4323. # Extract the first word of "objdump", so it can be a program name with args.
  4324. set dummy objdump; ac_word=$2
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4326. $as_echo_n "checking for $ac_word... " >&6; }
  4327. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. if test -n "$ac_ct_OBJDUMP"; then
  4331. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4332. else
  4333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4334. for as_dir in $PATH
  4335. do
  4336. IFS=$as_save_IFS
  4337. test -z "$as_dir" && as_dir=.
  4338. for ac_exec_ext in '' $ac_executable_extensions; do
  4339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4340. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4342. break 2
  4343. fi
  4344. done
  4345. done
  4346. IFS=$as_save_IFS
  4347. fi
  4348. fi
  4349. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4350. if test -n "$ac_ct_OBJDUMP"; then
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4352. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4353. else
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4355. $as_echo "no" >&6; }
  4356. fi
  4357. if test "x$ac_ct_OBJDUMP" = x; then
  4358. OBJDUMP="false"
  4359. else
  4360. case $cross_compiling:$ac_tool_warned in
  4361. yes:)
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4363. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4364. ac_tool_warned=yes ;;
  4365. esac
  4366. OBJDUMP=$ac_ct_OBJDUMP
  4367. fi
  4368. else
  4369. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4370. fi
  4371. test -z "$OBJDUMP" && OBJDUMP=objdump
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4373. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4374. if ${lt_cv_deplibs_check_method+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4378. lt_cv_file_magic_test_file=
  4379. lt_cv_deplibs_check_method='unknown'
  4380. # Need to set the preceding variable on all platforms that support
  4381. # interlibrary dependencies.
  4382. # 'none' -- dependencies not supported.
  4383. # 'unknown' -- same as none, but documents that we really don't know.
  4384. # 'pass_all' -- all dependencies passed with no checks.
  4385. # 'test_compile' -- check by making test program.
  4386. # 'file_magic [[regex]]' -- check by looking for files in library path
  4387. # that responds to the $file_magic_cmd with a given extended regex.
  4388. # If you have 'file' or equivalent on your system and you're not sure
  4389. # whether 'pass_all' will *always* work, you probably want this one.
  4390. case $host_os in
  4391. aix[4-9]*)
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. beos*)
  4395. lt_cv_deplibs_check_method=pass_all
  4396. ;;
  4397. bsdi[45]*)
  4398. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4399. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4400. lt_cv_file_magic_test_file=/shlib/libc.so
  4401. ;;
  4402. cygwin*)
  4403. # func_win32_libid is a shell function defined in ltmain.sh
  4404. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4405. lt_cv_file_magic_cmd='func_win32_libid'
  4406. lt_cv_deplibs_check_method=pass_all # SDL customization
  4407. ;;
  4408. mingw* | pw32*)
  4409. # Base MSYS/MinGW do not provide the 'file' command needed by
  4410. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4411. # unless we find 'file', for example because we are cross-compiling.
  4412. if ( file / ) >/dev/null 2>&1; then
  4413. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4414. lt_cv_file_magic_cmd='func_win32_libid'
  4415. else
  4416. # Keep this pattern in sync with the one in func_win32_libid.
  4417. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4418. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4419. fi
  4420. lt_cv_deplibs_check_method=pass_all # SDL customization
  4421. ;;
  4422. cegcc*)
  4423. # use the weaker test based on 'objdump'. See mingw*.
  4424. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4425. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4426. ;;
  4427. darwin* | rhapsody*)
  4428. lt_cv_deplibs_check_method=pass_all
  4429. ;;
  4430. freebsd* | dragonfly* | midnightbsd*)
  4431. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4432. case $host_cpu in
  4433. i*86 )
  4434. # Not sure whether the presence of OpenBSD here was a mistake.
  4435. # Let's accept both of them until this is cleared up.
  4436. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4437. lt_cv_file_magic_cmd=/usr/bin/file
  4438. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4439. ;;
  4440. esac
  4441. else
  4442. lt_cv_deplibs_check_method=pass_all
  4443. fi
  4444. ;;
  4445. haiku*)
  4446. lt_cv_deplibs_check_method=pass_all
  4447. ;;
  4448. hpux10.20* | hpux11*)
  4449. lt_cv_file_magic_cmd=/usr/bin/file
  4450. case $host_cpu in
  4451. ia64*)
  4452. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4453. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4454. ;;
  4455. hppa*64*)
  4456. 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]'
  4457. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4458. ;;
  4459. *)
  4460. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4461. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4462. ;;
  4463. esac
  4464. ;;
  4465. interix[3-9]*)
  4466. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4468. ;;
  4469. irix5* | irix6* | nonstopux*)
  4470. case $LD in
  4471. *-32|*"-32 ") libmagic=32-bit;;
  4472. *-n32|*"-n32 ") libmagic=N32;;
  4473. *-64|*"-64 ") libmagic=64-bit;;
  4474. *) libmagic=never-match;;
  4475. esac
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. # This must be glibc/ELF.
  4479. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4480. lt_cv_deplibs_check_method=pass_all
  4481. ;;
  4482. netbsd*)
  4483. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4485. else
  4486. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4487. fi
  4488. ;;
  4489. newos6*)
  4490. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4491. lt_cv_file_magic_cmd=/usr/bin/file
  4492. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4493. ;;
  4494. *nto* | *qnx*)
  4495. lt_cv_deplibs_check_method=pass_all
  4496. ;;
  4497. openbsd* | bitrig*)
  4498. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4500. else
  4501. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4502. fi
  4503. ;;
  4504. osf3* | osf4* | osf5*)
  4505. lt_cv_deplibs_check_method=pass_all
  4506. ;;
  4507. rdos*)
  4508. lt_cv_deplibs_check_method=pass_all
  4509. ;;
  4510. solaris*)
  4511. lt_cv_deplibs_check_method=pass_all
  4512. ;;
  4513. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4514. lt_cv_deplibs_check_method=pass_all
  4515. ;;
  4516. sysv4 | sysv4.3*)
  4517. case $host_vendor in
  4518. motorola)
  4519. 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]'
  4520. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4521. ;;
  4522. ncr)
  4523. lt_cv_deplibs_check_method=pass_all
  4524. ;;
  4525. sequent)
  4526. lt_cv_file_magic_cmd='/bin/file'
  4527. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4528. ;;
  4529. sni)
  4530. lt_cv_file_magic_cmd='/bin/file'
  4531. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4532. lt_cv_file_magic_test_file=/lib/libc.so
  4533. ;;
  4534. siemens)
  4535. lt_cv_deplibs_check_method=pass_all
  4536. ;;
  4537. pc)
  4538. lt_cv_deplibs_check_method=pass_all
  4539. ;;
  4540. esac
  4541. ;;
  4542. tpf*)
  4543. lt_cv_deplibs_check_method=pass_all
  4544. ;;
  4545. os2*)
  4546. lt_cv_deplibs_check_method=pass_all
  4547. ;;
  4548. esac
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4551. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4552. file_magic_glob=
  4553. want_nocaseglob=no
  4554. if test "$build" = "$host"; then
  4555. case $host_os in
  4556. mingw* | pw32*)
  4557. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4558. want_nocaseglob=yes
  4559. else
  4560. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4561. fi
  4562. ;;
  4563. esac
  4564. fi
  4565. file_magic_cmd=$lt_cv_file_magic_cmd
  4566. deplibs_check_method=$lt_cv_deplibs_check_method
  4567. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4568. if test -n "$ac_tool_prefix"; then
  4569. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4570. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4572. $as_echo_n "checking for $ac_word... " >&6; }
  4573. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if test -n "$DLLTOOL"; then
  4577. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4578. else
  4579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH
  4581. do
  4582. IFS=$as_save_IFS
  4583. test -z "$as_dir" && as_dir=.
  4584. for ac_exec_ext in '' $ac_executable_extensions; do
  4585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4586. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4588. break 2
  4589. fi
  4590. done
  4591. done
  4592. IFS=$as_save_IFS
  4593. fi
  4594. fi
  4595. DLLTOOL=$ac_cv_prog_DLLTOOL
  4596. if test -n "$DLLTOOL"; then
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4598. $as_echo "$DLLTOOL" >&6; }
  4599. else
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4601. $as_echo "no" >&6; }
  4602. fi
  4603. fi
  4604. if test -z "$ac_cv_prog_DLLTOOL"; then
  4605. ac_ct_DLLTOOL=$DLLTOOL
  4606. # Extract the first word of "dlltool", so it can be a program name with args.
  4607. set dummy dlltool; ac_word=$2
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4609. $as_echo_n "checking for $ac_word... " >&6; }
  4610. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4611. $as_echo_n "(cached) " >&6
  4612. else
  4613. if test -n "$ac_ct_DLLTOOL"; then
  4614. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4615. else
  4616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4617. for as_dir in $PATH
  4618. do
  4619. IFS=$as_save_IFS
  4620. test -z "$as_dir" && as_dir=.
  4621. for ac_exec_ext in '' $ac_executable_extensions; do
  4622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4623. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4625. break 2
  4626. fi
  4627. done
  4628. done
  4629. IFS=$as_save_IFS
  4630. fi
  4631. fi
  4632. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4633. if test -n "$ac_ct_DLLTOOL"; then
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4635. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4636. else
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4638. $as_echo "no" >&6; }
  4639. fi
  4640. if test "x$ac_ct_DLLTOOL" = x; then
  4641. DLLTOOL="false"
  4642. else
  4643. case $cross_compiling:$ac_tool_warned in
  4644. yes:)
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4647. ac_tool_warned=yes ;;
  4648. esac
  4649. DLLTOOL=$ac_ct_DLLTOOL
  4650. fi
  4651. else
  4652. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4653. fi
  4654. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4656. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4657. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4661. case $host_os in
  4662. cygwin* | mingw* | pw32* | cegcc*)
  4663. # two different shell functions defined in ltmain.sh;
  4664. # decide which one to use based on capabilities of $DLLTOOL
  4665. case `$DLLTOOL --help 2>&1` in
  4666. *--identify-strict*)
  4667. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4668. ;;
  4669. *)
  4670. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4671. ;;
  4672. esac
  4673. ;;
  4674. *)
  4675. # fallback: assume linklib IS sharedlib
  4676. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4677. ;;
  4678. esac
  4679. fi
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4681. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4682. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4683. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4684. if test -n "$ac_tool_prefix"; then
  4685. for ac_prog in ar
  4686. do
  4687. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4688. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4690. $as_echo_n "checking for $ac_word... " >&6; }
  4691. if ${ac_cv_prog_AR+:} false; then :
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. if test -n "$AR"; then
  4695. ac_cv_prog_AR="$AR" # Let the user override the test.
  4696. else
  4697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4698. for as_dir in $PATH
  4699. do
  4700. IFS=$as_save_IFS
  4701. test -z "$as_dir" && as_dir=.
  4702. for ac_exec_ext in '' $ac_executable_extensions; do
  4703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4704. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4706. break 2
  4707. fi
  4708. done
  4709. done
  4710. IFS=$as_save_IFS
  4711. fi
  4712. fi
  4713. AR=$ac_cv_prog_AR
  4714. if test -n "$AR"; then
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4716. $as_echo "$AR" >&6; }
  4717. else
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4719. $as_echo "no" >&6; }
  4720. fi
  4721. test -n "$AR" && break
  4722. done
  4723. fi
  4724. if test -z "$AR"; then
  4725. ac_ct_AR=$AR
  4726. for ac_prog in ar
  4727. do
  4728. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4729. set dummy $ac_prog; ac_word=$2
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4731. $as_echo_n "checking for $ac_word... " >&6; }
  4732. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4733. $as_echo_n "(cached) " >&6
  4734. else
  4735. if test -n "$ac_ct_AR"; then
  4736. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4737. else
  4738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739. for as_dir in $PATH
  4740. do
  4741. IFS=$as_save_IFS
  4742. test -z "$as_dir" && as_dir=.
  4743. for ac_exec_ext in '' $ac_executable_extensions; do
  4744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4745. ac_cv_prog_ac_ct_AR="$ac_prog"
  4746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4747. break 2
  4748. fi
  4749. done
  4750. done
  4751. IFS=$as_save_IFS
  4752. fi
  4753. fi
  4754. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4755. if test -n "$ac_ct_AR"; then
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4757. $as_echo "$ac_ct_AR" >&6; }
  4758. else
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4760. $as_echo "no" >&6; }
  4761. fi
  4762. test -n "$ac_ct_AR" && break
  4763. done
  4764. if test "x$ac_ct_AR" = x; then
  4765. AR="false"
  4766. else
  4767. case $cross_compiling:$ac_tool_warned in
  4768. yes:)
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4771. ac_tool_warned=yes ;;
  4772. esac
  4773. AR=$ac_ct_AR
  4774. fi
  4775. fi
  4776. : ${AR=ar}
  4777. : ${AR_FLAGS=cru}
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4779. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4780. if ${lt_cv_ar_at_file+:} false; then :
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. lt_cv_ar_at_file=no
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. int
  4787. main ()
  4788. {
  4789. ;
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. if ac_fn_c_try_compile "$LINENO"; then :
  4794. echo conftest.$ac_objext > conftest.lst
  4795. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4796. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4797. (eval $lt_ar_try) 2>&5
  4798. ac_status=$?
  4799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4800. test $ac_status = 0; }
  4801. if test 0 -eq "$ac_status"; then
  4802. # Ensure the archiver fails upon bogus file names.
  4803. rm -f conftest.$ac_objext libconftest.a
  4804. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4805. (eval $lt_ar_try) 2>&5
  4806. ac_status=$?
  4807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4808. test $ac_status = 0; }
  4809. if test 0 -ne "$ac_status"; then
  4810. lt_cv_ar_at_file=@
  4811. fi
  4812. fi
  4813. rm -f conftest.* libconftest.a
  4814. fi
  4815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4816. fi
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4818. $as_echo "$lt_cv_ar_at_file" >&6; }
  4819. if test no = "$lt_cv_ar_at_file"; then
  4820. archiver_list_spec=
  4821. else
  4822. archiver_list_spec=$lt_cv_ar_at_file
  4823. fi
  4824. if test -n "$ac_tool_prefix"; then
  4825. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4826. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4828. $as_echo_n "checking for $ac_word... " >&6; }
  4829. if ${ac_cv_prog_STRIP+:} false; then :
  4830. $as_echo_n "(cached) " >&6
  4831. else
  4832. if test -n "$STRIP"; then
  4833. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4834. else
  4835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4836. for as_dir in $PATH
  4837. do
  4838. IFS=$as_save_IFS
  4839. test -z "$as_dir" && as_dir=.
  4840. for ac_exec_ext in '' $ac_executable_extensions; do
  4841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4842. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4844. break 2
  4845. fi
  4846. done
  4847. done
  4848. IFS=$as_save_IFS
  4849. fi
  4850. fi
  4851. STRIP=$ac_cv_prog_STRIP
  4852. if test -n "$STRIP"; then
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4854. $as_echo "$STRIP" >&6; }
  4855. else
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4857. $as_echo "no" >&6; }
  4858. fi
  4859. fi
  4860. if test -z "$ac_cv_prog_STRIP"; then
  4861. ac_ct_STRIP=$STRIP
  4862. # Extract the first word of "strip", so it can be a program name with args.
  4863. set dummy strip; ac_word=$2
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4865. $as_echo_n "checking for $ac_word... " >&6; }
  4866. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. if test -n "$ac_ct_STRIP"; then
  4870. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4871. else
  4872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4873. for as_dir in $PATH
  4874. do
  4875. IFS=$as_save_IFS
  4876. test -z "$as_dir" && as_dir=.
  4877. for ac_exec_ext in '' $ac_executable_extensions; do
  4878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4879. ac_cv_prog_ac_ct_STRIP="strip"
  4880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4881. break 2
  4882. fi
  4883. done
  4884. done
  4885. IFS=$as_save_IFS
  4886. fi
  4887. fi
  4888. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4889. if test -n "$ac_ct_STRIP"; then
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4891. $as_echo "$ac_ct_STRIP" >&6; }
  4892. else
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4894. $as_echo "no" >&6; }
  4895. fi
  4896. if test "x$ac_ct_STRIP" = x; then
  4897. STRIP=":"
  4898. else
  4899. case $cross_compiling:$ac_tool_warned in
  4900. yes:)
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4902. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4903. ac_tool_warned=yes ;;
  4904. esac
  4905. STRIP=$ac_ct_STRIP
  4906. fi
  4907. else
  4908. STRIP="$ac_cv_prog_STRIP"
  4909. fi
  4910. test -z "$STRIP" && STRIP=:
  4911. if test -n "$ac_tool_prefix"; then
  4912. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4913. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4915. $as_echo_n "checking for $ac_word... " >&6; }
  4916. if ${ac_cv_prog_RANLIB+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -n "$RANLIB"; then
  4920. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4921. else
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_exec_ext in '' $ac_executable_extensions; do
  4928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4929. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4931. break 2
  4932. fi
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. fi
  4937. fi
  4938. RANLIB=$ac_cv_prog_RANLIB
  4939. if test -n "$RANLIB"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4941. $as_echo "$RANLIB" >&6; }
  4942. else
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4944. $as_echo "no" >&6; }
  4945. fi
  4946. fi
  4947. if test -z "$ac_cv_prog_RANLIB"; then
  4948. ac_ct_RANLIB=$RANLIB
  4949. # Extract the first word of "ranlib", so it can be a program name with args.
  4950. set dummy ranlib; ac_word=$2
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4952. $as_echo_n "checking for $ac_word... " >&6; }
  4953. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4954. $as_echo_n "(cached) " >&6
  4955. else
  4956. if test -n "$ac_ct_RANLIB"; then
  4957. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4958. else
  4959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4960. for as_dir in $PATH
  4961. do
  4962. IFS=$as_save_IFS
  4963. test -z "$as_dir" && as_dir=.
  4964. for ac_exec_ext in '' $ac_executable_extensions; do
  4965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4966. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4968. break 2
  4969. fi
  4970. done
  4971. done
  4972. IFS=$as_save_IFS
  4973. fi
  4974. fi
  4975. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4976. if test -n "$ac_ct_RANLIB"; then
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4978. $as_echo "$ac_ct_RANLIB" >&6; }
  4979. else
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4981. $as_echo "no" >&6; }
  4982. fi
  4983. if test "x$ac_ct_RANLIB" = x; then
  4984. RANLIB=":"
  4985. else
  4986. case $cross_compiling:$ac_tool_warned in
  4987. yes:)
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4990. ac_tool_warned=yes ;;
  4991. esac
  4992. RANLIB=$ac_ct_RANLIB
  4993. fi
  4994. else
  4995. RANLIB="$ac_cv_prog_RANLIB"
  4996. fi
  4997. test -z "$RANLIB" && RANLIB=:
  4998. # Determine commands to create old-style static archives.
  4999. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5000. old_postinstall_cmds='chmod 644 $oldlib'
  5001. old_postuninstall_cmds=
  5002. if test -n "$RANLIB"; then
  5003. case $host_os in
  5004. bitrig* | openbsd*)
  5005. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5006. ;;
  5007. *)
  5008. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5009. ;;
  5010. esac
  5011. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5012. fi
  5013. case $host_os in
  5014. darwin*)
  5015. lock_old_archive_extraction=yes ;;
  5016. *)
  5017. lock_old_archive_extraction=no ;;
  5018. esac
  5019. for ac_prog in gawk mawk nawk awk
  5020. do
  5021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5022. set dummy $ac_prog; ac_word=$2
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5024. $as_echo_n "checking for $ac_word... " >&6; }
  5025. if ${ac_cv_prog_AWK+:} false; then :
  5026. $as_echo_n "(cached) " >&6
  5027. else
  5028. if test -n "$AWK"; then
  5029. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5030. else
  5031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5032. for as_dir in $PATH
  5033. do
  5034. IFS=$as_save_IFS
  5035. test -z "$as_dir" && as_dir=.
  5036. for ac_exec_ext in '' $ac_executable_extensions; do
  5037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5038. ac_cv_prog_AWK="$ac_prog"
  5039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5040. break 2
  5041. fi
  5042. done
  5043. done
  5044. IFS=$as_save_IFS
  5045. fi
  5046. fi
  5047. AWK=$ac_cv_prog_AWK
  5048. if test -n "$AWK"; then
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5050. $as_echo "$AWK" >&6; }
  5051. else
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5053. $as_echo "no" >&6; }
  5054. fi
  5055. test -n "$AWK" && break
  5056. done
  5057. # If no C compiler was specified, use CC.
  5058. LTCC=${LTCC-"$CC"}
  5059. # If no C compiler flags were specified, use CFLAGS.
  5060. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5061. # Allow CC to be a program name with arguments.
  5062. compiler=$CC
  5063. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5065. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5066. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. # These are sane defaults that work on at least a few old systems.
  5070. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5071. # Character class describing NM global symbol codes.
  5072. symcode='[BCDEGRST]'
  5073. # Regexp to match symbols that can be accessed directly from C.
  5074. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5075. # Define system-specific variables.
  5076. case $host_os in
  5077. aix*)
  5078. symcode='[BCDT]'
  5079. ;;
  5080. cygwin* | mingw* | pw32* | cegcc*)
  5081. symcode='[ABCDGISTW]'
  5082. ;;
  5083. hpux*)
  5084. if test ia64 = "$host_cpu"; then
  5085. symcode='[ABCDEGRST]'
  5086. fi
  5087. ;;
  5088. irix* | nonstopux*)
  5089. symcode='[BCDEGRST]'
  5090. ;;
  5091. osf*)
  5092. symcode='[BCDEGQRST]'
  5093. ;;
  5094. solaris*)
  5095. symcode='[BCDRT]'
  5096. ;;
  5097. sco3.2v5*)
  5098. symcode='[DT]'
  5099. ;;
  5100. sysv4.2uw2*)
  5101. symcode='[DT]'
  5102. ;;
  5103. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5104. symcode='[ABDT]'
  5105. ;;
  5106. sysv4)
  5107. symcode='[DFNSTU]'
  5108. ;;
  5109. esac
  5110. # If we're using GNU nm, then use its standard symbol codes.
  5111. case `$NM -V 2>&1` in
  5112. *GNU* | *'with BFD'*)
  5113. symcode='[ABCDGIRSTW]' ;;
  5114. esac
  5115. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5116. # Gets list of data symbols to import.
  5117. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5118. # Adjust the below global symbol transforms to fixup imported variables.
  5119. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5120. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5121. lt_c_name_lib_hook="\
  5122. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5123. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5124. else
  5125. # Disable hooks by default.
  5126. lt_cv_sys_global_symbol_to_import=
  5127. lt_cdecl_hook=
  5128. lt_c_name_hook=
  5129. lt_c_name_lib_hook=
  5130. fi
  5131. # Transform an extracted symbol line into a proper C declaration.
  5132. # Some systems (esp. on ia64) link data and code symbols differently,
  5133. # so use this general approach.
  5134. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5135. $lt_cdecl_hook\
  5136. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5137. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5138. # Transform an extracted symbol line into symbol name and symbol address
  5139. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5140. $lt_c_name_hook\
  5141. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5142. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5143. # Transform an extracted symbol line into symbol name with lib prefix and
  5144. # symbol address.
  5145. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5146. $lt_c_name_lib_hook\
  5147. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5148. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5149. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5150. # Handle CRLF in mingw tool chain
  5151. opt_cr=
  5152. case $build_os in
  5153. mingw*)
  5154. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5155. ;;
  5156. esac
  5157. # Try without a prefix underscore, then with it.
  5158. for ac_symprfx in "" "_"; do
  5159. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5160. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5161. # Write the raw and C identifiers.
  5162. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5163. # Fake it for dumpbin and say T for any non-static function,
  5164. # D for any global variable and I for any imported variable.
  5165. # Also find C++ and __fastcall symbols from MSVC++,
  5166. # which start with @ or ?.
  5167. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5168. " {last_section=section; section=\$ 3};"\
  5169. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5170. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5171. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5172. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5173. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5174. " \$ 0!~/External *\|/{next};"\
  5175. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5176. " {if(hide[section]) next};"\
  5177. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5178. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5179. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5180. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5181. " ' prfx=^$ac_symprfx"
  5182. else
  5183. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5184. fi
  5185. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5186. # Check to see that the pipe works correctly.
  5187. pipe_works=no
  5188. rm -f conftest*
  5189. cat > conftest.$ac_ext <<_LT_EOF
  5190. #ifdef __cplusplus
  5191. extern "C" {
  5192. #endif
  5193. char nm_test_var;
  5194. void nm_test_func(void);
  5195. void nm_test_func(void){}
  5196. #ifdef __cplusplus
  5197. }
  5198. #endif
  5199. int main(){nm_test_var='a';nm_test_func();return(0);}
  5200. _LT_EOF
  5201. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5202. (eval $ac_compile) 2>&5
  5203. ac_status=$?
  5204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5205. test $ac_status = 0; }; then
  5206. # Now try to grab the symbols.
  5207. nlist=conftest.nm
  5208. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5209. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5210. ac_status=$?
  5211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5212. test $ac_status = 0; } && test -s "$nlist"; then
  5213. # Try sorting and uniquifying the output.
  5214. if sort "$nlist" | uniq > "$nlist"T; then
  5215. mv -f "$nlist"T "$nlist"
  5216. else
  5217. rm -f "$nlist"T
  5218. fi
  5219. # Make sure that we snagged all the symbols we need.
  5220. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5221. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5222. cat <<_LT_EOF > conftest.$ac_ext
  5223. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5224. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5225. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5226. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5227. # define LT_DLSYM_CONST
  5228. #elif defined __osf__
  5229. /* This system does not cope well with relocations in const data. */
  5230. # define LT_DLSYM_CONST
  5231. #else
  5232. # define LT_DLSYM_CONST const
  5233. #endif
  5234. #ifdef __cplusplus
  5235. extern "C" {
  5236. #endif
  5237. _LT_EOF
  5238. # Now generate the symbol file.
  5239. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5240. cat <<_LT_EOF >> conftest.$ac_ext
  5241. /* The mapping between symbol names and symbols. */
  5242. LT_DLSYM_CONST struct {
  5243. const char *name;
  5244. void *address;
  5245. }
  5246. lt__PROGRAM__LTX_preloaded_symbols[] =
  5247. {
  5248. { "@PROGRAM@", (void *) 0 },
  5249. _LT_EOF
  5250. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5251. cat <<\_LT_EOF >> conftest.$ac_ext
  5252. {0, (void *) 0}
  5253. };
  5254. /* This works around a problem in FreeBSD linker */
  5255. #ifdef FREEBSD_WORKAROUND
  5256. static const void *lt_preloaded_setup() {
  5257. return lt__PROGRAM__LTX_preloaded_symbols;
  5258. }
  5259. #endif
  5260. #ifdef __cplusplus
  5261. }
  5262. #endif
  5263. _LT_EOF
  5264. # Now try linking the two files.
  5265. mv conftest.$ac_objext conftstm.$ac_objext
  5266. lt_globsym_save_LIBS=$LIBS
  5267. lt_globsym_save_CFLAGS=$CFLAGS
  5268. LIBS=conftstm.$ac_objext
  5269. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5270. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5271. (eval $ac_link) 2>&5
  5272. ac_status=$?
  5273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5274. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5275. pipe_works=yes
  5276. fi
  5277. LIBS=$lt_globsym_save_LIBS
  5278. CFLAGS=$lt_globsym_save_CFLAGS
  5279. else
  5280. echo "cannot find nm_test_func in $nlist" >&5
  5281. fi
  5282. else
  5283. echo "cannot find nm_test_var in $nlist" >&5
  5284. fi
  5285. else
  5286. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5287. fi
  5288. else
  5289. echo "$progname: failed program was:" >&5
  5290. cat conftest.$ac_ext >&5
  5291. fi
  5292. rm -rf conftest* conftst*
  5293. # Do not use the global_symbol_pipe unless it works.
  5294. if test yes = "$pipe_works"; then
  5295. break
  5296. else
  5297. lt_cv_sys_global_symbol_pipe=
  5298. fi
  5299. done
  5300. fi
  5301. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5302. lt_cv_sys_global_symbol_to_cdecl=
  5303. fi
  5304. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5306. $as_echo "failed" >&6; }
  5307. else
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5309. $as_echo "ok" >&6; }
  5310. fi
  5311. # Response file support.
  5312. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5313. nm_file_list_spec='@'
  5314. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5315. nm_file_list_spec='@'
  5316. fi
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5318. $as_echo_n "checking for sysroot... " >&6; }
  5319. # Check whether --with-sysroot was given.
  5320. if test "${with_sysroot+set}" = set; then :
  5321. withval=$with_sysroot;
  5322. else
  5323. with_sysroot=no
  5324. fi
  5325. lt_sysroot=
  5326. case $with_sysroot in #(
  5327. yes)
  5328. if test yes = "$GCC"; then
  5329. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5330. fi
  5331. ;; #(
  5332. /*)
  5333. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5334. ;; #(
  5335. no|'')
  5336. ;; #(
  5337. *)
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5339. $as_echo "$with_sysroot" >&6; }
  5340. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5341. ;;
  5342. esac
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5344. $as_echo "${lt_sysroot:-no}" >&6; }
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5346. $as_echo_n "checking for a working dd... " >&6; }
  5347. if ${ac_cv_path_lt_DD+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. printf 0123456789abcdef0123456789abcdef >conftest.i
  5351. cat conftest.i conftest.i >conftest2.i
  5352. : ${lt_DD:=$DD}
  5353. if test -z "$lt_DD"; then
  5354. ac_path_lt_DD_found=false
  5355. # Loop through the user's path and test for each of PROGNAME-LIST
  5356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5357. for as_dir in $PATH
  5358. do
  5359. IFS=$as_save_IFS
  5360. test -z "$as_dir" && as_dir=.
  5361. for ac_prog in dd; do
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5364. as_fn_executable_p "$ac_path_lt_DD" || continue
  5365. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5366. cmp -s conftest.i conftest.out \
  5367. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5368. fi
  5369. $ac_path_lt_DD_found && break 3
  5370. done
  5371. done
  5372. done
  5373. IFS=$as_save_IFS
  5374. if test -z "$ac_cv_path_lt_DD"; then
  5375. :
  5376. fi
  5377. else
  5378. ac_cv_path_lt_DD=$lt_DD
  5379. fi
  5380. rm -f conftest.i conftest2.i conftest.out
  5381. fi
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5383. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5385. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5386. if ${lt_cv_truncate_bin+:} false; then :
  5387. $as_echo_n "(cached) " >&6
  5388. else
  5389. printf 0123456789abcdef0123456789abcdef >conftest.i
  5390. cat conftest.i conftest.i >conftest2.i
  5391. lt_cv_truncate_bin=
  5392. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5393. cmp -s conftest.i conftest.out \
  5394. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5395. fi
  5396. rm -f conftest.i conftest2.i conftest.out
  5397. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5398. fi
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5400. $as_echo "$lt_cv_truncate_bin" >&6; }
  5401. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5402. func_cc_basename ()
  5403. {
  5404. for cc_temp in $*""; do
  5405. case $cc_temp in
  5406. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5407. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5408. \-*) ;;
  5409. *) break;;
  5410. esac
  5411. done
  5412. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5413. }
  5414. # Check whether --enable-libtool-lock was given.
  5415. if test "${enable_libtool_lock+set}" = set; then :
  5416. enableval=$enable_libtool_lock;
  5417. fi
  5418. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5419. # Some flags need to be propagated to the compiler or linker for good
  5420. # libtool support.
  5421. case $host in
  5422. ia64-*-hpux*)
  5423. # Find out what ABI is being produced by ac_compile, and set mode
  5424. # options accordingly.
  5425. echo 'int i;' > conftest.$ac_ext
  5426. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5427. (eval $ac_compile) 2>&5
  5428. ac_status=$?
  5429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5430. test $ac_status = 0; }; then
  5431. case `/usr/bin/file conftest.$ac_objext` in
  5432. *ELF-32*)
  5433. HPUX_IA64_MODE=32
  5434. ;;
  5435. *ELF-64*)
  5436. HPUX_IA64_MODE=64
  5437. ;;
  5438. esac
  5439. fi
  5440. rm -rf conftest*
  5441. ;;
  5442. *-*-irix6*)
  5443. # Find out what ABI is being produced by ac_compile, and set linker
  5444. # options accordingly.
  5445. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5446. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5447. (eval $ac_compile) 2>&5
  5448. ac_status=$?
  5449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5450. test $ac_status = 0; }; then
  5451. if test yes = "$lt_cv_prog_gnu_ld"; then
  5452. case `/usr/bin/file conftest.$ac_objext` in
  5453. *32-bit*)
  5454. LD="${LD-ld} -melf32bsmip"
  5455. ;;
  5456. *N32*)
  5457. LD="${LD-ld} -melf32bmipn32"
  5458. ;;
  5459. *64-bit*)
  5460. LD="${LD-ld} -melf64bmip"
  5461. ;;
  5462. esac
  5463. else
  5464. case `/usr/bin/file conftest.$ac_objext` in
  5465. *32-bit*)
  5466. LD="${LD-ld} -32"
  5467. ;;
  5468. *N32*)
  5469. LD="${LD-ld} -n32"
  5470. ;;
  5471. *64-bit*)
  5472. LD="${LD-ld} -64"
  5473. ;;
  5474. esac
  5475. fi
  5476. fi
  5477. rm -rf conftest*
  5478. ;;
  5479. mips64*-*linux*)
  5480. # Find out what ABI is being produced by ac_compile, and set linker
  5481. # options accordingly.
  5482. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5483. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5484. (eval $ac_compile) 2>&5
  5485. ac_status=$?
  5486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5487. test $ac_status = 0; }; then
  5488. emul=elf
  5489. case `/usr/bin/file conftest.$ac_objext` in
  5490. *32-bit*)
  5491. emul="${emul}32"
  5492. ;;
  5493. *64-bit*)
  5494. emul="${emul}64"
  5495. ;;
  5496. esac
  5497. case `/usr/bin/file conftest.$ac_objext` in
  5498. *MSB*)
  5499. emul="${emul}btsmip"
  5500. ;;
  5501. *LSB*)
  5502. emul="${emul}ltsmip"
  5503. ;;
  5504. esac
  5505. case `/usr/bin/file conftest.$ac_objext` in
  5506. *N32*)
  5507. emul="${emul}n32"
  5508. ;;
  5509. esac
  5510. LD="${LD-ld} -m $emul"
  5511. fi
  5512. rm -rf conftest*
  5513. ;;
  5514. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5515. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5516. # Find out what ABI is being produced by ac_compile, and set linker
  5517. # options accordingly. Note that the listed cases only cover the
  5518. # situations where additional linker options are needed (such as when
  5519. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5520. # vice versa); the common cases where no linker options are needed do
  5521. # not appear in the list.
  5522. echo 'int i;' > conftest.$ac_ext
  5523. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5524. (eval $ac_compile) 2>&5
  5525. ac_status=$?
  5526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5527. test $ac_status = 0; }; then
  5528. case `/usr/bin/file conftest.o` in
  5529. *32-bit*)
  5530. case $host in
  5531. x86_64-*kfreebsd*-gnu)
  5532. LD="${LD-ld} -m elf_i386_fbsd"
  5533. ;;
  5534. x86_64-*linux*)
  5535. case `/usr/bin/file conftest.o` in
  5536. *x86-64*)
  5537. LD="${LD-ld} -m elf32_x86_64"
  5538. ;;
  5539. *)
  5540. LD="${LD-ld} -m elf_i386"
  5541. ;;
  5542. esac
  5543. ;;
  5544. powerpc64le-*linux*)
  5545. LD="${LD-ld} -m elf32lppclinux"
  5546. ;;
  5547. powerpc64-*linux*)
  5548. LD="${LD-ld} -m elf32ppclinux"
  5549. ;;
  5550. s390x-*linux*)
  5551. LD="${LD-ld} -m elf_s390"
  5552. ;;
  5553. sparc64-*linux*)
  5554. LD="${LD-ld} -m elf32_sparc"
  5555. ;;
  5556. esac
  5557. ;;
  5558. *64-bit*)
  5559. case $host in
  5560. x86_64-*kfreebsd*-gnu)
  5561. LD="${LD-ld} -m elf_x86_64_fbsd"
  5562. ;;
  5563. x86_64-*linux*)
  5564. LD="${LD-ld} -m elf_x86_64"
  5565. ;;
  5566. powerpcle-*linux*|powerpc64le-*linux*)
  5567. LD="${LD-ld} -m elf64lppc"
  5568. ;;
  5569. powerpc-*linux*|powerpc64-*linux*)
  5570. LD="${LD-ld} -m elf64ppc"
  5571. ;;
  5572. s390*-*linux*|s390*-*tpf*)
  5573. LD="${LD-ld} -m elf64_s390"
  5574. ;;
  5575. sparc*-*linux*)
  5576. LD="${LD-ld} -m elf64_sparc"
  5577. ;;
  5578. esac
  5579. ;;
  5580. esac
  5581. fi
  5582. rm -rf conftest*
  5583. ;;
  5584. *-*-sco3.2v5*)
  5585. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5586. SAVE_CFLAGS=$CFLAGS
  5587. CFLAGS="$CFLAGS -belf"
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5589. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5590. if ${lt_cv_cc_needs_belf+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. ac_ext=c
  5594. ac_cpp='$CPP $CPPFLAGS'
  5595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5599. /* end confdefs.h. */
  5600. int
  5601. main ()
  5602. {
  5603. ;
  5604. return 0;
  5605. }
  5606. _ACEOF
  5607. if ac_fn_c_try_link "$LINENO"; then :
  5608. lt_cv_cc_needs_belf=yes
  5609. else
  5610. lt_cv_cc_needs_belf=no
  5611. fi
  5612. rm -f core conftest.err conftest.$ac_objext \
  5613. conftest$ac_exeext conftest.$ac_ext
  5614. ac_ext=c
  5615. ac_cpp='$CPP $CPPFLAGS'
  5616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5619. fi
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5621. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5622. if test yes != "$lt_cv_cc_needs_belf"; then
  5623. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5624. CFLAGS=$SAVE_CFLAGS
  5625. fi
  5626. ;;
  5627. *-*solaris*)
  5628. # Find out what ABI is being produced by ac_compile, and set linker
  5629. # options accordingly.
  5630. echo 'int i;' > conftest.$ac_ext
  5631. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5632. (eval $ac_compile) 2>&5
  5633. ac_status=$?
  5634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5635. test $ac_status = 0; }; then
  5636. case `/usr/bin/file conftest.o` in
  5637. *64-bit*)
  5638. case $lt_cv_prog_gnu_ld in
  5639. yes*)
  5640. case $host in
  5641. i?86-*-solaris*|x86_64-*-solaris*)
  5642. LD="${LD-ld} -m elf_x86_64"
  5643. ;;
  5644. sparc*-*-solaris*)
  5645. LD="${LD-ld} -m elf64_sparc"
  5646. ;;
  5647. esac
  5648. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5649. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5650. LD=${LD-ld}_sol2
  5651. fi
  5652. ;;
  5653. *)
  5654. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5655. LD="${LD-ld} -64"
  5656. fi
  5657. ;;
  5658. esac
  5659. ;;
  5660. esac
  5661. fi
  5662. rm -rf conftest*
  5663. ;;
  5664. esac
  5665. need_locks=$enable_libtool_lock
  5666. if test -n "$ac_tool_prefix"; then
  5667. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5668. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5670. $as_echo_n "checking for $ac_word... " >&6; }
  5671. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. if test -n "$MANIFEST_TOOL"; then
  5675. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5676. else
  5677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5678. for as_dir in $PATH
  5679. do
  5680. IFS=$as_save_IFS
  5681. test -z "$as_dir" && as_dir=.
  5682. for ac_exec_ext in '' $ac_executable_extensions; do
  5683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5684. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5686. break 2
  5687. fi
  5688. done
  5689. done
  5690. IFS=$as_save_IFS
  5691. fi
  5692. fi
  5693. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5694. if test -n "$MANIFEST_TOOL"; then
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5696. $as_echo "$MANIFEST_TOOL" >&6; }
  5697. else
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5699. $as_echo "no" >&6; }
  5700. fi
  5701. fi
  5702. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5703. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5704. # Extract the first word of "mt", so it can be a program name with args.
  5705. set dummy mt; ac_word=$2
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5707. $as_echo_n "checking for $ac_word... " >&6; }
  5708. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5709. $as_echo_n "(cached) " >&6
  5710. else
  5711. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5712. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5713. else
  5714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5715. for as_dir in $PATH
  5716. do
  5717. IFS=$as_save_IFS
  5718. test -z "$as_dir" && as_dir=.
  5719. for ac_exec_ext in '' $ac_executable_extensions; do
  5720. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5721. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5723. break 2
  5724. fi
  5725. done
  5726. done
  5727. IFS=$as_save_IFS
  5728. fi
  5729. fi
  5730. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5731. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5733. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5734. else
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5736. $as_echo "no" >&6; }
  5737. fi
  5738. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5739. MANIFEST_TOOL=":"
  5740. else
  5741. case $cross_compiling:$ac_tool_warned in
  5742. yes:)
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5744. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5745. ac_tool_warned=yes ;;
  5746. esac
  5747. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5748. fi
  5749. else
  5750. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5751. fi
  5752. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5754. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5755. if ${lt_cv_path_mainfest_tool+:} false; then :
  5756. $as_echo_n "(cached) " >&6
  5757. else
  5758. lt_cv_path_mainfest_tool=no
  5759. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5760. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5761. cat conftest.err >&5
  5762. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5763. lt_cv_path_mainfest_tool=yes
  5764. fi
  5765. rm -f conftest*
  5766. fi
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5768. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5769. if test yes != "$lt_cv_path_mainfest_tool"; then
  5770. MANIFEST_TOOL=:
  5771. fi
  5772. case $host_os in
  5773. rhapsody* | darwin*)
  5774. if test -n "$ac_tool_prefix"; then
  5775. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5776. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5778. $as_echo_n "checking for $ac_word... " >&6; }
  5779. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5780. $as_echo_n "(cached) " >&6
  5781. else
  5782. if test -n "$DSYMUTIL"; then
  5783. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5784. else
  5785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5786. for as_dir in $PATH
  5787. do
  5788. IFS=$as_save_IFS
  5789. test -z "$as_dir" && as_dir=.
  5790. for ac_exec_ext in '' $ac_executable_extensions; do
  5791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5792. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5794. break 2
  5795. fi
  5796. done
  5797. done
  5798. IFS=$as_save_IFS
  5799. fi
  5800. fi
  5801. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5802. if test -n "$DSYMUTIL"; then
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5804. $as_echo "$DSYMUTIL" >&6; }
  5805. else
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5807. $as_echo "no" >&6; }
  5808. fi
  5809. fi
  5810. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5811. ac_ct_DSYMUTIL=$DSYMUTIL
  5812. # Extract the first word of "dsymutil", so it can be a program name with args.
  5813. set dummy dsymutil; ac_word=$2
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5815. $as_echo_n "checking for $ac_word... " >&6; }
  5816. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5817. $as_echo_n "(cached) " >&6
  5818. else
  5819. if test -n "$ac_ct_DSYMUTIL"; then
  5820. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5821. else
  5822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5823. for as_dir in $PATH
  5824. do
  5825. IFS=$as_save_IFS
  5826. test -z "$as_dir" && as_dir=.
  5827. for ac_exec_ext in '' $ac_executable_extensions; do
  5828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5829. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5831. break 2
  5832. fi
  5833. done
  5834. done
  5835. IFS=$as_save_IFS
  5836. fi
  5837. fi
  5838. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5839. if test -n "$ac_ct_DSYMUTIL"; then
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5841. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5842. else
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5844. $as_echo "no" >&6; }
  5845. fi
  5846. if test "x$ac_ct_DSYMUTIL" = x; then
  5847. DSYMUTIL=":"
  5848. else
  5849. case $cross_compiling:$ac_tool_warned in
  5850. yes:)
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5853. ac_tool_warned=yes ;;
  5854. esac
  5855. DSYMUTIL=$ac_ct_DSYMUTIL
  5856. fi
  5857. else
  5858. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5859. fi
  5860. if test -n "$ac_tool_prefix"; then
  5861. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5862. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5864. $as_echo_n "checking for $ac_word... " >&6; }
  5865. if ${ac_cv_prog_NMEDIT+:} false; then :
  5866. $as_echo_n "(cached) " >&6
  5867. else
  5868. if test -n "$NMEDIT"; then
  5869. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5870. else
  5871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5872. for as_dir in $PATH
  5873. do
  5874. IFS=$as_save_IFS
  5875. test -z "$as_dir" && as_dir=.
  5876. for ac_exec_ext in '' $ac_executable_extensions; do
  5877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5878. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5880. break 2
  5881. fi
  5882. done
  5883. done
  5884. IFS=$as_save_IFS
  5885. fi
  5886. fi
  5887. NMEDIT=$ac_cv_prog_NMEDIT
  5888. if test -n "$NMEDIT"; then
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5890. $as_echo "$NMEDIT" >&6; }
  5891. else
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5893. $as_echo "no" >&6; }
  5894. fi
  5895. fi
  5896. if test -z "$ac_cv_prog_NMEDIT"; then
  5897. ac_ct_NMEDIT=$NMEDIT
  5898. # Extract the first word of "nmedit", so it can be a program name with args.
  5899. set dummy nmedit; ac_word=$2
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5901. $as_echo_n "checking for $ac_word... " >&6; }
  5902. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5903. $as_echo_n "(cached) " >&6
  5904. else
  5905. if test -n "$ac_ct_NMEDIT"; then
  5906. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5907. else
  5908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5909. for as_dir in $PATH
  5910. do
  5911. IFS=$as_save_IFS
  5912. test -z "$as_dir" && as_dir=.
  5913. for ac_exec_ext in '' $ac_executable_extensions; do
  5914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5915. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5917. break 2
  5918. fi
  5919. done
  5920. done
  5921. IFS=$as_save_IFS
  5922. fi
  5923. fi
  5924. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5925. if test -n "$ac_ct_NMEDIT"; then
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5927. $as_echo "$ac_ct_NMEDIT" >&6; }
  5928. else
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5930. $as_echo "no" >&6; }
  5931. fi
  5932. if test "x$ac_ct_NMEDIT" = x; then
  5933. NMEDIT=":"
  5934. else
  5935. case $cross_compiling:$ac_tool_warned in
  5936. yes:)
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5939. ac_tool_warned=yes ;;
  5940. esac
  5941. NMEDIT=$ac_ct_NMEDIT
  5942. fi
  5943. else
  5944. NMEDIT="$ac_cv_prog_NMEDIT"
  5945. fi
  5946. if test -n "$ac_tool_prefix"; then
  5947. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5948. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5950. $as_echo_n "checking for $ac_word... " >&6; }
  5951. if ${ac_cv_prog_LIPO+:} false; then :
  5952. $as_echo_n "(cached) " >&6
  5953. else
  5954. if test -n "$LIPO"; then
  5955. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5956. else
  5957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5958. for as_dir in $PATH
  5959. do
  5960. IFS=$as_save_IFS
  5961. test -z "$as_dir" && as_dir=.
  5962. for ac_exec_ext in '' $ac_executable_extensions; do
  5963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5964. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5966. break 2
  5967. fi
  5968. done
  5969. done
  5970. IFS=$as_save_IFS
  5971. fi
  5972. fi
  5973. LIPO=$ac_cv_prog_LIPO
  5974. if test -n "$LIPO"; then
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5976. $as_echo "$LIPO" >&6; }
  5977. else
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5979. $as_echo "no" >&6; }
  5980. fi
  5981. fi
  5982. if test -z "$ac_cv_prog_LIPO"; then
  5983. ac_ct_LIPO=$LIPO
  5984. # Extract the first word of "lipo", so it can be a program name with args.
  5985. set dummy lipo; ac_word=$2
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5987. $as_echo_n "checking for $ac_word... " >&6; }
  5988. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. if test -n "$ac_ct_LIPO"; then
  5992. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5993. else
  5994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5995. for as_dir in $PATH
  5996. do
  5997. IFS=$as_save_IFS
  5998. test -z "$as_dir" && as_dir=.
  5999. for ac_exec_ext in '' $ac_executable_extensions; do
  6000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6001. ac_cv_prog_ac_ct_LIPO="lipo"
  6002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6003. break 2
  6004. fi
  6005. done
  6006. done
  6007. IFS=$as_save_IFS
  6008. fi
  6009. fi
  6010. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6011. if test -n "$ac_ct_LIPO"; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6013. $as_echo "$ac_ct_LIPO" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6016. $as_echo "no" >&6; }
  6017. fi
  6018. if test "x$ac_ct_LIPO" = x; then
  6019. LIPO=":"
  6020. else
  6021. case $cross_compiling:$ac_tool_warned in
  6022. yes:)
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6025. ac_tool_warned=yes ;;
  6026. esac
  6027. LIPO=$ac_ct_LIPO
  6028. fi
  6029. else
  6030. LIPO="$ac_cv_prog_LIPO"
  6031. fi
  6032. if test -n "$ac_tool_prefix"; then
  6033. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6034. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6036. $as_echo_n "checking for $ac_word... " >&6; }
  6037. if ${ac_cv_prog_OTOOL+:} false; then :
  6038. $as_echo_n "(cached) " >&6
  6039. else
  6040. if test -n "$OTOOL"; then
  6041. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6042. else
  6043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6044. for as_dir in $PATH
  6045. do
  6046. IFS=$as_save_IFS
  6047. test -z "$as_dir" && as_dir=.
  6048. for ac_exec_ext in '' $ac_executable_extensions; do
  6049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6050. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6052. break 2
  6053. fi
  6054. done
  6055. done
  6056. IFS=$as_save_IFS
  6057. fi
  6058. fi
  6059. OTOOL=$ac_cv_prog_OTOOL
  6060. if test -n "$OTOOL"; then
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6062. $as_echo "$OTOOL" >&6; }
  6063. else
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6065. $as_echo "no" >&6; }
  6066. fi
  6067. fi
  6068. if test -z "$ac_cv_prog_OTOOL"; then
  6069. ac_ct_OTOOL=$OTOOL
  6070. # Extract the first word of "otool", so it can be a program name with args.
  6071. set dummy otool; ac_word=$2
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6073. $as_echo_n "checking for $ac_word... " >&6; }
  6074. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. if test -n "$ac_ct_OTOOL"; then
  6078. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6079. else
  6080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6081. for as_dir in $PATH
  6082. do
  6083. IFS=$as_save_IFS
  6084. test -z "$as_dir" && as_dir=.
  6085. for ac_exec_ext in '' $ac_executable_extensions; do
  6086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6087. ac_cv_prog_ac_ct_OTOOL="otool"
  6088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6089. break 2
  6090. fi
  6091. done
  6092. done
  6093. IFS=$as_save_IFS
  6094. fi
  6095. fi
  6096. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6097. if test -n "$ac_ct_OTOOL"; then
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6099. $as_echo "$ac_ct_OTOOL" >&6; }
  6100. else
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6102. $as_echo "no" >&6; }
  6103. fi
  6104. if test "x$ac_ct_OTOOL" = x; then
  6105. OTOOL=":"
  6106. else
  6107. case $cross_compiling:$ac_tool_warned in
  6108. yes:)
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6110. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6111. ac_tool_warned=yes ;;
  6112. esac
  6113. OTOOL=$ac_ct_OTOOL
  6114. fi
  6115. else
  6116. OTOOL="$ac_cv_prog_OTOOL"
  6117. fi
  6118. if test -n "$ac_tool_prefix"; then
  6119. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6120. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6122. $as_echo_n "checking for $ac_word... " >&6; }
  6123. if ${ac_cv_prog_OTOOL64+:} false; then :
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. if test -n "$OTOOL64"; then
  6127. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6128. else
  6129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6130. for as_dir in $PATH
  6131. do
  6132. IFS=$as_save_IFS
  6133. test -z "$as_dir" && as_dir=.
  6134. for ac_exec_ext in '' $ac_executable_extensions; do
  6135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6136. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6138. break 2
  6139. fi
  6140. done
  6141. done
  6142. IFS=$as_save_IFS
  6143. fi
  6144. fi
  6145. OTOOL64=$ac_cv_prog_OTOOL64
  6146. if test -n "$OTOOL64"; then
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6148. $as_echo "$OTOOL64" >&6; }
  6149. else
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6151. $as_echo "no" >&6; }
  6152. fi
  6153. fi
  6154. if test -z "$ac_cv_prog_OTOOL64"; then
  6155. ac_ct_OTOOL64=$OTOOL64
  6156. # Extract the first word of "otool64", so it can be a program name with args.
  6157. set dummy otool64; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$ac_ct_OTOOL64"; then
  6164. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6173. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6183. if test -n "$ac_ct_OTOOL64"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6185. $as_echo "$ac_ct_OTOOL64" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. if test "x$ac_ct_OTOOL64" = x; then
  6191. OTOOL64=":"
  6192. else
  6193. case $cross_compiling:$ac_tool_warned in
  6194. yes:)
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6197. ac_tool_warned=yes ;;
  6198. esac
  6199. OTOOL64=$ac_ct_OTOOL64
  6200. fi
  6201. else
  6202. OTOOL64="$ac_cv_prog_OTOOL64"
  6203. fi
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6205. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6206. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6207. $as_echo_n "(cached) " >&6
  6208. else
  6209. lt_cv_apple_cc_single_mod=no
  6210. if test -z "$LT_MULTI_MODULE"; then
  6211. # By default we will add the -single_module flag. You can override
  6212. # by either setting the environment variable LT_MULTI_MODULE
  6213. # non-empty at configure time, or by adding -multi_module to the
  6214. # link flags.
  6215. rm -rf libconftest.dylib*
  6216. echo "int foo(void){return 1;}" > conftest.c
  6217. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6218. -dynamiclib -Wl,-single_module conftest.c" >&5
  6219. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6220. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6221. _lt_result=$?
  6222. # If there is a non-empty error log, and "single_module"
  6223. # appears in it, assume the flag caused a linker warning
  6224. if test -s conftest.err && $GREP single_module conftest.err; then
  6225. cat conftest.err >&5
  6226. # Otherwise, if the output was created with a 0 exit code from
  6227. # the compiler, it worked.
  6228. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6229. lt_cv_apple_cc_single_mod=yes
  6230. else
  6231. cat conftest.err >&5
  6232. fi
  6233. rm -rf libconftest.dylib*
  6234. rm -f conftest.*
  6235. fi
  6236. fi
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6238. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6240. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6241. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6242. $as_echo_n "(cached) " >&6
  6243. else
  6244. lt_cv_ld_exported_symbols_list=no
  6245. save_LDFLAGS=$LDFLAGS
  6246. echo "_main" > conftest.sym
  6247. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6249. /* end confdefs.h. */
  6250. int
  6251. main ()
  6252. {
  6253. ;
  6254. return 0;
  6255. }
  6256. _ACEOF
  6257. if ac_fn_c_try_link "$LINENO"; then :
  6258. lt_cv_ld_exported_symbols_list=yes
  6259. else
  6260. lt_cv_ld_exported_symbols_list=no
  6261. fi
  6262. rm -f core conftest.err conftest.$ac_objext \
  6263. conftest$ac_exeext conftest.$ac_ext
  6264. LDFLAGS=$save_LDFLAGS
  6265. fi
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6267. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6269. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6270. if ${lt_cv_ld_force_load+:} false; then :
  6271. $as_echo_n "(cached) " >&6
  6272. else
  6273. lt_cv_ld_force_load=no
  6274. cat > conftest.c << _LT_EOF
  6275. int forced_loaded() { return 2;}
  6276. _LT_EOF
  6277. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6278. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6279. echo "$AR cru libconftest.a conftest.o" >&5
  6280. $AR cru libconftest.a conftest.o 2>&5
  6281. echo "$RANLIB libconftest.a" >&5
  6282. $RANLIB libconftest.a 2>&5
  6283. cat > conftest.c << _LT_EOF
  6284. int main() { return 0;}
  6285. _LT_EOF
  6286. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6287. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6288. _lt_result=$?
  6289. if test -s conftest.err && $GREP force_load conftest.err; then
  6290. cat conftest.err >&5
  6291. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6292. lt_cv_ld_force_load=yes
  6293. else
  6294. cat conftest.err >&5
  6295. fi
  6296. rm -f conftest.err libconftest.a conftest conftest.c
  6297. rm -rf conftest.dSYM
  6298. fi
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6300. $as_echo "$lt_cv_ld_force_load" >&6; }
  6301. case $host_os in
  6302. rhapsody* | darwin1.[012])
  6303. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6304. darwin1.*)
  6305. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6306. darwin*)
  6307. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6308. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6309. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6310. *)
  6311. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6312. esac
  6313. ;;
  6314. esac
  6315. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6316. _lt_dar_single_mod='$single_module'
  6317. fi
  6318. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6319. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6320. else
  6321. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6322. fi
  6323. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6324. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6325. else
  6326. _lt_dsymutil=
  6327. fi
  6328. ;;
  6329. esac
  6330. # func_munge_path_list VARIABLE PATH
  6331. # -----------------------------------
  6332. # VARIABLE is name of variable containing _space_ separated list of
  6333. # directories to be munged by the contents of PATH, which is string
  6334. # having a format:
  6335. # "DIR[:DIR]:"
  6336. # string "DIR[ DIR]" will be prepended to VARIABLE
  6337. # ":DIR[:DIR]"
  6338. # string "DIR[ DIR]" will be appended to VARIABLE
  6339. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6340. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6341. # "DIRA[ DIRA]" will be appended to VARIABLE
  6342. # "DIR[:DIR]"
  6343. # VARIABLE will be replaced by "DIR[ DIR]"
  6344. func_munge_path_list ()
  6345. {
  6346. case x$2 in
  6347. x)
  6348. ;;
  6349. *:)
  6350. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6351. ;;
  6352. x:*)
  6353. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6354. ;;
  6355. *::*)
  6356. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6357. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6358. ;;
  6359. *)
  6360. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6361. ;;
  6362. esac
  6363. }
  6364. ac_ext=c
  6365. ac_cpp='$CPP $CPPFLAGS'
  6366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6370. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6371. # On Suns, sometimes $CPP names a directory.
  6372. if test -n "$CPP" && test -d "$CPP"; then
  6373. CPP=
  6374. fi
  6375. if test -z "$CPP"; then
  6376. if ${ac_cv_prog_CPP+:} false; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. # Double quotes because CPP needs to be expanded
  6380. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6381. do
  6382. ac_preproc_ok=false
  6383. for ac_c_preproc_warn_flag in '' yes
  6384. do
  6385. # Use a header file that comes with gcc, so configuring glibc
  6386. # with a fresh cross-compiler works.
  6387. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6388. # <limits.h> exists even on freestanding compilers.
  6389. # On the NeXT, cc -E runs the code through the compiler's parser,
  6390. # not just through cpp. "Syntax error" is here to catch this case.
  6391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6392. /* end confdefs.h. */
  6393. #ifdef __STDC__
  6394. # include <limits.h>
  6395. #else
  6396. # include <assert.h>
  6397. #endif
  6398. Syntax error
  6399. _ACEOF
  6400. if ac_fn_c_try_cpp "$LINENO"; then :
  6401. else
  6402. # Broken: fails on valid input.
  6403. continue
  6404. fi
  6405. rm -f conftest.err conftest.i conftest.$ac_ext
  6406. # OK, works on sane cases. Now check whether nonexistent headers
  6407. # can be detected and how.
  6408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6409. /* end confdefs.h. */
  6410. #include <ac_nonexistent.h>
  6411. _ACEOF
  6412. if ac_fn_c_try_cpp "$LINENO"; then :
  6413. # Broken: success on invalid input.
  6414. continue
  6415. else
  6416. # Passes both tests.
  6417. ac_preproc_ok=:
  6418. break
  6419. fi
  6420. rm -f conftest.err conftest.i conftest.$ac_ext
  6421. done
  6422. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6423. rm -f conftest.i conftest.err conftest.$ac_ext
  6424. if $ac_preproc_ok; then :
  6425. break
  6426. fi
  6427. done
  6428. ac_cv_prog_CPP=$CPP
  6429. fi
  6430. CPP=$ac_cv_prog_CPP
  6431. else
  6432. ac_cv_prog_CPP=$CPP
  6433. fi
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6435. $as_echo "$CPP" >&6; }
  6436. ac_preproc_ok=false
  6437. for ac_c_preproc_warn_flag in '' yes
  6438. do
  6439. # Use a header file that comes with gcc, so configuring glibc
  6440. # with a fresh cross-compiler works.
  6441. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6442. # <limits.h> exists even on freestanding compilers.
  6443. # On the NeXT, cc -E runs the code through the compiler's parser,
  6444. # not just through cpp. "Syntax error" is here to catch this case.
  6445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6446. /* end confdefs.h. */
  6447. #ifdef __STDC__
  6448. # include <limits.h>
  6449. #else
  6450. # include <assert.h>
  6451. #endif
  6452. Syntax error
  6453. _ACEOF
  6454. if ac_fn_c_try_cpp "$LINENO"; then :
  6455. else
  6456. # Broken: fails on valid input.
  6457. continue
  6458. fi
  6459. rm -f conftest.err conftest.i conftest.$ac_ext
  6460. # OK, works on sane cases. Now check whether nonexistent headers
  6461. # can be detected and how.
  6462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6463. /* end confdefs.h. */
  6464. #include <ac_nonexistent.h>
  6465. _ACEOF
  6466. if ac_fn_c_try_cpp "$LINENO"; then :
  6467. # Broken: success on invalid input.
  6468. continue
  6469. else
  6470. # Passes both tests.
  6471. ac_preproc_ok=:
  6472. break
  6473. fi
  6474. rm -f conftest.err conftest.i conftest.$ac_ext
  6475. done
  6476. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6477. rm -f conftest.i conftest.err conftest.$ac_ext
  6478. if $ac_preproc_ok; then :
  6479. else
  6480. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6482. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6483. See \`config.log' for more details" "$LINENO" 5; }
  6484. fi
  6485. ac_ext=c
  6486. ac_cpp='$CPP $CPPFLAGS'
  6487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6491. $as_echo_n "checking for ANSI C header files... " >&6; }
  6492. if ${ac_cv_header_stdc+:} false; then :
  6493. $as_echo_n "(cached) " >&6
  6494. else
  6495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6496. /* end confdefs.h. */
  6497. #include <stdlib.h>
  6498. #include <stdarg.h>
  6499. #include <string.h>
  6500. #include <float.h>
  6501. int
  6502. main ()
  6503. {
  6504. ;
  6505. return 0;
  6506. }
  6507. _ACEOF
  6508. if ac_fn_c_try_compile "$LINENO"; then :
  6509. ac_cv_header_stdc=yes
  6510. else
  6511. ac_cv_header_stdc=no
  6512. fi
  6513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6514. if test $ac_cv_header_stdc = yes; then
  6515. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6517. /* end confdefs.h. */
  6518. #include <string.h>
  6519. _ACEOF
  6520. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6521. $EGREP "memchr" >/dev/null 2>&1; then :
  6522. else
  6523. ac_cv_header_stdc=no
  6524. fi
  6525. rm -f conftest*
  6526. fi
  6527. if test $ac_cv_header_stdc = yes; then
  6528. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6530. /* end confdefs.h. */
  6531. #include <stdlib.h>
  6532. _ACEOF
  6533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6534. $EGREP "free" >/dev/null 2>&1; then :
  6535. else
  6536. ac_cv_header_stdc=no
  6537. fi
  6538. rm -f conftest*
  6539. fi
  6540. if test $ac_cv_header_stdc = yes; then
  6541. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6542. if test "$cross_compiling" = yes; then :
  6543. :
  6544. else
  6545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6546. /* end confdefs.h. */
  6547. #include <ctype.h>
  6548. #include <stdlib.h>
  6549. #if ((' ' & 0x0FF) == 0x020)
  6550. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6551. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6552. #else
  6553. # define ISLOWER(c) \
  6554. (('a' <= (c) && (c) <= 'i') \
  6555. || ('j' <= (c) && (c) <= 'r') \
  6556. || ('s' <= (c) && (c) <= 'z'))
  6557. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6558. #endif
  6559. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6560. int
  6561. main ()
  6562. {
  6563. int i;
  6564. for (i = 0; i < 256; i++)
  6565. if (XOR (islower (i), ISLOWER (i))
  6566. || toupper (i) != TOUPPER (i))
  6567. return 2;
  6568. return 0;
  6569. }
  6570. _ACEOF
  6571. if ac_fn_c_try_run "$LINENO"; then :
  6572. else
  6573. ac_cv_header_stdc=no
  6574. fi
  6575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6576. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6577. fi
  6578. fi
  6579. fi
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6581. $as_echo "$ac_cv_header_stdc" >&6; }
  6582. if test $ac_cv_header_stdc = yes; then
  6583. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6584. fi
  6585. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6586. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6587. inttypes.h stdint.h unistd.h
  6588. do :
  6589. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6590. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6591. "
  6592. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6593. cat >>confdefs.h <<_ACEOF
  6594. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6595. _ACEOF
  6596. fi
  6597. done
  6598. for ac_header in dlfcn.h
  6599. do :
  6600. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6601. "
  6602. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6603. cat >>confdefs.h <<_ACEOF
  6604. #define HAVE_DLFCN_H 1
  6605. _ACEOF
  6606. fi
  6607. done
  6608. # Set options
  6609. enable_win32_dll=yes
  6610. case $host in
  6611. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6612. if test -n "$ac_tool_prefix"; then
  6613. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6614. set dummy ${ac_tool_prefix}as; ac_word=$2
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6616. $as_echo_n "checking for $ac_word... " >&6; }
  6617. if ${ac_cv_prog_AS+:} false; then :
  6618. $as_echo_n "(cached) " >&6
  6619. else
  6620. if test -n "$AS"; then
  6621. ac_cv_prog_AS="$AS" # Let the user override the test.
  6622. else
  6623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6624. for as_dir in $PATH
  6625. do
  6626. IFS=$as_save_IFS
  6627. test -z "$as_dir" && as_dir=.
  6628. for ac_exec_ext in '' $ac_executable_extensions; do
  6629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6630. ac_cv_prog_AS="${ac_tool_prefix}as"
  6631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6632. break 2
  6633. fi
  6634. done
  6635. done
  6636. IFS=$as_save_IFS
  6637. fi
  6638. fi
  6639. AS=$ac_cv_prog_AS
  6640. if test -n "$AS"; then
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6642. $as_echo "$AS" >&6; }
  6643. else
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6645. $as_echo "no" >&6; }
  6646. fi
  6647. fi
  6648. if test -z "$ac_cv_prog_AS"; then
  6649. ac_ct_AS=$AS
  6650. # Extract the first word of "as", so it can be a program name with args.
  6651. set dummy as; ac_word=$2
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6653. $as_echo_n "checking for $ac_word... " >&6; }
  6654. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6655. $as_echo_n "(cached) " >&6
  6656. else
  6657. if test -n "$ac_ct_AS"; then
  6658. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6659. else
  6660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6661. for as_dir in $PATH
  6662. do
  6663. IFS=$as_save_IFS
  6664. test -z "$as_dir" && as_dir=.
  6665. for ac_exec_ext in '' $ac_executable_extensions; do
  6666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6667. ac_cv_prog_ac_ct_AS="as"
  6668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6669. break 2
  6670. fi
  6671. done
  6672. done
  6673. IFS=$as_save_IFS
  6674. fi
  6675. fi
  6676. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6677. if test -n "$ac_ct_AS"; then
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6679. $as_echo "$ac_ct_AS" >&6; }
  6680. else
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. $as_echo "no" >&6; }
  6683. fi
  6684. if test "x$ac_ct_AS" = x; then
  6685. AS="false"
  6686. else
  6687. case $cross_compiling:$ac_tool_warned in
  6688. yes:)
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6690. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6691. ac_tool_warned=yes ;;
  6692. esac
  6693. AS=$ac_ct_AS
  6694. fi
  6695. else
  6696. AS="$ac_cv_prog_AS"
  6697. fi
  6698. if test -n "$ac_tool_prefix"; then
  6699. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6700. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6702. $as_echo_n "checking for $ac_word... " >&6; }
  6703. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6704. $as_echo_n "(cached) " >&6
  6705. else
  6706. if test -n "$DLLTOOL"; then
  6707. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6708. else
  6709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6710. for as_dir in $PATH
  6711. do
  6712. IFS=$as_save_IFS
  6713. test -z "$as_dir" && as_dir=.
  6714. for ac_exec_ext in '' $ac_executable_extensions; do
  6715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6716. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6718. break 2
  6719. fi
  6720. done
  6721. done
  6722. IFS=$as_save_IFS
  6723. fi
  6724. fi
  6725. DLLTOOL=$ac_cv_prog_DLLTOOL
  6726. if test -n "$DLLTOOL"; then
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6728. $as_echo "$DLLTOOL" >&6; }
  6729. else
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6731. $as_echo "no" >&6; }
  6732. fi
  6733. fi
  6734. if test -z "$ac_cv_prog_DLLTOOL"; then
  6735. ac_ct_DLLTOOL=$DLLTOOL
  6736. # Extract the first word of "dlltool", so it can be a program name with args.
  6737. set dummy dlltool; ac_word=$2
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6739. $as_echo_n "checking for $ac_word... " >&6; }
  6740. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. if test -n "$ac_ct_DLLTOOL"; then
  6744. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6745. else
  6746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6747. for as_dir in $PATH
  6748. do
  6749. IFS=$as_save_IFS
  6750. test -z "$as_dir" && as_dir=.
  6751. for ac_exec_ext in '' $ac_executable_extensions; do
  6752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6753. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6755. break 2
  6756. fi
  6757. done
  6758. done
  6759. IFS=$as_save_IFS
  6760. fi
  6761. fi
  6762. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6763. if test -n "$ac_ct_DLLTOOL"; then
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6765. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6766. else
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6768. $as_echo "no" >&6; }
  6769. fi
  6770. if test "x$ac_ct_DLLTOOL" = x; then
  6771. DLLTOOL="false"
  6772. else
  6773. case $cross_compiling:$ac_tool_warned in
  6774. yes:)
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6777. ac_tool_warned=yes ;;
  6778. esac
  6779. DLLTOOL=$ac_ct_DLLTOOL
  6780. fi
  6781. else
  6782. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6783. fi
  6784. if test -n "$ac_tool_prefix"; then
  6785. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6786. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6788. $as_echo_n "checking for $ac_word... " >&6; }
  6789. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. if test -n "$OBJDUMP"; then
  6793. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6794. else
  6795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6796. for as_dir in $PATH
  6797. do
  6798. IFS=$as_save_IFS
  6799. test -z "$as_dir" && as_dir=.
  6800. for ac_exec_ext in '' $ac_executable_extensions; do
  6801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6802. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6804. break 2
  6805. fi
  6806. done
  6807. done
  6808. IFS=$as_save_IFS
  6809. fi
  6810. fi
  6811. OBJDUMP=$ac_cv_prog_OBJDUMP
  6812. if test -n "$OBJDUMP"; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6814. $as_echo "$OBJDUMP" >&6; }
  6815. else
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6817. $as_echo "no" >&6; }
  6818. fi
  6819. fi
  6820. if test -z "$ac_cv_prog_OBJDUMP"; then
  6821. ac_ct_OBJDUMP=$OBJDUMP
  6822. # Extract the first word of "objdump", so it can be a program name with args.
  6823. set dummy objdump; ac_word=$2
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6825. $as_echo_n "checking for $ac_word... " >&6; }
  6826. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6827. $as_echo_n "(cached) " >&6
  6828. else
  6829. if test -n "$ac_ct_OBJDUMP"; then
  6830. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6831. else
  6832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6833. for as_dir in $PATH
  6834. do
  6835. IFS=$as_save_IFS
  6836. test -z "$as_dir" && as_dir=.
  6837. for ac_exec_ext in '' $ac_executable_extensions; do
  6838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6839. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6841. break 2
  6842. fi
  6843. done
  6844. done
  6845. IFS=$as_save_IFS
  6846. fi
  6847. fi
  6848. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6849. if test -n "$ac_ct_OBJDUMP"; then
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6851. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6852. else
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6854. $as_echo "no" >&6; }
  6855. fi
  6856. if test "x$ac_ct_OBJDUMP" = x; then
  6857. OBJDUMP="false"
  6858. else
  6859. case $cross_compiling:$ac_tool_warned in
  6860. yes:)
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6862. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6863. ac_tool_warned=yes ;;
  6864. esac
  6865. OBJDUMP=$ac_ct_OBJDUMP
  6866. fi
  6867. else
  6868. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6869. fi
  6870. ;;
  6871. esac
  6872. test -z "$AS" && AS=as
  6873. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6874. test -z "$OBJDUMP" && OBJDUMP=objdump
  6875. enable_dlopen=no
  6876. # Check whether --enable-shared was given.
  6877. if test "${enable_shared+set}" = set; then :
  6878. enableval=$enable_shared; p=${PACKAGE-default}
  6879. case $enableval in
  6880. yes) enable_shared=yes ;;
  6881. no) enable_shared=no ;;
  6882. *)
  6883. enable_shared=no
  6884. # Look at the argument we got. We use all the common list separators.
  6885. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6886. for pkg in $enableval; do
  6887. IFS=$lt_save_ifs
  6888. if test "X$pkg" = "X$p"; then
  6889. enable_shared=yes
  6890. fi
  6891. done
  6892. IFS=$lt_save_ifs
  6893. ;;
  6894. esac
  6895. else
  6896. enable_shared=yes
  6897. fi
  6898. # Check whether --enable-static was given.
  6899. if test "${enable_static+set}" = set; then :
  6900. enableval=$enable_static; p=${PACKAGE-default}
  6901. case $enableval in
  6902. yes) enable_static=yes ;;
  6903. no) enable_static=no ;;
  6904. *)
  6905. enable_static=no
  6906. # Look at the argument we got. We use all the common list separators.
  6907. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6908. for pkg in $enableval; do
  6909. IFS=$lt_save_ifs
  6910. if test "X$pkg" = "X$p"; then
  6911. enable_static=yes
  6912. fi
  6913. done
  6914. IFS=$lt_save_ifs
  6915. ;;
  6916. esac
  6917. else
  6918. enable_static=yes
  6919. fi
  6920. # Check whether --with-pic was given.
  6921. if test "${with_pic+set}" = set; then :
  6922. withval=$with_pic; lt_p=${PACKAGE-default}
  6923. case $withval in
  6924. yes|no) pic_mode=$withval ;;
  6925. *)
  6926. pic_mode=default
  6927. # Look at the argument we got. We use all the common list separators.
  6928. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6929. for lt_pkg in $withval; do
  6930. IFS=$lt_save_ifs
  6931. if test "X$lt_pkg" = "X$lt_p"; then
  6932. pic_mode=yes
  6933. fi
  6934. done
  6935. IFS=$lt_save_ifs
  6936. ;;
  6937. esac
  6938. else
  6939. pic_mode=default
  6940. fi
  6941. # Check whether --enable-fast-install was given.
  6942. if test "${enable_fast_install+set}" = set; then :
  6943. enableval=$enable_fast_install; p=${PACKAGE-default}
  6944. case $enableval in
  6945. yes) enable_fast_install=yes ;;
  6946. no) enable_fast_install=no ;;
  6947. *)
  6948. enable_fast_install=no
  6949. # Look at the argument we got. We use all the common list separators.
  6950. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6951. for pkg in $enableval; do
  6952. IFS=$lt_save_ifs
  6953. if test "X$pkg" = "X$p"; then
  6954. enable_fast_install=yes
  6955. fi
  6956. done
  6957. IFS=$lt_save_ifs
  6958. ;;
  6959. esac
  6960. else
  6961. enable_fast_install=yes
  6962. fi
  6963. shared_archive_member_spec=
  6964. case $host,$enable_shared in
  6965. power*-*-aix[5-9]*,yes)
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6967. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6968. # Check whether --with-aix-soname was given.
  6969. if test "${with_aix_soname+set}" = set; then :
  6970. withval=$with_aix_soname; case $withval in
  6971. aix|svr4|both)
  6972. ;;
  6973. *)
  6974. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6975. ;;
  6976. esac
  6977. lt_cv_with_aix_soname=$with_aix_soname
  6978. else
  6979. if ${lt_cv_with_aix_soname+:} false; then :
  6980. $as_echo_n "(cached) " >&6
  6981. else
  6982. lt_cv_with_aix_soname=aix
  6983. fi
  6984. with_aix_soname=$lt_cv_with_aix_soname
  6985. fi
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6987. $as_echo "$with_aix_soname" >&6; }
  6988. if test aix != "$with_aix_soname"; then
  6989. # For the AIX way of multilib, we name the shared archive member
  6990. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6991. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6992. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6993. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6994. if test 64 = "${OBJECT_MODE-32}"; then
  6995. shared_archive_member_spec=shr_64
  6996. else
  6997. shared_archive_member_spec=shr
  6998. fi
  6999. fi
  7000. ;;
  7001. *)
  7002. with_aix_soname=aix
  7003. ;;
  7004. esac
  7005. # This can be used to rebuild libtool when needed
  7006. LIBTOOL_DEPS=$ltmain
  7007. # Always use our own libtool.
  7008. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7009. test -z "$LN_S" && LN_S="ln -s"
  7010. if test -n "${ZSH_VERSION+set}"; then
  7011. setopt NO_GLOB_SUBST
  7012. fi
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7014. $as_echo_n "checking for objdir... " >&6; }
  7015. if ${lt_cv_objdir+:} false; then :
  7016. $as_echo_n "(cached) " >&6
  7017. else
  7018. rm -f .libs 2>/dev/null
  7019. mkdir .libs 2>/dev/null
  7020. if test -d .libs; then
  7021. lt_cv_objdir=.libs
  7022. else
  7023. # MS-DOS does not allow filenames that begin with a dot.
  7024. lt_cv_objdir=_libs
  7025. fi
  7026. rmdir .libs 2>/dev/null
  7027. fi
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7029. $as_echo "$lt_cv_objdir" >&6; }
  7030. objdir=$lt_cv_objdir
  7031. cat >>confdefs.h <<_ACEOF
  7032. #define LT_OBJDIR "$lt_cv_objdir/"
  7033. _ACEOF
  7034. case $host_os in
  7035. aix3*)
  7036. # AIX sometimes has problems with the GCC collect2 program. For some
  7037. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7038. # vanish in a puff of smoke.
  7039. if test set != "${COLLECT_NAMES+set}"; then
  7040. COLLECT_NAMES=
  7041. export COLLECT_NAMES
  7042. fi
  7043. ;;
  7044. esac
  7045. # Global variables:
  7046. ofile=libtool
  7047. can_build_shared=yes
  7048. # All known linkers require a '.a' archive for static linking (except MSVC,
  7049. # which needs '.lib').
  7050. libext=a
  7051. with_gnu_ld=$lt_cv_prog_gnu_ld
  7052. old_CC=$CC
  7053. old_CFLAGS=$CFLAGS
  7054. # Set sane defaults for various variables
  7055. test -z "$CC" && CC=cc
  7056. test -z "$LTCC" && LTCC=$CC
  7057. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7058. test -z "$LD" && LD=ld
  7059. test -z "$ac_objext" && ac_objext=o
  7060. func_cc_basename $compiler
  7061. cc_basename=$func_cc_basename_result
  7062. # Only perform the check for file, if the check method requires it
  7063. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7064. case $deplibs_check_method in
  7065. file_magic*)
  7066. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7068. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7069. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. case $MAGIC_CMD in
  7073. [\\/*] | ?:[\\/]*)
  7074. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7075. ;;
  7076. *)
  7077. lt_save_MAGIC_CMD=$MAGIC_CMD
  7078. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7079. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7080. for ac_dir in $ac_dummy; do
  7081. IFS=$lt_save_ifs
  7082. test -z "$ac_dir" && ac_dir=.
  7083. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7084. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7085. if test -n "$file_magic_test_file"; then
  7086. case $deplibs_check_method in
  7087. "file_magic "*)
  7088. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7089. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7090. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7091. $EGREP "$file_magic_regex" > /dev/null; then
  7092. :
  7093. else
  7094. cat <<_LT_EOF 1>&2
  7095. *** Warning: the command libtool uses to detect shared libraries,
  7096. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7097. *** The result is that libtool may fail to recognize shared libraries
  7098. *** as such. This will affect the creation of libtool libraries that
  7099. *** depend on shared libraries, but programs linked with such libtool
  7100. *** libraries will work regardless of this problem. Nevertheless, you
  7101. *** may want to report the problem to your system manager and/or to
  7102. *** bug-libtool@gnu.org
  7103. _LT_EOF
  7104. fi ;;
  7105. esac
  7106. fi
  7107. break
  7108. fi
  7109. done
  7110. IFS=$lt_save_ifs
  7111. MAGIC_CMD=$lt_save_MAGIC_CMD
  7112. ;;
  7113. esac
  7114. fi
  7115. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7116. if test -n "$MAGIC_CMD"; then
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7118. $as_echo "$MAGIC_CMD" >&6; }
  7119. else
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7121. $as_echo "no" >&6; }
  7122. fi
  7123. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7124. if test -n "$ac_tool_prefix"; then
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7126. $as_echo_n "checking for file... " >&6; }
  7127. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7128. $as_echo_n "(cached) " >&6
  7129. else
  7130. case $MAGIC_CMD in
  7131. [\\/*] | ?:[\\/]*)
  7132. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7133. ;;
  7134. *)
  7135. lt_save_MAGIC_CMD=$MAGIC_CMD
  7136. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7137. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7138. for ac_dir in $ac_dummy; do
  7139. IFS=$lt_save_ifs
  7140. test -z "$ac_dir" && ac_dir=.
  7141. if test -f "$ac_dir/file"; then
  7142. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7143. if test -n "$file_magic_test_file"; then
  7144. case $deplibs_check_method in
  7145. "file_magic "*)
  7146. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7147. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7148. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7149. $EGREP "$file_magic_regex" > /dev/null; then
  7150. :
  7151. else
  7152. cat <<_LT_EOF 1>&2
  7153. *** Warning: the command libtool uses to detect shared libraries,
  7154. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7155. *** The result is that libtool may fail to recognize shared libraries
  7156. *** as such. This will affect the creation of libtool libraries that
  7157. *** depend on shared libraries, but programs linked with such libtool
  7158. *** libraries will work regardless of this problem. Nevertheless, you
  7159. *** may want to report the problem to your system manager and/or to
  7160. *** bug-libtool@gnu.org
  7161. _LT_EOF
  7162. fi ;;
  7163. esac
  7164. fi
  7165. break
  7166. fi
  7167. done
  7168. IFS=$lt_save_ifs
  7169. MAGIC_CMD=$lt_save_MAGIC_CMD
  7170. ;;
  7171. esac
  7172. fi
  7173. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7174. if test -n "$MAGIC_CMD"; then
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7176. $as_echo "$MAGIC_CMD" >&6; }
  7177. else
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7179. $as_echo "no" >&6; }
  7180. fi
  7181. else
  7182. MAGIC_CMD=:
  7183. fi
  7184. fi
  7185. fi
  7186. ;;
  7187. esac
  7188. # Use C for the default configuration in the libtool script
  7189. lt_save_CC=$CC
  7190. ac_ext=c
  7191. ac_cpp='$CPP $CPPFLAGS'
  7192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7195. # Source file extension for C test sources.
  7196. ac_ext=c
  7197. # Object file extension for compiled C test sources.
  7198. objext=o
  7199. objext=$objext
  7200. # Code to be used in simple compile tests
  7201. lt_simple_compile_test_code="int some_variable = 0;"
  7202. # Code to be used in simple link tests
  7203. lt_simple_link_test_code='int main(){return(0);}'
  7204. # If no C compiler was specified, use CC.
  7205. LTCC=${LTCC-"$CC"}
  7206. # If no C compiler flags were specified, use CFLAGS.
  7207. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7208. # Allow CC to be a program name with arguments.
  7209. compiler=$CC
  7210. # Save the default compiler, since it gets overwritten when the other
  7211. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7212. compiler_DEFAULT=$CC
  7213. # save warnings/boilerplate of simple test code
  7214. ac_outfile=conftest.$ac_objext
  7215. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7216. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7217. _lt_compiler_boilerplate=`cat conftest.err`
  7218. $RM conftest*
  7219. ac_outfile=conftest.$ac_objext
  7220. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7221. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7222. _lt_linker_boilerplate=`cat conftest.err`
  7223. $RM -r conftest*
  7224. ## CAVEAT EMPTOR:
  7225. ## There is no encapsulation within the following macros, do not change
  7226. ## the running order or otherwise move them around unless you know exactly
  7227. ## what you are doing...
  7228. if test -n "$compiler"; then
  7229. lt_prog_compiler_no_builtin_flag=
  7230. if test yes = "$GCC"; then
  7231. case $cc_basename in
  7232. nvcc*)
  7233. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7234. *)
  7235. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7236. esac
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7238. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7239. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7240. $as_echo_n "(cached) " >&6
  7241. else
  7242. lt_cv_prog_compiler_rtti_exceptions=no
  7243. ac_outfile=conftest.$ac_objext
  7244. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7245. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7246. # Insert the option either (1) after the last *FLAGS variable, or
  7247. # (2) before a word containing "conftest.", or (3) at the end.
  7248. # Note that $ac_compile itself does not contain backslashes and begins
  7249. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7250. # The option is referenced via a variable to avoid confusing sed.
  7251. lt_compile=`echo "$ac_compile" | $SED \
  7252. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7253. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7254. -e 's:$: $lt_compiler_flag:'`
  7255. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7256. (eval "$lt_compile" 2>conftest.err)
  7257. ac_status=$?
  7258. cat conftest.err >&5
  7259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7260. if (exit $ac_status) && test -s "$ac_outfile"; then
  7261. # The compiler can only warn and ignore the option if not recognized
  7262. # So say no if there are warnings other than the usual output.
  7263. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7264. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7265. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7266. lt_cv_prog_compiler_rtti_exceptions=yes
  7267. fi
  7268. fi
  7269. $RM conftest*
  7270. fi
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7272. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7273. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7274. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7275. else
  7276. :
  7277. fi
  7278. fi
  7279. lt_prog_compiler_wl=
  7280. lt_prog_compiler_pic=
  7281. lt_prog_compiler_static=
  7282. if test yes = "$GCC"; then
  7283. lt_prog_compiler_wl='-Wl,'
  7284. lt_prog_compiler_static='-static'
  7285. case $host_os in
  7286. aix*)
  7287. # All AIX code is PIC.
  7288. if test ia64 = "$host_cpu"; then
  7289. # AIX 5 now supports IA64 processor
  7290. lt_prog_compiler_static='-Bstatic'
  7291. fi
  7292. lt_prog_compiler_pic='-fPIC'
  7293. ;;
  7294. amigaos*)
  7295. case $host_cpu in
  7296. powerpc)
  7297. # see comment about AmigaOS4 .so support
  7298. lt_prog_compiler_pic='-fPIC'
  7299. ;;
  7300. m68k)
  7301. # FIXME: we need at least 68020 code to build shared libraries, but
  7302. # adding the '-m68020' flag to GCC prevents building anything better,
  7303. # like '-m68040'.
  7304. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7305. ;;
  7306. esac
  7307. ;;
  7308. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7309. # PIC is the default for these OSes.
  7310. ;;
  7311. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7312. # This hack is so that the source file can tell whether it is being
  7313. # built for inclusion in a dll (and should export symbols for example).
  7314. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7315. # (--disable-auto-import) libraries
  7316. lt_prog_compiler_pic='-DDLL_EXPORT'
  7317. case $host_os in
  7318. os2*)
  7319. lt_prog_compiler_static='$wl-static'
  7320. ;;
  7321. esac
  7322. ;;
  7323. darwin* | rhapsody*)
  7324. # PIC is the default on this platform
  7325. # Common symbols not allowed in MH_DYLIB files
  7326. lt_prog_compiler_pic='-fno-common'
  7327. ;;
  7328. haiku*)
  7329. # PIC is the default for Haiku.
  7330. # The "-static" flag exists, but is broken.
  7331. lt_prog_compiler_static=
  7332. ;;
  7333. hpux*)
  7334. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7335. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7336. # sets the default TLS model and affects inlining.
  7337. case $host_cpu in
  7338. hppa*64*)
  7339. # +Z the default
  7340. ;;
  7341. *)
  7342. lt_prog_compiler_pic='-fPIC'
  7343. ;;
  7344. esac
  7345. ;;
  7346. interix[3-9]*)
  7347. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7348. # Instead, we relocate shared libraries at runtime.
  7349. ;;
  7350. msdosdjgpp*)
  7351. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7352. # on systems that don't support them.
  7353. lt_prog_compiler_can_build_shared=no
  7354. enable_shared=no
  7355. ;;
  7356. *nto* | *qnx*)
  7357. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7358. # it will coredump.
  7359. lt_prog_compiler_pic='-fPIC -shared'
  7360. ;;
  7361. sysv4*MP*)
  7362. if test -d /usr/nec; then
  7363. lt_prog_compiler_pic=-Kconform_pic
  7364. fi
  7365. ;;
  7366. *)
  7367. lt_prog_compiler_pic='-fPIC'
  7368. ;;
  7369. esac
  7370. case $cc_basename in
  7371. nvcc*) # Cuda Compiler Driver 2.2
  7372. lt_prog_compiler_wl='-Xlinker '
  7373. if test -n "$lt_prog_compiler_pic"; then
  7374. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7375. fi
  7376. ;;
  7377. esac
  7378. else
  7379. # PORTME Check for flag to pass linker flags through the system compiler.
  7380. case $host_os in
  7381. aix*)
  7382. lt_prog_compiler_wl='-Wl,'
  7383. if test ia64 = "$host_cpu"; then
  7384. # AIX 5 now supports IA64 processor
  7385. lt_prog_compiler_static='-Bstatic'
  7386. else
  7387. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7388. fi
  7389. ;;
  7390. darwin* | rhapsody*)
  7391. # PIC is the default on this platform
  7392. # Common symbols not allowed in MH_DYLIB files
  7393. lt_prog_compiler_pic='-fno-common'
  7394. case $cc_basename in
  7395. nagfor*)
  7396. # NAG Fortran compiler
  7397. lt_prog_compiler_wl='-Wl,-Wl,,'
  7398. lt_prog_compiler_pic='-PIC'
  7399. lt_prog_compiler_static='-Bstatic'
  7400. ;;
  7401. esac
  7402. ;;
  7403. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7404. # This hack is so that the source file can tell whether it is being
  7405. # built for inclusion in a dll (and should export symbols for example).
  7406. lt_prog_compiler_pic='-DDLL_EXPORT'
  7407. case $host_os in
  7408. os2*)
  7409. lt_prog_compiler_static='$wl-static'
  7410. ;;
  7411. esac
  7412. ;;
  7413. hpux9* | hpux10* | hpux11*)
  7414. lt_prog_compiler_wl='-Wl,'
  7415. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7416. # not for PA HP-UX.
  7417. case $host_cpu in
  7418. hppa*64*|ia64*)
  7419. # +Z the default
  7420. ;;
  7421. *)
  7422. lt_prog_compiler_pic='+Z'
  7423. ;;
  7424. esac
  7425. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7426. lt_prog_compiler_static='$wl-a ${wl}archive'
  7427. ;;
  7428. irix5* | irix6* | nonstopux*)
  7429. lt_prog_compiler_wl='-Wl,'
  7430. # PIC (with -KPIC) is the default.
  7431. lt_prog_compiler_static='-non_shared'
  7432. ;;
  7433. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7434. case $cc_basename in
  7435. # old Intel for x86_64, which still supported -KPIC.
  7436. ecc*)
  7437. lt_prog_compiler_wl='-Wl,'
  7438. lt_prog_compiler_pic='-KPIC'
  7439. lt_prog_compiler_static='-static'
  7440. ;;
  7441. # icc used to be incompatible with GCC.
  7442. # ICC 10 doesn't accept -KPIC any more.
  7443. icc* | ifort*)
  7444. lt_prog_compiler_wl='-Wl,'
  7445. lt_prog_compiler_pic='-fPIC'
  7446. lt_prog_compiler_static='-static'
  7447. ;;
  7448. # Lahey Fortran 8.1.
  7449. lf95*)
  7450. lt_prog_compiler_wl='-Wl,'
  7451. lt_prog_compiler_pic='--shared'
  7452. lt_prog_compiler_static='--static'
  7453. ;;
  7454. nagfor*)
  7455. # NAG Fortran compiler
  7456. lt_prog_compiler_wl='-Wl,-Wl,,'
  7457. lt_prog_compiler_pic='-PIC'
  7458. lt_prog_compiler_static='-Bstatic'
  7459. ;;
  7460. tcc*)
  7461. # Fabrice Bellard et al's Tiny C Compiler
  7462. lt_prog_compiler_wl='-Wl,'
  7463. lt_prog_compiler_pic='-fPIC'
  7464. lt_prog_compiler_static='-static'
  7465. ;;
  7466. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7467. # Portland Group compilers (*not* the Pentium gcc compiler,
  7468. # which looks to be a dead project)
  7469. lt_prog_compiler_wl='-Wl,'
  7470. lt_prog_compiler_pic='-fpic'
  7471. lt_prog_compiler_static='-Bstatic'
  7472. ;;
  7473. ccc*)
  7474. lt_prog_compiler_wl='-Wl,'
  7475. # All Alpha code is PIC.
  7476. lt_prog_compiler_static='-non_shared'
  7477. ;;
  7478. xl* | bgxl* | bgf* | mpixl*)
  7479. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7480. lt_prog_compiler_wl='-Wl,'
  7481. lt_prog_compiler_pic='-qpic'
  7482. lt_prog_compiler_static='-qstaticlink'
  7483. ;;
  7484. *)
  7485. case `$CC -V 2>&1 | sed 5q` in
  7486. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7487. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7488. lt_prog_compiler_pic='-KPIC'
  7489. lt_prog_compiler_static='-Bstatic'
  7490. lt_prog_compiler_wl=''
  7491. ;;
  7492. *Sun\ F* | *Sun*Fortran*)
  7493. lt_prog_compiler_pic='-KPIC'
  7494. lt_prog_compiler_static='-Bstatic'
  7495. lt_prog_compiler_wl='-Qoption ld '
  7496. ;;
  7497. *Sun\ C*)
  7498. # Sun C 5.9
  7499. lt_prog_compiler_pic='-KPIC'
  7500. lt_prog_compiler_static='-Bstatic'
  7501. lt_prog_compiler_wl='-Wl,'
  7502. ;;
  7503. *Intel*\ [CF]*Compiler*)
  7504. lt_prog_compiler_wl='-Wl,'
  7505. lt_prog_compiler_pic='-fPIC'
  7506. lt_prog_compiler_static='-static'
  7507. ;;
  7508. *Portland\ Group*)
  7509. lt_prog_compiler_wl='-Wl,'
  7510. lt_prog_compiler_pic='-fpic'
  7511. lt_prog_compiler_static='-Bstatic'
  7512. ;;
  7513. esac
  7514. ;;
  7515. esac
  7516. ;;
  7517. newsos6)
  7518. lt_prog_compiler_pic='-KPIC'
  7519. lt_prog_compiler_static='-Bstatic'
  7520. ;;
  7521. *nto* | *qnx*)
  7522. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7523. # it will coredump.
  7524. lt_prog_compiler_pic='-fPIC -shared'
  7525. ;;
  7526. osf3* | osf4* | osf5*)
  7527. lt_prog_compiler_wl='-Wl,'
  7528. # All OSF/1 code is PIC.
  7529. lt_prog_compiler_static='-non_shared'
  7530. ;;
  7531. rdos*)
  7532. lt_prog_compiler_static='-non_shared'
  7533. ;;
  7534. solaris*)
  7535. lt_prog_compiler_pic='-KPIC'
  7536. lt_prog_compiler_static='-Bstatic'
  7537. case $cc_basename in
  7538. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7539. lt_prog_compiler_wl='-Qoption ld ';;
  7540. *)
  7541. lt_prog_compiler_wl='-Wl,';;
  7542. esac
  7543. ;;
  7544. sunos4*)
  7545. lt_prog_compiler_wl='-Qoption ld '
  7546. lt_prog_compiler_pic='-PIC'
  7547. lt_prog_compiler_static='-Bstatic'
  7548. ;;
  7549. sysv4 | sysv4.2uw2* | sysv4.3*)
  7550. lt_prog_compiler_wl='-Wl,'
  7551. lt_prog_compiler_pic='-KPIC'
  7552. lt_prog_compiler_static='-Bstatic'
  7553. ;;
  7554. sysv4*MP*)
  7555. if test -d /usr/nec; then
  7556. lt_prog_compiler_pic='-Kconform_pic'
  7557. lt_prog_compiler_static='-Bstatic'
  7558. fi
  7559. ;;
  7560. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7561. lt_prog_compiler_wl='-Wl,'
  7562. lt_prog_compiler_pic='-KPIC'
  7563. lt_prog_compiler_static='-Bstatic'
  7564. ;;
  7565. unicos*)
  7566. lt_prog_compiler_wl='-Wl,'
  7567. lt_prog_compiler_can_build_shared=no
  7568. ;;
  7569. uts4*)
  7570. lt_prog_compiler_pic='-pic'
  7571. lt_prog_compiler_static='-Bstatic'
  7572. ;;
  7573. *)
  7574. lt_prog_compiler_can_build_shared=no
  7575. ;;
  7576. esac
  7577. fi
  7578. case $host_os in
  7579. # For platforms that do not support PIC, -DPIC is meaningless:
  7580. *djgpp*)
  7581. lt_prog_compiler_pic=
  7582. ;;
  7583. *)
  7584. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7585. ;;
  7586. esac
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7588. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7589. if ${lt_cv_prog_compiler_pic+:} false; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7593. fi
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7595. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7596. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7597. #
  7598. # Check to make sure the PIC flag actually works.
  7599. #
  7600. if test -n "$lt_prog_compiler_pic"; then
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7602. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7603. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7604. $as_echo_n "(cached) " >&6
  7605. else
  7606. lt_cv_prog_compiler_pic_works=no
  7607. ac_outfile=conftest.$ac_objext
  7608. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7609. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7610. # Insert the option either (1) after the last *FLAGS variable, or
  7611. # (2) before a word containing "conftest.", or (3) at the end.
  7612. # Note that $ac_compile itself does not contain backslashes and begins
  7613. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7614. # The option is referenced via a variable to avoid confusing sed.
  7615. lt_compile=`echo "$ac_compile" | $SED \
  7616. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7617. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7618. -e 's:$: $lt_compiler_flag:'`
  7619. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7620. (eval "$lt_compile" 2>conftest.err)
  7621. ac_status=$?
  7622. cat conftest.err >&5
  7623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7624. if (exit $ac_status) && test -s "$ac_outfile"; then
  7625. # The compiler can only warn and ignore the option if not recognized
  7626. # So say no if there are warnings other than the usual output.
  7627. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7628. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7629. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7630. lt_cv_prog_compiler_pic_works=yes
  7631. fi
  7632. fi
  7633. $RM conftest*
  7634. fi
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7636. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7637. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7638. case $lt_prog_compiler_pic in
  7639. "" | " "*) ;;
  7640. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7641. esac
  7642. else
  7643. lt_prog_compiler_pic=
  7644. lt_prog_compiler_can_build_shared=no
  7645. fi
  7646. fi
  7647. #
  7648. # Check to make sure the static flag actually works.
  7649. #
  7650. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7652. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7653. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7654. $as_echo_n "(cached) " >&6
  7655. else
  7656. lt_cv_prog_compiler_static_works=no
  7657. save_LDFLAGS=$LDFLAGS
  7658. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7659. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7660. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7661. # The linker can only warn and ignore the option if not recognized
  7662. # So say no if there are warnings
  7663. if test -s conftest.err; then
  7664. # Append any errors to the config.log.
  7665. cat conftest.err 1>&5
  7666. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7667. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7668. if diff conftest.exp conftest.er2 >/dev/null; then
  7669. lt_cv_prog_compiler_static_works=yes
  7670. fi
  7671. else
  7672. lt_cv_prog_compiler_static_works=yes
  7673. fi
  7674. fi
  7675. $RM -r conftest*
  7676. LDFLAGS=$save_LDFLAGS
  7677. fi
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7679. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7680. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7681. :
  7682. else
  7683. lt_prog_compiler_static=
  7684. fi
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7686. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7687. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7688. $as_echo_n "(cached) " >&6
  7689. else
  7690. lt_cv_prog_compiler_c_o=no
  7691. $RM -r conftest 2>/dev/null
  7692. mkdir conftest
  7693. cd conftest
  7694. mkdir out
  7695. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7696. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7697. # Insert the option either (1) after the last *FLAGS variable, or
  7698. # (2) before a word containing "conftest.", or (3) at the end.
  7699. # Note that $ac_compile itself does not contain backslashes and begins
  7700. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7701. lt_compile=`echo "$ac_compile" | $SED \
  7702. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7703. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7704. -e 's:$: $lt_compiler_flag:'`
  7705. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7706. (eval "$lt_compile" 2>out/conftest.err)
  7707. ac_status=$?
  7708. cat out/conftest.err >&5
  7709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7710. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7711. then
  7712. # The compiler can only warn and ignore the option if not recognized
  7713. # So say no if there are warnings
  7714. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7715. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7716. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7717. lt_cv_prog_compiler_c_o=yes
  7718. fi
  7719. fi
  7720. chmod u+w . 2>&5
  7721. $RM conftest*
  7722. # SGI C++ compiler will create directory out/ii_files/ for
  7723. # template instantiation
  7724. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7725. $RM out/* && rmdir out
  7726. cd ..
  7727. $RM -r conftest
  7728. $RM conftest*
  7729. fi
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7731. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7733. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7734. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7735. $as_echo_n "(cached) " >&6
  7736. else
  7737. lt_cv_prog_compiler_c_o=no
  7738. $RM -r conftest 2>/dev/null
  7739. mkdir conftest
  7740. cd conftest
  7741. mkdir out
  7742. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7743. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7744. # Insert the option either (1) after the last *FLAGS variable, or
  7745. # (2) before a word containing "conftest.", or (3) at the end.
  7746. # Note that $ac_compile itself does not contain backslashes and begins
  7747. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7748. lt_compile=`echo "$ac_compile" | $SED \
  7749. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7750. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7751. -e 's:$: $lt_compiler_flag:'`
  7752. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7753. (eval "$lt_compile" 2>out/conftest.err)
  7754. ac_status=$?
  7755. cat out/conftest.err >&5
  7756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7757. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7758. then
  7759. # The compiler can only warn and ignore the option if not recognized
  7760. # So say no if there are warnings
  7761. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7762. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7763. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7764. lt_cv_prog_compiler_c_o=yes
  7765. fi
  7766. fi
  7767. chmod u+w . 2>&5
  7768. $RM conftest*
  7769. # SGI C++ compiler will create directory out/ii_files/ for
  7770. # template instantiation
  7771. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7772. $RM out/* && rmdir out
  7773. cd ..
  7774. $RM -r conftest
  7775. $RM conftest*
  7776. fi
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7778. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7779. hard_links=nottested
  7780. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7781. # do not overwrite the value of need_locks provided by the user
  7782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7783. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7784. hard_links=yes
  7785. $RM conftest*
  7786. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7787. touch conftest.a
  7788. ln conftest.a conftest.b 2>&5 || hard_links=no
  7789. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7791. $as_echo "$hard_links" >&6; }
  7792. if test no = "$hard_links"; then
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7794. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7795. need_locks=warn
  7796. fi
  7797. else
  7798. need_locks=no
  7799. fi
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7801. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7802. runpath_var=
  7803. allow_undefined_flag=
  7804. always_export_symbols=no
  7805. archive_cmds=
  7806. archive_expsym_cmds=
  7807. compiler_needs_object=no
  7808. enable_shared_with_static_runtimes=no
  7809. export_dynamic_flag_spec=
  7810. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7811. hardcode_automatic=no
  7812. hardcode_direct=no
  7813. hardcode_direct_absolute=no
  7814. hardcode_libdir_flag_spec=
  7815. hardcode_libdir_separator=
  7816. hardcode_minus_L=no
  7817. hardcode_shlibpath_var=unsupported
  7818. inherit_rpath=no
  7819. link_all_deplibs=unknown
  7820. module_cmds=
  7821. module_expsym_cmds=
  7822. old_archive_from_new_cmds=
  7823. old_archive_from_expsyms_cmds=
  7824. thread_safe_flag_spec=
  7825. whole_archive_flag_spec=
  7826. # include_expsyms should be a list of space-separated symbols to be *always*
  7827. # included in the symbol list
  7828. include_expsyms=
  7829. # exclude_expsyms can be an extended regexp of symbols to exclude
  7830. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7831. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7832. # as well as any symbol that contains 'd'.
  7833. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7834. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7835. # platforms (ab)use it in PIC code, but their linkers get confused if
  7836. # the symbol is explicitly referenced. Since portable code cannot
  7837. # rely on this symbol name, it's probably fine to never include it in
  7838. # preloaded symbol tables.
  7839. # Exclude shared library initialization/finalization symbols.
  7840. extract_expsyms_cmds=
  7841. case $host_os in
  7842. cygwin* | mingw* | pw32* | cegcc*)
  7843. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7844. # When not using gcc, we currently assume that we are using
  7845. # Microsoft Visual C++.
  7846. if test yes != "$GCC"; then
  7847. with_gnu_ld=no
  7848. fi
  7849. ;;
  7850. interix*)
  7851. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7852. with_gnu_ld=yes
  7853. ;;
  7854. openbsd* | bitrig*)
  7855. with_gnu_ld=no
  7856. ;;
  7857. esac
  7858. ld_shlibs=yes
  7859. # On some targets, GNU ld is compatible enough with the native linker
  7860. # that we're better off using the native interface for both.
  7861. lt_use_gnu_ld_interface=no
  7862. if test yes = "$with_gnu_ld"; then
  7863. case $host_os in
  7864. aix*)
  7865. # The AIX port of GNU ld has always aspired to compatibility
  7866. # with the native linker. However, as the warning in the GNU ld
  7867. # block says, versions before 2.19.5* couldn't really create working
  7868. # shared libraries, regardless of the interface used.
  7869. case `$LD -v 2>&1` in
  7870. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7871. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7872. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7873. *)
  7874. lt_use_gnu_ld_interface=yes
  7875. ;;
  7876. esac
  7877. ;;
  7878. *)
  7879. lt_use_gnu_ld_interface=yes
  7880. ;;
  7881. esac
  7882. fi
  7883. if test yes = "$lt_use_gnu_ld_interface"; then
  7884. # If archive_cmds runs LD, not CC, wlarc should be empty
  7885. wlarc='$wl'
  7886. # Set some defaults for GNU ld with shared library support. These
  7887. # are reset later if shared libraries are not supported. Putting them
  7888. # here allows them to be overridden if necessary.
  7889. runpath_var=LD_RUN_PATH
  7890. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7891. export_dynamic_flag_spec='$wl--export-dynamic'
  7892. # ancient GNU ld didn't support --whole-archive et. al.
  7893. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7894. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7895. else
  7896. whole_archive_flag_spec=
  7897. fi
  7898. supports_anon_versioning=no
  7899. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7900. *GNU\ gold*) supports_anon_versioning=yes ;;
  7901. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7902. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7903. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7904. *\ 2.11.*) ;; # other 2.11 versions
  7905. *) supports_anon_versioning=yes ;;
  7906. esac
  7907. # See if GNU ld supports shared libraries.
  7908. case $host_os in
  7909. aix[3-9]*)
  7910. # On AIX/PPC, the GNU linker is very broken
  7911. if test ia64 != "$host_cpu"; then
  7912. ld_shlibs=no
  7913. cat <<_LT_EOF 1>&2
  7914. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7915. *** to be unable to reliably create shared libraries on AIX.
  7916. *** Therefore, libtool is disabling shared libraries support. If you
  7917. *** really care for shared libraries, you may want to install binutils
  7918. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7919. *** You will then need to restart the configuration process.
  7920. _LT_EOF
  7921. fi
  7922. ;;
  7923. amigaos*)
  7924. case $host_cpu in
  7925. powerpc)
  7926. # see comment about AmigaOS4 .so support
  7927. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7928. archive_expsym_cmds=''
  7929. ;;
  7930. m68k)
  7931. 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)'
  7932. hardcode_libdir_flag_spec='-L$libdir'
  7933. hardcode_minus_L=yes
  7934. ;;
  7935. esac
  7936. ;;
  7937. beos*)
  7938. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7939. allow_undefined_flag=unsupported
  7940. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7941. # support --undefined. This deserves some investigation. FIXME
  7942. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7943. else
  7944. ld_shlibs=no
  7945. fi
  7946. ;;
  7947. cygwin* | mingw* | pw32* | cegcc*)
  7948. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7949. # as there is no search path for DLLs.
  7950. hardcode_libdir_flag_spec='-L$libdir'
  7951. export_dynamic_flag_spec='$wl--export-all-symbols'
  7952. allow_undefined_flag=unsupported
  7953. always_export_symbols=no
  7954. enable_shared_with_static_runtimes=yes
  7955. 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'
  7956. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7957. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7958. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7959. # If the export-symbols file already is a .def file, use it as
  7960. # is; otherwise, prepend EXPORTS...
  7961. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7962. cp $export_symbols $output_objdir/$soname.def;
  7963. else
  7964. echo EXPORTS > $output_objdir/$soname.def;
  7965. cat $export_symbols >> $output_objdir/$soname.def;
  7966. fi~
  7967. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7968. else
  7969. ld_shlibs=no
  7970. fi
  7971. ;;
  7972. haiku*)
  7973. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7974. link_all_deplibs=yes
  7975. ;;
  7976. os2*)
  7977. hardcode_libdir_flag_spec='-L$libdir'
  7978. hardcode_minus_L=yes
  7979. allow_undefined_flag=unsupported
  7980. shrext_cmds=.dll
  7981. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7982. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7983. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7984. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7985. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7986. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7987. emximp -o $lib $output_objdir/$libname.def'
  7988. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7989. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7990. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7991. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7992. prefix_cmds="$SED"~
  7993. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7994. prefix_cmds="$prefix_cmds -e 1d";
  7995. fi~
  7996. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7997. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7998. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7999. emximp -o $lib $output_objdir/$libname.def'
  8000. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8001. enable_shared_with_static_runtimes=yes
  8002. file_list_spec='@'
  8003. ;;
  8004. interix[3-9]*)
  8005. hardcode_direct=no
  8006. hardcode_shlibpath_var=no
  8007. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8008. export_dynamic_flag_spec='$wl-E'
  8009. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8010. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8011. # default) and relocated if they conflict, which is a slow very memory
  8012. # consuming and fragmenting process. To avoid this, we pick a random,
  8013. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8014. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8015. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8016. 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'
  8017. ;;
  8018. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8019. tmp_diet=no
  8020. if test linux-dietlibc = "$host_os"; then
  8021. case $cc_basename in
  8022. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8023. esac
  8024. fi
  8025. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8026. && test no = "$tmp_diet"
  8027. then
  8028. tmp_addflag=' $pic_flag'
  8029. tmp_sharedflag='-shared'
  8030. case $cc_basename,$host_cpu in
  8031. pgcc*) # Portland Group C compiler
  8032. 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'
  8033. tmp_addflag=' $pic_flag'
  8034. ;;
  8035. pgf77* | pgf90* | pgf95* | pgfortran*)
  8036. # Portland Group f77 and f90 compilers
  8037. 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'
  8038. tmp_addflag=' $pic_flag -Mnomain' ;;
  8039. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8040. tmp_addflag=' -i_dynamic' ;;
  8041. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8042. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8043. ifc* | ifort*) # Intel Fortran compiler
  8044. tmp_addflag=' -nofor_main' ;;
  8045. lf95*) # Lahey Fortran 8.1
  8046. whole_archive_flag_spec=
  8047. tmp_sharedflag='--shared' ;;
  8048. nagfor*) # NAGFOR 5.3
  8049. tmp_sharedflag='-Wl,-shared' ;;
  8050. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8051. tmp_sharedflag='-qmkshrobj'
  8052. tmp_addflag= ;;
  8053. nvcc*) # Cuda Compiler Driver 2.2
  8054. 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'
  8055. compiler_needs_object=yes
  8056. ;;
  8057. esac
  8058. case `$CC -V 2>&1 | sed 5q` in
  8059. *Sun\ C*) # Sun C 5.9
  8060. 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'
  8061. compiler_needs_object=yes
  8062. tmp_sharedflag='-G' ;;
  8063. *Sun\ F*) # Sun Fortran 8.3
  8064. tmp_sharedflag='-G' ;;
  8065. esac
  8066. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8067. if test yes = "$supports_anon_versioning"; then
  8068. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8069. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8070. echo "local: *; };" >> $output_objdir/$libname.ver~
  8071. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8072. fi
  8073. case $cc_basename in
  8074. tcc*)
  8075. export_dynamic_flag_spec='-rdynamic'
  8076. ;;
  8077. xlf* | bgf* | bgxlf* | mpixlf*)
  8078. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8079. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8080. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8081. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8082. if test yes = "$supports_anon_versioning"; then
  8083. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8084. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8085. echo "local: *; };" >> $output_objdir/$libname.ver~
  8086. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8087. fi
  8088. ;;
  8089. esac
  8090. else
  8091. ld_shlibs=no
  8092. fi
  8093. ;;
  8094. netbsd*)
  8095. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8096. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8097. wlarc=
  8098. else
  8099. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8100. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8101. fi
  8102. ;;
  8103. solaris*)
  8104. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8105. ld_shlibs=no
  8106. cat <<_LT_EOF 1>&2
  8107. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8108. *** create shared libraries on Solaris systems. Therefore, libtool
  8109. *** is disabling shared libraries support. We urge you to upgrade GNU
  8110. *** binutils to release 2.9.1 or newer. Another option is to modify
  8111. *** your PATH or compiler configuration so that the native linker is
  8112. *** used, and then restart.
  8113. _LT_EOF
  8114. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8115. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8116. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8117. else
  8118. ld_shlibs=no
  8119. fi
  8120. ;;
  8121. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8122. case `$LD -v 2>&1` in
  8123. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8124. ld_shlibs=no
  8125. cat <<_LT_EOF 1>&2
  8126. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8127. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8128. *** is disabling shared libraries support. We urge you to upgrade GNU
  8129. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8130. *** your PATH or compiler configuration so that the native linker is
  8131. *** used, and then restart.
  8132. _LT_EOF
  8133. ;;
  8134. *)
  8135. # For security reasons, it is highly recommended that you always
  8136. # use absolute paths for naming shared libraries, and exclude the
  8137. # DT_RUNPATH tag from executables and libraries. But doing so
  8138. # requires that you compile everything twice, which is a pain.
  8139. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8140. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8141. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8142. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8143. else
  8144. ld_shlibs=no
  8145. fi
  8146. ;;
  8147. esac
  8148. ;;
  8149. sunos4*)
  8150. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8151. wlarc=
  8152. hardcode_direct=yes
  8153. hardcode_shlibpath_var=no
  8154. ;;
  8155. *)
  8156. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8157. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8158. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8159. else
  8160. ld_shlibs=no
  8161. fi
  8162. ;;
  8163. esac
  8164. if test no = "$ld_shlibs"; then
  8165. runpath_var=
  8166. hardcode_libdir_flag_spec=
  8167. export_dynamic_flag_spec=
  8168. whole_archive_flag_spec=
  8169. fi
  8170. else
  8171. # PORTME fill in a description of your system's linker (not GNU ld)
  8172. case $host_os in
  8173. aix3*)
  8174. allow_undefined_flag=unsupported
  8175. always_export_symbols=yes
  8176. 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'
  8177. # Note: this linker hardcodes the directories in LIBPATH if there
  8178. # are no directories specified by -L.
  8179. hardcode_minus_L=yes
  8180. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8181. # Neither direct hardcoding nor static linking is supported with a
  8182. # broken collect2.
  8183. hardcode_direct=unsupported
  8184. fi
  8185. ;;
  8186. aix[4-9]*)
  8187. if test ia64 = "$host_cpu"; then
  8188. # On IA64, the linker does run time linking by default, so we don't
  8189. # have to do anything special.
  8190. aix_use_runtimelinking=no
  8191. exp_sym_flag='-Bexport'
  8192. no_entry_flag=
  8193. else
  8194. # If we're using GNU nm, then we don't want the "-C" option.
  8195. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8196. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8197. # weak defined symbols like other global defined symbols, whereas
  8198. # GNU nm marks them as "W".
  8199. # While the 'weak' keyword is ignored in the Export File, we need
  8200. # it in the Import File for the 'aix-soname' feature, so we have
  8201. # to replace the "-B" option with "-P" for AIX nm.
  8202. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8203. 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'
  8204. else
  8205. 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'
  8206. fi
  8207. aix_use_runtimelinking=no
  8208. # Test if we are trying to use run time linking or normal
  8209. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8210. # have runtime linking enabled, and use it for executables.
  8211. # For shared libraries, we enable/disable runtime linking
  8212. # depending on the kind of the shared library created -
  8213. # when "with_aix_soname,aix_use_runtimelinking" is:
  8214. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8215. # "aix,yes" lib.so shared, rtl:yes, for executables
  8216. # lib.a static archive
  8217. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8218. # lib.a(lib.so.V) shared, rtl:no, for executables
  8219. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8220. # lib.a(lib.so.V) shared, rtl:no
  8221. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8222. # lib.a static archive
  8223. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8224. for ld_flag in $LDFLAGS; do
  8225. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8226. aix_use_runtimelinking=yes
  8227. break
  8228. fi
  8229. done
  8230. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8231. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8232. # so we don't have lib.a shared libs to link our executables.
  8233. # We have to force runtime linking in this case.
  8234. aix_use_runtimelinking=yes
  8235. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8236. fi
  8237. ;;
  8238. esac
  8239. exp_sym_flag='-bexport'
  8240. no_entry_flag='-bnoentry'
  8241. fi
  8242. # When large executables or shared objects are built, AIX ld can
  8243. # have problems creating the table of contents. If linking a library
  8244. # or program results in "error TOC overflow" add -mminimal-toc to
  8245. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8246. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8247. archive_cmds=''
  8248. hardcode_direct=yes
  8249. hardcode_direct_absolute=yes
  8250. hardcode_libdir_separator=':'
  8251. link_all_deplibs=yes
  8252. file_list_spec='$wl-f,'
  8253. case $with_aix_soname,$aix_use_runtimelinking in
  8254. aix,*) ;; # traditional, no import file
  8255. svr4,* | *,yes) # use import file
  8256. # The Import File defines what to hardcode.
  8257. hardcode_direct=no
  8258. hardcode_direct_absolute=no
  8259. ;;
  8260. esac
  8261. if test yes = "$GCC"; then
  8262. case $host_os in aix4.[012]|aix4.[012].*)
  8263. # We only want to do this on AIX 4.2 and lower, the check
  8264. # below for broken collect2 doesn't work under 4.3+
  8265. collect2name=`$CC -print-prog-name=collect2`
  8266. if test -f "$collect2name" &&
  8267. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8268. then
  8269. # We have reworked collect2
  8270. :
  8271. else
  8272. # We have old collect2
  8273. hardcode_direct=unsupported
  8274. # It fails to find uninstalled libraries when the uninstalled
  8275. # path is not listed in the libpath. Setting hardcode_minus_L
  8276. # to unsupported forces relinking
  8277. hardcode_minus_L=yes
  8278. hardcode_libdir_flag_spec='-L$libdir'
  8279. hardcode_libdir_separator=
  8280. fi
  8281. ;;
  8282. esac
  8283. shared_flag='-shared'
  8284. if test yes = "$aix_use_runtimelinking"; then
  8285. shared_flag="$shared_flag "'$wl-G'
  8286. fi
  8287. # Need to ensure runtime linking is disabled for the traditional
  8288. # shared library, or the linker may eventually find shared libraries
  8289. # /with/ Import File - we do not want to mix them.
  8290. shared_flag_aix='-shared'
  8291. shared_flag_svr4='-shared $wl-G'
  8292. else
  8293. # not using gcc
  8294. if test ia64 = "$host_cpu"; then
  8295. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8296. # chokes on -Wl,-G. The following line is correct:
  8297. shared_flag='-G'
  8298. else
  8299. if test yes = "$aix_use_runtimelinking"; then
  8300. shared_flag='$wl-G'
  8301. else
  8302. shared_flag='$wl-bM:SRE'
  8303. fi
  8304. shared_flag_aix='$wl-bM:SRE'
  8305. shared_flag_svr4='$wl-G'
  8306. fi
  8307. fi
  8308. export_dynamic_flag_spec='$wl-bexpall'
  8309. # It seems that -bexpall does not export symbols beginning with
  8310. # underscore (_), so it is better to generate a list of symbols to export.
  8311. always_export_symbols=yes
  8312. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8313. # Warning - without using the other runtime loading flags (-brtl),
  8314. # -berok will link without error, but may produce a broken library.
  8315. allow_undefined_flag='-berok'
  8316. # Determine the default libpath from the value encoded in an
  8317. # empty executable.
  8318. if test set = "${lt_cv_aix_libpath+set}"; then
  8319. aix_libpath=$lt_cv_aix_libpath
  8320. else
  8321. if ${lt_cv_aix_libpath_+:} false; then :
  8322. $as_echo_n "(cached) " >&6
  8323. else
  8324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8325. /* end confdefs.h. */
  8326. int
  8327. main ()
  8328. {
  8329. ;
  8330. return 0;
  8331. }
  8332. _ACEOF
  8333. if ac_fn_c_try_link "$LINENO"; then :
  8334. lt_aix_libpath_sed='
  8335. /Import File Strings/,/^$/ {
  8336. /^0/ {
  8337. s/^0 *\([^ ]*\) *$/\1/
  8338. p
  8339. }
  8340. }'
  8341. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8342. # Check for a 64-bit object if we didn't find anything.
  8343. if test -z "$lt_cv_aix_libpath_"; then
  8344. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8345. fi
  8346. fi
  8347. rm -f core conftest.err conftest.$ac_objext \
  8348. conftest$ac_exeext conftest.$ac_ext
  8349. if test -z "$lt_cv_aix_libpath_"; then
  8350. lt_cv_aix_libpath_=/usr/lib:/lib
  8351. fi
  8352. fi
  8353. aix_libpath=$lt_cv_aix_libpath_
  8354. fi
  8355. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8356. 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
  8357. else
  8358. if test ia64 = "$host_cpu"; then
  8359. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8360. allow_undefined_flag="-z nodefs"
  8361. 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"
  8362. else
  8363. # Determine the default libpath from the value encoded in an
  8364. # empty executable.
  8365. if test set = "${lt_cv_aix_libpath+set}"; then
  8366. aix_libpath=$lt_cv_aix_libpath
  8367. else
  8368. if ${lt_cv_aix_libpath_+:} false; then :
  8369. $as_echo_n "(cached) " >&6
  8370. else
  8371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8372. /* end confdefs.h. */
  8373. int
  8374. main ()
  8375. {
  8376. ;
  8377. return 0;
  8378. }
  8379. _ACEOF
  8380. if ac_fn_c_try_link "$LINENO"; then :
  8381. lt_aix_libpath_sed='
  8382. /Import File Strings/,/^$/ {
  8383. /^0/ {
  8384. s/^0 *\([^ ]*\) *$/\1/
  8385. p
  8386. }
  8387. }'
  8388. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8389. # Check for a 64-bit object if we didn't find anything.
  8390. if test -z "$lt_cv_aix_libpath_"; then
  8391. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8392. fi
  8393. fi
  8394. rm -f core conftest.err conftest.$ac_objext \
  8395. conftest$ac_exeext conftest.$ac_ext
  8396. if test -z "$lt_cv_aix_libpath_"; then
  8397. lt_cv_aix_libpath_=/usr/lib:/lib
  8398. fi
  8399. fi
  8400. aix_libpath=$lt_cv_aix_libpath_
  8401. fi
  8402. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8403. # Warning - without using the other run time loading flags,
  8404. # -berok will link without error, but may produce a broken library.
  8405. no_undefined_flag=' $wl-bernotok'
  8406. allow_undefined_flag=' $wl-berok'
  8407. if test yes = "$with_gnu_ld"; then
  8408. # We only use this code for GNU lds that support --whole-archive.
  8409. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8410. else
  8411. # Exported symbols can be pulled into shared objects from archives
  8412. whole_archive_flag_spec='$convenience'
  8413. fi
  8414. archive_cmds_need_lc=yes
  8415. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8416. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8417. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8418. if test svr4 != "$with_aix_soname"; then
  8419. # This is similar to how AIX traditionally builds its shared libraries.
  8420. 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'
  8421. fi
  8422. if test aix != "$with_aix_soname"; then
  8423. 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'
  8424. else
  8425. # used by -dlpreopen to get the symbols
  8426. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8427. fi
  8428. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8429. fi
  8430. fi
  8431. ;;
  8432. amigaos*)
  8433. case $host_cpu in
  8434. powerpc)
  8435. # see comment about AmigaOS4 .so support
  8436. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8437. archive_expsym_cmds=''
  8438. ;;
  8439. m68k)
  8440. 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)'
  8441. hardcode_libdir_flag_spec='-L$libdir'
  8442. hardcode_minus_L=yes
  8443. ;;
  8444. esac
  8445. ;;
  8446. bsdi[45]*)
  8447. export_dynamic_flag_spec=-rdynamic
  8448. ;;
  8449. cygwin* | mingw* | pw32* | cegcc*)
  8450. # When not using gcc, we currently assume that we are using
  8451. # Microsoft Visual C++.
  8452. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8453. # no search path for DLLs.
  8454. case $cc_basename in
  8455. cl*)
  8456. # Native MSVC
  8457. hardcode_libdir_flag_spec=' '
  8458. allow_undefined_flag=unsupported
  8459. always_export_symbols=yes
  8460. file_list_spec='@'
  8461. # Tell ltmain to make .lib files, not .a files.
  8462. libext=lib
  8463. # Tell ltmain to make .dll files, not .so files.
  8464. shrext_cmds=.dll
  8465. # FIXME: Setting linknames here is a bad hack.
  8466. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8467. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8468. cp "$export_symbols" "$output_objdir/$soname.def";
  8469. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8470. else
  8471. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8472. fi~
  8473. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8474. linknames='
  8475. # The linker will not automatically build a static lib if we build a DLL.
  8476. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8477. enable_shared_with_static_runtimes=yes
  8478. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8479. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8480. # Don't use ranlib
  8481. old_postinstall_cmds='chmod 644 $oldlib'
  8482. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8483. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8484. case $lt_outputfile in
  8485. *.exe|*.EXE) ;;
  8486. *)
  8487. lt_outputfile=$lt_outputfile.exe
  8488. lt_tool_outputfile=$lt_tool_outputfile.exe
  8489. ;;
  8490. esac~
  8491. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8492. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8493. $RM "$lt_outputfile.manifest";
  8494. fi'
  8495. ;;
  8496. *)
  8497. # Assume MSVC wrapper
  8498. hardcode_libdir_flag_spec=' '
  8499. allow_undefined_flag=unsupported
  8500. # Tell ltmain to make .lib files, not .a files.
  8501. libext=lib
  8502. # Tell ltmain to make .dll files, not .so files.
  8503. shrext_cmds=.dll
  8504. # FIXME: Setting linknames here is a bad hack.
  8505. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8506. # The linker will automatically build a .lib file if we build a DLL.
  8507. old_archive_from_new_cmds='true'
  8508. # FIXME: Should let the user specify the lib program.
  8509. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8510. enable_shared_with_static_runtimes=yes
  8511. ;;
  8512. esac
  8513. ;;
  8514. darwin* | rhapsody*)
  8515. archive_cmds_need_lc=no
  8516. hardcode_direct=no
  8517. hardcode_automatic=yes
  8518. hardcode_shlibpath_var=unsupported
  8519. if test yes = "$lt_cv_ld_force_load"; then
  8520. 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\"`'
  8521. else
  8522. whole_archive_flag_spec=''
  8523. fi
  8524. link_all_deplibs=yes
  8525. allow_undefined_flag=$_lt_dar_allow_undefined
  8526. case $cc_basename in
  8527. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8528. *) _lt_dar_can_shared=$GCC ;;
  8529. esac
  8530. if test yes = "$_lt_dar_can_shared"; then
  8531. output_verbose_link_cmd=func_echo_all
  8532. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8533. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8534. 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"
  8535. 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"
  8536. else
  8537. ld_shlibs=no
  8538. fi
  8539. ;;
  8540. dgux*)
  8541. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8542. hardcode_libdir_flag_spec='-L$libdir'
  8543. hardcode_shlibpath_var=no
  8544. ;;
  8545. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8546. # support. Future versions do this automatically, but an explicit c++rt0.o
  8547. # does not break anything, and helps significantly (at the cost of a little
  8548. # extra space).
  8549. freebsd2.2*)
  8550. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8551. hardcode_libdir_flag_spec='-R$libdir'
  8552. hardcode_direct=yes
  8553. hardcode_shlibpath_var=no
  8554. ;;
  8555. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8556. freebsd2.*)
  8557. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8558. hardcode_direct=yes
  8559. hardcode_minus_L=yes
  8560. hardcode_shlibpath_var=no
  8561. ;;
  8562. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8563. freebsd* | dragonfly* | midnightbsd*)
  8564. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8565. hardcode_libdir_flag_spec='-R$libdir'
  8566. hardcode_direct=yes
  8567. hardcode_shlibpath_var=no
  8568. ;;
  8569. hpux9*)
  8570. if test yes = "$GCC"; then
  8571. 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'
  8572. else
  8573. 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'
  8574. fi
  8575. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8576. hardcode_libdir_separator=:
  8577. hardcode_direct=yes
  8578. # hardcode_minus_L: Not really in the search PATH,
  8579. # but as the default location of the library.
  8580. hardcode_minus_L=yes
  8581. export_dynamic_flag_spec='$wl-E'
  8582. ;;
  8583. hpux10*)
  8584. if test yes,no = "$GCC,$with_gnu_ld"; then
  8585. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8586. else
  8587. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8588. fi
  8589. if test no = "$with_gnu_ld"; then
  8590. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8591. hardcode_libdir_separator=:
  8592. hardcode_direct=yes
  8593. hardcode_direct_absolute=yes
  8594. export_dynamic_flag_spec='$wl-E'
  8595. # hardcode_minus_L: Not really in the search PATH,
  8596. # but as the default location of the library.
  8597. hardcode_minus_L=yes
  8598. fi
  8599. ;;
  8600. hpux11*)
  8601. if test yes,no = "$GCC,$with_gnu_ld"; then
  8602. case $host_cpu in
  8603. hppa*64*)
  8604. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8605. ;;
  8606. ia64*)
  8607. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8608. ;;
  8609. *)
  8610. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. esac
  8613. else
  8614. case $host_cpu in
  8615. hppa*64*)
  8616. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8617. ;;
  8618. ia64*)
  8619. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8620. ;;
  8621. *)
  8622. # Older versions of the 11.00 compiler do not understand -b yet
  8623. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8625. $as_echo_n "checking if $CC understands -b... " >&6; }
  8626. if ${lt_cv_prog_compiler__b+:} false; then :
  8627. $as_echo_n "(cached) " >&6
  8628. else
  8629. lt_cv_prog_compiler__b=no
  8630. save_LDFLAGS=$LDFLAGS
  8631. LDFLAGS="$LDFLAGS -b"
  8632. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8633. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8634. # The linker can only warn and ignore the option if not recognized
  8635. # So say no if there are warnings
  8636. if test -s conftest.err; then
  8637. # Append any errors to the config.log.
  8638. cat conftest.err 1>&5
  8639. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8641. if diff conftest.exp conftest.er2 >/dev/null; then
  8642. lt_cv_prog_compiler__b=yes
  8643. fi
  8644. else
  8645. lt_cv_prog_compiler__b=yes
  8646. fi
  8647. fi
  8648. $RM -r conftest*
  8649. LDFLAGS=$save_LDFLAGS
  8650. fi
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8652. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8653. if test yes = "$lt_cv_prog_compiler__b"; then
  8654. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8655. else
  8656. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8657. fi
  8658. ;;
  8659. esac
  8660. fi
  8661. if test no = "$with_gnu_ld"; then
  8662. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8663. hardcode_libdir_separator=:
  8664. case $host_cpu in
  8665. hppa*64*|ia64*)
  8666. hardcode_direct=no
  8667. hardcode_shlibpath_var=no
  8668. ;;
  8669. *)
  8670. hardcode_direct=yes
  8671. hardcode_direct_absolute=yes
  8672. export_dynamic_flag_spec='$wl-E'
  8673. # hardcode_minus_L: Not really in the search PATH,
  8674. # but as the default location of the library.
  8675. hardcode_minus_L=yes
  8676. ;;
  8677. esac
  8678. fi
  8679. ;;
  8680. irix5* | irix6* | nonstopux*)
  8681. if test yes = "$GCC"; then
  8682. 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'
  8683. # Try to use the -exported_symbol ld option, if it does not
  8684. # work, assume that -exports_file does not work either and
  8685. # implicitly export all symbols.
  8686. # This should be the same for all languages, so no per-tag cache variable.
  8687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8688. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8689. if ${lt_cv_irix_exported_symbol+:} false; then :
  8690. $as_echo_n "(cached) " >&6
  8691. else
  8692. save_LDFLAGS=$LDFLAGS
  8693. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8695. /* end confdefs.h. */
  8696. int foo (void) { return 0; }
  8697. _ACEOF
  8698. if ac_fn_c_try_link "$LINENO"; then :
  8699. lt_cv_irix_exported_symbol=yes
  8700. else
  8701. lt_cv_irix_exported_symbol=no
  8702. fi
  8703. rm -f core conftest.err conftest.$ac_objext \
  8704. conftest$ac_exeext conftest.$ac_ext
  8705. LDFLAGS=$save_LDFLAGS
  8706. fi
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8708. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8709. if test yes = "$lt_cv_irix_exported_symbol"; then
  8710. 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'
  8711. fi
  8712. else
  8713. 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'
  8714. 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'
  8715. fi
  8716. archive_cmds_need_lc='no'
  8717. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8718. hardcode_libdir_separator=:
  8719. inherit_rpath=yes
  8720. link_all_deplibs=yes
  8721. ;;
  8722. linux*)
  8723. case $cc_basename in
  8724. tcc*)
  8725. # Fabrice Bellard et al's Tiny C Compiler
  8726. ld_shlibs=yes
  8727. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8728. ;;
  8729. esac
  8730. ;;
  8731. netbsd*)
  8732. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8733. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8734. else
  8735. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8736. fi
  8737. hardcode_libdir_flag_spec='-R$libdir'
  8738. hardcode_direct=yes
  8739. hardcode_shlibpath_var=no
  8740. ;;
  8741. newsos6)
  8742. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8743. hardcode_direct=yes
  8744. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8745. hardcode_libdir_separator=:
  8746. hardcode_shlibpath_var=no
  8747. ;;
  8748. *nto* | *qnx*)
  8749. ;;
  8750. openbsd* | bitrig*)
  8751. if test -f /usr/libexec/ld.so; then
  8752. hardcode_direct=yes
  8753. hardcode_shlibpath_var=no
  8754. hardcode_direct_absolute=yes
  8755. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8756. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8757. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8758. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8759. export_dynamic_flag_spec='$wl-E'
  8760. else
  8761. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8762. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8763. fi
  8764. else
  8765. ld_shlibs=no
  8766. fi
  8767. ;;
  8768. os2*)
  8769. hardcode_libdir_flag_spec='-L$libdir'
  8770. hardcode_minus_L=yes
  8771. allow_undefined_flag=unsupported
  8772. shrext_cmds=.dll
  8773. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8774. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8775. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8776. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8777. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8778. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8779. emximp -o $lib $output_objdir/$libname.def'
  8780. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8781. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8782. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8783. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8784. prefix_cmds="$SED"~
  8785. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8786. prefix_cmds="$prefix_cmds -e 1d";
  8787. fi~
  8788. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8789. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8790. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8791. emximp -o $lib $output_objdir/$libname.def'
  8792. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8793. enable_shared_with_static_runtimes=yes
  8794. file_list_spec='@'
  8795. ;;
  8796. osf3*)
  8797. if test yes = "$GCC"; then
  8798. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8799. 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'
  8800. else
  8801. allow_undefined_flag=' -expect_unresolved \*'
  8802. 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'
  8803. fi
  8804. archive_cmds_need_lc='no'
  8805. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8806. hardcode_libdir_separator=:
  8807. ;;
  8808. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8809. if test yes = "$GCC"; then
  8810. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8811. 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'
  8812. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8813. else
  8814. allow_undefined_flag=' -expect_unresolved \*'
  8815. 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'
  8816. 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~
  8817. $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'
  8818. # Both c and cxx compiler support -rpath directly
  8819. hardcode_libdir_flag_spec='-rpath $libdir'
  8820. fi
  8821. archive_cmds_need_lc='no'
  8822. hardcode_libdir_separator=:
  8823. ;;
  8824. solaris*)
  8825. no_undefined_flag=' -z defs'
  8826. if test yes = "$GCC"; then
  8827. wlarc='$wl'
  8828. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8829. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8830. $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'
  8831. else
  8832. case `$CC -V 2>&1` in
  8833. *"Compilers 5.0"*)
  8834. wlarc=''
  8835. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8836. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8837. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8838. ;;
  8839. *)
  8840. wlarc='$wl'
  8841. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8842. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8843. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8844. ;;
  8845. esac
  8846. fi
  8847. hardcode_libdir_flag_spec='-R$libdir'
  8848. hardcode_shlibpath_var=no
  8849. case $host_os in
  8850. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8851. *)
  8852. # The compiler driver will combine and reorder linker options,
  8853. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8854. # but is careful enough not to reorder.
  8855. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8856. if test yes = "$GCC"; then
  8857. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8858. else
  8859. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8860. fi
  8861. ;;
  8862. esac
  8863. link_all_deplibs=yes
  8864. ;;
  8865. sunos4*)
  8866. if test sequent = "$host_vendor"; then
  8867. # Use $CC to link under sequent, because it throws in some extra .o
  8868. # files that make .init and .fini sections work.
  8869. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8870. else
  8871. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8872. fi
  8873. hardcode_libdir_flag_spec='-L$libdir'
  8874. hardcode_direct=yes
  8875. hardcode_minus_L=yes
  8876. hardcode_shlibpath_var=no
  8877. ;;
  8878. sysv4)
  8879. case $host_vendor in
  8880. sni)
  8881. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8882. hardcode_direct=yes # is this really true???
  8883. ;;
  8884. siemens)
  8885. ## LD is ld it makes a PLAMLIB
  8886. ## CC just makes a GrossModule.
  8887. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8888. reload_cmds='$CC -r -o $output$reload_objs'
  8889. hardcode_direct=no
  8890. ;;
  8891. motorola)
  8892. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8893. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8894. ;;
  8895. esac
  8896. runpath_var='LD_RUN_PATH'
  8897. hardcode_shlibpath_var=no
  8898. ;;
  8899. sysv4.3*)
  8900. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8901. hardcode_shlibpath_var=no
  8902. export_dynamic_flag_spec='-Bexport'
  8903. ;;
  8904. sysv4*MP*)
  8905. if test -d /usr/nec; then
  8906. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8907. hardcode_shlibpath_var=no
  8908. runpath_var=LD_RUN_PATH
  8909. hardcode_runpath_var=yes
  8910. ld_shlibs=yes
  8911. fi
  8912. ;;
  8913. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8914. no_undefined_flag='$wl-z,text'
  8915. archive_cmds_need_lc=no
  8916. hardcode_shlibpath_var=no
  8917. runpath_var='LD_RUN_PATH'
  8918. if test yes = "$GCC"; then
  8919. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8920. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8921. else
  8922. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8923. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8924. fi
  8925. ;;
  8926. sysv5* | sco3.2v5* | sco5v6*)
  8927. # Note: We CANNOT use -z defs as we might desire, because we do not
  8928. # link with -lc, and that would cause any symbols used from libc to
  8929. # always be unresolved, which means just about no library would
  8930. # ever link correctly. If we're not using GNU ld we use -z text
  8931. # though, which does catch some bad symbols but isn't as heavy-handed
  8932. # as -z defs.
  8933. no_undefined_flag='$wl-z,text'
  8934. allow_undefined_flag='$wl-z,nodefs'
  8935. archive_cmds_need_lc=no
  8936. hardcode_shlibpath_var=no
  8937. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8938. hardcode_libdir_separator=':'
  8939. link_all_deplibs=yes
  8940. export_dynamic_flag_spec='$wl-Bexport'
  8941. runpath_var='LD_RUN_PATH'
  8942. if test yes = "$GCC"; then
  8943. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8944. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. else
  8946. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8947. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8948. fi
  8949. ;;
  8950. uts4*)
  8951. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8952. hardcode_libdir_flag_spec='-L$libdir'
  8953. hardcode_shlibpath_var=no
  8954. ;;
  8955. *)
  8956. ld_shlibs=no
  8957. ;;
  8958. esac
  8959. if test sni = "$host_vendor"; then
  8960. case $host in
  8961. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8962. export_dynamic_flag_spec='$wl-Blargedynsym'
  8963. ;;
  8964. esac
  8965. fi
  8966. fi
  8967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8968. $as_echo "$ld_shlibs" >&6; }
  8969. test no = "$ld_shlibs" && can_build_shared=no
  8970. with_gnu_ld=$with_gnu_ld
  8971. #
  8972. # Do we need to explicitly link libc?
  8973. #
  8974. case "x$archive_cmds_need_lc" in
  8975. x|xyes)
  8976. # Assume -lc should be added
  8977. archive_cmds_need_lc=yes
  8978. if test yes,yes = "$GCC,$enable_shared"; then
  8979. case $archive_cmds in
  8980. *'~'*)
  8981. # FIXME: we may have to deal with multi-command sequences.
  8982. ;;
  8983. '$CC '*)
  8984. # Test whether the compiler implicitly links with -lc since on some
  8985. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8986. # to ld, don't add -lc before -lgcc.
  8987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8988. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8989. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8990. $as_echo_n "(cached) " >&6
  8991. else
  8992. $RM conftest*
  8993. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8995. (eval $ac_compile) 2>&5
  8996. ac_status=$?
  8997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8998. test $ac_status = 0; } 2>conftest.err; then
  8999. soname=conftest
  9000. lib=conftest
  9001. libobjs=conftest.$ac_objext
  9002. deplibs=
  9003. wl=$lt_prog_compiler_wl
  9004. pic_flag=$lt_prog_compiler_pic
  9005. compiler_flags=-v
  9006. linker_flags=-v
  9007. verstring=
  9008. output_objdir=.
  9009. libname=conftest
  9010. lt_save_allow_undefined_flag=$allow_undefined_flag
  9011. allow_undefined_flag=
  9012. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9013. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9014. ac_status=$?
  9015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9016. test $ac_status = 0; }
  9017. then
  9018. lt_cv_archive_cmds_need_lc=no
  9019. else
  9020. lt_cv_archive_cmds_need_lc=yes
  9021. fi
  9022. allow_undefined_flag=$lt_save_allow_undefined_flag
  9023. else
  9024. cat conftest.err 1>&5
  9025. fi
  9026. $RM conftest*
  9027. fi
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9029. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9030. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9031. ;;
  9032. esac
  9033. fi
  9034. ;;
  9035. esac
  9036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9037. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9038. if test yes = "$GCC"; then
  9039. case $host_os in
  9040. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9041. *) lt_awk_arg='/^libraries:/' ;;
  9042. esac
  9043. case $host_os in
  9044. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9045. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9046. esac
  9047. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9048. case $lt_search_path_spec in
  9049. *\;*)
  9050. # if the path contains ";" then we assume it to be the separator
  9051. # otherwise default to the standard path separator (i.e. ":") - it is
  9052. # assumed that no part of a normal pathname contains ";" but that should
  9053. # okay in the real world where ";" in dirpaths is itself problematic.
  9054. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9055. ;;
  9056. *)
  9057. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9058. ;;
  9059. esac
  9060. # Ok, now we have the path, separated by spaces, we can step through it
  9061. # and add multilib dir if necessary...
  9062. lt_tmp_lt_search_path_spec=
  9063. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9064. # ...but if some path component already ends with the multilib dir we assume
  9065. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9066. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9067. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9068. lt_multi_os_dir=
  9069. ;;
  9070. esac
  9071. for lt_sys_path in $lt_search_path_spec; do
  9072. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9073. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9074. elif test -n "$lt_multi_os_dir"; then
  9075. test -d "$lt_sys_path" && \
  9076. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9077. fi
  9078. done
  9079. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9080. BEGIN {RS = " "; FS = "/|\n";} {
  9081. lt_foo = "";
  9082. lt_count = 0;
  9083. for (lt_i = NF; lt_i > 0; lt_i--) {
  9084. if ($lt_i != "" && $lt_i != ".") {
  9085. if ($lt_i == "..") {
  9086. lt_count++;
  9087. } else {
  9088. if (lt_count == 0) {
  9089. lt_foo = "/" $lt_i lt_foo;
  9090. } else {
  9091. lt_count--;
  9092. }
  9093. }
  9094. }
  9095. }
  9096. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9097. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9098. }'`
  9099. # AWK program above erroneously prepends '/' to C:/dos/paths
  9100. # for these hosts.
  9101. case $host_os in
  9102. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9103. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9104. esac
  9105. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9106. else
  9107. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9108. fi
  9109. library_names_spec=
  9110. libname_spec='lib$name'
  9111. soname_spec=
  9112. shrext_cmds=.so
  9113. postinstall_cmds=
  9114. postuninstall_cmds=
  9115. finish_cmds=
  9116. finish_eval=
  9117. shlibpath_var=
  9118. shlibpath_overrides_runpath=unknown
  9119. version_type=none
  9120. dynamic_linker="$host_os ld.so"
  9121. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9122. need_lib_prefix=unknown
  9123. hardcode_into_libs=no
  9124. # when you set need_version to no, make sure it does not cause -set_version
  9125. # flags to be left without arguments
  9126. need_version=unknown
  9127. case $host_os in
  9128. aix3*)
  9129. version_type=linux # correct to gnu/linux during the next big refactor
  9130. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9131. shlibpath_var=LIBPATH
  9132. # AIX 3 has no versioning support, so we append a major version to the name.
  9133. soname_spec='$libname$release$shared_ext$major'
  9134. ;;
  9135. aix[4-9]*)
  9136. version_type=linux # correct to gnu/linux during the next big refactor
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. hardcode_into_libs=yes
  9140. if test ia64 = "$host_cpu"; then
  9141. # AIX 5 supports IA64
  9142. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9143. shlibpath_var=LD_LIBRARY_PATH
  9144. else
  9145. # With GCC up to 2.95.x, collect2 would create an import file
  9146. # for dependence libraries. The import file would start with
  9147. # the line '#! .'. This would cause the generated library to
  9148. # depend on '.', always an invalid library. This was fixed in
  9149. # development snapshots of GCC prior to 3.0.
  9150. case $host_os in
  9151. aix4 | aix4.[01] | aix4.[01].*)
  9152. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9153. echo ' yes '
  9154. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9155. :
  9156. else
  9157. can_build_shared=no
  9158. fi
  9159. ;;
  9160. esac
  9161. # Using Import Files as archive members, it is possible to support
  9162. # filename-based versioning of shared library archives on AIX. While
  9163. # this would work for both with and without runtime linking, it will
  9164. # prevent static linking of such archives. So we do filename-based
  9165. # shared library versioning with .so extension only, which is used
  9166. # when both runtime linking and shared linking is enabled.
  9167. # Unfortunately, runtime linking may impact performance, so we do
  9168. # not want this to be the default eventually. Also, we use the
  9169. # versioned .so libs for executables only if there is the -brtl
  9170. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9171. # To allow for filename-based versioning support, we need to create
  9172. # libNAME.so.V as an archive file, containing:
  9173. # *) an Import File, referring to the versioned filename of the
  9174. # archive as well as the shared archive member, telling the
  9175. # bitwidth (32 or 64) of that shared object, and providing the
  9176. # list of exported symbols of that shared object, eventually
  9177. # decorated with the 'weak' keyword
  9178. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9179. # it being seen by the linker.
  9180. # At run time we better use the real file rather than another symlink,
  9181. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9182. case $with_aix_soname,$aix_use_runtimelinking in
  9183. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9184. # soname into executable. Probably we can add versioning support to
  9185. # collect2, so additional links can be useful in future.
  9186. aix,yes) # traditional libtool
  9187. dynamic_linker='AIX unversionable lib.so'
  9188. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9189. # instead of lib<name>.a to let people know that these are not
  9190. # typical AIX shared libraries.
  9191. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9192. ;;
  9193. aix,no) # traditional AIX only
  9194. dynamic_linker='AIX lib.a(lib.so.V)'
  9195. # We preserve .a as extension for shared libraries through AIX4.2
  9196. # and later when we are not doing run time linking.
  9197. library_names_spec='$libname$release.a $libname.a'
  9198. soname_spec='$libname$release$shared_ext$major'
  9199. ;;
  9200. svr4,*) # full svr4 only
  9201. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9202. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9203. # We do not specify a path in Import Files, so LIBPATH fires.
  9204. shlibpath_overrides_runpath=yes
  9205. ;;
  9206. *,yes) # both, prefer svr4
  9207. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9208. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9209. # unpreferred sharedlib libNAME.a needs extra handling
  9210. 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"'
  9211. 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"'
  9212. # We do not specify a path in Import Files, so LIBPATH fires.
  9213. shlibpath_overrides_runpath=yes
  9214. ;;
  9215. *,no) # both, prefer aix
  9216. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9217. library_names_spec='$libname$release.a $libname.a'
  9218. soname_spec='$libname$release$shared_ext$major'
  9219. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9220. 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)'
  9221. 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"'
  9222. ;;
  9223. esac
  9224. shlibpath_var=LIBPATH
  9225. fi
  9226. ;;
  9227. amigaos*)
  9228. case $host_cpu in
  9229. powerpc)
  9230. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9231. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9233. ;;
  9234. m68k)
  9235. library_names_spec='$libname.ixlibrary $libname.a'
  9236. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9237. 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'
  9238. ;;
  9239. esac
  9240. ;;
  9241. beos*)
  9242. library_names_spec='$libname$shared_ext'
  9243. dynamic_linker="$host_os ld.so"
  9244. shlibpath_var=LIBRARY_PATH
  9245. ;;
  9246. bsdi[45]*)
  9247. version_type=linux # correct to gnu/linux during the next big refactor
  9248. need_version=no
  9249. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9250. soname_spec='$libname$release$shared_ext$major'
  9251. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9252. shlibpath_var=LD_LIBRARY_PATH
  9253. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9254. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9255. # the default ld.so.conf also contains /usr/contrib/lib and
  9256. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9257. # libtool to hard-code these into programs
  9258. ;;
  9259. cygwin* | mingw* | pw32* | cegcc*)
  9260. version_type=windows
  9261. shrext_cmds=.dll
  9262. need_version=no
  9263. need_lib_prefix=no
  9264. case $GCC,$cc_basename in
  9265. yes,*)
  9266. # gcc
  9267. library_names_spec='$libname.dll.a'
  9268. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9269. postinstall_cmds='base_file=`basename \$file`~
  9270. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9271. dldir=$destdir/`dirname \$dlpath`~
  9272. test -d \$dldir || mkdir -p \$dldir~
  9273. $install_prog $dir/$dlname \$dldir/$dlname~
  9274. chmod a+x \$dldir/$dlname~
  9275. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9276. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9277. fi'
  9278. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9279. dlpath=$dir/\$dldll~
  9280. $RM \$dlpath'
  9281. shlibpath_overrides_runpath=yes
  9282. case $host_os in
  9283. cygwin*)
  9284. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9285. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9286. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9287. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9288. ;;
  9289. mingw* | cegcc*)
  9290. # MinGW DLLs use traditional 'lib' prefix
  9291. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9292. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9293. ;;
  9294. pw32*)
  9295. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9296. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9297. ;;
  9298. esac
  9299. dynamic_linker='Win32 ld.exe'
  9300. ;;
  9301. *,cl*)
  9302. # Native MSVC
  9303. libname_spec='$name'
  9304. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9305. library_names_spec='$libname.dll.lib'
  9306. case $build_os in
  9307. mingw*)
  9308. sys_lib_search_path_spec=
  9309. lt_save_ifs=$IFS
  9310. IFS=';'
  9311. for lt_path in $LIB
  9312. do
  9313. IFS=$lt_save_ifs
  9314. # Let DOS variable expansion print the short 8.3 style file name.
  9315. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9316. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9317. done
  9318. IFS=$lt_save_ifs
  9319. # Convert to MSYS style.
  9320. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9321. ;;
  9322. cygwin*)
  9323. # Convert to unix form, then to dos form, then back to unix form
  9324. # but this time dos style (no spaces!) so that the unix form looks
  9325. # like /cygdrive/c/PROGRA~1:/cygdr...
  9326. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9327. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9328. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9329. ;;
  9330. *)
  9331. sys_lib_search_path_spec=$LIB
  9332. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9333. # It is most probably a Windows format PATH.
  9334. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9335. else
  9336. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9337. fi
  9338. # FIXME: find the short name or the path components, as spaces are
  9339. # common. (e.g. "Program Files" -> "PROGRA~1")
  9340. ;;
  9341. esac
  9342. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9343. postinstall_cmds='base_file=`basename \$file`~
  9344. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9345. dldir=$destdir/`dirname \$dlpath`~
  9346. test -d \$dldir || mkdir -p \$dldir~
  9347. $install_prog $dir/$dlname \$dldir/$dlname'
  9348. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9349. dlpath=$dir/\$dldll~
  9350. $RM \$dlpath'
  9351. shlibpath_overrides_runpath=yes
  9352. dynamic_linker='Win32 link.exe'
  9353. ;;
  9354. *)
  9355. # Assume MSVC wrapper
  9356. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9357. dynamic_linker='Win32 ld.exe'
  9358. ;;
  9359. esac
  9360. # FIXME: first we should search . and the directory the executable is in
  9361. shlibpath_var=PATH
  9362. ;;
  9363. darwin* | rhapsody*)
  9364. dynamic_linker="$host_os dyld"
  9365. version_type=darwin
  9366. need_lib_prefix=no
  9367. need_version=no
  9368. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9369. soname_spec='$libname$release$major$shared_ext'
  9370. shlibpath_overrides_runpath=yes
  9371. shlibpath_var=DYLD_LIBRARY_PATH
  9372. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9373. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9374. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9375. ;;
  9376. dgux*)
  9377. version_type=linux # correct to gnu/linux during the next big refactor
  9378. need_lib_prefix=no
  9379. need_version=no
  9380. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9381. soname_spec='$libname$release$shared_ext$major'
  9382. shlibpath_var=LD_LIBRARY_PATH
  9383. ;;
  9384. freebsd* | dragonfly* | midnightbsd*)
  9385. # DragonFly does not have aout. When/if they implement a new
  9386. # versioning mechanism, adjust this.
  9387. if test -x /usr/bin/objformat; then
  9388. objformat=`/usr/bin/objformat`
  9389. else
  9390. case $host_os in
  9391. freebsd[23].*) objformat=aout ;;
  9392. *) objformat=elf ;;
  9393. esac
  9394. fi
  9395. version_type=freebsd-$objformat
  9396. case $version_type in
  9397. freebsd-elf*)
  9398. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9399. soname_spec='$libname$release$shared_ext$major'
  9400. need_version=no
  9401. need_lib_prefix=no
  9402. ;;
  9403. freebsd-*)
  9404. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9405. need_version=yes
  9406. ;;
  9407. esac
  9408. shlibpath_var=LD_LIBRARY_PATH
  9409. case $host_os in
  9410. freebsd2.*)
  9411. shlibpath_overrides_runpath=yes
  9412. ;;
  9413. freebsd3.[01]* | freebsdelf3.[01]*)
  9414. shlibpath_overrides_runpath=yes
  9415. hardcode_into_libs=yes
  9416. ;;
  9417. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9418. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9419. shlibpath_overrides_runpath=no
  9420. hardcode_into_libs=yes
  9421. ;;
  9422. *) # from 4.6 on, and DragonFly
  9423. shlibpath_overrides_runpath=yes
  9424. hardcode_into_libs=yes
  9425. ;;
  9426. esac
  9427. ;;
  9428. haiku*)
  9429. version_type=linux # correct to gnu/linux during the next big refactor
  9430. need_lib_prefix=no
  9431. need_version=no
  9432. dynamic_linker="$host_os runtime_loader"
  9433. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9434. soname_spec='$libname$release$shared_ext$major'
  9435. shlibpath_var=LIBRARY_PATH
  9436. shlibpath_overrides_runpath=no
  9437. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9438. hardcode_into_libs=yes
  9439. ;;
  9440. hpux9* | hpux10* | hpux11*)
  9441. # Give a soname corresponding to the major version so that dld.sl refuses to
  9442. # link against other versions.
  9443. version_type=sunos
  9444. need_lib_prefix=no
  9445. need_version=no
  9446. case $host_cpu in
  9447. ia64*)
  9448. shrext_cmds='.so'
  9449. hardcode_into_libs=yes
  9450. dynamic_linker="$host_os dld.so"
  9451. shlibpath_var=LD_LIBRARY_PATH
  9452. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9454. soname_spec='$libname$release$shared_ext$major'
  9455. if test 32 = "$HPUX_IA64_MODE"; then
  9456. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9457. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9458. else
  9459. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9460. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9461. fi
  9462. ;;
  9463. hppa*64*)
  9464. shrext_cmds='.sl'
  9465. hardcode_into_libs=yes
  9466. dynamic_linker="$host_os dld.sl"
  9467. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9468. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9469. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9470. soname_spec='$libname$release$shared_ext$major'
  9471. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9472. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9473. ;;
  9474. *)
  9475. shrext_cmds='.sl'
  9476. dynamic_linker="$host_os dld.sl"
  9477. shlibpath_var=SHLIB_PATH
  9478. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9479. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9480. soname_spec='$libname$release$shared_ext$major'
  9481. ;;
  9482. esac
  9483. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9484. postinstall_cmds='chmod 555 $lib'
  9485. # or fails outright, so override atomically:
  9486. install_override_mode=555
  9487. ;;
  9488. interix[3-9]*)
  9489. version_type=linux # correct to gnu/linux during the next big refactor
  9490. need_lib_prefix=no
  9491. need_version=no
  9492. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9493. soname_spec='$libname$release$shared_ext$major'
  9494. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9495. shlibpath_var=LD_LIBRARY_PATH
  9496. shlibpath_overrides_runpath=no
  9497. hardcode_into_libs=yes
  9498. ;;
  9499. irix5* | irix6* | nonstopux*)
  9500. case $host_os in
  9501. nonstopux*) version_type=nonstopux ;;
  9502. *)
  9503. if test yes = "$lt_cv_prog_gnu_ld"; then
  9504. version_type=linux # correct to gnu/linux during the next big refactor
  9505. else
  9506. version_type=irix
  9507. fi ;;
  9508. esac
  9509. need_lib_prefix=no
  9510. need_version=no
  9511. soname_spec='$libname$release$shared_ext$major'
  9512. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9513. case $host_os in
  9514. irix5* | nonstopux*)
  9515. libsuff= shlibsuff=
  9516. ;;
  9517. *)
  9518. case $LD in # libtool.m4 will add one of these switches to LD
  9519. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9520. libsuff= shlibsuff= libmagic=32-bit;;
  9521. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9522. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9523. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9524. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9525. *) libsuff= shlibsuff= libmagic=never-match;;
  9526. esac
  9527. ;;
  9528. esac
  9529. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9530. shlibpath_overrides_runpath=no
  9531. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9532. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9533. hardcode_into_libs=yes
  9534. ;;
  9535. # No shared lib support for Linux oldld, aout, or coff.
  9536. linux*oldld* | linux*aout* | linux*coff*)
  9537. dynamic_linker=no
  9538. ;;
  9539. linux*android*)
  9540. version_type=none # Android doesn't support versioned libraries.
  9541. need_lib_prefix=no
  9542. need_version=no
  9543. library_names_spec='$libname$release$shared_ext'
  9544. soname_spec='$libname$release$shared_ext'
  9545. finish_cmds=
  9546. shlibpath_var=LD_LIBRARY_PATH
  9547. shlibpath_overrides_runpath=yes
  9548. # This implies no fast_install, which is unacceptable.
  9549. # Some rework will be needed to allow for fast_install
  9550. # before this can be enabled.
  9551. hardcode_into_libs=yes
  9552. dynamic_linker='Android linker'
  9553. # Don't embed -rpath directories since the linker doesn't support them.
  9554. hardcode_libdir_flag_spec='-L$libdir'
  9555. ;;
  9556. # This must be glibc/ELF.
  9557. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9558. version_type=linux # correct to gnu/linux during the next big refactor
  9559. need_lib_prefix=no
  9560. need_version=no
  9561. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9562. soname_spec='$libname$release$shared_ext$major'
  9563. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9564. shlibpath_var=LD_LIBRARY_PATH
  9565. shlibpath_overrides_runpath=no
  9566. # Some binutils ld are patched to set DT_RUNPATH
  9567. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9568. $as_echo_n "(cached) " >&6
  9569. else
  9570. lt_cv_shlibpath_overrides_runpath=no
  9571. save_LDFLAGS=$LDFLAGS
  9572. save_libdir=$libdir
  9573. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9574. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9576. /* end confdefs.h. */
  9577. int
  9578. main ()
  9579. {
  9580. ;
  9581. return 0;
  9582. }
  9583. _ACEOF
  9584. if ac_fn_c_try_link "$LINENO"; then :
  9585. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9586. lt_cv_shlibpath_overrides_runpath=yes
  9587. fi
  9588. fi
  9589. rm -f core conftest.err conftest.$ac_objext \
  9590. conftest$ac_exeext conftest.$ac_ext
  9591. LDFLAGS=$save_LDFLAGS
  9592. libdir=$save_libdir
  9593. fi
  9594. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9595. # This implies no fast_install, which is unacceptable.
  9596. # Some rework will be needed to allow for fast_install
  9597. # before this can be enabled.
  9598. hardcode_into_libs=yes
  9599. # Add ABI-specific directories to the system library path.
  9600. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9601. # Ideally, we could use ldconfig to report *all* directores which are
  9602. # searched for libraries, however this is still not possible. Aside from not
  9603. # being certain /sbin/ldconfig is available, command
  9604. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9605. # even though it is searched at run-time. Try to do the best guess by
  9606. # appending ld.so.conf contents (and includes) to the search path.
  9607. if test -f /etc/ld.so.conf; then
  9608. 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' ' '`
  9609. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9610. fi
  9611. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9612. # powerpc, because MkLinux only supported shared libraries with the
  9613. # GNU dynamic linker. Since this was broken with cross compilers,
  9614. # most powerpc-linux boxes support dynamic linking these days and
  9615. # people can always --disable-shared, the test was removed, and we
  9616. # assume the GNU/Linux dynamic linker is in use.
  9617. dynamic_linker='GNU/Linux ld.so'
  9618. ;;
  9619. netbsd*)
  9620. version_type=sunos
  9621. need_lib_prefix=no
  9622. need_version=no
  9623. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9624. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9625. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9626. dynamic_linker='NetBSD (a.out) ld.so'
  9627. else
  9628. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9629. soname_spec='$libname$release$shared_ext$major'
  9630. dynamic_linker='NetBSD ld.elf_so'
  9631. fi
  9632. shlibpath_var=LD_LIBRARY_PATH
  9633. shlibpath_overrides_runpath=yes
  9634. hardcode_into_libs=yes
  9635. ;;
  9636. newsos6)
  9637. version_type=linux # correct to gnu/linux during the next big refactor
  9638. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9639. shlibpath_var=LD_LIBRARY_PATH
  9640. shlibpath_overrides_runpath=yes
  9641. ;;
  9642. *nto* | *qnx*)
  9643. version_type=qnx
  9644. need_lib_prefix=no
  9645. need_version=no
  9646. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9647. soname_spec='$libname$release$shared_ext$major'
  9648. shlibpath_var=LD_LIBRARY_PATH
  9649. shlibpath_overrides_runpath=no
  9650. hardcode_into_libs=yes
  9651. dynamic_linker='ldqnx.so'
  9652. ;;
  9653. openbsd* | bitrig*)
  9654. version_type=sunos
  9655. sys_lib_dlsearch_path_spec=/usr/lib
  9656. need_lib_prefix=no
  9657. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9658. need_version=no
  9659. else
  9660. need_version=yes
  9661. fi
  9662. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9663. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9664. shlibpath_var=LD_LIBRARY_PATH
  9665. shlibpath_overrides_runpath=yes
  9666. ;;
  9667. os2*)
  9668. libname_spec='$name'
  9669. shrext_cmds=.dll
  9670. need_lib_prefix=no
  9671. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9672. # SDL customization: removed versioning support.
  9673. # version_type=windows
  9674. # need_version=no
  9675. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9676. # v=$($ECHO $release$versuffix | tr -d .-);
  9677. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9678. # $ECHO $n$v`$shared_ext'
  9679. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9680. library_names_spec='${libname}_dll.$libext'
  9681. dynamic_linker='OS/2 ld.exe'
  9682. shlibpath_var=BEGINLIBPATH
  9683. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9684. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9685. postinstall_cmds='base_file=`basename \$file`~
  9686. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9687. dldir=$destdir/`dirname \$dlpath`~
  9688. test -d \$dldir || mkdir -p \$dldir~
  9689. $install_prog $dir/$dlname \$dldir/$dlname~
  9690. chmod a+x \$dldir/$dlname~
  9691. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9692. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9693. fi'
  9694. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9695. dlpath=$dir/\$dldll~
  9696. $RM \$dlpath'
  9697. ;;
  9698. osf3* | osf4* | osf5*)
  9699. version_type=osf
  9700. need_lib_prefix=no
  9701. need_version=no
  9702. soname_spec='$libname$release$shared_ext$major'
  9703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9704. shlibpath_var=LD_LIBRARY_PATH
  9705. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9706. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9707. ;;
  9708. rdos*)
  9709. dynamic_linker=no
  9710. ;;
  9711. solaris*)
  9712. version_type=linux # correct to gnu/linux during the next big refactor
  9713. need_lib_prefix=no
  9714. need_version=no
  9715. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9716. soname_spec='$libname$release$shared_ext$major'
  9717. shlibpath_var=LD_LIBRARY_PATH
  9718. shlibpath_overrides_runpath=yes
  9719. hardcode_into_libs=yes
  9720. # ldd complains unless libraries are executable
  9721. postinstall_cmds='chmod +x $lib'
  9722. ;;
  9723. sunos4*)
  9724. version_type=sunos
  9725. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9726. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9727. shlibpath_var=LD_LIBRARY_PATH
  9728. shlibpath_overrides_runpath=yes
  9729. if test yes = "$with_gnu_ld"; then
  9730. need_lib_prefix=no
  9731. fi
  9732. need_version=yes
  9733. ;;
  9734. sysv4 | sysv4.3*)
  9735. version_type=linux # correct to gnu/linux during the next big refactor
  9736. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9737. soname_spec='$libname$release$shared_ext$major'
  9738. shlibpath_var=LD_LIBRARY_PATH
  9739. case $host_vendor in
  9740. sni)
  9741. shlibpath_overrides_runpath=no
  9742. need_lib_prefix=no
  9743. runpath_var=LD_RUN_PATH
  9744. ;;
  9745. siemens)
  9746. need_lib_prefix=no
  9747. ;;
  9748. motorola)
  9749. need_lib_prefix=no
  9750. need_version=no
  9751. shlibpath_overrides_runpath=no
  9752. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9753. ;;
  9754. esac
  9755. ;;
  9756. sysv4*MP*)
  9757. if test -d /usr/nec; then
  9758. version_type=linux # correct to gnu/linux during the next big refactor
  9759. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9760. soname_spec='$libname$shared_ext.$major'
  9761. shlibpath_var=LD_LIBRARY_PATH
  9762. fi
  9763. ;;
  9764. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9765. version_type=sco
  9766. need_lib_prefix=no
  9767. need_version=no
  9768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9769. soname_spec='$libname$release$shared_ext$major'
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. shlibpath_overrides_runpath=yes
  9772. hardcode_into_libs=yes
  9773. if test yes = "$with_gnu_ld"; then
  9774. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9775. else
  9776. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9777. case $host_os in
  9778. sco3.2v5*)
  9779. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9780. ;;
  9781. esac
  9782. fi
  9783. sys_lib_dlsearch_path_spec='/usr/lib'
  9784. ;;
  9785. tpf*)
  9786. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9787. version_type=linux # correct to gnu/linux during the next big refactor
  9788. need_lib_prefix=no
  9789. need_version=no
  9790. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9791. shlibpath_var=LD_LIBRARY_PATH
  9792. shlibpath_overrides_runpath=no
  9793. hardcode_into_libs=yes
  9794. ;;
  9795. uts4*)
  9796. version_type=linux # correct to gnu/linux during the next big refactor
  9797. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9798. soname_spec='$libname$release$shared_ext$major'
  9799. shlibpath_var=LD_LIBRARY_PATH
  9800. ;;
  9801. *)
  9802. dynamic_linker=no
  9803. ;;
  9804. esac
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9806. $as_echo "$dynamic_linker" >&6; }
  9807. test no = "$dynamic_linker" && can_build_shared=no
  9808. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9809. if test yes = "$GCC"; then
  9810. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9811. fi
  9812. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9813. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9814. fi
  9815. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9816. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9817. fi
  9818. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9819. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9820. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9821. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9822. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9823. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9825. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9826. hardcode_action=
  9827. if test -n "$hardcode_libdir_flag_spec" ||
  9828. test -n "$runpath_var" ||
  9829. test yes = "$hardcode_automatic"; then
  9830. # We can hardcode non-existent directories.
  9831. if test no != "$hardcode_direct" &&
  9832. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9833. # have to relink, otherwise we might link with an installed library
  9834. # when we should be linking with a yet-to-be-installed one
  9835. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9836. test no != "$hardcode_minus_L"; then
  9837. # Linking always hardcodes the temporary library directory.
  9838. hardcode_action=relink
  9839. else
  9840. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9841. hardcode_action=immediate
  9842. fi
  9843. else
  9844. # We cannot hardcode anything, or else we can only hardcode existing
  9845. # directories.
  9846. hardcode_action=unsupported
  9847. fi
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9849. $as_echo "$hardcode_action" >&6; }
  9850. if test relink = "$hardcode_action" ||
  9851. test yes = "$inherit_rpath"; then
  9852. # Fast installation is not supported
  9853. enable_fast_install=no
  9854. elif test yes = "$shlibpath_overrides_runpath" ||
  9855. test no = "$enable_shared"; then
  9856. # Fast installation is not necessary
  9857. enable_fast_install=needless
  9858. fi
  9859. if test yes != "$enable_dlopen"; then
  9860. enable_dlopen=unknown
  9861. enable_dlopen_self=unknown
  9862. enable_dlopen_self_static=unknown
  9863. else
  9864. lt_cv_dlopen=no
  9865. lt_cv_dlopen_libs=
  9866. case $host_os in
  9867. beos*)
  9868. lt_cv_dlopen=load_add_on
  9869. lt_cv_dlopen_libs=
  9870. lt_cv_dlopen_self=yes
  9871. ;;
  9872. mingw* | pw32* | cegcc*)
  9873. lt_cv_dlopen=LoadLibrary
  9874. lt_cv_dlopen_libs=
  9875. ;;
  9876. cygwin*)
  9877. lt_cv_dlopen=dlopen
  9878. lt_cv_dlopen_libs=
  9879. ;;
  9880. darwin*)
  9881. # if libdl is installed we need to link against it
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9883. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9884. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9885. $as_echo_n "(cached) " >&6
  9886. else
  9887. ac_check_lib_save_LIBS=$LIBS
  9888. LIBS="-ldl $LIBS"
  9889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9890. /* end confdefs.h. */
  9891. /* Override any GCC internal prototype to avoid an error.
  9892. Use char because int might match the return type of a GCC
  9893. builtin and then its argument prototype would still apply. */
  9894. #ifdef __cplusplus
  9895. extern "C"
  9896. #endif
  9897. char dlopen ();
  9898. int
  9899. main ()
  9900. {
  9901. return dlopen ();
  9902. ;
  9903. return 0;
  9904. }
  9905. _ACEOF
  9906. if ac_fn_c_try_link "$LINENO"; then :
  9907. ac_cv_lib_dl_dlopen=yes
  9908. else
  9909. ac_cv_lib_dl_dlopen=no
  9910. fi
  9911. rm -f core conftest.err conftest.$ac_objext \
  9912. conftest$ac_exeext conftest.$ac_ext
  9913. LIBS=$ac_check_lib_save_LIBS
  9914. fi
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9916. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9917. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9918. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9919. else
  9920. lt_cv_dlopen=dyld
  9921. lt_cv_dlopen_libs=
  9922. lt_cv_dlopen_self=yes
  9923. fi
  9924. ;;
  9925. tpf*)
  9926. # Don't try to run any link tests for TPF. We know it's impossible
  9927. # because TPF is a cross-compiler, and we know how we open DSOs.
  9928. lt_cv_dlopen=dlopen
  9929. lt_cv_dlopen_libs=
  9930. lt_cv_dlopen_self=no
  9931. ;;
  9932. *)
  9933. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9934. if test "x$ac_cv_func_shl_load" = xyes; then :
  9935. lt_cv_dlopen=shl_load
  9936. else
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9938. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9939. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. ac_check_lib_save_LIBS=$LIBS
  9943. LIBS="-ldld $LIBS"
  9944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9945. /* end confdefs.h. */
  9946. /* Override any GCC internal prototype to avoid an error.
  9947. Use char because int might match the return type of a GCC
  9948. builtin and then its argument prototype would still apply. */
  9949. #ifdef __cplusplus
  9950. extern "C"
  9951. #endif
  9952. char shl_load ();
  9953. int
  9954. main ()
  9955. {
  9956. return shl_load ();
  9957. ;
  9958. return 0;
  9959. }
  9960. _ACEOF
  9961. if ac_fn_c_try_link "$LINENO"; then :
  9962. ac_cv_lib_dld_shl_load=yes
  9963. else
  9964. ac_cv_lib_dld_shl_load=no
  9965. fi
  9966. rm -f core conftest.err conftest.$ac_objext \
  9967. conftest$ac_exeext conftest.$ac_ext
  9968. LIBS=$ac_check_lib_save_LIBS
  9969. fi
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9971. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9972. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9973. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9974. else
  9975. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9976. if test "x$ac_cv_func_dlopen" = xyes; then :
  9977. lt_cv_dlopen=dlopen
  9978. else
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9980. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9981. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9982. $as_echo_n "(cached) " >&6
  9983. else
  9984. ac_check_lib_save_LIBS=$LIBS
  9985. LIBS="-ldl $LIBS"
  9986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9987. /* end confdefs.h. */
  9988. /* Override any GCC internal prototype to avoid an error.
  9989. Use char because int might match the return type of a GCC
  9990. builtin and then its argument prototype would still apply. */
  9991. #ifdef __cplusplus
  9992. extern "C"
  9993. #endif
  9994. char dlopen ();
  9995. int
  9996. main ()
  9997. {
  9998. return dlopen ();
  9999. ;
  10000. return 0;
  10001. }
  10002. _ACEOF
  10003. if ac_fn_c_try_link "$LINENO"; then :
  10004. ac_cv_lib_dl_dlopen=yes
  10005. else
  10006. ac_cv_lib_dl_dlopen=no
  10007. fi
  10008. rm -f core conftest.err conftest.$ac_objext \
  10009. conftest$ac_exeext conftest.$ac_ext
  10010. LIBS=$ac_check_lib_save_LIBS
  10011. fi
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10013. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10014. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10015. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10016. else
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10018. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10019. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10020. $as_echo_n "(cached) " >&6
  10021. else
  10022. ac_check_lib_save_LIBS=$LIBS
  10023. LIBS="-lsvld $LIBS"
  10024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10025. /* end confdefs.h. */
  10026. /* Override any GCC internal prototype to avoid an error.
  10027. Use char because int might match the return type of a GCC
  10028. builtin and then its argument prototype would still apply. */
  10029. #ifdef __cplusplus
  10030. extern "C"
  10031. #endif
  10032. char dlopen ();
  10033. int
  10034. main ()
  10035. {
  10036. return dlopen ();
  10037. ;
  10038. return 0;
  10039. }
  10040. _ACEOF
  10041. if ac_fn_c_try_link "$LINENO"; then :
  10042. ac_cv_lib_svld_dlopen=yes
  10043. else
  10044. ac_cv_lib_svld_dlopen=no
  10045. fi
  10046. rm -f core conftest.err conftest.$ac_objext \
  10047. conftest$ac_exeext conftest.$ac_ext
  10048. LIBS=$ac_check_lib_save_LIBS
  10049. fi
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10051. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10052. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10053. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10054. else
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10056. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10057. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10058. $as_echo_n "(cached) " >&6
  10059. else
  10060. ac_check_lib_save_LIBS=$LIBS
  10061. LIBS="-ldld $LIBS"
  10062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10063. /* end confdefs.h. */
  10064. /* Override any GCC internal prototype to avoid an error.
  10065. Use char because int might match the return type of a GCC
  10066. builtin and then its argument prototype would still apply. */
  10067. #ifdef __cplusplus
  10068. extern "C"
  10069. #endif
  10070. char dld_link ();
  10071. int
  10072. main ()
  10073. {
  10074. return dld_link ();
  10075. ;
  10076. return 0;
  10077. }
  10078. _ACEOF
  10079. if ac_fn_c_try_link "$LINENO"; then :
  10080. ac_cv_lib_dld_dld_link=yes
  10081. else
  10082. ac_cv_lib_dld_dld_link=no
  10083. fi
  10084. rm -f core conftest.err conftest.$ac_objext \
  10085. conftest$ac_exeext conftest.$ac_ext
  10086. LIBS=$ac_check_lib_save_LIBS
  10087. fi
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10089. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10090. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10091. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. fi
  10097. fi
  10098. ;;
  10099. esac
  10100. if test no = "$lt_cv_dlopen"; then
  10101. enable_dlopen=no
  10102. else
  10103. enable_dlopen=yes
  10104. fi
  10105. case $lt_cv_dlopen in
  10106. dlopen)
  10107. save_CPPFLAGS=$CPPFLAGS
  10108. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10109. save_LDFLAGS=$LDFLAGS
  10110. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10111. save_LIBS=$LIBS
  10112. LIBS="$lt_cv_dlopen_libs $LIBS"
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10114. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10115. if ${lt_cv_dlopen_self+:} false; then :
  10116. $as_echo_n "(cached) " >&6
  10117. else
  10118. if test yes = "$cross_compiling"; then :
  10119. lt_cv_dlopen_self=cross
  10120. else
  10121. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10122. lt_status=$lt_dlunknown
  10123. cat > conftest.$ac_ext <<_LT_EOF
  10124. #line $LINENO "configure"
  10125. #include "confdefs.h"
  10126. #if HAVE_DLFCN_H
  10127. #include <dlfcn.h>
  10128. #endif
  10129. #include <stdio.h>
  10130. #ifdef RTLD_GLOBAL
  10131. # define LT_DLGLOBAL RTLD_GLOBAL
  10132. #else
  10133. # ifdef DL_GLOBAL
  10134. # define LT_DLGLOBAL DL_GLOBAL
  10135. # else
  10136. # define LT_DLGLOBAL 0
  10137. # endif
  10138. #endif
  10139. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10140. find out it does not work in some platform. */
  10141. #ifndef LT_DLLAZY_OR_NOW
  10142. # ifdef RTLD_LAZY
  10143. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10144. # else
  10145. # ifdef DL_LAZY
  10146. # define LT_DLLAZY_OR_NOW DL_LAZY
  10147. # else
  10148. # ifdef RTLD_NOW
  10149. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10150. # else
  10151. # ifdef DL_NOW
  10152. # define LT_DLLAZY_OR_NOW DL_NOW
  10153. # else
  10154. # define LT_DLLAZY_OR_NOW 0
  10155. # endif
  10156. # endif
  10157. # endif
  10158. # endif
  10159. #endif
  10160. /* When -fvisibility=hidden is used, assume the code has been annotated
  10161. correspondingly for the symbols needed. */
  10162. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10163. int fnord () __attribute__((visibility("default")));
  10164. #endif
  10165. int fnord () { return 42; }
  10166. int main ()
  10167. {
  10168. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10169. int status = $lt_dlunknown;
  10170. if (self)
  10171. {
  10172. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10173. else
  10174. {
  10175. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10176. else puts (dlerror ());
  10177. }
  10178. /* dlclose (self); */
  10179. }
  10180. else
  10181. puts (dlerror ());
  10182. return status;
  10183. }
  10184. _LT_EOF
  10185. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10186. (eval $ac_link) 2>&5
  10187. ac_status=$?
  10188. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10189. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10190. (./conftest; exit; ) >&5 2>/dev/null
  10191. lt_status=$?
  10192. case x$lt_status in
  10193. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10194. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10195. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10196. esac
  10197. else :
  10198. # compilation failed
  10199. lt_cv_dlopen_self=no
  10200. fi
  10201. fi
  10202. rm -fr conftest*
  10203. fi
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10205. $as_echo "$lt_cv_dlopen_self" >&6; }
  10206. if test yes = "$lt_cv_dlopen_self"; then
  10207. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10209. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10210. if ${lt_cv_dlopen_self_static+:} false; then :
  10211. $as_echo_n "(cached) " >&6
  10212. else
  10213. if test yes = "$cross_compiling"; then :
  10214. lt_cv_dlopen_self_static=cross
  10215. else
  10216. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10217. lt_status=$lt_dlunknown
  10218. cat > conftest.$ac_ext <<_LT_EOF
  10219. #line $LINENO "configure"
  10220. #include "confdefs.h"
  10221. #if HAVE_DLFCN_H
  10222. #include <dlfcn.h>
  10223. #endif
  10224. #include <stdio.h>
  10225. #ifdef RTLD_GLOBAL
  10226. # define LT_DLGLOBAL RTLD_GLOBAL
  10227. #else
  10228. # ifdef DL_GLOBAL
  10229. # define LT_DLGLOBAL DL_GLOBAL
  10230. # else
  10231. # define LT_DLGLOBAL 0
  10232. # endif
  10233. #endif
  10234. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10235. find out it does not work in some platform. */
  10236. #ifndef LT_DLLAZY_OR_NOW
  10237. # ifdef RTLD_LAZY
  10238. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10239. # else
  10240. # ifdef DL_LAZY
  10241. # define LT_DLLAZY_OR_NOW DL_LAZY
  10242. # else
  10243. # ifdef RTLD_NOW
  10244. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10245. # else
  10246. # ifdef DL_NOW
  10247. # define LT_DLLAZY_OR_NOW DL_NOW
  10248. # else
  10249. # define LT_DLLAZY_OR_NOW 0
  10250. # endif
  10251. # endif
  10252. # endif
  10253. # endif
  10254. #endif
  10255. /* When -fvisibility=hidden is used, assume the code has been annotated
  10256. correspondingly for the symbols needed. */
  10257. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10258. int fnord () __attribute__((visibility("default")));
  10259. #endif
  10260. int fnord () { return 42; }
  10261. int main ()
  10262. {
  10263. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10264. int status = $lt_dlunknown;
  10265. if (self)
  10266. {
  10267. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10268. else
  10269. {
  10270. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10271. else puts (dlerror ());
  10272. }
  10273. /* dlclose (self); */
  10274. }
  10275. else
  10276. puts (dlerror ());
  10277. return status;
  10278. }
  10279. _LT_EOF
  10280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10281. (eval $ac_link) 2>&5
  10282. ac_status=$?
  10283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10284. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10285. (./conftest; exit; ) >&5 2>/dev/null
  10286. lt_status=$?
  10287. case x$lt_status in
  10288. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10289. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10290. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10291. esac
  10292. else :
  10293. # compilation failed
  10294. lt_cv_dlopen_self_static=no
  10295. fi
  10296. fi
  10297. rm -fr conftest*
  10298. fi
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10300. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10301. fi
  10302. CPPFLAGS=$save_CPPFLAGS
  10303. LDFLAGS=$save_LDFLAGS
  10304. LIBS=$save_LIBS
  10305. ;;
  10306. esac
  10307. case $lt_cv_dlopen_self in
  10308. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10309. *) enable_dlopen_self=unknown ;;
  10310. esac
  10311. case $lt_cv_dlopen_self_static in
  10312. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10313. *) enable_dlopen_self_static=unknown ;;
  10314. esac
  10315. fi
  10316. striplib=
  10317. old_striplib=
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10319. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10320. if test -z "$STRIP"; then
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10322. $as_echo "no" >&6; }
  10323. else
  10324. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10325. old_striplib="$STRIP --strip-debug"
  10326. striplib="$STRIP --strip-unneeded"
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10328. $as_echo "yes" >&6; }
  10329. else
  10330. case $host_os in
  10331. darwin*)
  10332. # FIXME - insert some real tests, host_os isn't really good enough
  10333. striplib="$STRIP -x"
  10334. old_striplib="$STRIP -S"
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10336. $as_echo "yes" >&6; }
  10337. ;;
  10338. freebsd*)
  10339. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10340. old_striplib="$STRIP --strip-debug"
  10341. striplib="$STRIP --strip-unneeded"
  10342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10343. $as_echo "yes" >&6; }
  10344. else
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10346. $as_echo "no" >&6; }
  10347. fi
  10348. ;;
  10349. *)
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10351. $as_echo "no" >&6; }
  10352. ;;
  10353. esac
  10354. fi
  10355. fi
  10356. # Report what library types will actually be built
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10358. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10360. $as_echo "$can_build_shared" >&6; }
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10362. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10363. test no = "$can_build_shared" && enable_shared=no
  10364. # On AIX, shared libraries and static libraries use the same namespace, and
  10365. # are all built from PIC.
  10366. case $host_os in
  10367. aix3*)
  10368. test yes = "$enable_shared" && enable_static=no
  10369. if test -n "$RANLIB"; then
  10370. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10371. postinstall_cmds='$RANLIB $lib'
  10372. fi
  10373. ;;
  10374. aix[4-9]*)
  10375. if test ia64 != "$host_cpu"; then
  10376. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10377. yes,aix,yes) ;; # shared object as lib.so file only
  10378. yes,svr4,*) ;; # shared object as lib.so archive member only
  10379. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10380. esac
  10381. fi
  10382. ;;
  10383. esac
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10385. $as_echo "$enable_shared" >&6; }
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10387. $as_echo_n "checking whether to build static libraries... " >&6; }
  10388. # Make sure either enable_shared or enable_static is yes.
  10389. test yes = "$enable_shared" || enable_static=yes
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10391. $as_echo "$enable_static" >&6; }
  10392. fi
  10393. ac_ext=c
  10394. ac_cpp='$CPP $CPPFLAGS'
  10395. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10396. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10397. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10398. CC=$lt_save_CC
  10399. ac_config_commands="$ac_config_commands libtool"
  10400. # Only expand once:
  10401. if test -n "$ac_tool_prefix"; then
  10402. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10403. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10405. $as_echo_n "checking for $ac_word... " >&6; }
  10406. if ${ac_cv_prog_RC+:} false; then :
  10407. $as_echo_n "(cached) " >&6
  10408. else
  10409. if test -n "$RC"; then
  10410. ac_cv_prog_RC="$RC" # Let the user override the test.
  10411. else
  10412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10413. for as_dir in $PATH
  10414. do
  10415. IFS=$as_save_IFS
  10416. test -z "$as_dir" && as_dir=.
  10417. for ac_exec_ext in '' $ac_executable_extensions; do
  10418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10419. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10421. break 2
  10422. fi
  10423. done
  10424. done
  10425. IFS=$as_save_IFS
  10426. fi
  10427. fi
  10428. RC=$ac_cv_prog_RC
  10429. if test -n "$RC"; then
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10431. $as_echo "$RC" >&6; }
  10432. else
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10434. $as_echo "no" >&6; }
  10435. fi
  10436. fi
  10437. if test -z "$ac_cv_prog_RC"; then
  10438. ac_ct_RC=$RC
  10439. # Extract the first word of "windres", so it can be a program name with args.
  10440. set dummy windres; ac_word=$2
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10442. $as_echo_n "checking for $ac_word... " >&6; }
  10443. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10444. $as_echo_n "(cached) " >&6
  10445. else
  10446. if test -n "$ac_ct_RC"; then
  10447. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10448. else
  10449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10450. for as_dir in $PATH
  10451. do
  10452. IFS=$as_save_IFS
  10453. test -z "$as_dir" && as_dir=.
  10454. for ac_exec_ext in '' $ac_executable_extensions; do
  10455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10456. ac_cv_prog_ac_ct_RC="windres"
  10457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10458. break 2
  10459. fi
  10460. done
  10461. done
  10462. IFS=$as_save_IFS
  10463. fi
  10464. fi
  10465. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10466. if test -n "$ac_ct_RC"; then
  10467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10468. $as_echo "$ac_ct_RC" >&6; }
  10469. else
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10471. $as_echo "no" >&6; }
  10472. fi
  10473. if test "x$ac_ct_RC" = x; then
  10474. RC=""
  10475. else
  10476. case $cross_compiling:$ac_tool_warned in
  10477. yes:)
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10479. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10480. ac_tool_warned=yes ;;
  10481. esac
  10482. RC=$ac_ct_RC
  10483. fi
  10484. else
  10485. RC="$ac_cv_prog_RC"
  10486. fi
  10487. # Source file extension for RC test sources.
  10488. ac_ext=rc
  10489. # Object file extension for compiled RC test sources.
  10490. objext=o
  10491. objext_RC=$objext
  10492. # Code to be used in simple compile tests
  10493. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10494. # Code to be used in simple link tests
  10495. lt_simple_link_test_code=$lt_simple_compile_test_code
  10496. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10497. # If no C compiler was specified, use CC.
  10498. LTCC=${LTCC-"$CC"}
  10499. # If no C compiler flags were specified, use CFLAGS.
  10500. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10501. # Allow CC to be a program name with arguments.
  10502. compiler=$CC
  10503. # save warnings/boilerplate of simple test code
  10504. ac_outfile=conftest.$ac_objext
  10505. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10506. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10507. _lt_compiler_boilerplate=`cat conftest.err`
  10508. $RM conftest*
  10509. ac_outfile=conftest.$ac_objext
  10510. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10511. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10512. _lt_linker_boilerplate=`cat conftest.err`
  10513. $RM -r conftest*
  10514. # Allow CC to be a program name with arguments.
  10515. lt_save_CC=$CC
  10516. lt_save_CFLAGS=$CFLAGS
  10517. lt_save_GCC=$GCC
  10518. GCC=
  10519. CC=${RC-"windres"}
  10520. CFLAGS=
  10521. compiler=$CC
  10522. compiler_RC=$CC
  10523. func_cc_basename $compiler
  10524. cc_basename=$func_cc_basename_result
  10525. lt_cv_prog_compiler_c_o_RC=yes
  10526. if test -n "$compiler"; then
  10527. :
  10528. fi
  10529. GCC=$lt_save_GCC
  10530. ac_ext=c
  10531. ac_cpp='$CPP $CPPFLAGS'
  10532. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10533. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10534. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10535. CC=$lt_save_CC
  10536. CFLAGS=$lt_save_CFLAGS
  10537. # For historical reasons, the library name redundantly includes the major
  10538. # version twice: libSDL2-2.0.so.0.
  10539. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  10540. LT_RELEASE=2.0
  10541. # Increment this if there is an incompatible change - but if that happens,
  10542. # we should rename the library from SDL2 to SDL3, at which point this would
  10543. # reset to 0 anyway.
  10544. LT_MAJOR=0
  10545. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10546. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  10547. LT_REVISION=$SDL_INTERFACE_AGE
  10548. ac_ext=c
  10549. ac_cpp='$CPP $CPPFLAGS'
  10550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10553. if test -n "$ac_tool_prefix"; then
  10554. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10555. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10557. $as_echo_n "checking for $ac_word... " >&6; }
  10558. if ${ac_cv_prog_CC+:} false; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. if test -n "$CC"; then
  10562. ac_cv_prog_CC="$CC" # Let the user override the test.
  10563. else
  10564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10565. for as_dir in $PATH
  10566. do
  10567. IFS=$as_save_IFS
  10568. test -z "$as_dir" && as_dir=.
  10569. for ac_exec_ext in '' $ac_executable_extensions; do
  10570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10571. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10573. break 2
  10574. fi
  10575. done
  10576. done
  10577. IFS=$as_save_IFS
  10578. fi
  10579. fi
  10580. CC=$ac_cv_prog_CC
  10581. if test -n "$CC"; then
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10583. $as_echo "$CC" >&6; }
  10584. else
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10586. $as_echo "no" >&6; }
  10587. fi
  10588. fi
  10589. if test -z "$ac_cv_prog_CC"; then
  10590. ac_ct_CC=$CC
  10591. # Extract the first word of "gcc", so it can be a program name with args.
  10592. set dummy gcc; ac_word=$2
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10594. $as_echo_n "checking for $ac_word... " >&6; }
  10595. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10596. $as_echo_n "(cached) " >&6
  10597. else
  10598. if test -n "$ac_ct_CC"; then
  10599. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10600. else
  10601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10602. for as_dir in $PATH
  10603. do
  10604. IFS=$as_save_IFS
  10605. test -z "$as_dir" && as_dir=.
  10606. for ac_exec_ext in '' $ac_executable_extensions; do
  10607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10608. ac_cv_prog_ac_ct_CC="gcc"
  10609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10610. break 2
  10611. fi
  10612. done
  10613. done
  10614. IFS=$as_save_IFS
  10615. fi
  10616. fi
  10617. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10618. if test -n "$ac_ct_CC"; then
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10620. $as_echo "$ac_ct_CC" >&6; }
  10621. else
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10623. $as_echo "no" >&6; }
  10624. fi
  10625. if test "x$ac_ct_CC" = x; then
  10626. CC=""
  10627. else
  10628. case $cross_compiling:$ac_tool_warned in
  10629. yes:)
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10632. ac_tool_warned=yes ;;
  10633. esac
  10634. CC=$ac_ct_CC
  10635. fi
  10636. else
  10637. CC="$ac_cv_prog_CC"
  10638. fi
  10639. if test -z "$CC"; then
  10640. if test -n "$ac_tool_prefix"; then
  10641. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10642. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10644. $as_echo_n "checking for $ac_word... " >&6; }
  10645. if ${ac_cv_prog_CC+:} false; then :
  10646. $as_echo_n "(cached) " >&6
  10647. else
  10648. if test -n "$CC"; then
  10649. ac_cv_prog_CC="$CC" # Let the user override the test.
  10650. else
  10651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10652. for as_dir in $PATH
  10653. do
  10654. IFS=$as_save_IFS
  10655. test -z "$as_dir" && as_dir=.
  10656. for ac_exec_ext in '' $ac_executable_extensions; do
  10657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10658. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10660. break 2
  10661. fi
  10662. done
  10663. done
  10664. IFS=$as_save_IFS
  10665. fi
  10666. fi
  10667. CC=$ac_cv_prog_CC
  10668. if test -n "$CC"; then
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10670. $as_echo "$CC" >&6; }
  10671. else
  10672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10673. $as_echo "no" >&6; }
  10674. fi
  10675. fi
  10676. fi
  10677. if test -z "$CC"; then
  10678. # Extract the first word of "cc", so it can be a program name with args.
  10679. set dummy cc; ac_word=$2
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10681. $as_echo_n "checking for $ac_word... " >&6; }
  10682. if ${ac_cv_prog_CC+:} false; then :
  10683. $as_echo_n "(cached) " >&6
  10684. else
  10685. if test -n "$CC"; then
  10686. ac_cv_prog_CC="$CC" # Let the user override the test.
  10687. else
  10688. ac_prog_rejected=no
  10689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10690. for as_dir in $PATH
  10691. do
  10692. IFS=$as_save_IFS
  10693. test -z "$as_dir" && as_dir=.
  10694. for ac_exec_ext in '' $ac_executable_extensions; do
  10695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10696. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10697. ac_prog_rejected=yes
  10698. continue
  10699. fi
  10700. ac_cv_prog_CC="cc"
  10701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10702. break 2
  10703. fi
  10704. done
  10705. done
  10706. IFS=$as_save_IFS
  10707. if test $ac_prog_rejected = yes; then
  10708. # We found a bogon in the path, so make sure we never use it.
  10709. set dummy $ac_cv_prog_CC
  10710. shift
  10711. if test $# != 0; then
  10712. # We chose a different compiler from the bogus one.
  10713. # However, it has the same basename, so the bogon will be chosen
  10714. # first if we set CC to just the basename; use the full file name.
  10715. shift
  10716. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10717. fi
  10718. fi
  10719. fi
  10720. fi
  10721. CC=$ac_cv_prog_CC
  10722. if test -n "$CC"; then
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10724. $as_echo "$CC" >&6; }
  10725. else
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10727. $as_echo "no" >&6; }
  10728. fi
  10729. fi
  10730. if test -z "$CC"; then
  10731. if test -n "$ac_tool_prefix"; then
  10732. for ac_prog in cl.exe
  10733. do
  10734. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10735. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10737. $as_echo_n "checking for $ac_word... " >&6; }
  10738. if ${ac_cv_prog_CC+:} false; then :
  10739. $as_echo_n "(cached) " >&6
  10740. else
  10741. if test -n "$CC"; then
  10742. ac_cv_prog_CC="$CC" # Let the user override the test.
  10743. else
  10744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10745. for as_dir in $PATH
  10746. do
  10747. IFS=$as_save_IFS
  10748. test -z "$as_dir" && as_dir=.
  10749. for ac_exec_ext in '' $ac_executable_extensions; do
  10750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10751. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10753. break 2
  10754. fi
  10755. done
  10756. done
  10757. IFS=$as_save_IFS
  10758. fi
  10759. fi
  10760. CC=$ac_cv_prog_CC
  10761. if test -n "$CC"; then
  10762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10763. $as_echo "$CC" >&6; }
  10764. else
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10766. $as_echo "no" >&6; }
  10767. fi
  10768. test -n "$CC" && break
  10769. done
  10770. fi
  10771. if test -z "$CC"; then
  10772. ac_ct_CC=$CC
  10773. for ac_prog in cl.exe
  10774. do
  10775. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10776. set dummy $ac_prog; ac_word=$2
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10778. $as_echo_n "checking for $ac_word... " >&6; }
  10779. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10780. $as_echo_n "(cached) " >&6
  10781. else
  10782. if test -n "$ac_ct_CC"; then
  10783. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10784. else
  10785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10786. for as_dir in $PATH
  10787. do
  10788. IFS=$as_save_IFS
  10789. test -z "$as_dir" && as_dir=.
  10790. for ac_exec_ext in '' $ac_executable_extensions; do
  10791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10792. ac_cv_prog_ac_ct_CC="$ac_prog"
  10793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10794. break 2
  10795. fi
  10796. done
  10797. done
  10798. IFS=$as_save_IFS
  10799. fi
  10800. fi
  10801. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10802. if test -n "$ac_ct_CC"; then
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10804. $as_echo "$ac_ct_CC" >&6; }
  10805. else
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10807. $as_echo "no" >&6; }
  10808. fi
  10809. test -n "$ac_ct_CC" && break
  10810. done
  10811. if test "x$ac_ct_CC" = x; then
  10812. CC=""
  10813. else
  10814. case $cross_compiling:$ac_tool_warned in
  10815. yes:)
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10818. ac_tool_warned=yes ;;
  10819. esac
  10820. CC=$ac_ct_CC
  10821. fi
  10822. fi
  10823. fi
  10824. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10825. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10826. as_fn_error $? "no acceptable C compiler found in \$PATH
  10827. See \`config.log' for more details" "$LINENO" 5; }
  10828. # Provide some information about the compiler.
  10829. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10830. set X $ac_compile
  10831. ac_compiler=$2
  10832. for ac_option in --version -v -V -qversion; do
  10833. { { ac_try="$ac_compiler $ac_option >&5"
  10834. case "(($ac_try" in
  10835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10836. *) ac_try_echo=$ac_try;;
  10837. esac
  10838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10839. $as_echo "$ac_try_echo"; } >&5
  10840. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10841. ac_status=$?
  10842. if test -s conftest.err; then
  10843. sed '10a\
  10844. ... rest of stderr output deleted ...
  10845. 10q' conftest.err >conftest.er1
  10846. cat conftest.er1 >&5
  10847. fi
  10848. rm -f conftest.er1 conftest.err
  10849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10850. test $ac_status = 0; }
  10851. done
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10853. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10854. if ${ac_cv_c_compiler_gnu+:} false; then :
  10855. $as_echo_n "(cached) " >&6
  10856. else
  10857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10858. /* end confdefs.h. */
  10859. int
  10860. main ()
  10861. {
  10862. #ifndef __GNUC__
  10863. choke me
  10864. #endif
  10865. ;
  10866. return 0;
  10867. }
  10868. _ACEOF
  10869. if ac_fn_c_try_compile "$LINENO"; then :
  10870. ac_compiler_gnu=yes
  10871. else
  10872. ac_compiler_gnu=no
  10873. fi
  10874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10875. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10876. fi
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10878. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10879. if test $ac_compiler_gnu = yes; then
  10880. GCC=yes
  10881. else
  10882. GCC=
  10883. fi
  10884. ac_test_CFLAGS=${CFLAGS+set}
  10885. ac_save_CFLAGS=$CFLAGS
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10887. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10888. if ${ac_cv_prog_cc_g+:} false; then :
  10889. $as_echo_n "(cached) " >&6
  10890. else
  10891. ac_save_c_werror_flag=$ac_c_werror_flag
  10892. ac_c_werror_flag=yes
  10893. ac_cv_prog_cc_g=no
  10894. CFLAGS="-g"
  10895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10896. /* end confdefs.h. */
  10897. int
  10898. main ()
  10899. {
  10900. ;
  10901. return 0;
  10902. }
  10903. _ACEOF
  10904. if ac_fn_c_try_compile "$LINENO"; then :
  10905. ac_cv_prog_cc_g=yes
  10906. else
  10907. CFLAGS=""
  10908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10909. /* end confdefs.h. */
  10910. int
  10911. main ()
  10912. {
  10913. ;
  10914. return 0;
  10915. }
  10916. _ACEOF
  10917. if ac_fn_c_try_compile "$LINENO"; then :
  10918. else
  10919. ac_c_werror_flag=$ac_save_c_werror_flag
  10920. CFLAGS="-g"
  10921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10922. /* end confdefs.h. */
  10923. int
  10924. main ()
  10925. {
  10926. ;
  10927. return 0;
  10928. }
  10929. _ACEOF
  10930. if ac_fn_c_try_compile "$LINENO"; then :
  10931. ac_cv_prog_cc_g=yes
  10932. fi
  10933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10936. fi
  10937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10938. ac_c_werror_flag=$ac_save_c_werror_flag
  10939. fi
  10940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10941. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10942. if test "$ac_test_CFLAGS" = set; then
  10943. CFLAGS=$ac_save_CFLAGS
  10944. elif test $ac_cv_prog_cc_g = yes; then
  10945. if test "$GCC" = yes; then
  10946. CFLAGS="-g -O2"
  10947. else
  10948. CFLAGS="-g"
  10949. fi
  10950. else
  10951. if test "$GCC" = yes; then
  10952. CFLAGS="-O2"
  10953. else
  10954. CFLAGS=
  10955. fi
  10956. fi
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10958. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10959. if ${ac_cv_prog_cc_c89+:} false; then :
  10960. $as_echo_n "(cached) " >&6
  10961. else
  10962. ac_cv_prog_cc_c89=no
  10963. ac_save_CC=$CC
  10964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10965. /* end confdefs.h. */
  10966. #include <stdarg.h>
  10967. #include <stdio.h>
  10968. struct stat;
  10969. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10970. struct buf { int x; };
  10971. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10972. static char *e (p, i)
  10973. char **p;
  10974. int i;
  10975. {
  10976. return p[i];
  10977. }
  10978. static char *f (char * (*g) (char **, int), char **p, ...)
  10979. {
  10980. char *s;
  10981. va_list v;
  10982. va_start (v,p);
  10983. s = g (p, va_arg (v,int));
  10984. va_end (v);
  10985. return s;
  10986. }
  10987. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10988. function prototypes and stuff, but not '\xHH' hex character constants.
  10989. These don't provoke an error unfortunately, instead are silently treated
  10990. as 'x'. The following induces an error, until -std is added to get
  10991. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10992. array size at least. It's necessary to write '\x00'==0 to get something
  10993. that's true only with -std. */
  10994. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10995. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10996. inside strings and character constants. */
  10997. #define FOO(x) 'x'
  10998. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10999. int test (int i, double x);
  11000. struct s1 {int (*f) (int a);};
  11001. struct s2 {int (*f) (double a);};
  11002. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11003. int argc;
  11004. char **argv;
  11005. int
  11006. main ()
  11007. {
  11008. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11009. ;
  11010. return 0;
  11011. }
  11012. _ACEOF
  11013. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11014. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11015. do
  11016. CC="$ac_save_CC $ac_arg"
  11017. if ac_fn_c_try_compile "$LINENO"; then :
  11018. ac_cv_prog_cc_c89=$ac_arg
  11019. fi
  11020. rm -f core conftest.err conftest.$ac_objext
  11021. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11022. done
  11023. rm -f conftest.$ac_ext
  11024. CC=$ac_save_CC
  11025. fi
  11026. # AC_CACHE_VAL
  11027. case "x$ac_cv_prog_cc_c89" in
  11028. x)
  11029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11030. $as_echo "none needed" >&6; } ;;
  11031. xno)
  11032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11033. $as_echo "unsupported" >&6; } ;;
  11034. *)
  11035. CC="$CC $ac_cv_prog_cc_c89"
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11037. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11038. esac
  11039. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11040. fi
  11041. ac_ext=c
  11042. ac_cpp='$CPP $CPPFLAGS'
  11043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11046. ac_ext=cpp
  11047. ac_cpp='$CXXCPP $CPPFLAGS'
  11048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11051. if test -z "$CXX"; then
  11052. if test -n "$CCC"; then
  11053. CXX=$CCC
  11054. else
  11055. if test -n "$ac_tool_prefix"; then
  11056. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11057. do
  11058. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11059. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11061. $as_echo_n "checking for $ac_word... " >&6; }
  11062. if ${ac_cv_prog_CXX+:} false; then :
  11063. $as_echo_n "(cached) " >&6
  11064. else
  11065. if test -n "$CXX"; then
  11066. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11067. else
  11068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11069. for as_dir in $PATH
  11070. do
  11071. IFS=$as_save_IFS
  11072. test -z "$as_dir" && as_dir=.
  11073. for ac_exec_ext in '' $ac_executable_extensions; do
  11074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11075. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11077. break 2
  11078. fi
  11079. done
  11080. done
  11081. IFS=$as_save_IFS
  11082. fi
  11083. fi
  11084. CXX=$ac_cv_prog_CXX
  11085. if test -n "$CXX"; then
  11086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11087. $as_echo "$CXX" >&6; }
  11088. else
  11089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11090. $as_echo "no" >&6; }
  11091. fi
  11092. test -n "$CXX" && break
  11093. done
  11094. fi
  11095. if test -z "$CXX"; then
  11096. ac_ct_CXX=$CXX
  11097. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11098. do
  11099. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11100. set dummy $ac_prog; ac_word=$2
  11101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11102. $as_echo_n "checking for $ac_word... " >&6; }
  11103. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11104. $as_echo_n "(cached) " >&6
  11105. else
  11106. if test -n "$ac_ct_CXX"; then
  11107. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11108. else
  11109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11110. for as_dir in $PATH
  11111. do
  11112. IFS=$as_save_IFS
  11113. test -z "$as_dir" && as_dir=.
  11114. for ac_exec_ext in '' $ac_executable_extensions; do
  11115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11116. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11118. break 2
  11119. fi
  11120. done
  11121. done
  11122. IFS=$as_save_IFS
  11123. fi
  11124. fi
  11125. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11126. if test -n "$ac_ct_CXX"; then
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11128. $as_echo "$ac_ct_CXX" >&6; }
  11129. else
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11131. $as_echo "no" >&6; }
  11132. fi
  11133. test -n "$ac_ct_CXX" && break
  11134. done
  11135. if test "x$ac_ct_CXX" = x; then
  11136. CXX="g++"
  11137. else
  11138. case $cross_compiling:$ac_tool_warned in
  11139. yes:)
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11141. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11142. ac_tool_warned=yes ;;
  11143. esac
  11144. CXX=$ac_ct_CXX
  11145. fi
  11146. fi
  11147. fi
  11148. fi
  11149. # Provide some information about the compiler.
  11150. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11151. set X $ac_compile
  11152. ac_compiler=$2
  11153. for ac_option in --version -v -V -qversion; do
  11154. { { ac_try="$ac_compiler $ac_option >&5"
  11155. case "(($ac_try" in
  11156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11157. *) ac_try_echo=$ac_try;;
  11158. esac
  11159. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11160. $as_echo "$ac_try_echo"; } >&5
  11161. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11162. ac_status=$?
  11163. if test -s conftest.err; then
  11164. sed '10a\
  11165. ... rest of stderr output deleted ...
  11166. 10q' conftest.err >conftest.er1
  11167. cat conftest.er1 >&5
  11168. fi
  11169. rm -f conftest.er1 conftest.err
  11170. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11171. test $ac_status = 0; }
  11172. done
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11174. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11175. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11176. $as_echo_n "(cached) " >&6
  11177. else
  11178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11179. /* end confdefs.h. */
  11180. int
  11181. main ()
  11182. {
  11183. #ifndef __GNUC__
  11184. choke me
  11185. #endif
  11186. ;
  11187. return 0;
  11188. }
  11189. _ACEOF
  11190. if ac_fn_cxx_try_compile "$LINENO"; then :
  11191. ac_compiler_gnu=yes
  11192. else
  11193. ac_compiler_gnu=no
  11194. fi
  11195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11196. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11197. fi
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11199. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11200. if test $ac_compiler_gnu = yes; then
  11201. GXX=yes
  11202. else
  11203. GXX=
  11204. fi
  11205. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11206. ac_save_CXXFLAGS=$CXXFLAGS
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11208. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11209. if ${ac_cv_prog_cxx_g+:} false; then :
  11210. $as_echo_n "(cached) " >&6
  11211. else
  11212. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11213. ac_cxx_werror_flag=yes
  11214. ac_cv_prog_cxx_g=no
  11215. CXXFLAGS="-g"
  11216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11217. /* end confdefs.h. */
  11218. int
  11219. main ()
  11220. {
  11221. ;
  11222. return 0;
  11223. }
  11224. _ACEOF
  11225. if ac_fn_cxx_try_compile "$LINENO"; then :
  11226. ac_cv_prog_cxx_g=yes
  11227. else
  11228. CXXFLAGS=""
  11229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11230. /* end confdefs.h. */
  11231. int
  11232. main ()
  11233. {
  11234. ;
  11235. return 0;
  11236. }
  11237. _ACEOF
  11238. if ac_fn_cxx_try_compile "$LINENO"; then :
  11239. else
  11240. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11241. CXXFLAGS="-g"
  11242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11243. /* end confdefs.h. */
  11244. int
  11245. main ()
  11246. {
  11247. ;
  11248. return 0;
  11249. }
  11250. _ACEOF
  11251. if ac_fn_cxx_try_compile "$LINENO"; then :
  11252. ac_cv_prog_cxx_g=yes
  11253. fi
  11254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11255. fi
  11256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11257. fi
  11258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11259. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11260. fi
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11262. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11263. if test "$ac_test_CXXFLAGS" = set; then
  11264. CXXFLAGS=$ac_save_CXXFLAGS
  11265. elif test $ac_cv_prog_cxx_g = yes; then
  11266. if test "$GXX" = yes; then
  11267. CXXFLAGS="-g -O2"
  11268. else
  11269. CXXFLAGS="-g"
  11270. fi
  11271. else
  11272. if test "$GXX" = yes; then
  11273. CXXFLAGS="-O2"
  11274. else
  11275. CXXFLAGS=
  11276. fi
  11277. fi
  11278. ac_ext=c
  11279. ac_cpp='$CPP $CPPFLAGS'
  11280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11283. func_stripname_cnf ()
  11284. {
  11285. case $2 in
  11286. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11287. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11288. esac
  11289. } # func_stripname_cnf
  11290. if test -n "$CXX" && ( test no != "$CXX" &&
  11291. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11292. (test g++ != "$CXX"))); then
  11293. ac_ext=cpp
  11294. ac_cpp='$CXXCPP $CPPFLAGS'
  11295. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11296. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11297. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11299. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11300. if test -z "$CXXCPP"; then
  11301. if ${ac_cv_prog_CXXCPP+:} false; then :
  11302. $as_echo_n "(cached) " >&6
  11303. else
  11304. # Double quotes because CXXCPP needs to be expanded
  11305. for CXXCPP in "$CXX -E" "/lib/cpp"
  11306. do
  11307. ac_preproc_ok=false
  11308. for ac_cxx_preproc_warn_flag in '' yes
  11309. do
  11310. # Use a header file that comes with gcc, so configuring glibc
  11311. # with a fresh cross-compiler works.
  11312. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11313. # <limits.h> exists even on freestanding compilers.
  11314. # On the NeXT, cc -E runs the code through the compiler's parser,
  11315. # not just through cpp. "Syntax error" is here to catch this case.
  11316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11317. /* end confdefs.h. */
  11318. #ifdef __STDC__
  11319. # include <limits.h>
  11320. #else
  11321. # include <assert.h>
  11322. #endif
  11323. Syntax error
  11324. _ACEOF
  11325. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11326. else
  11327. # Broken: fails on valid input.
  11328. continue
  11329. fi
  11330. rm -f conftest.err conftest.i conftest.$ac_ext
  11331. # OK, works on sane cases. Now check whether nonexistent headers
  11332. # can be detected and how.
  11333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11334. /* end confdefs.h. */
  11335. #include <ac_nonexistent.h>
  11336. _ACEOF
  11337. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11338. # Broken: success on invalid input.
  11339. continue
  11340. else
  11341. # Passes both tests.
  11342. ac_preproc_ok=:
  11343. break
  11344. fi
  11345. rm -f conftest.err conftest.i conftest.$ac_ext
  11346. done
  11347. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11348. rm -f conftest.i conftest.err conftest.$ac_ext
  11349. if $ac_preproc_ok; then :
  11350. break
  11351. fi
  11352. done
  11353. ac_cv_prog_CXXCPP=$CXXCPP
  11354. fi
  11355. CXXCPP=$ac_cv_prog_CXXCPP
  11356. else
  11357. ac_cv_prog_CXXCPP=$CXXCPP
  11358. fi
  11359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11360. $as_echo "$CXXCPP" >&6; }
  11361. ac_preproc_ok=false
  11362. for ac_cxx_preproc_warn_flag in '' yes
  11363. do
  11364. # Use a header file that comes with gcc, so configuring glibc
  11365. # with a fresh cross-compiler works.
  11366. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11367. # <limits.h> exists even on freestanding compilers.
  11368. # On the NeXT, cc -E runs the code through the compiler's parser,
  11369. # not just through cpp. "Syntax error" is here to catch this case.
  11370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11371. /* end confdefs.h. */
  11372. #ifdef __STDC__
  11373. # include <limits.h>
  11374. #else
  11375. # include <assert.h>
  11376. #endif
  11377. Syntax error
  11378. _ACEOF
  11379. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11380. else
  11381. # Broken: fails on valid input.
  11382. continue
  11383. fi
  11384. rm -f conftest.err conftest.i conftest.$ac_ext
  11385. # OK, works on sane cases. Now check whether nonexistent headers
  11386. # can be detected and how.
  11387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11388. /* end confdefs.h. */
  11389. #include <ac_nonexistent.h>
  11390. _ACEOF
  11391. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11392. # Broken: success on invalid input.
  11393. continue
  11394. else
  11395. # Passes both tests.
  11396. ac_preproc_ok=:
  11397. break
  11398. fi
  11399. rm -f conftest.err conftest.i conftest.$ac_ext
  11400. done
  11401. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11402. rm -f conftest.i conftest.err conftest.$ac_ext
  11403. if $ac_preproc_ok; then :
  11404. else
  11405. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11406. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11407. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11408. See \`config.log' for more details" "$LINENO" 5; }
  11409. fi
  11410. ac_ext=c
  11411. ac_cpp='$CPP $CPPFLAGS'
  11412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11415. else
  11416. _lt_caught_CXX_error=yes
  11417. fi
  11418. ac_ext=cpp
  11419. ac_cpp='$CXXCPP $CPPFLAGS'
  11420. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11421. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11422. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11423. archive_cmds_need_lc_CXX=no
  11424. allow_undefined_flag_CXX=
  11425. always_export_symbols_CXX=no
  11426. archive_expsym_cmds_CXX=
  11427. compiler_needs_object_CXX=no
  11428. export_dynamic_flag_spec_CXX=
  11429. hardcode_direct_CXX=no
  11430. hardcode_direct_absolute_CXX=no
  11431. hardcode_libdir_flag_spec_CXX=
  11432. hardcode_libdir_separator_CXX=
  11433. hardcode_minus_L_CXX=no
  11434. hardcode_shlibpath_var_CXX=unsupported
  11435. hardcode_automatic_CXX=no
  11436. inherit_rpath_CXX=no
  11437. module_cmds_CXX=
  11438. module_expsym_cmds_CXX=
  11439. link_all_deplibs_CXX=unknown
  11440. old_archive_cmds_CXX=$old_archive_cmds
  11441. reload_flag_CXX=$reload_flag
  11442. reload_cmds_CXX=$reload_cmds
  11443. no_undefined_flag_CXX=
  11444. whole_archive_flag_spec_CXX=
  11445. enable_shared_with_static_runtimes_CXX=no
  11446. # Source file extension for C++ test sources.
  11447. ac_ext=cpp
  11448. # Object file extension for compiled C++ test sources.
  11449. objext=o
  11450. objext_CXX=$objext
  11451. # No sense in running all these tests if we already determined that
  11452. # the CXX compiler isn't working. Some variables (like enable_shared)
  11453. # are currently assumed to apply to all compilers on this platform,
  11454. # and will be corrupted by setting them based on a non-working compiler.
  11455. if test yes != "$_lt_caught_CXX_error"; then
  11456. # Code to be used in simple compile tests
  11457. lt_simple_compile_test_code="int some_variable = 0;"
  11458. # Code to be used in simple link tests
  11459. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11460. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11461. # If no C compiler was specified, use CC.
  11462. LTCC=${LTCC-"$CC"}
  11463. # If no C compiler flags were specified, use CFLAGS.
  11464. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11465. # Allow CC to be a program name with arguments.
  11466. compiler=$CC
  11467. # save warnings/boilerplate of simple test code
  11468. ac_outfile=conftest.$ac_objext
  11469. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11470. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11471. _lt_compiler_boilerplate=`cat conftest.err`
  11472. $RM conftest*
  11473. ac_outfile=conftest.$ac_objext
  11474. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11475. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11476. _lt_linker_boilerplate=`cat conftest.err`
  11477. $RM -r conftest*
  11478. # Allow CC to be a program name with arguments.
  11479. lt_save_CC=$CC
  11480. lt_save_CFLAGS=$CFLAGS
  11481. lt_save_LD=$LD
  11482. lt_save_GCC=$GCC
  11483. GCC=$GXX
  11484. lt_save_with_gnu_ld=$with_gnu_ld
  11485. lt_save_path_LD=$lt_cv_path_LD
  11486. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11487. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11488. else
  11489. $as_unset lt_cv_prog_gnu_ld
  11490. fi
  11491. if test -n "${lt_cv_path_LDCXX+set}"; then
  11492. lt_cv_path_LD=$lt_cv_path_LDCXX
  11493. else
  11494. $as_unset lt_cv_path_LD
  11495. fi
  11496. test -z "${LDCXX+set}" || LD=$LDCXX
  11497. CC=${CXX-"c++"}
  11498. CFLAGS=$CXXFLAGS
  11499. compiler=$CC
  11500. compiler_CXX=$CC
  11501. func_cc_basename $compiler
  11502. cc_basename=$func_cc_basename_result
  11503. if test -n "$compiler"; then
  11504. # We don't want -fno-exception when compiling C++ code, so set the
  11505. # no_builtin_flag separately
  11506. if test yes = "$GXX"; then
  11507. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11508. else
  11509. lt_prog_compiler_no_builtin_flag_CXX=
  11510. fi
  11511. if test yes = "$GXX"; then
  11512. # Set up default GNU C++ configuration
  11513. # Check whether --with-gnu-ld was given.
  11514. if test "${with_gnu_ld+set}" = set; then :
  11515. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11516. else
  11517. with_gnu_ld=no
  11518. fi
  11519. ac_prog=ld
  11520. if test yes = "$GCC"; then
  11521. # Check if gcc -print-prog-name=ld gives a path.
  11522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11523. $as_echo_n "checking for ld used by $CC... " >&6; }
  11524. case $host in
  11525. *-*-mingw*)
  11526. # gcc leaves a trailing carriage return, which upsets mingw
  11527. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11528. *)
  11529. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11530. esac
  11531. case $ac_prog in
  11532. # Accept absolute paths.
  11533. [\\/]* | ?:[\\/]*)
  11534. re_direlt='/[^/][^/]*/\.\./'
  11535. # Canonicalize the pathname of ld
  11536. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11537. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11538. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11539. done
  11540. test -z "$LD" && LD=$ac_prog
  11541. ;;
  11542. "")
  11543. # If it fails, then pretend we aren't using GCC.
  11544. ac_prog=ld
  11545. ;;
  11546. *)
  11547. # If it is relative, then search for the first ld in PATH.
  11548. with_gnu_ld=unknown
  11549. ;;
  11550. esac
  11551. elif test yes = "$with_gnu_ld"; then
  11552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11553. $as_echo_n "checking for GNU ld... " >&6; }
  11554. else
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11556. $as_echo_n "checking for non-GNU ld... " >&6; }
  11557. fi
  11558. if ${lt_cv_path_LD+:} false; then :
  11559. $as_echo_n "(cached) " >&6
  11560. else
  11561. if test -z "$LD"; then
  11562. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11563. for ac_dir in $PATH; do
  11564. IFS=$lt_save_ifs
  11565. test -z "$ac_dir" && ac_dir=.
  11566. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11567. lt_cv_path_LD=$ac_dir/$ac_prog
  11568. # Check to see if the program is GNU ld. I'd rather use --version,
  11569. # but apparently some variants of GNU ld only accept -v.
  11570. # Break only if it was the GNU/non-GNU ld that we prefer.
  11571. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11572. *GNU* | *'with BFD'*)
  11573. test no != "$with_gnu_ld" && break
  11574. ;;
  11575. *)
  11576. test yes != "$with_gnu_ld" && break
  11577. ;;
  11578. esac
  11579. fi
  11580. done
  11581. IFS=$lt_save_ifs
  11582. else
  11583. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11584. fi
  11585. fi
  11586. LD=$lt_cv_path_LD
  11587. if test -n "$LD"; then
  11588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11589. $as_echo "$LD" >&6; }
  11590. else
  11591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11592. $as_echo "no" >&6; }
  11593. fi
  11594. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11596. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11597. if ${lt_cv_prog_gnu_ld+:} false; then :
  11598. $as_echo_n "(cached) " >&6
  11599. else
  11600. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11601. case `$LD -v 2>&1 </dev/null` in
  11602. *GNU* | *'with BFD'*)
  11603. lt_cv_prog_gnu_ld=yes
  11604. ;;
  11605. *)
  11606. lt_cv_prog_gnu_ld=no
  11607. ;;
  11608. esac
  11609. fi
  11610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11611. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11612. with_gnu_ld=$lt_cv_prog_gnu_ld
  11613. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11614. # archiving commands below assume that GNU ld is being used.
  11615. if test yes = "$with_gnu_ld"; then
  11616. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11617. 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'
  11618. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11619. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11620. # If archive_cmds runs LD, not CC, wlarc should be empty
  11621. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11622. # investigate it a little bit more. (MM)
  11623. wlarc='$wl'
  11624. # ancient GNU ld didn't support --whole-archive et. al.
  11625. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11626. $GREP 'no-whole-archive' > /dev/null; then
  11627. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11628. else
  11629. whole_archive_flag_spec_CXX=
  11630. fi
  11631. else
  11632. with_gnu_ld=no
  11633. wlarc=
  11634. # A generic and very simple default shared library creation
  11635. # command for GNU C++ for the case where it uses the native
  11636. # linker, instead of GNU ld. If possible, this setting should
  11637. # overridden to take advantage of the native linker features on
  11638. # the platform it is being used on.
  11639. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11640. fi
  11641. # Commands to make compiler produce verbose output that lists
  11642. # what "hidden" libraries, object files and flags are used when
  11643. # linking a shared library.
  11644. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11645. else
  11646. GXX=no
  11647. with_gnu_ld=no
  11648. wlarc=
  11649. fi
  11650. # PORTME: fill in a description of your system's C++ link characteristics
  11651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11652. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11653. ld_shlibs_CXX=yes
  11654. case $host_os in
  11655. aix3*)
  11656. # FIXME: insert proper C++ library support
  11657. ld_shlibs_CXX=no
  11658. ;;
  11659. aix[4-9]*)
  11660. if test ia64 = "$host_cpu"; then
  11661. # On IA64, the linker does run time linking by default, so we don't
  11662. # have to do anything special.
  11663. aix_use_runtimelinking=no
  11664. exp_sym_flag='-Bexport'
  11665. no_entry_flag=
  11666. else
  11667. aix_use_runtimelinking=no
  11668. # Test if we are trying to use run time linking or normal
  11669. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11670. # have runtime linking enabled, and use it for executables.
  11671. # For shared libraries, we enable/disable runtime linking
  11672. # depending on the kind of the shared library created -
  11673. # when "with_aix_soname,aix_use_runtimelinking" is:
  11674. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11675. # "aix,yes" lib.so shared, rtl:yes, for executables
  11676. # lib.a static archive
  11677. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11678. # lib.a(lib.so.V) shared, rtl:no, for executables
  11679. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11680. # lib.a(lib.so.V) shared, rtl:no
  11681. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11682. # lib.a static archive
  11683. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11684. for ld_flag in $LDFLAGS; do
  11685. case $ld_flag in
  11686. *-brtl*)
  11687. aix_use_runtimelinking=yes
  11688. break
  11689. ;;
  11690. esac
  11691. done
  11692. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11693. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11694. # so we don't have lib.a shared libs to link our executables.
  11695. # We have to force runtime linking in this case.
  11696. aix_use_runtimelinking=yes
  11697. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11698. fi
  11699. ;;
  11700. esac
  11701. exp_sym_flag='-bexport'
  11702. no_entry_flag='-bnoentry'
  11703. fi
  11704. # When large executables or shared objects are built, AIX ld can
  11705. # have problems creating the table of contents. If linking a library
  11706. # or program results in "error TOC overflow" add -mminimal-toc to
  11707. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11708. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11709. archive_cmds_CXX=''
  11710. hardcode_direct_CXX=yes
  11711. hardcode_direct_absolute_CXX=yes
  11712. hardcode_libdir_separator_CXX=':'
  11713. link_all_deplibs_CXX=yes
  11714. file_list_spec_CXX='$wl-f,'
  11715. case $with_aix_soname,$aix_use_runtimelinking in
  11716. aix,*) ;; # no import file
  11717. svr4,* | *,yes) # use import file
  11718. # The Import File defines what to hardcode.
  11719. hardcode_direct_CXX=no
  11720. hardcode_direct_absolute_CXX=no
  11721. ;;
  11722. esac
  11723. if test yes = "$GXX"; then
  11724. case $host_os in aix4.[012]|aix4.[012].*)
  11725. # We only want to do this on AIX 4.2 and lower, the check
  11726. # below for broken collect2 doesn't work under 4.3+
  11727. collect2name=`$CC -print-prog-name=collect2`
  11728. if test -f "$collect2name" &&
  11729. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11730. then
  11731. # We have reworked collect2
  11732. :
  11733. else
  11734. # We have old collect2
  11735. hardcode_direct_CXX=unsupported
  11736. # It fails to find uninstalled libraries when the uninstalled
  11737. # path is not listed in the libpath. Setting hardcode_minus_L
  11738. # to unsupported forces relinking
  11739. hardcode_minus_L_CXX=yes
  11740. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11741. hardcode_libdir_separator_CXX=
  11742. fi
  11743. esac
  11744. shared_flag='-shared'
  11745. if test yes = "$aix_use_runtimelinking"; then
  11746. shared_flag=$shared_flag' $wl-G'
  11747. fi
  11748. # Need to ensure runtime linking is disabled for the traditional
  11749. # shared library, or the linker may eventually find shared libraries
  11750. # /with/ Import File - we do not want to mix them.
  11751. shared_flag_aix='-shared'
  11752. shared_flag_svr4='-shared $wl-G'
  11753. else
  11754. # not using gcc
  11755. if test ia64 = "$host_cpu"; then
  11756. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11757. # chokes on -Wl,-G. The following line is correct:
  11758. shared_flag='-G'
  11759. else
  11760. if test yes = "$aix_use_runtimelinking"; then
  11761. shared_flag='$wl-G'
  11762. else
  11763. shared_flag='$wl-bM:SRE'
  11764. fi
  11765. shared_flag_aix='$wl-bM:SRE'
  11766. shared_flag_svr4='$wl-G'
  11767. fi
  11768. fi
  11769. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11770. # It seems that -bexpall does not export symbols beginning with
  11771. # underscore (_), so it is better to generate a list of symbols to
  11772. # export.
  11773. always_export_symbols_CXX=yes
  11774. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11775. # Warning - without using the other runtime loading flags (-brtl),
  11776. # -berok will link without error, but may produce a broken library.
  11777. # The "-G" linker flag allows undefined symbols.
  11778. no_undefined_flag_CXX='-bernotok'
  11779. # Determine the default libpath from the value encoded in an empty
  11780. # executable.
  11781. if test set = "${lt_cv_aix_libpath+set}"; then
  11782. aix_libpath=$lt_cv_aix_libpath
  11783. else
  11784. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11785. $as_echo_n "(cached) " >&6
  11786. else
  11787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11788. /* end confdefs.h. */
  11789. int
  11790. main ()
  11791. {
  11792. ;
  11793. return 0;
  11794. }
  11795. _ACEOF
  11796. if ac_fn_cxx_try_link "$LINENO"; then :
  11797. lt_aix_libpath_sed='
  11798. /Import File Strings/,/^$/ {
  11799. /^0/ {
  11800. s/^0 *\([^ ]*\) *$/\1/
  11801. p
  11802. }
  11803. }'
  11804. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11805. # Check for a 64-bit object if we didn't find anything.
  11806. if test -z "$lt_cv_aix_libpath__CXX"; then
  11807. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11808. fi
  11809. fi
  11810. rm -f core conftest.err conftest.$ac_objext \
  11811. conftest$ac_exeext conftest.$ac_ext
  11812. if test -z "$lt_cv_aix_libpath__CXX"; then
  11813. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11814. fi
  11815. fi
  11816. aix_libpath=$lt_cv_aix_libpath__CXX
  11817. fi
  11818. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11819. 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
  11820. else
  11821. if test ia64 = "$host_cpu"; then
  11822. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11823. allow_undefined_flag_CXX="-z nodefs"
  11824. 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"
  11825. else
  11826. # Determine the default libpath from the value encoded in an
  11827. # empty executable.
  11828. if test set = "${lt_cv_aix_libpath+set}"; then
  11829. aix_libpath=$lt_cv_aix_libpath
  11830. else
  11831. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11832. $as_echo_n "(cached) " >&6
  11833. else
  11834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11835. /* end confdefs.h. */
  11836. int
  11837. main ()
  11838. {
  11839. ;
  11840. return 0;
  11841. }
  11842. _ACEOF
  11843. if ac_fn_cxx_try_link "$LINENO"; then :
  11844. lt_aix_libpath_sed='
  11845. /Import File Strings/,/^$/ {
  11846. /^0/ {
  11847. s/^0 *\([^ ]*\) *$/\1/
  11848. p
  11849. }
  11850. }'
  11851. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11852. # Check for a 64-bit object if we didn't find anything.
  11853. if test -z "$lt_cv_aix_libpath__CXX"; then
  11854. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11855. fi
  11856. fi
  11857. rm -f core conftest.err conftest.$ac_objext \
  11858. conftest$ac_exeext conftest.$ac_ext
  11859. if test -z "$lt_cv_aix_libpath__CXX"; then
  11860. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11861. fi
  11862. fi
  11863. aix_libpath=$lt_cv_aix_libpath__CXX
  11864. fi
  11865. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11866. # Warning - without using the other run time loading flags,
  11867. # -berok will link without error, but may produce a broken library.
  11868. no_undefined_flag_CXX=' $wl-bernotok'
  11869. allow_undefined_flag_CXX=' $wl-berok'
  11870. if test yes = "$with_gnu_ld"; then
  11871. # We only use this code for GNU lds that support --whole-archive.
  11872. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11873. else
  11874. # Exported symbols can be pulled into shared objects from archives
  11875. whole_archive_flag_spec_CXX='$convenience'
  11876. fi
  11877. archive_cmds_need_lc_CXX=yes
  11878. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11879. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11880. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11881. if test svr4 != "$with_aix_soname"; then
  11882. # This is similar to how AIX traditionally builds its shared
  11883. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11884. 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'
  11885. fi
  11886. if test aix != "$with_aix_soname"; then
  11887. 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'
  11888. else
  11889. # used by -dlpreopen to get the symbols
  11890. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11891. fi
  11892. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11893. fi
  11894. fi
  11895. ;;
  11896. beos*)
  11897. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11898. allow_undefined_flag_CXX=unsupported
  11899. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11900. # support --undefined. This deserves some investigation. FIXME
  11901. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11902. else
  11903. ld_shlibs_CXX=no
  11904. fi
  11905. ;;
  11906. chorus*)
  11907. case $cc_basename in
  11908. *)
  11909. # FIXME: insert proper C++ library support
  11910. ld_shlibs_CXX=no
  11911. ;;
  11912. esac
  11913. ;;
  11914. cygwin* | mingw* | pw32* | cegcc*)
  11915. case $GXX,$cc_basename in
  11916. ,cl* | no,cl*)
  11917. # Native MSVC
  11918. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11919. # no search path for DLLs.
  11920. hardcode_libdir_flag_spec_CXX=' '
  11921. allow_undefined_flag_CXX=unsupported
  11922. always_export_symbols_CXX=yes
  11923. file_list_spec_CXX='@'
  11924. # Tell ltmain to make .lib files, not .a files.
  11925. libext=lib
  11926. # Tell ltmain to make .dll files, not .so files.
  11927. shrext_cmds=.dll
  11928. # FIXME: Setting linknames here is a bad hack.
  11929. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11930. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11931. cp "$export_symbols" "$output_objdir/$soname.def";
  11932. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11933. else
  11934. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11935. fi~
  11936. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11937. linknames='
  11938. # The linker will not automatically build a static lib if we build a DLL.
  11939. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11940. enable_shared_with_static_runtimes_CXX=yes
  11941. # Don't use ranlib
  11942. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11943. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11944. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11945. case $lt_outputfile in
  11946. *.exe|*.EXE) ;;
  11947. *)
  11948. lt_outputfile=$lt_outputfile.exe
  11949. lt_tool_outputfile=$lt_tool_outputfile.exe
  11950. ;;
  11951. esac~
  11952. func_to_tool_file "$lt_outputfile"~
  11953. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11954. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11955. $RM "$lt_outputfile.manifest";
  11956. fi'
  11957. ;;
  11958. *)
  11959. # g++
  11960. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11961. # as there is no search path for DLLs.
  11962. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11963. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11964. allow_undefined_flag_CXX=unsupported
  11965. always_export_symbols_CXX=no
  11966. enable_shared_with_static_runtimes_CXX=yes
  11967. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11968. 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'
  11969. # If the export-symbols file already is a .def file, use it as
  11970. # is; otherwise, prepend EXPORTS...
  11971. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11972. cp $export_symbols $output_objdir/$soname.def;
  11973. else
  11974. echo EXPORTS > $output_objdir/$soname.def;
  11975. cat $export_symbols >> $output_objdir/$soname.def;
  11976. fi~
  11977. $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'
  11978. else
  11979. ld_shlibs_CXX=no
  11980. fi
  11981. ;;
  11982. esac
  11983. ;;
  11984. darwin* | rhapsody*)
  11985. archive_cmds_need_lc_CXX=no
  11986. hardcode_direct_CXX=no
  11987. hardcode_automatic_CXX=yes
  11988. hardcode_shlibpath_var_CXX=unsupported
  11989. if test yes = "$lt_cv_ld_force_load"; then
  11990. 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\"`'
  11991. else
  11992. whole_archive_flag_spec_CXX=''
  11993. fi
  11994. link_all_deplibs_CXX=yes
  11995. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11996. case $cc_basename in
  11997. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11998. *) _lt_dar_can_shared=$GCC ;;
  11999. esac
  12000. if test yes = "$_lt_dar_can_shared"; then
  12001. output_verbose_link_cmd=func_echo_all
  12002. 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"
  12003. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12004. 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"
  12005. 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"
  12006. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12007. 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"
  12008. 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"
  12009. fi
  12010. else
  12011. ld_shlibs_CXX=no
  12012. fi
  12013. ;;
  12014. os2*)
  12015. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12016. hardcode_minus_L_CXX=yes
  12017. allow_undefined_flag_CXX=unsupported
  12018. shrext_cmds=.dll
  12019. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12020. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12021. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12022. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12023. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12024. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12025. emximp -o $lib $output_objdir/$libname.def'
  12026. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12027. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12028. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12029. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12030. prefix_cmds="$SED"~
  12031. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12032. prefix_cmds="$prefix_cmds -e 1d";
  12033. fi~
  12034. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12035. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12036. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12037. emximp -o $lib $output_objdir/$libname.def'
  12038. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12039. enable_shared_with_static_runtimes_CXX=yes
  12040. file_list_spec_CXX='@'
  12041. ;;
  12042. dgux*)
  12043. case $cc_basename in
  12044. ec++*)
  12045. # FIXME: insert proper C++ library support
  12046. ld_shlibs_CXX=no
  12047. ;;
  12048. ghcx*)
  12049. # Green Hills C++ Compiler
  12050. # FIXME: insert proper C++ library support
  12051. ld_shlibs_CXX=no
  12052. ;;
  12053. *)
  12054. # FIXME: insert proper C++ library support
  12055. ld_shlibs_CXX=no
  12056. ;;
  12057. esac
  12058. ;;
  12059. freebsd2.*)
  12060. # C++ shared libraries reported to be fairly broken before
  12061. # switch to ELF
  12062. ld_shlibs_CXX=no
  12063. ;;
  12064. freebsd-elf*)
  12065. archive_cmds_need_lc_CXX=no
  12066. ;;
  12067. freebsd* | dragonfly* | midnightbsd*)
  12068. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12069. # conventions
  12070. ld_shlibs_CXX=yes
  12071. ;;
  12072. haiku*)
  12073. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12074. link_all_deplibs_CXX=yes
  12075. ;;
  12076. hpux9*)
  12077. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12078. hardcode_libdir_separator_CXX=:
  12079. export_dynamic_flag_spec_CXX='$wl-E'
  12080. hardcode_direct_CXX=yes
  12081. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12082. # but as the default
  12083. # location of the library.
  12084. case $cc_basename in
  12085. CC*)
  12086. # FIXME: insert proper C++ library support
  12087. ld_shlibs_CXX=no
  12088. ;;
  12089. aCC*)
  12090. 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'
  12091. # Commands to make compiler produce verbose output that lists
  12092. # what "hidden" libraries, object files and flags are used when
  12093. # linking a shared library.
  12094. #
  12095. # There doesn't appear to be a way to prevent this compiler from
  12096. # explicitly linking system object files so we need to strip them
  12097. # from the output so that they don't get included in the library
  12098. # dependencies.
  12099. 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"'
  12100. ;;
  12101. *)
  12102. if test yes = "$GXX"; then
  12103. 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'
  12104. else
  12105. # FIXME: insert proper C++ library support
  12106. ld_shlibs_CXX=no
  12107. fi
  12108. ;;
  12109. esac
  12110. ;;
  12111. hpux10*|hpux11*)
  12112. if test no = "$with_gnu_ld"; then
  12113. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12114. hardcode_libdir_separator_CXX=:
  12115. case $host_cpu in
  12116. hppa*64*|ia64*)
  12117. ;;
  12118. *)
  12119. export_dynamic_flag_spec_CXX='$wl-E'
  12120. ;;
  12121. esac
  12122. fi
  12123. case $host_cpu in
  12124. hppa*64*|ia64*)
  12125. hardcode_direct_CXX=no
  12126. hardcode_shlibpath_var_CXX=no
  12127. ;;
  12128. *)
  12129. hardcode_direct_CXX=yes
  12130. hardcode_direct_absolute_CXX=yes
  12131. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12132. # but as the default
  12133. # location of the library.
  12134. ;;
  12135. esac
  12136. case $cc_basename in
  12137. CC*)
  12138. # FIXME: insert proper C++ library support
  12139. ld_shlibs_CXX=no
  12140. ;;
  12141. aCC*)
  12142. case $host_cpu in
  12143. hppa*64*)
  12144. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12145. ;;
  12146. ia64*)
  12147. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12148. ;;
  12149. *)
  12150. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12151. ;;
  12152. esac
  12153. # Commands to make compiler produce verbose output that lists
  12154. # what "hidden" libraries, object files and flags are used when
  12155. # linking a shared library.
  12156. #
  12157. # There doesn't appear to be a way to prevent this compiler from
  12158. # explicitly linking system object files so we need to strip them
  12159. # from the output so that they don't get included in the library
  12160. # dependencies.
  12161. 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"'
  12162. ;;
  12163. *)
  12164. if test yes = "$GXX"; then
  12165. if test no = "$with_gnu_ld"; then
  12166. case $host_cpu in
  12167. hppa*64*)
  12168. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12169. ;;
  12170. ia64*)
  12171. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12172. ;;
  12173. *)
  12174. 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'
  12175. ;;
  12176. esac
  12177. fi
  12178. else
  12179. # FIXME: insert proper C++ library support
  12180. ld_shlibs_CXX=no
  12181. fi
  12182. ;;
  12183. esac
  12184. ;;
  12185. interix[3-9]*)
  12186. hardcode_direct_CXX=no
  12187. hardcode_shlibpath_var_CXX=no
  12188. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12189. export_dynamic_flag_spec_CXX='$wl-E'
  12190. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12191. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12192. # default) and relocated if they conflict, which is a slow very memory
  12193. # consuming and fragmenting process. To avoid this, we pick a random,
  12194. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12195. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12196. 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'
  12197. 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'
  12198. ;;
  12199. irix5* | irix6*)
  12200. case $cc_basename in
  12201. CC*)
  12202. # SGI C++
  12203. 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'
  12204. # Archives containing C++ object files must be created using
  12205. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12206. # necessary to make sure instantiated templates are included
  12207. # in the archive.
  12208. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12209. ;;
  12210. *)
  12211. if test yes = "$GXX"; then
  12212. if test no = "$with_gnu_ld"; then
  12213. 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'
  12214. else
  12215. 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'
  12216. fi
  12217. fi
  12218. link_all_deplibs_CXX=yes
  12219. ;;
  12220. esac
  12221. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12222. hardcode_libdir_separator_CXX=:
  12223. inherit_rpath_CXX=yes
  12224. ;;
  12225. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12226. case $cc_basename in
  12227. KCC*)
  12228. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12229. # KCC will only create a shared library if the output file
  12230. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12231. # to its proper name (with version) after linking.
  12232. 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'
  12233. 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'
  12234. # Commands to make compiler produce verbose output that lists
  12235. # what "hidden" libraries, object files and flags are used when
  12236. # linking a shared library.
  12237. #
  12238. # There doesn't appear to be a way to prevent this compiler from
  12239. # explicitly linking system object files so we need to strip them
  12240. # from the output so that they don't get included in the library
  12241. # dependencies.
  12242. 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"'
  12243. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12244. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12245. # Archives containing C++ object files must be created using
  12246. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12247. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12248. ;;
  12249. icpc* | ecpc* )
  12250. # Intel C++
  12251. with_gnu_ld=yes
  12252. # version 8.0 and above of icpc choke on multiply defined symbols
  12253. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12254. # earlier do not add the objects themselves.
  12255. case `$CC -V 2>&1` in
  12256. *"Version 7."*)
  12257. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12258. 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'
  12259. ;;
  12260. *) # Version 8.0 or newer
  12261. tmp_idyn=
  12262. case $host_cpu in
  12263. ia64*) tmp_idyn=' -i_dynamic';;
  12264. esac
  12265. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12266. 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'
  12267. ;;
  12268. esac
  12269. archive_cmds_need_lc_CXX=no
  12270. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12271. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12272. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12273. ;;
  12274. pgCC* | pgcpp*)
  12275. # Portland Group C++ compiler
  12276. case `$CC -V` in
  12277. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12278. prelink_cmds_CXX='tpldir=Template.dir~
  12279. rm -rf $tpldir~
  12280. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12281. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12282. old_archive_cmds_CXX='tpldir=Template.dir~
  12283. rm -rf $tpldir~
  12284. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12285. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12286. $RANLIB $oldlib'
  12287. archive_cmds_CXX='tpldir=Template.dir~
  12288. rm -rf $tpldir~
  12289. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12290. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12291. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12292. rm -rf $tpldir~
  12293. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12294. $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'
  12295. ;;
  12296. *) # Version 6 and above use weak symbols
  12297. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12298. 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'
  12299. ;;
  12300. esac
  12301. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12302. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12303. 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'
  12304. ;;
  12305. cxx*)
  12306. # Compaq C++
  12307. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12308. 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'
  12309. runpath_var=LD_RUN_PATH
  12310. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12311. hardcode_libdir_separator_CXX=:
  12312. # Commands to make compiler produce verbose output that lists
  12313. # what "hidden" libraries, object files and flags are used when
  12314. # linking a shared library.
  12315. #
  12316. # There doesn't appear to be a way to prevent this compiler from
  12317. # explicitly linking system object files so we need to strip them
  12318. # from the output so that they don't get included in the library
  12319. # dependencies.
  12320. 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'
  12321. ;;
  12322. xl* | mpixl* | bgxl*)
  12323. # IBM XL 8.0 on PPC, with GNU ld
  12324. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12325. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12326. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12327. if test yes = "$supports_anon_versioning"; then
  12328. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12329. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12330. echo "local: *; };" >> $output_objdir/$libname.ver~
  12331. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12332. fi
  12333. ;;
  12334. *)
  12335. case `$CC -V 2>&1 | sed 5q` in
  12336. *Sun\ C*)
  12337. # Sun C++ 5.9
  12338. no_undefined_flag_CXX=' -zdefs'
  12339. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12340. 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'
  12341. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12342. 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'
  12343. compiler_needs_object_CXX=yes
  12344. # Not sure whether something based on
  12345. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12346. # would be better.
  12347. output_verbose_link_cmd='func_echo_all'
  12348. # Archives containing C++ object files must be created using
  12349. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12350. # necessary to make sure instantiated templates are included
  12351. # in the archive.
  12352. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12353. ;;
  12354. esac
  12355. ;;
  12356. esac
  12357. ;;
  12358. lynxos*)
  12359. # FIXME: insert proper C++ library support
  12360. ld_shlibs_CXX=no
  12361. ;;
  12362. m88k*)
  12363. # FIXME: insert proper C++ library support
  12364. ld_shlibs_CXX=no
  12365. ;;
  12366. mvs*)
  12367. case $cc_basename in
  12368. cxx*)
  12369. # FIXME: insert proper C++ library support
  12370. ld_shlibs_CXX=no
  12371. ;;
  12372. *)
  12373. # FIXME: insert proper C++ library support
  12374. ld_shlibs_CXX=no
  12375. ;;
  12376. esac
  12377. ;;
  12378. netbsd*)
  12379. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12380. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12381. wlarc=
  12382. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12383. hardcode_direct_CXX=yes
  12384. hardcode_shlibpath_var_CXX=no
  12385. fi
  12386. # Workaround some broken pre-1.5 toolchains
  12387. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12388. ;;
  12389. *nto* | *qnx*)
  12390. ld_shlibs_CXX=yes
  12391. ;;
  12392. openbsd* | bitrig*)
  12393. if test -f /usr/libexec/ld.so; then
  12394. hardcode_direct_CXX=yes
  12395. hardcode_shlibpath_var_CXX=no
  12396. hardcode_direct_absolute_CXX=yes
  12397. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12398. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12399. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12400. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12401. export_dynamic_flag_spec_CXX='$wl-E'
  12402. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12403. fi
  12404. output_verbose_link_cmd=func_echo_all
  12405. else
  12406. ld_shlibs_CXX=no
  12407. fi
  12408. ;;
  12409. osf3* | osf4* | osf5*)
  12410. case $cc_basename in
  12411. KCC*)
  12412. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12413. # KCC will only create a shared library if the output file
  12414. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12415. # to its proper name (with version) after linking.
  12416. 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'
  12417. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12418. hardcode_libdir_separator_CXX=:
  12419. # Archives containing C++ object files must be created using
  12420. # the KAI C++ compiler.
  12421. case $host in
  12422. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12423. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12424. esac
  12425. ;;
  12426. RCC*)
  12427. # Rational C++ 2.4.1
  12428. # FIXME: insert proper C++ library support
  12429. ld_shlibs_CXX=no
  12430. ;;
  12431. cxx*)
  12432. case $host in
  12433. osf3*)
  12434. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12435. 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'
  12436. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12437. ;;
  12438. *)
  12439. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12440. 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'
  12441. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12442. echo "-hidden">> $lib.exp~
  12443. $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~
  12444. $RM $lib.exp'
  12445. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12446. ;;
  12447. esac
  12448. hardcode_libdir_separator_CXX=:
  12449. # Commands to make compiler produce verbose output that lists
  12450. # what "hidden" libraries, object files and flags are used when
  12451. # linking a shared library.
  12452. #
  12453. # There doesn't appear to be a way to prevent this compiler from
  12454. # explicitly linking system object files so we need to strip them
  12455. # from the output so that they don't get included in the library
  12456. # dependencies.
  12457. 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"'
  12458. ;;
  12459. *)
  12460. if test yes,no = "$GXX,$with_gnu_ld"; then
  12461. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12462. case $host in
  12463. osf3*)
  12464. 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'
  12465. ;;
  12466. *)
  12467. 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'
  12468. ;;
  12469. esac
  12470. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12471. hardcode_libdir_separator_CXX=:
  12472. # Commands to make compiler produce verbose output that lists
  12473. # what "hidden" libraries, object files and flags are used when
  12474. # linking a shared library.
  12475. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12476. else
  12477. # FIXME: insert proper C++ library support
  12478. ld_shlibs_CXX=no
  12479. fi
  12480. ;;
  12481. esac
  12482. ;;
  12483. psos*)
  12484. # FIXME: insert proper C++ library support
  12485. ld_shlibs_CXX=no
  12486. ;;
  12487. sunos4*)
  12488. case $cc_basename in
  12489. CC*)
  12490. # Sun C++ 4.x
  12491. # FIXME: insert proper C++ library support
  12492. ld_shlibs_CXX=no
  12493. ;;
  12494. lcc*)
  12495. # Lucid
  12496. # FIXME: insert proper C++ library support
  12497. ld_shlibs_CXX=no
  12498. ;;
  12499. *)
  12500. # FIXME: insert proper C++ library support
  12501. ld_shlibs_CXX=no
  12502. ;;
  12503. esac
  12504. ;;
  12505. solaris*)
  12506. case $cc_basename in
  12507. CC* | sunCC*)
  12508. # Sun C++ 4.2, 5.x and Centerline C++
  12509. archive_cmds_need_lc_CXX=yes
  12510. no_undefined_flag_CXX=' -zdefs'
  12511. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12512. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12513. $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'
  12514. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12515. hardcode_shlibpath_var_CXX=no
  12516. case $host_os in
  12517. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12518. *)
  12519. # The compiler driver will combine and reorder linker options,
  12520. # but understands '-z linker_flag'.
  12521. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12522. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12523. ;;
  12524. esac
  12525. link_all_deplibs_CXX=yes
  12526. output_verbose_link_cmd='func_echo_all'
  12527. # Archives containing C++ object files must be created using
  12528. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12529. # necessary to make sure instantiated templates are included
  12530. # in the archive.
  12531. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12532. ;;
  12533. gcx*)
  12534. # Green Hills C++ Compiler
  12535. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12536. # The C++ compiler must be used to create the archive.
  12537. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12538. ;;
  12539. *)
  12540. # GNU C++ compiler with Solaris linker
  12541. if test yes,no = "$GXX,$with_gnu_ld"; then
  12542. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12543. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12544. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12545. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12546. $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'
  12547. # Commands to make compiler produce verbose output that lists
  12548. # what "hidden" libraries, object files and flags are used when
  12549. # linking a shared library.
  12550. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12551. else
  12552. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12553. # platform.
  12554. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12555. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12556. $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'
  12557. # Commands to make compiler produce verbose output that lists
  12558. # what "hidden" libraries, object files and flags are used when
  12559. # linking a shared library.
  12560. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12561. fi
  12562. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12563. case $host_os in
  12564. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12565. *)
  12566. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12567. ;;
  12568. esac
  12569. fi
  12570. ;;
  12571. esac
  12572. ;;
  12573. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12574. no_undefined_flag_CXX='$wl-z,text'
  12575. archive_cmds_need_lc_CXX=no
  12576. hardcode_shlibpath_var_CXX=no
  12577. runpath_var='LD_RUN_PATH'
  12578. case $cc_basename in
  12579. CC*)
  12580. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12581. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12582. ;;
  12583. *)
  12584. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12585. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12586. ;;
  12587. esac
  12588. ;;
  12589. sysv5* | sco3.2v5* | sco5v6*)
  12590. # Note: We CANNOT use -z defs as we might desire, because we do not
  12591. # link with -lc, and that would cause any symbols used from libc to
  12592. # always be unresolved, which means just about no library would
  12593. # ever link correctly. If we're not using GNU ld we use -z text
  12594. # though, which does catch some bad symbols but isn't as heavy-handed
  12595. # as -z defs.
  12596. no_undefined_flag_CXX='$wl-z,text'
  12597. allow_undefined_flag_CXX='$wl-z,nodefs'
  12598. archive_cmds_need_lc_CXX=no
  12599. hardcode_shlibpath_var_CXX=no
  12600. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12601. hardcode_libdir_separator_CXX=':'
  12602. link_all_deplibs_CXX=yes
  12603. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12604. runpath_var='LD_RUN_PATH'
  12605. case $cc_basename in
  12606. CC*)
  12607. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12608. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12609. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12610. '"$old_archive_cmds_CXX"
  12611. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12612. '"$reload_cmds_CXX"
  12613. ;;
  12614. *)
  12615. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12616. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12617. ;;
  12618. esac
  12619. ;;
  12620. tandem*)
  12621. case $cc_basename in
  12622. NCC*)
  12623. # NonStop-UX NCC 3.20
  12624. # FIXME: insert proper C++ library support
  12625. ld_shlibs_CXX=no
  12626. ;;
  12627. *)
  12628. # FIXME: insert proper C++ library support
  12629. ld_shlibs_CXX=no
  12630. ;;
  12631. esac
  12632. ;;
  12633. vxworks*)
  12634. # FIXME: insert proper C++ library support
  12635. ld_shlibs_CXX=no
  12636. ;;
  12637. *)
  12638. # FIXME: insert proper C++ library support
  12639. ld_shlibs_CXX=no
  12640. ;;
  12641. esac
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12643. $as_echo "$ld_shlibs_CXX" >&6; }
  12644. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12645. GCC_CXX=$GXX
  12646. LD_CXX=$LD
  12647. ## CAVEAT EMPTOR:
  12648. ## There is no encapsulation within the following macros, do not change
  12649. ## the running order or otherwise move them around unless you know exactly
  12650. ## what you are doing...
  12651. # Dependencies to place before and after the object being linked:
  12652. predep_objects_CXX=
  12653. postdep_objects_CXX=
  12654. predeps_CXX=
  12655. postdeps_CXX=
  12656. compiler_lib_search_path_CXX=
  12657. cat > conftest.$ac_ext <<_LT_EOF
  12658. class Foo
  12659. {
  12660. public:
  12661. Foo (void) { a = 0; }
  12662. private:
  12663. int a;
  12664. };
  12665. _LT_EOF
  12666. _lt_libdeps_save_CFLAGS=$CFLAGS
  12667. case "$CC $CFLAGS " in #(
  12668. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12669. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12670. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12671. esac
  12672. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12673. (eval $ac_compile) 2>&5
  12674. ac_status=$?
  12675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12676. test $ac_status = 0; }; then
  12677. # Parse the compiler output and extract the necessary
  12678. # objects, libraries and library flags.
  12679. # Sentinel used to keep track of whether or not we are before
  12680. # the conftest object file.
  12681. pre_test_object_deps_done=no
  12682. for p in `eval "$output_verbose_link_cmd"`; do
  12683. case $prev$p in
  12684. -L* | -R* | -l*)
  12685. # Some compilers place space between "-{L,R}" and the path.
  12686. # Remove the space.
  12687. if test x-L = "x$p" ||
  12688. test x-R = "x$p" ||
  12689. test x-l = "x$p"; then
  12690. prev=$p
  12691. continue
  12692. fi
  12693. # Expand the sysroot to ease extracting the directories later.
  12694. if test -z "$prev"; then
  12695. case $p in
  12696. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12697. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12698. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12699. esac
  12700. fi
  12701. case $p in
  12702. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12703. esac
  12704. if test no = "$pre_test_object_deps_done"; then
  12705. case $prev in
  12706. -L | -R)
  12707. # Internal compiler library paths should come after those
  12708. # provided the user. The postdeps already come after the
  12709. # user supplied libs so there is no need to process them.
  12710. if test -z "$compiler_lib_search_path_CXX"; then
  12711. compiler_lib_search_path_CXX=$prev$p
  12712. else
  12713. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12714. fi
  12715. ;;
  12716. # The "-l" case would never come before the object being
  12717. # linked, so don't bother handling this case.
  12718. esac
  12719. else
  12720. if test -z "$postdeps_CXX"; then
  12721. postdeps_CXX=$prev$p
  12722. else
  12723. postdeps_CXX="${postdeps_CXX} $prev$p"
  12724. fi
  12725. fi
  12726. prev=
  12727. ;;
  12728. *.lto.$objext) ;; # Ignore GCC LTO objects
  12729. *.$objext)
  12730. # This assumes that the test object file only shows up
  12731. # once in the compiler output.
  12732. if test "$p" = "conftest.$objext"; then
  12733. pre_test_object_deps_done=yes
  12734. continue
  12735. fi
  12736. if test no = "$pre_test_object_deps_done"; then
  12737. if test -z "$predep_objects_CXX"; then
  12738. predep_objects_CXX=$p
  12739. else
  12740. predep_objects_CXX="$predep_objects_CXX $p"
  12741. fi
  12742. else
  12743. if test -z "$postdep_objects_CXX"; then
  12744. postdep_objects_CXX=$p
  12745. else
  12746. postdep_objects_CXX="$postdep_objects_CXX $p"
  12747. fi
  12748. fi
  12749. ;;
  12750. *) ;; # Ignore the rest.
  12751. esac
  12752. done
  12753. # Clean up.
  12754. rm -f a.out a.exe
  12755. else
  12756. echo "libtool.m4: error: problem compiling CXX test program"
  12757. fi
  12758. $RM -f confest.$objext
  12759. CFLAGS=$_lt_libdeps_save_CFLAGS
  12760. # PORTME: override above test on systems where it is broken
  12761. case $host_os in
  12762. interix[3-9]*)
  12763. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12764. # hack all around it, let's just trust "g++" to DTRT.
  12765. predep_objects_CXX=
  12766. postdep_objects_CXX=
  12767. postdeps_CXX=
  12768. ;;
  12769. esac
  12770. case " $postdeps_CXX " in
  12771. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12772. esac
  12773. compiler_lib_search_dirs_CXX=
  12774. if test -n "${compiler_lib_search_path_CXX}"; then
  12775. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12776. fi
  12777. lt_prog_compiler_wl_CXX=
  12778. lt_prog_compiler_pic_CXX=
  12779. lt_prog_compiler_static_CXX=
  12780. # C++ specific cases for pic, static, wl, etc.
  12781. if test yes = "$GXX"; then
  12782. lt_prog_compiler_wl_CXX='-Wl,'
  12783. lt_prog_compiler_static_CXX='-static'
  12784. case $host_os in
  12785. aix*)
  12786. # All AIX code is PIC.
  12787. if test ia64 = "$host_cpu"; then
  12788. # AIX 5 now supports IA64 processor
  12789. lt_prog_compiler_static_CXX='-Bstatic'
  12790. fi
  12791. lt_prog_compiler_pic_CXX='-fPIC'
  12792. ;;
  12793. amigaos*)
  12794. case $host_cpu in
  12795. powerpc)
  12796. # see comment about AmigaOS4 .so support
  12797. lt_prog_compiler_pic_CXX='-fPIC'
  12798. ;;
  12799. m68k)
  12800. # FIXME: we need at least 68020 code to build shared libraries, but
  12801. # adding the '-m68020' flag to GCC prevents building anything better,
  12802. # like '-m68040'.
  12803. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12804. ;;
  12805. esac
  12806. ;;
  12807. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12808. # PIC is the default for these OSes.
  12809. ;;
  12810. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12811. # This hack is so that the source file can tell whether it is being
  12812. # built for inclusion in a dll (and should export symbols for example).
  12813. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12814. # (--disable-auto-import) libraries
  12815. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12816. case $host_os in
  12817. os2*)
  12818. lt_prog_compiler_static_CXX='$wl-static'
  12819. ;;
  12820. esac
  12821. ;;
  12822. darwin* | rhapsody*)
  12823. # PIC is the default on this platform
  12824. # Common symbols not allowed in MH_DYLIB files
  12825. lt_prog_compiler_pic_CXX='-fno-common'
  12826. ;;
  12827. *djgpp*)
  12828. # DJGPP does not support shared libraries at all
  12829. lt_prog_compiler_pic_CXX=
  12830. ;;
  12831. haiku*)
  12832. # PIC is the default for Haiku.
  12833. # The "-static" flag exists, but is broken.
  12834. lt_prog_compiler_static_CXX=
  12835. ;;
  12836. interix[3-9]*)
  12837. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12838. # Instead, we relocate shared libraries at runtime.
  12839. ;;
  12840. sysv4*MP*)
  12841. if test -d /usr/nec; then
  12842. lt_prog_compiler_pic_CXX=-Kconform_pic
  12843. fi
  12844. ;;
  12845. hpux*)
  12846. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12847. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12848. # sets the default TLS model and affects inlining.
  12849. case $host_cpu in
  12850. hppa*64*)
  12851. ;;
  12852. *)
  12853. lt_prog_compiler_pic_CXX='-fPIC'
  12854. ;;
  12855. esac
  12856. ;;
  12857. *qnx* | *nto*)
  12858. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12859. # it will coredump.
  12860. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12861. ;;
  12862. *)
  12863. lt_prog_compiler_pic_CXX='-fPIC'
  12864. ;;
  12865. esac
  12866. else
  12867. case $host_os in
  12868. aix[4-9]*)
  12869. # All AIX code is PIC.
  12870. if test ia64 = "$host_cpu"; then
  12871. # AIX 5 now supports IA64 processor
  12872. lt_prog_compiler_static_CXX='-Bstatic'
  12873. else
  12874. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12875. fi
  12876. ;;
  12877. chorus*)
  12878. case $cc_basename in
  12879. cxch68*)
  12880. # Green Hills C++ Compiler
  12881. # _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"
  12882. ;;
  12883. esac
  12884. ;;
  12885. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12886. # This hack is so that the source file can tell whether it is being
  12887. # built for inclusion in a dll (and should export symbols for example).
  12888. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12889. ;;
  12890. dgux*)
  12891. case $cc_basename in
  12892. ec++*)
  12893. lt_prog_compiler_pic_CXX='-KPIC'
  12894. ;;
  12895. ghcx*)
  12896. # Green Hills C++ Compiler
  12897. lt_prog_compiler_pic_CXX='-pic'
  12898. ;;
  12899. *)
  12900. ;;
  12901. esac
  12902. ;;
  12903. freebsd* | dragonfly* | midnightbsd*)
  12904. # FreeBSD uses GNU C++
  12905. ;;
  12906. hpux9* | hpux10* | hpux11*)
  12907. case $cc_basename in
  12908. CC*)
  12909. lt_prog_compiler_wl_CXX='-Wl,'
  12910. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12911. if test ia64 != "$host_cpu"; then
  12912. lt_prog_compiler_pic_CXX='+Z'
  12913. fi
  12914. ;;
  12915. aCC*)
  12916. lt_prog_compiler_wl_CXX='-Wl,'
  12917. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12918. case $host_cpu in
  12919. hppa*64*|ia64*)
  12920. # +Z the default
  12921. ;;
  12922. *)
  12923. lt_prog_compiler_pic_CXX='+Z'
  12924. ;;
  12925. esac
  12926. ;;
  12927. *)
  12928. ;;
  12929. esac
  12930. ;;
  12931. interix*)
  12932. # This is c89, which is MS Visual C++ (no shared libs)
  12933. # Anyone wants to do a port?
  12934. ;;
  12935. irix5* | irix6* | nonstopux*)
  12936. case $cc_basename in
  12937. CC*)
  12938. lt_prog_compiler_wl_CXX='-Wl,'
  12939. lt_prog_compiler_static_CXX='-non_shared'
  12940. # CC pic flag -KPIC is the default.
  12941. ;;
  12942. *)
  12943. ;;
  12944. esac
  12945. ;;
  12946. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12947. case $cc_basename in
  12948. KCC*)
  12949. # KAI C++ Compiler
  12950. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12951. lt_prog_compiler_pic_CXX='-fPIC'
  12952. ;;
  12953. ecpc* )
  12954. # old Intel C++ for x86_64, which still supported -KPIC.
  12955. lt_prog_compiler_wl_CXX='-Wl,'
  12956. lt_prog_compiler_pic_CXX='-KPIC'
  12957. lt_prog_compiler_static_CXX='-static'
  12958. ;;
  12959. icpc* )
  12960. # Intel C++, used to be incompatible with GCC.
  12961. # ICC 10 doesn't accept -KPIC any more.
  12962. lt_prog_compiler_wl_CXX='-Wl,'
  12963. lt_prog_compiler_pic_CXX='-fPIC'
  12964. lt_prog_compiler_static_CXX='-static'
  12965. ;;
  12966. pgCC* | pgcpp*)
  12967. # Portland Group C++ compiler
  12968. lt_prog_compiler_wl_CXX='-Wl,'
  12969. lt_prog_compiler_pic_CXX='-fpic'
  12970. lt_prog_compiler_static_CXX='-Bstatic'
  12971. ;;
  12972. cxx*)
  12973. # Compaq C++
  12974. # Make sure the PIC flag is empty. It appears that all Alpha
  12975. # Linux and Compaq Tru64 Unix objects are PIC.
  12976. lt_prog_compiler_pic_CXX=
  12977. lt_prog_compiler_static_CXX='-non_shared'
  12978. ;;
  12979. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12980. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12981. lt_prog_compiler_wl_CXX='-Wl,'
  12982. lt_prog_compiler_pic_CXX='-qpic'
  12983. lt_prog_compiler_static_CXX='-qstaticlink'
  12984. ;;
  12985. *)
  12986. case `$CC -V 2>&1 | sed 5q` in
  12987. *Sun\ C*)
  12988. # Sun C++ 5.9
  12989. lt_prog_compiler_pic_CXX='-KPIC'
  12990. lt_prog_compiler_static_CXX='-Bstatic'
  12991. lt_prog_compiler_wl_CXX='-Qoption ld '
  12992. ;;
  12993. esac
  12994. ;;
  12995. esac
  12996. ;;
  12997. lynxos*)
  12998. ;;
  12999. m88k*)
  13000. ;;
  13001. mvs*)
  13002. case $cc_basename in
  13003. cxx*)
  13004. lt_prog_compiler_pic_CXX='-W c,exportall'
  13005. ;;
  13006. *)
  13007. ;;
  13008. esac
  13009. ;;
  13010. netbsd*)
  13011. ;;
  13012. *qnx* | *nto*)
  13013. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13014. # it will coredump.
  13015. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13016. ;;
  13017. osf3* | osf4* | osf5*)
  13018. case $cc_basename in
  13019. KCC*)
  13020. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13021. ;;
  13022. RCC*)
  13023. # Rational C++ 2.4.1
  13024. lt_prog_compiler_pic_CXX='-pic'
  13025. ;;
  13026. cxx*)
  13027. # Digital/Compaq C++
  13028. lt_prog_compiler_wl_CXX='-Wl,'
  13029. # Make sure the PIC flag is empty. It appears that all Alpha
  13030. # Linux and Compaq Tru64 Unix objects are PIC.
  13031. lt_prog_compiler_pic_CXX=
  13032. lt_prog_compiler_static_CXX='-non_shared'
  13033. ;;
  13034. *)
  13035. ;;
  13036. esac
  13037. ;;
  13038. psos*)
  13039. ;;
  13040. solaris*)
  13041. case $cc_basename in
  13042. CC* | sunCC*)
  13043. # Sun C++ 4.2, 5.x and Centerline C++
  13044. lt_prog_compiler_pic_CXX='-KPIC'
  13045. lt_prog_compiler_static_CXX='-Bstatic'
  13046. lt_prog_compiler_wl_CXX='-Qoption ld '
  13047. ;;
  13048. gcx*)
  13049. # Green Hills C++ Compiler
  13050. lt_prog_compiler_pic_CXX='-PIC'
  13051. ;;
  13052. *)
  13053. ;;
  13054. esac
  13055. ;;
  13056. sunos4*)
  13057. case $cc_basename in
  13058. CC*)
  13059. # Sun C++ 4.x
  13060. lt_prog_compiler_pic_CXX='-pic'
  13061. lt_prog_compiler_static_CXX='-Bstatic'
  13062. ;;
  13063. lcc*)
  13064. # Lucid
  13065. lt_prog_compiler_pic_CXX='-pic'
  13066. ;;
  13067. *)
  13068. ;;
  13069. esac
  13070. ;;
  13071. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13072. case $cc_basename in
  13073. CC*)
  13074. lt_prog_compiler_wl_CXX='-Wl,'
  13075. lt_prog_compiler_pic_CXX='-KPIC'
  13076. lt_prog_compiler_static_CXX='-Bstatic'
  13077. ;;
  13078. esac
  13079. ;;
  13080. tandem*)
  13081. case $cc_basename in
  13082. NCC*)
  13083. # NonStop-UX NCC 3.20
  13084. lt_prog_compiler_pic_CXX='-KPIC'
  13085. ;;
  13086. *)
  13087. ;;
  13088. esac
  13089. ;;
  13090. vxworks*)
  13091. ;;
  13092. *)
  13093. lt_prog_compiler_can_build_shared_CXX=no
  13094. ;;
  13095. esac
  13096. fi
  13097. case $host_os in
  13098. # For platforms that do not support PIC, -DPIC is meaningless:
  13099. *djgpp*)
  13100. lt_prog_compiler_pic_CXX=
  13101. ;;
  13102. *)
  13103. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13104. ;;
  13105. esac
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13107. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13108. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13109. $as_echo_n "(cached) " >&6
  13110. else
  13111. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13112. fi
  13113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13114. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13115. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13116. #
  13117. # Check to make sure the PIC flag actually works.
  13118. #
  13119. if test -n "$lt_prog_compiler_pic_CXX"; then
  13120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13121. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13122. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13123. $as_echo_n "(cached) " >&6
  13124. else
  13125. lt_cv_prog_compiler_pic_works_CXX=no
  13126. ac_outfile=conftest.$ac_objext
  13127. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13128. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13129. # Insert the option either (1) after the last *FLAGS variable, or
  13130. # (2) before a word containing "conftest.", or (3) at the end.
  13131. # Note that $ac_compile itself does not contain backslashes and begins
  13132. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13133. # The option is referenced via a variable to avoid confusing sed.
  13134. lt_compile=`echo "$ac_compile" | $SED \
  13135. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13136. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13137. -e 's:$: $lt_compiler_flag:'`
  13138. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13139. (eval "$lt_compile" 2>conftest.err)
  13140. ac_status=$?
  13141. cat conftest.err >&5
  13142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13143. if (exit $ac_status) && test -s "$ac_outfile"; then
  13144. # The compiler can only warn and ignore the option if not recognized
  13145. # So say no if there are warnings other than the usual output.
  13146. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13147. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13148. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13149. lt_cv_prog_compiler_pic_works_CXX=yes
  13150. fi
  13151. fi
  13152. $RM conftest*
  13153. fi
  13154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13155. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13156. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13157. case $lt_prog_compiler_pic_CXX in
  13158. "" | " "*) ;;
  13159. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13160. esac
  13161. else
  13162. lt_prog_compiler_pic_CXX=
  13163. lt_prog_compiler_can_build_shared_CXX=no
  13164. fi
  13165. fi
  13166. #
  13167. # Check to make sure the static flag actually works.
  13168. #
  13169. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13171. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13172. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13173. $as_echo_n "(cached) " >&6
  13174. else
  13175. lt_cv_prog_compiler_static_works_CXX=no
  13176. save_LDFLAGS=$LDFLAGS
  13177. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13178. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13179. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13180. # The linker can only warn and ignore the option if not recognized
  13181. # So say no if there are warnings
  13182. if test -s conftest.err; then
  13183. # Append any errors to the config.log.
  13184. cat conftest.err 1>&5
  13185. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13186. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13187. if diff conftest.exp conftest.er2 >/dev/null; then
  13188. lt_cv_prog_compiler_static_works_CXX=yes
  13189. fi
  13190. else
  13191. lt_cv_prog_compiler_static_works_CXX=yes
  13192. fi
  13193. fi
  13194. $RM -r conftest*
  13195. LDFLAGS=$save_LDFLAGS
  13196. fi
  13197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13198. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13199. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13200. :
  13201. else
  13202. lt_prog_compiler_static_CXX=
  13203. fi
  13204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13205. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13206. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13207. $as_echo_n "(cached) " >&6
  13208. else
  13209. lt_cv_prog_compiler_c_o_CXX=no
  13210. $RM -r conftest 2>/dev/null
  13211. mkdir conftest
  13212. cd conftest
  13213. mkdir out
  13214. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13215. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13216. # Insert the option either (1) after the last *FLAGS variable, or
  13217. # (2) before a word containing "conftest.", or (3) at the end.
  13218. # Note that $ac_compile itself does not contain backslashes and begins
  13219. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13220. lt_compile=`echo "$ac_compile" | $SED \
  13221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13223. -e 's:$: $lt_compiler_flag:'`
  13224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13225. (eval "$lt_compile" 2>out/conftest.err)
  13226. ac_status=$?
  13227. cat out/conftest.err >&5
  13228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13229. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13230. then
  13231. # The compiler can only warn and ignore the option if not recognized
  13232. # So say no if there are warnings
  13233. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13234. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13235. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13236. lt_cv_prog_compiler_c_o_CXX=yes
  13237. fi
  13238. fi
  13239. chmod u+w . 2>&5
  13240. $RM conftest*
  13241. # SGI C++ compiler will create directory out/ii_files/ for
  13242. # template instantiation
  13243. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13244. $RM out/* && rmdir out
  13245. cd ..
  13246. $RM -r conftest
  13247. $RM conftest*
  13248. fi
  13249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13250. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13252. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13253. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13254. $as_echo_n "(cached) " >&6
  13255. else
  13256. lt_cv_prog_compiler_c_o_CXX=no
  13257. $RM -r conftest 2>/dev/null
  13258. mkdir conftest
  13259. cd conftest
  13260. mkdir out
  13261. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13262. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13263. # Insert the option either (1) after the last *FLAGS variable, or
  13264. # (2) before a word containing "conftest.", or (3) at the end.
  13265. # Note that $ac_compile itself does not contain backslashes and begins
  13266. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13267. lt_compile=`echo "$ac_compile" | $SED \
  13268. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13269. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13270. -e 's:$: $lt_compiler_flag:'`
  13271. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13272. (eval "$lt_compile" 2>out/conftest.err)
  13273. ac_status=$?
  13274. cat out/conftest.err >&5
  13275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13276. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13277. then
  13278. # The compiler can only warn and ignore the option if not recognized
  13279. # So say no if there are warnings
  13280. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13281. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13282. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13283. lt_cv_prog_compiler_c_o_CXX=yes
  13284. fi
  13285. fi
  13286. chmod u+w . 2>&5
  13287. $RM conftest*
  13288. # SGI C++ compiler will create directory out/ii_files/ for
  13289. # template instantiation
  13290. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13291. $RM out/* && rmdir out
  13292. cd ..
  13293. $RM -r conftest
  13294. $RM conftest*
  13295. fi
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13297. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13298. hard_links=nottested
  13299. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13300. # do not overwrite the value of need_locks provided by the user
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13302. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13303. hard_links=yes
  13304. $RM conftest*
  13305. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13306. touch conftest.a
  13307. ln conftest.a conftest.b 2>&5 || hard_links=no
  13308. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13310. $as_echo "$hard_links" >&6; }
  13311. if test no = "$hard_links"; then
  13312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13313. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13314. need_locks=warn
  13315. fi
  13316. else
  13317. need_locks=no
  13318. fi
  13319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13320. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13321. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13322. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13323. case $host_os in
  13324. aix[4-9]*)
  13325. # If we're using GNU nm, then we don't want the "-C" option.
  13326. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13327. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13328. # weak defined symbols like other global defined symbols, whereas
  13329. # GNU nm marks them as "W".
  13330. # While the 'weak' keyword is ignored in the Export File, we need
  13331. # it in the Import File for the 'aix-soname' feature, so we have
  13332. # to replace the "-B" option with "-P" for AIX nm.
  13333. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13334. 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'
  13335. else
  13336. 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'
  13337. fi
  13338. ;;
  13339. pw32*)
  13340. export_symbols_cmds_CXX=$ltdll_cmds
  13341. ;;
  13342. cygwin* | mingw* | cegcc*)
  13343. case $cc_basename in
  13344. cl*)
  13345. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13346. ;;
  13347. *)
  13348. 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'
  13349. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13350. ;;
  13351. esac
  13352. ;;
  13353. *)
  13354. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13355. ;;
  13356. esac
  13357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13358. $as_echo "$ld_shlibs_CXX" >&6; }
  13359. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13360. with_gnu_ld_CXX=$with_gnu_ld
  13361. #
  13362. # Do we need to explicitly link libc?
  13363. #
  13364. case "x$archive_cmds_need_lc_CXX" in
  13365. x|xyes)
  13366. # Assume -lc should be added
  13367. archive_cmds_need_lc_CXX=yes
  13368. if test yes,yes = "$GCC,$enable_shared"; then
  13369. case $archive_cmds_CXX in
  13370. *'~'*)
  13371. # FIXME: we may have to deal with multi-command sequences.
  13372. ;;
  13373. '$CC '*)
  13374. # Test whether the compiler implicitly links with -lc since on some
  13375. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13376. # to ld, don't add -lc before -lgcc.
  13377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13378. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13379. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13380. $as_echo_n "(cached) " >&6
  13381. else
  13382. $RM conftest*
  13383. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13384. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13385. (eval $ac_compile) 2>&5
  13386. ac_status=$?
  13387. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13388. test $ac_status = 0; } 2>conftest.err; then
  13389. soname=conftest
  13390. lib=conftest
  13391. libobjs=conftest.$ac_objext
  13392. deplibs=
  13393. wl=$lt_prog_compiler_wl_CXX
  13394. pic_flag=$lt_prog_compiler_pic_CXX
  13395. compiler_flags=-v
  13396. linker_flags=-v
  13397. verstring=
  13398. output_objdir=.
  13399. libname=conftest
  13400. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13401. allow_undefined_flag_CXX=
  13402. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13403. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13404. ac_status=$?
  13405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13406. test $ac_status = 0; }
  13407. then
  13408. lt_cv_archive_cmds_need_lc_CXX=no
  13409. else
  13410. lt_cv_archive_cmds_need_lc_CXX=yes
  13411. fi
  13412. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13413. else
  13414. cat conftest.err 1>&5
  13415. fi
  13416. $RM conftest*
  13417. fi
  13418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13419. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13420. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13421. ;;
  13422. esac
  13423. fi
  13424. ;;
  13425. esac
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13427. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13428. library_names_spec=
  13429. libname_spec='lib$name'
  13430. soname_spec=
  13431. shrext_cmds=.so
  13432. postinstall_cmds=
  13433. postuninstall_cmds=
  13434. finish_cmds=
  13435. finish_eval=
  13436. shlibpath_var=
  13437. shlibpath_overrides_runpath=unknown
  13438. version_type=none
  13439. dynamic_linker="$host_os ld.so"
  13440. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13441. need_lib_prefix=unknown
  13442. hardcode_into_libs=no
  13443. # when you set need_version to no, make sure it does not cause -set_version
  13444. # flags to be left without arguments
  13445. need_version=unknown
  13446. case $host_os in
  13447. aix3*)
  13448. version_type=linux # correct to gnu/linux during the next big refactor
  13449. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13450. shlibpath_var=LIBPATH
  13451. # AIX 3 has no versioning support, so we append a major version to the name.
  13452. soname_spec='$libname$release$shared_ext$major'
  13453. ;;
  13454. aix[4-9]*)
  13455. version_type=linux # correct to gnu/linux during the next big refactor
  13456. need_lib_prefix=no
  13457. need_version=no
  13458. hardcode_into_libs=yes
  13459. if test ia64 = "$host_cpu"; then
  13460. # AIX 5 supports IA64
  13461. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13462. shlibpath_var=LD_LIBRARY_PATH
  13463. else
  13464. # With GCC up to 2.95.x, collect2 would create an import file
  13465. # for dependence libraries. The import file would start with
  13466. # the line '#! .'. This would cause the generated library to
  13467. # depend on '.', always an invalid library. This was fixed in
  13468. # development snapshots of GCC prior to 3.0.
  13469. case $host_os in
  13470. aix4 | aix4.[01] | aix4.[01].*)
  13471. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13472. echo ' yes '
  13473. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13474. :
  13475. else
  13476. can_build_shared=no
  13477. fi
  13478. ;;
  13479. esac
  13480. # Using Import Files as archive members, it is possible to support
  13481. # filename-based versioning of shared library archives on AIX. While
  13482. # this would work for both with and without runtime linking, it will
  13483. # prevent static linking of such archives. So we do filename-based
  13484. # shared library versioning with .so extension only, which is used
  13485. # when both runtime linking and shared linking is enabled.
  13486. # Unfortunately, runtime linking may impact performance, so we do
  13487. # not want this to be the default eventually. Also, we use the
  13488. # versioned .so libs for executables only if there is the -brtl
  13489. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13490. # To allow for filename-based versioning support, we need to create
  13491. # libNAME.so.V as an archive file, containing:
  13492. # *) an Import File, referring to the versioned filename of the
  13493. # archive as well as the shared archive member, telling the
  13494. # bitwidth (32 or 64) of that shared object, and providing the
  13495. # list of exported symbols of that shared object, eventually
  13496. # decorated with the 'weak' keyword
  13497. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13498. # it being seen by the linker.
  13499. # At run time we better use the real file rather than another symlink,
  13500. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13501. case $with_aix_soname,$aix_use_runtimelinking in
  13502. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13503. # soname into executable. Probably we can add versioning support to
  13504. # collect2, so additional links can be useful in future.
  13505. aix,yes) # traditional libtool
  13506. dynamic_linker='AIX unversionable lib.so'
  13507. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13508. # instead of lib<name>.a to let people know that these are not
  13509. # typical AIX shared libraries.
  13510. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13511. ;;
  13512. aix,no) # traditional AIX only
  13513. dynamic_linker='AIX lib.a(lib.so.V)'
  13514. # We preserve .a as extension for shared libraries through AIX4.2
  13515. # and later when we are not doing run time linking.
  13516. library_names_spec='$libname$release.a $libname.a'
  13517. soname_spec='$libname$release$shared_ext$major'
  13518. ;;
  13519. svr4,*) # full svr4 only
  13520. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13521. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13522. # We do not specify a path in Import Files, so LIBPATH fires.
  13523. shlibpath_overrides_runpath=yes
  13524. ;;
  13525. *,yes) # both, prefer svr4
  13526. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13527. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13528. # unpreferred sharedlib libNAME.a needs extra handling
  13529. 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"'
  13530. 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"'
  13531. # We do not specify a path in Import Files, so LIBPATH fires.
  13532. shlibpath_overrides_runpath=yes
  13533. ;;
  13534. *,no) # both, prefer aix
  13535. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13536. library_names_spec='$libname$release.a $libname.a'
  13537. soname_spec='$libname$release$shared_ext$major'
  13538. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13539. 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)'
  13540. 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"'
  13541. ;;
  13542. esac
  13543. shlibpath_var=LIBPATH
  13544. fi
  13545. ;;
  13546. amigaos*)
  13547. case $host_cpu in
  13548. powerpc)
  13549. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13550. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13551. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13552. ;;
  13553. m68k)
  13554. library_names_spec='$libname.ixlibrary $libname.a'
  13555. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13556. 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'
  13557. ;;
  13558. esac
  13559. ;;
  13560. beos*)
  13561. library_names_spec='$libname$shared_ext'
  13562. dynamic_linker="$host_os ld.so"
  13563. shlibpath_var=LIBRARY_PATH
  13564. ;;
  13565. bsdi[45]*)
  13566. version_type=linux # correct to gnu/linux during the next big refactor
  13567. need_version=no
  13568. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13569. soname_spec='$libname$release$shared_ext$major'
  13570. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13571. shlibpath_var=LD_LIBRARY_PATH
  13572. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13573. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13574. # the default ld.so.conf also contains /usr/contrib/lib and
  13575. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13576. # libtool to hard-code these into programs
  13577. ;;
  13578. cygwin* | mingw* | pw32* | cegcc*)
  13579. version_type=windows
  13580. shrext_cmds=.dll
  13581. need_version=no
  13582. need_lib_prefix=no
  13583. case $GCC,$cc_basename in
  13584. yes,*)
  13585. # gcc
  13586. library_names_spec='$libname.dll.a'
  13587. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13588. postinstall_cmds='base_file=`basename \$file`~
  13589. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13590. dldir=$destdir/`dirname \$dlpath`~
  13591. test -d \$dldir || mkdir -p \$dldir~
  13592. $install_prog $dir/$dlname \$dldir/$dlname~
  13593. chmod a+x \$dldir/$dlname~
  13594. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13595. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13596. fi'
  13597. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13598. dlpath=$dir/\$dldll~
  13599. $RM \$dlpath'
  13600. shlibpath_overrides_runpath=yes
  13601. case $host_os in
  13602. cygwin*)
  13603. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13604. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13605. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13606. ;;
  13607. mingw* | cegcc*)
  13608. # MinGW DLLs use traditional 'lib' prefix
  13609. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13610. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13611. ;;
  13612. pw32*)
  13613. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13614. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13615. ;;
  13616. esac
  13617. dynamic_linker='Win32 ld.exe'
  13618. ;;
  13619. *,cl*)
  13620. # Native MSVC
  13621. libname_spec='$name'
  13622. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13623. library_names_spec='$libname.dll.lib'
  13624. case $build_os in
  13625. mingw*)
  13626. sys_lib_search_path_spec=
  13627. lt_save_ifs=$IFS
  13628. IFS=';'
  13629. for lt_path in $LIB
  13630. do
  13631. IFS=$lt_save_ifs
  13632. # Let DOS variable expansion print the short 8.3 style file name.
  13633. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13634. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13635. done
  13636. IFS=$lt_save_ifs
  13637. # Convert to MSYS style.
  13638. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13639. ;;
  13640. cygwin*)
  13641. # Convert to unix form, then to dos form, then back to unix form
  13642. # but this time dos style (no spaces!) so that the unix form looks
  13643. # like /cygdrive/c/PROGRA~1:/cygdr...
  13644. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13645. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13646. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13647. ;;
  13648. *)
  13649. sys_lib_search_path_spec=$LIB
  13650. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13651. # It is most probably a Windows format PATH.
  13652. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13653. else
  13654. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13655. fi
  13656. # FIXME: find the short name or the path components, as spaces are
  13657. # common. (e.g. "Program Files" -> "PROGRA~1")
  13658. ;;
  13659. esac
  13660. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13661. postinstall_cmds='base_file=`basename \$file`~
  13662. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13663. dldir=$destdir/`dirname \$dlpath`~
  13664. test -d \$dldir || mkdir -p \$dldir~
  13665. $install_prog $dir/$dlname \$dldir/$dlname'
  13666. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13667. dlpath=$dir/\$dldll~
  13668. $RM \$dlpath'
  13669. shlibpath_overrides_runpath=yes
  13670. dynamic_linker='Win32 link.exe'
  13671. ;;
  13672. *)
  13673. # Assume MSVC wrapper
  13674. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13675. dynamic_linker='Win32 ld.exe'
  13676. ;;
  13677. esac
  13678. # FIXME: first we should search . and the directory the executable is in
  13679. shlibpath_var=PATH
  13680. ;;
  13681. darwin* | rhapsody*)
  13682. dynamic_linker="$host_os dyld"
  13683. version_type=darwin
  13684. need_lib_prefix=no
  13685. need_version=no
  13686. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13687. soname_spec='$libname$release$major$shared_ext'
  13688. shlibpath_overrides_runpath=yes
  13689. shlibpath_var=DYLD_LIBRARY_PATH
  13690. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13691. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13692. ;;
  13693. dgux*)
  13694. version_type=linux # correct to gnu/linux during the next big refactor
  13695. need_lib_prefix=no
  13696. need_version=no
  13697. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13698. soname_spec='$libname$release$shared_ext$major'
  13699. shlibpath_var=LD_LIBRARY_PATH
  13700. ;;
  13701. freebsd* | dragonfly* | midnightbsd*)
  13702. # DragonFly does not have aout. When/if they implement a new
  13703. # versioning mechanism, adjust this.
  13704. if test -x /usr/bin/objformat; then
  13705. objformat=`/usr/bin/objformat`
  13706. else
  13707. case $host_os in
  13708. freebsd[23].*) objformat=aout ;;
  13709. *) objformat=elf ;;
  13710. esac
  13711. fi
  13712. version_type=freebsd-$objformat
  13713. case $version_type in
  13714. freebsd-elf*)
  13715. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13716. soname_spec='$libname$release$shared_ext$major'
  13717. need_version=no
  13718. need_lib_prefix=no
  13719. ;;
  13720. freebsd-*)
  13721. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13722. need_version=yes
  13723. ;;
  13724. esac
  13725. shlibpath_var=LD_LIBRARY_PATH
  13726. case $host_os in
  13727. freebsd2.*)
  13728. shlibpath_overrides_runpath=yes
  13729. ;;
  13730. freebsd3.[01]* | freebsdelf3.[01]*)
  13731. shlibpath_overrides_runpath=yes
  13732. hardcode_into_libs=yes
  13733. ;;
  13734. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13735. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13736. shlibpath_overrides_runpath=no
  13737. hardcode_into_libs=yes
  13738. ;;
  13739. *) # from 4.6 on, and DragonFly
  13740. shlibpath_overrides_runpath=yes
  13741. hardcode_into_libs=yes
  13742. ;;
  13743. esac
  13744. ;;
  13745. haiku*)
  13746. version_type=linux # correct to gnu/linux during the next big refactor
  13747. need_lib_prefix=no
  13748. need_version=no
  13749. dynamic_linker="$host_os runtime_loader"
  13750. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13751. soname_spec='$libname$release$shared_ext$major'
  13752. shlibpath_var=LIBRARY_PATH
  13753. shlibpath_overrides_runpath=no
  13754. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13755. hardcode_into_libs=yes
  13756. ;;
  13757. hpux9* | hpux10* | hpux11*)
  13758. # Give a soname corresponding to the major version so that dld.sl refuses to
  13759. # link against other versions.
  13760. version_type=sunos
  13761. need_lib_prefix=no
  13762. need_version=no
  13763. case $host_cpu in
  13764. ia64*)
  13765. shrext_cmds='.so'
  13766. hardcode_into_libs=yes
  13767. dynamic_linker="$host_os dld.so"
  13768. shlibpath_var=LD_LIBRARY_PATH
  13769. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13770. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13771. soname_spec='$libname$release$shared_ext$major'
  13772. if test 32 = "$HPUX_IA64_MODE"; then
  13773. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13774. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13775. else
  13776. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13777. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13778. fi
  13779. ;;
  13780. hppa*64*)
  13781. shrext_cmds='.sl'
  13782. hardcode_into_libs=yes
  13783. dynamic_linker="$host_os dld.sl"
  13784. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13785. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13787. soname_spec='$libname$release$shared_ext$major'
  13788. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13789. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13790. ;;
  13791. *)
  13792. shrext_cmds='.sl'
  13793. dynamic_linker="$host_os dld.sl"
  13794. shlibpath_var=SHLIB_PATH
  13795. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13796. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13797. soname_spec='$libname$release$shared_ext$major'
  13798. ;;
  13799. esac
  13800. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13801. postinstall_cmds='chmod 555 $lib'
  13802. # or fails outright, so override atomically:
  13803. install_override_mode=555
  13804. ;;
  13805. interix[3-9]*)
  13806. version_type=linux # correct to gnu/linux during the next big refactor
  13807. need_lib_prefix=no
  13808. need_version=no
  13809. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13810. soname_spec='$libname$release$shared_ext$major'
  13811. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13812. shlibpath_var=LD_LIBRARY_PATH
  13813. shlibpath_overrides_runpath=no
  13814. hardcode_into_libs=yes
  13815. ;;
  13816. irix5* | irix6* | nonstopux*)
  13817. case $host_os in
  13818. nonstopux*) version_type=nonstopux ;;
  13819. *)
  13820. if test yes = "$lt_cv_prog_gnu_ld"; then
  13821. version_type=linux # correct to gnu/linux during the next big refactor
  13822. else
  13823. version_type=irix
  13824. fi ;;
  13825. esac
  13826. need_lib_prefix=no
  13827. need_version=no
  13828. soname_spec='$libname$release$shared_ext$major'
  13829. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13830. case $host_os in
  13831. irix5* | nonstopux*)
  13832. libsuff= shlibsuff=
  13833. ;;
  13834. *)
  13835. case $LD in # libtool.m4 will add one of these switches to LD
  13836. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13837. libsuff= shlibsuff= libmagic=32-bit;;
  13838. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13839. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13840. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13841. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13842. *) libsuff= shlibsuff= libmagic=never-match;;
  13843. esac
  13844. ;;
  13845. esac
  13846. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13847. shlibpath_overrides_runpath=no
  13848. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13849. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13850. hardcode_into_libs=yes
  13851. ;;
  13852. # No shared lib support for Linux oldld, aout, or coff.
  13853. linux*oldld* | linux*aout* | linux*coff*)
  13854. dynamic_linker=no
  13855. ;;
  13856. linux*android*)
  13857. version_type=none # Android doesn't support versioned libraries.
  13858. need_lib_prefix=no
  13859. need_version=no
  13860. library_names_spec='$libname$release$shared_ext'
  13861. soname_spec='$libname$release$shared_ext'
  13862. finish_cmds=
  13863. shlibpath_var=LD_LIBRARY_PATH
  13864. shlibpath_overrides_runpath=yes
  13865. # This implies no fast_install, which is unacceptable.
  13866. # Some rework will be needed to allow for fast_install
  13867. # before this can be enabled.
  13868. hardcode_into_libs=yes
  13869. dynamic_linker='Android linker'
  13870. # Don't embed -rpath directories since the linker doesn't support them.
  13871. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13872. ;;
  13873. # This must be glibc/ELF.
  13874. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13875. version_type=linux # correct to gnu/linux during the next big refactor
  13876. need_lib_prefix=no
  13877. need_version=no
  13878. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13879. soname_spec='$libname$release$shared_ext$major'
  13880. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13881. shlibpath_var=LD_LIBRARY_PATH
  13882. shlibpath_overrides_runpath=no
  13883. # Some binutils ld are patched to set DT_RUNPATH
  13884. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13885. $as_echo_n "(cached) " >&6
  13886. else
  13887. lt_cv_shlibpath_overrides_runpath=no
  13888. save_LDFLAGS=$LDFLAGS
  13889. save_libdir=$libdir
  13890. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13891. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13893. /* end confdefs.h. */
  13894. int
  13895. main ()
  13896. {
  13897. ;
  13898. return 0;
  13899. }
  13900. _ACEOF
  13901. if ac_fn_cxx_try_link "$LINENO"; then :
  13902. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13903. lt_cv_shlibpath_overrides_runpath=yes
  13904. fi
  13905. fi
  13906. rm -f core conftest.err conftest.$ac_objext \
  13907. conftest$ac_exeext conftest.$ac_ext
  13908. LDFLAGS=$save_LDFLAGS
  13909. libdir=$save_libdir
  13910. fi
  13911. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13912. # This implies no fast_install, which is unacceptable.
  13913. # Some rework will be needed to allow for fast_install
  13914. # before this can be enabled.
  13915. hardcode_into_libs=yes
  13916. # Add ABI-specific directories to the system library path.
  13917. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13918. # Ideally, we could use ldconfig to report *all* directores which are
  13919. # searched for libraries, however this is still not possible. Aside from not
  13920. # being certain /sbin/ldconfig is available, command
  13921. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13922. # even though it is searched at run-time. Try to do the best guess by
  13923. # appending ld.so.conf contents (and includes) to the search path.
  13924. if test -f /etc/ld.so.conf; then
  13925. 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' ' '`
  13926. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13927. fi
  13928. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13929. # powerpc, because MkLinux only supported shared libraries with the
  13930. # GNU dynamic linker. Since this was broken with cross compilers,
  13931. # most powerpc-linux boxes support dynamic linking these days and
  13932. # people can always --disable-shared, the test was removed, and we
  13933. # assume the GNU/Linux dynamic linker is in use.
  13934. dynamic_linker='GNU/Linux ld.so'
  13935. ;;
  13936. netbsd*)
  13937. version_type=sunos
  13938. need_lib_prefix=no
  13939. need_version=no
  13940. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13941. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13942. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13943. dynamic_linker='NetBSD (a.out) ld.so'
  13944. else
  13945. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13946. soname_spec='$libname$release$shared_ext$major'
  13947. dynamic_linker='NetBSD ld.elf_so'
  13948. fi
  13949. shlibpath_var=LD_LIBRARY_PATH
  13950. shlibpath_overrides_runpath=yes
  13951. hardcode_into_libs=yes
  13952. ;;
  13953. newsos6)
  13954. version_type=linux # correct to gnu/linux during the next big refactor
  13955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13956. shlibpath_var=LD_LIBRARY_PATH
  13957. shlibpath_overrides_runpath=yes
  13958. ;;
  13959. *nto* | *qnx*)
  13960. version_type=qnx
  13961. need_lib_prefix=no
  13962. need_version=no
  13963. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13964. soname_spec='$libname$release$shared_ext$major'
  13965. shlibpath_var=LD_LIBRARY_PATH
  13966. shlibpath_overrides_runpath=no
  13967. hardcode_into_libs=yes
  13968. dynamic_linker='ldqnx.so'
  13969. ;;
  13970. openbsd* | bitrig*)
  13971. version_type=sunos
  13972. sys_lib_dlsearch_path_spec=/usr/lib
  13973. need_lib_prefix=no
  13974. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13975. need_version=no
  13976. else
  13977. need_version=yes
  13978. fi
  13979. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13980. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13981. shlibpath_var=LD_LIBRARY_PATH
  13982. shlibpath_overrides_runpath=yes
  13983. ;;
  13984. os2*)
  13985. libname_spec='$name'
  13986. shrext_cmds=.dll
  13987. need_lib_prefix=no
  13988. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13989. # SDL customization: removed versioning support.
  13990. # version_type=windows
  13991. # need_version=no
  13992. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13993. # v=$($ECHO $release$versuffix | tr -d .-);
  13994. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13995. # $ECHO $n$v`$shared_ext'
  13996. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13997. library_names_spec='${libname}_dll.$libext'
  13998. dynamic_linker='OS/2 ld.exe'
  13999. shlibpath_var=BEGINLIBPATH
  14000. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14001. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14002. postinstall_cmds='base_file=`basename \$file`~
  14003. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14004. dldir=$destdir/`dirname \$dlpath`~
  14005. test -d \$dldir || mkdir -p \$dldir~
  14006. $install_prog $dir/$dlname \$dldir/$dlname~
  14007. chmod a+x \$dldir/$dlname~
  14008. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14009. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14010. fi'
  14011. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14012. dlpath=$dir/\$dldll~
  14013. $RM \$dlpath'
  14014. ;;
  14015. osf3* | osf4* | osf5*)
  14016. version_type=osf
  14017. need_lib_prefix=no
  14018. need_version=no
  14019. soname_spec='$libname$release$shared_ext$major'
  14020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14021. shlibpath_var=LD_LIBRARY_PATH
  14022. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14023. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14024. ;;
  14025. rdos*)
  14026. dynamic_linker=no
  14027. ;;
  14028. solaris*)
  14029. version_type=linux # correct to gnu/linux during the next big refactor
  14030. need_lib_prefix=no
  14031. need_version=no
  14032. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14033. soname_spec='$libname$release$shared_ext$major'
  14034. shlibpath_var=LD_LIBRARY_PATH
  14035. shlibpath_overrides_runpath=yes
  14036. hardcode_into_libs=yes
  14037. # ldd complains unless libraries are executable
  14038. postinstall_cmds='chmod +x $lib'
  14039. ;;
  14040. sunos4*)
  14041. version_type=sunos
  14042. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14043. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14044. shlibpath_var=LD_LIBRARY_PATH
  14045. shlibpath_overrides_runpath=yes
  14046. if test yes = "$with_gnu_ld"; then
  14047. need_lib_prefix=no
  14048. fi
  14049. need_version=yes
  14050. ;;
  14051. sysv4 | sysv4.3*)
  14052. version_type=linux # correct to gnu/linux during the next big refactor
  14053. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14054. soname_spec='$libname$release$shared_ext$major'
  14055. shlibpath_var=LD_LIBRARY_PATH
  14056. case $host_vendor in
  14057. sni)
  14058. shlibpath_overrides_runpath=no
  14059. need_lib_prefix=no
  14060. runpath_var=LD_RUN_PATH
  14061. ;;
  14062. siemens)
  14063. need_lib_prefix=no
  14064. ;;
  14065. motorola)
  14066. need_lib_prefix=no
  14067. need_version=no
  14068. shlibpath_overrides_runpath=no
  14069. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14070. ;;
  14071. esac
  14072. ;;
  14073. sysv4*MP*)
  14074. if test -d /usr/nec; then
  14075. version_type=linux # correct to gnu/linux during the next big refactor
  14076. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14077. soname_spec='$libname$shared_ext.$major'
  14078. shlibpath_var=LD_LIBRARY_PATH
  14079. fi
  14080. ;;
  14081. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14082. version_type=sco
  14083. need_lib_prefix=no
  14084. need_version=no
  14085. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14086. soname_spec='$libname$release$shared_ext$major'
  14087. shlibpath_var=LD_LIBRARY_PATH
  14088. shlibpath_overrides_runpath=yes
  14089. hardcode_into_libs=yes
  14090. if test yes = "$with_gnu_ld"; then
  14091. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14092. else
  14093. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14094. case $host_os in
  14095. sco3.2v5*)
  14096. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14097. ;;
  14098. esac
  14099. fi
  14100. sys_lib_dlsearch_path_spec='/usr/lib'
  14101. ;;
  14102. tpf*)
  14103. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14104. version_type=linux # correct to gnu/linux during the next big refactor
  14105. need_lib_prefix=no
  14106. need_version=no
  14107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14108. shlibpath_var=LD_LIBRARY_PATH
  14109. shlibpath_overrides_runpath=no
  14110. hardcode_into_libs=yes
  14111. ;;
  14112. uts4*)
  14113. version_type=linux # correct to gnu/linux during the next big refactor
  14114. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14115. soname_spec='$libname$release$shared_ext$major'
  14116. shlibpath_var=LD_LIBRARY_PATH
  14117. ;;
  14118. *)
  14119. dynamic_linker=no
  14120. ;;
  14121. esac
  14122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14123. $as_echo "$dynamic_linker" >&6; }
  14124. test no = "$dynamic_linker" && can_build_shared=no
  14125. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14126. if test yes = "$GCC"; then
  14127. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14128. fi
  14129. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14130. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14131. fi
  14132. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14133. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14134. fi
  14135. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14136. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14137. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14138. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14139. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14140. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14142. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14143. hardcode_action_CXX=
  14144. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14145. test -n "$runpath_var_CXX" ||
  14146. test yes = "$hardcode_automatic_CXX"; then
  14147. # We can hardcode non-existent directories.
  14148. if test no != "$hardcode_direct_CXX" &&
  14149. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14150. # have to relink, otherwise we might link with an installed library
  14151. # when we should be linking with a yet-to-be-installed one
  14152. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14153. test no != "$hardcode_minus_L_CXX"; then
  14154. # Linking always hardcodes the temporary library directory.
  14155. hardcode_action_CXX=relink
  14156. else
  14157. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14158. hardcode_action_CXX=immediate
  14159. fi
  14160. else
  14161. # We cannot hardcode anything, or else we can only hardcode existing
  14162. # directories.
  14163. hardcode_action_CXX=unsupported
  14164. fi
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14166. $as_echo "$hardcode_action_CXX" >&6; }
  14167. if test relink = "$hardcode_action_CXX" ||
  14168. test yes = "$inherit_rpath_CXX"; then
  14169. # Fast installation is not supported
  14170. enable_fast_install=no
  14171. elif test yes = "$shlibpath_overrides_runpath" ||
  14172. test no = "$enable_shared"; then
  14173. # Fast installation is not necessary
  14174. enable_fast_install=needless
  14175. fi
  14176. fi # test -n "$compiler"
  14177. CC=$lt_save_CC
  14178. CFLAGS=$lt_save_CFLAGS
  14179. LDCXX=$LD
  14180. LD=$lt_save_LD
  14181. GCC=$lt_save_GCC
  14182. with_gnu_ld=$lt_save_with_gnu_ld
  14183. lt_cv_path_LDCXX=$lt_cv_path_LD
  14184. lt_cv_path_LD=$lt_save_path_LD
  14185. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14186. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14187. fi # test yes != "$_lt_caught_CXX_error"
  14188. ac_ext=c
  14189. ac_cpp='$CPP $CPPFLAGS'
  14190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14193. # Find a good install program. We prefer a C program (faster),
  14194. # so one script is as good as another. But avoid the broken or
  14195. # incompatible versions:
  14196. # SysV /etc/install, /usr/sbin/install
  14197. # SunOS /usr/etc/install
  14198. # IRIX /sbin/install
  14199. # AIX /bin/install
  14200. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14201. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14202. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14203. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14204. # OS/2's system install, which has a completely different semantic
  14205. # ./install, which can be erroneously created by make from ./install.sh.
  14206. # Reject install programs that cannot install multiple files.
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14208. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14209. if test -z "$INSTALL"; then
  14210. if ${ac_cv_path_install+:} false; then :
  14211. $as_echo_n "(cached) " >&6
  14212. else
  14213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14214. for as_dir in $PATH
  14215. do
  14216. IFS=$as_save_IFS
  14217. test -z "$as_dir" && as_dir=.
  14218. # Account for people who put trailing slashes in PATH elements.
  14219. case $as_dir/ in #((
  14220. ./ | .// | /[cC]/* | \
  14221. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14222. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14223. /usr/ucb/* ) ;;
  14224. *)
  14225. # OSF1 and SCO ODT 3.0 have their own names for install.
  14226. # Don't use installbsd from OSF since it installs stuff as root
  14227. # by default.
  14228. for ac_prog in ginstall scoinst install; do
  14229. for ac_exec_ext in '' $ac_executable_extensions; do
  14230. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14231. if test $ac_prog = install &&
  14232. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14233. # AIX install. It has an incompatible calling convention.
  14234. :
  14235. elif test $ac_prog = install &&
  14236. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14237. # program-specific install script used by HP pwplus--don't use.
  14238. :
  14239. else
  14240. rm -rf conftest.one conftest.two conftest.dir
  14241. echo one > conftest.one
  14242. echo two > conftest.two
  14243. mkdir conftest.dir
  14244. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14245. test -s conftest.one && test -s conftest.two &&
  14246. test -s conftest.dir/conftest.one &&
  14247. test -s conftest.dir/conftest.two
  14248. then
  14249. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14250. break 3
  14251. fi
  14252. fi
  14253. fi
  14254. done
  14255. done
  14256. ;;
  14257. esac
  14258. done
  14259. IFS=$as_save_IFS
  14260. rm -rf conftest.one conftest.two conftest.dir
  14261. fi
  14262. if test "${ac_cv_path_install+set}" = set; then
  14263. INSTALL=$ac_cv_path_install
  14264. else
  14265. # As a last resort, use the slow shell script. Don't cache a
  14266. # value for INSTALL within a source directory, because that will
  14267. # break other packages using the cache if that directory is
  14268. # removed, or if the value is a relative name.
  14269. INSTALL=$ac_install_sh
  14270. fi
  14271. fi
  14272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14273. $as_echo "$INSTALL" >&6; }
  14274. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14275. # It thinks the first close brace ends the variable substitution.
  14276. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14277. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14278. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14280. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14281. set x ${MAKE-make}
  14282. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14283. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14284. $as_echo_n "(cached) " >&6
  14285. else
  14286. cat >conftest.make <<\_ACEOF
  14287. SHELL = /bin/sh
  14288. all:
  14289. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14290. _ACEOF
  14291. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14292. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14293. *@@@%%%=?*=@@@%%%*)
  14294. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14295. *)
  14296. eval ac_cv_prog_make_${ac_make}_set=no;;
  14297. esac
  14298. rm -f conftest.make
  14299. fi
  14300. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14302. $as_echo "yes" >&6; }
  14303. SET_MAKE=
  14304. else
  14305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14306. $as_echo "no" >&6; }
  14307. SET_MAKE="MAKE=${MAKE-make}"
  14308. fi
  14309. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14310. if test -n "$ac_tool_prefix"; then
  14311. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14312. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14314. $as_echo_n "checking for $ac_word... " >&6; }
  14315. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14316. $as_echo_n "(cached) " >&6
  14317. else
  14318. case $PKG_CONFIG in
  14319. [\\/]* | ?:[\\/]*)
  14320. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14321. ;;
  14322. *)
  14323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14324. for as_dir in $PATH
  14325. do
  14326. IFS=$as_save_IFS
  14327. test -z "$as_dir" && as_dir=.
  14328. for ac_exec_ext in '' $ac_executable_extensions; do
  14329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14330. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14332. break 2
  14333. fi
  14334. done
  14335. done
  14336. IFS=$as_save_IFS
  14337. ;;
  14338. esac
  14339. fi
  14340. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14341. if test -n "$PKG_CONFIG"; then
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14343. $as_echo "$PKG_CONFIG" >&6; }
  14344. else
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14346. $as_echo "no" >&6; }
  14347. fi
  14348. fi
  14349. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14350. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14351. # Extract the first word of "pkg-config", so it can be a program name with args.
  14352. set dummy pkg-config; ac_word=$2
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14354. $as_echo_n "checking for $ac_word... " >&6; }
  14355. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14356. $as_echo_n "(cached) " >&6
  14357. else
  14358. case $ac_pt_PKG_CONFIG in
  14359. [\\/]* | ?:[\\/]*)
  14360. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14361. ;;
  14362. *)
  14363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14364. for as_dir in $PATH
  14365. do
  14366. IFS=$as_save_IFS
  14367. test -z "$as_dir" && as_dir=.
  14368. for ac_exec_ext in '' $ac_executable_extensions; do
  14369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14370. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14372. break 2
  14373. fi
  14374. done
  14375. done
  14376. IFS=$as_save_IFS
  14377. ;;
  14378. esac
  14379. fi
  14380. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14381. if test -n "$ac_pt_PKG_CONFIG"; then
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14383. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14384. else
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14386. $as_echo "no" >&6; }
  14387. fi
  14388. if test "x$ac_pt_PKG_CONFIG" = x; then
  14389. PKG_CONFIG=""
  14390. else
  14391. case $cross_compiling:$ac_tool_warned in
  14392. yes:)
  14393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14394. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14395. ac_tool_warned=yes ;;
  14396. esac
  14397. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14398. fi
  14399. else
  14400. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14401. fi
  14402. fi
  14403. if test -n "$PKG_CONFIG"; then
  14404. _pkg_min_version=0.9.0
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14406. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14407. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14409. $as_echo "yes" >&6; }
  14410. else
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14412. $as_echo "no" >&6; }
  14413. PKG_CONFIG=""
  14414. fi
  14415. fi
  14416. case "$host" in
  14417. *-*-mingw*)
  14418. # Except on msys, where make can't handle full pathnames (bug 1972)
  14419. ;;
  14420. *)
  14421. srcdir=`cd $srcdir && pwd`
  14422. ;;
  14423. esac
  14424. INCLUDE="-I$srcdir/include"
  14425. case "$host" in
  14426. *-*-nto-qnx*)
  14427. ;;
  14428. *)
  14429. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14430. ;;
  14431. esac
  14432. case "$host" in
  14433. *-*-haiku*)
  14434. LINKER='$(CXX)'
  14435. LIBTOOLLINKERTAG='CXX'
  14436. ;;
  14437. *)
  14438. LINKER='$(CC)'
  14439. LIBTOOLLINKERTAG='CC'
  14440. ;;
  14441. esac
  14442. if test x$srcdir != x.; then
  14443. INCLUDE="-Iinclude $INCLUDE"
  14444. elif test -d .git; then
  14445. as_fn_error $? "
  14446. *** When building from a git clone you should configure and build in a
  14447. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14448. " "$LINENO" 5
  14449. fi
  14450. BASE_CFLAGS=""
  14451. BASE_LDFLAGS=""
  14452. case "$host" in
  14453. *-*-cygwin*)
  14454. # We build SDL on cygwin without the UNIX emulation layer
  14455. save_CFLAGS="$CFLAGS"
  14456. have_no_cygwin=no
  14457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14458. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14459. CFLAGS="$save_CFLAGS -mno-cygwin"
  14460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14461. /* end confdefs.h. */
  14462. int
  14463. main ()
  14464. {
  14465. ;
  14466. return 0;
  14467. }
  14468. _ACEOF
  14469. if ac_fn_c_try_compile "$LINENO"; then :
  14470. have_no_cygwin=yes
  14471. fi
  14472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14474. $as_echo "$have_no_cygwin" >&6; }
  14475. CFLAGS="$save_CFLAGS"
  14476. if test x$have_no_cygwin = xyes; then
  14477. BASE_CFLAGS="-mno-cygwin"
  14478. BASE_LDFLAGS="-mno-cygwin"
  14479. fi
  14480. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14481. ;;
  14482. esac
  14483. # Uncomment the following line if you want to force SDL and applications
  14484. # built with it to be compiled for a particular architecture.
  14485. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14486. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14487. # The default optimization for SDL is -O3 (Bug #31)
  14488. if test "x$orig_CFLAGS" = x; then
  14489. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14490. fi
  14491. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14492. BUILD_LDFLAGS="$LDFLAGS"
  14493. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14494. ## These are common directories to find software packages
  14495. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14496. # if test -d $path/include; then
  14497. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14498. # fi
  14499. # if test -d $path/lib; then
  14500. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14501. # fi
  14502. #done
  14503. SDL_CFLAGS="$BASE_CFLAGS"
  14504. SDL_LIBS="-lSDL2"
  14505. if test "x$BASE_LDFLAGS" != x; then
  14506. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14507. fi
  14508. if test "x$EXTRA_CFLAGS" != x; then
  14509. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14510. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14511. fi
  14512. if test "x$EXTRA_LDFLAGS" != x; then
  14513. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14514. fi
  14515. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14516. find_lib()
  14517. {
  14518. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14519. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14520. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14521. if test "$cross_compiling" = yes; then
  14522. host_lib_path=""
  14523. else
  14524. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14525. fi
  14526. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14527. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14528. if test x$lib != x; then
  14529. echo $lib
  14530. return
  14531. fi
  14532. done
  14533. # Try again, this time allowing more than one version digit after the .so
  14534. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14535. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14536. if test x$lib != x; then
  14537. echo $lib
  14538. return
  14539. fi
  14540. done
  14541. }
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14543. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14544. if ${ac_cv_c_const+:} false; then :
  14545. $as_echo_n "(cached) " >&6
  14546. else
  14547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14548. /* end confdefs.h. */
  14549. int
  14550. main ()
  14551. {
  14552. #ifndef __cplusplus
  14553. /* Ultrix mips cc rejects this sort of thing. */
  14554. typedef int charset[2];
  14555. const charset cs = { 0, 0 };
  14556. /* SunOS 4.1.1 cc rejects this. */
  14557. char const *const *pcpcc;
  14558. char **ppc;
  14559. /* NEC SVR4.0.2 mips cc rejects this. */
  14560. struct point {int x, y;};
  14561. static struct point const zero = {0,0};
  14562. /* AIX XL C 1.02.0.0 rejects this.
  14563. It does not let you subtract one const X* pointer from another in
  14564. an arm of an if-expression whose if-part is not a constant
  14565. expression */
  14566. const char *g = "string";
  14567. pcpcc = &g + (g ? g-g : 0);
  14568. /* HPUX 7.0 cc rejects these. */
  14569. ++pcpcc;
  14570. ppc = (char**) pcpcc;
  14571. pcpcc = (char const *const *) ppc;
  14572. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14573. char tx;
  14574. char *t = &tx;
  14575. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14576. *t++ = 0;
  14577. if (s) return 0;
  14578. }
  14579. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14580. int x[] = {25, 17};
  14581. const int *foo = &x[0];
  14582. ++foo;
  14583. }
  14584. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14585. typedef const int *iptr;
  14586. iptr p = 0;
  14587. ++p;
  14588. }
  14589. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14590. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14591. struct s { int j; const int *ap[3]; } bx;
  14592. struct s *b = &bx; b->j = 5;
  14593. }
  14594. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14595. const int foo = 10;
  14596. if (!foo) return 0;
  14597. }
  14598. return !cs[0] && !zero.x;
  14599. #endif
  14600. ;
  14601. return 0;
  14602. }
  14603. _ACEOF
  14604. if ac_fn_c_try_compile "$LINENO"; then :
  14605. ac_cv_c_const=yes
  14606. else
  14607. ac_cv_c_const=no
  14608. fi
  14609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14610. fi
  14611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14612. $as_echo "$ac_cv_c_const" >&6; }
  14613. if test $ac_cv_c_const = no; then
  14614. $as_echo "#define const /**/" >>confdefs.h
  14615. fi
  14616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14617. $as_echo_n "checking for inline... " >&6; }
  14618. if ${ac_cv_c_inline+:} false; then :
  14619. $as_echo_n "(cached) " >&6
  14620. else
  14621. ac_cv_c_inline=no
  14622. for ac_kw in inline __inline__ __inline; do
  14623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14624. /* end confdefs.h. */
  14625. #ifndef __cplusplus
  14626. typedef int foo_t;
  14627. static $ac_kw foo_t static_foo () {return 0; }
  14628. $ac_kw foo_t foo () {return 0; }
  14629. #endif
  14630. _ACEOF
  14631. if ac_fn_c_try_compile "$LINENO"; then :
  14632. ac_cv_c_inline=$ac_kw
  14633. fi
  14634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14635. test "$ac_cv_c_inline" != no && break
  14636. done
  14637. fi
  14638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14639. $as_echo "$ac_cv_c_inline" >&6; }
  14640. case $ac_cv_c_inline in
  14641. inline | yes) ;;
  14642. *)
  14643. case $ac_cv_c_inline in
  14644. no) ac_val=;;
  14645. *) ac_val=$ac_cv_c_inline;;
  14646. esac
  14647. cat >>confdefs.h <<_ACEOF
  14648. #ifndef __cplusplus
  14649. #define inline $ac_val
  14650. #endif
  14651. _ACEOF
  14652. ;;
  14653. esac
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14655. $as_echo_n "checking for working volatile... " >&6; }
  14656. if ${ac_cv_c_volatile+:} false; then :
  14657. $as_echo_n "(cached) " >&6
  14658. else
  14659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14660. /* end confdefs.h. */
  14661. int
  14662. main ()
  14663. {
  14664. volatile int x;
  14665. int * volatile y = (int *) 0;
  14666. return !x && !y;
  14667. ;
  14668. return 0;
  14669. }
  14670. _ACEOF
  14671. if ac_fn_c_try_compile "$LINENO"; then :
  14672. ac_cv_c_volatile=yes
  14673. else
  14674. ac_cv_c_volatile=no
  14675. fi
  14676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14677. fi
  14678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14679. $as_echo "$ac_cv_c_volatile" >&6; }
  14680. if test $ac_cv_c_volatile = no; then
  14681. $as_echo "#define volatile /**/" >>confdefs.h
  14682. fi
  14683. # Check whether --enable-assertions was given.
  14684. if test "${enable_assertions+set}" = set; then :
  14685. enableval=$enable_assertions;
  14686. else
  14687. enable_assertions=auto
  14688. fi
  14689. case "$enable_assertions" in
  14690. auto) # Use optimization settings to determine assertion level
  14691. ;;
  14692. disabled)
  14693. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14694. ;;
  14695. release)
  14696. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14697. ;;
  14698. enabled)
  14699. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14700. ;;
  14701. paranoid)
  14702. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14703. ;;
  14704. *)
  14705. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14706. ;;
  14707. esac
  14708. cat >>confdefs.h <<_ACEOF
  14709. #define SDL_BUILD_MAJOR_VERSION $SDL_MAJOR_VERSION
  14710. _ACEOF
  14711. cat >>confdefs.h <<_ACEOF
  14712. #define SDL_BUILD_MINOR_VERSION $SDL_MINOR_VERSION
  14713. _ACEOF
  14714. cat >>confdefs.h <<_ACEOF
  14715. #define SDL_BUILD_MICRO_VERSION $SDL_MICRO_VERSION
  14716. _ACEOF
  14717. # Check whether --enable-dependency-tracking was given.
  14718. if test "${enable_dependency_tracking+set}" = set; then :
  14719. enableval=$enable_dependency_tracking;
  14720. else
  14721. enable_dependency_tracking=yes
  14722. fi
  14723. if test x$enable_dependency_tracking = xyes; then
  14724. have_gcc_mmd_mt=no
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14726. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14728. /* end confdefs.h. */
  14729. #if !defined(__GNUC__) || __GNUC__ < 3
  14730. #error Dependency tracking requires GCC 3.0 or newer
  14731. #endif
  14732. int
  14733. main ()
  14734. {
  14735. ;
  14736. return 0;
  14737. }
  14738. _ACEOF
  14739. if ac_fn_c_try_compile "$LINENO"; then :
  14740. have_gcc_mmd_mt=yes
  14741. fi
  14742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14744. $as_echo "$have_gcc_mmd_mt" >&6; }
  14745. if test x$have_gcc_mmd_mt = xyes; then
  14746. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14747. fi
  14748. fi
  14749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14750. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14751. have_no_undefined=no
  14752. case "$host" in
  14753. *-*-openbsd*)
  14754. ;;
  14755. *)
  14756. save_LDFLAGS="$LDFLAGS"
  14757. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14759. /* end confdefs.h. */
  14760. int
  14761. main ()
  14762. {
  14763. ;
  14764. return 0;
  14765. }
  14766. _ACEOF
  14767. if ac_fn_c_try_link "$LINENO"; then :
  14768. have_no_undefined=yes
  14769. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14770. fi
  14771. rm -f core conftest.err conftest.$ac_objext \
  14772. conftest$ac_exeext conftest.$ac_ext
  14773. LDFLAGS="$save_LDFLAGS"
  14774. ;;
  14775. esac
  14776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14777. $as_echo "$have_no_undefined" >&6; }
  14778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14779. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14780. have_dynamicbase=no
  14781. case "$host" in
  14782. *)
  14783. save_LDFLAGS="$LDFLAGS"
  14784. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14786. /* end confdefs.h. */
  14787. int
  14788. main ()
  14789. {
  14790. ;
  14791. return 0;
  14792. }
  14793. _ACEOF
  14794. if ac_fn_c_try_link "$LINENO"; then :
  14795. have_dynamicbase=yes
  14796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14797. fi
  14798. rm -f core conftest.err conftest.$ac_objext \
  14799. conftest$ac_exeext conftest.$ac_ext
  14800. LDFLAGS="$save_LDFLAGS"
  14801. ;;
  14802. esac
  14803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14804. $as_echo "$have_dynamicbase" >&6; }
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14806. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14807. have_nxcompat=no
  14808. case "$host" in
  14809. *)
  14810. save_LDFLAGS="$LDFLAGS"
  14811. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14813. /* end confdefs.h. */
  14814. int
  14815. main ()
  14816. {
  14817. ;
  14818. return 0;
  14819. }
  14820. _ACEOF
  14821. if ac_fn_c_try_link "$LINENO"; then :
  14822. have_nxcompat=yes
  14823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14824. fi
  14825. rm -f core conftest.err conftest.$ac_objext \
  14826. conftest$ac_exeext conftest.$ac_ext
  14827. LDFLAGS="$save_LDFLAGS"
  14828. ;;
  14829. esac
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14831. $as_echo "$have_nxcompat" >&6; }
  14832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14833. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14834. have_high_entropy_va=no
  14835. case "$host" in
  14836. *)
  14837. save_LDFLAGS="$LDFLAGS"
  14838. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14840. /* end confdefs.h. */
  14841. int
  14842. main ()
  14843. {
  14844. ;
  14845. return 0;
  14846. }
  14847. _ACEOF
  14848. if ac_fn_c_try_link "$LINENO"; then :
  14849. have_high_entropy_va=yes
  14850. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14851. fi
  14852. rm -f core conftest.err conftest.$ac_objext \
  14853. conftest$ac_exeext conftest.$ac_ext
  14854. LDFLAGS="$save_LDFLAGS"
  14855. ;;
  14856. esac
  14857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14858. $as_echo "$have_high_entropy_va" >&6; }
  14859. # Check whether --enable-libc was given.
  14860. if test "${enable_libc+set}" = set; then :
  14861. enableval=$enable_libc;
  14862. else
  14863. enable_libc=yes
  14864. fi
  14865. if test x$enable_libc = xyes; then
  14866. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14868. $as_echo_n "checking for ANSI C header files... " >&6; }
  14869. if ${ac_cv_header_stdc+:} false; then :
  14870. $as_echo_n "(cached) " >&6
  14871. else
  14872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14873. /* end confdefs.h. */
  14874. #include <stdlib.h>
  14875. #include <stdarg.h>
  14876. #include <string.h>
  14877. #include <float.h>
  14878. int
  14879. main ()
  14880. {
  14881. ;
  14882. return 0;
  14883. }
  14884. _ACEOF
  14885. if ac_fn_c_try_compile "$LINENO"; then :
  14886. ac_cv_header_stdc=yes
  14887. else
  14888. ac_cv_header_stdc=no
  14889. fi
  14890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14891. if test $ac_cv_header_stdc = yes; then
  14892. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14894. /* end confdefs.h. */
  14895. #include <string.h>
  14896. _ACEOF
  14897. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14898. $EGREP "memchr" >/dev/null 2>&1; then :
  14899. else
  14900. ac_cv_header_stdc=no
  14901. fi
  14902. rm -f conftest*
  14903. fi
  14904. if test $ac_cv_header_stdc = yes; then
  14905. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14907. /* end confdefs.h. */
  14908. #include <stdlib.h>
  14909. _ACEOF
  14910. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14911. $EGREP "free" >/dev/null 2>&1; then :
  14912. else
  14913. ac_cv_header_stdc=no
  14914. fi
  14915. rm -f conftest*
  14916. fi
  14917. if test $ac_cv_header_stdc = yes; then
  14918. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14919. if test "$cross_compiling" = yes; then :
  14920. :
  14921. else
  14922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14923. /* end confdefs.h. */
  14924. #include <ctype.h>
  14925. #include <stdlib.h>
  14926. #if ((' ' & 0x0FF) == 0x020)
  14927. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14928. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14929. #else
  14930. # define ISLOWER(c) \
  14931. (('a' <= (c) && (c) <= 'i') \
  14932. || ('j' <= (c) && (c) <= 'r') \
  14933. || ('s' <= (c) && (c) <= 'z'))
  14934. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14935. #endif
  14936. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14937. int
  14938. main ()
  14939. {
  14940. int i;
  14941. for (i = 0; i < 256; i++)
  14942. if (XOR (islower (i), ISLOWER (i))
  14943. || toupper (i) != TOUPPER (i))
  14944. return 2;
  14945. return 0;
  14946. }
  14947. _ACEOF
  14948. if ac_fn_c_try_run "$LINENO"; then :
  14949. else
  14950. ac_cv_header_stdc=no
  14951. fi
  14952. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14953. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14954. fi
  14955. fi
  14956. fi
  14957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14958. $as_echo "$ac_cv_header_stdc" >&6; }
  14959. if test $ac_cv_header_stdc = yes; then
  14960. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14961. fi
  14962. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14963. do :
  14964. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14965. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14966. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14967. cat >>confdefs.h <<_ACEOF
  14968. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14969. _ACEOF
  14970. fi
  14971. done
  14972. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14973. if test "x$ac_cv_type_size_t" = xyes; then :
  14974. else
  14975. cat >>confdefs.h <<_ACEOF
  14976. #define size_t unsigned int
  14977. _ACEOF
  14978. fi
  14979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14980. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14981. if ${ac_cv_define_M_PI+:} false; then :
  14982. $as_echo_n "(cached) " >&6
  14983. else
  14984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14985. /* end confdefs.h. */
  14986. #include <math.h>
  14987. #ifdef M_PI
  14988. YES_IS_DEFINED
  14989. #endif
  14990. _ACEOF
  14991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14992. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14993. ac_cv_define_M_PI=yes
  14994. else
  14995. ac_cv_define_M_PI=no
  14996. fi
  14997. rm -f conftest*
  14998. fi
  14999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  15000. $as_echo "$ac_cv_define_M_PI" >&6; }
  15001. if test "$ac_cv_define_M_PI" = "yes" ; then
  15002. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  15003. fi
  15004. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  15005. # for constant arguments. Useless!
  15006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  15007. $as_echo_n "checking for working alloca.h... " >&6; }
  15008. if ${ac_cv_working_alloca_h+:} false; then :
  15009. $as_echo_n "(cached) " >&6
  15010. else
  15011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15012. /* end confdefs.h. */
  15013. #include <alloca.h>
  15014. int
  15015. main ()
  15016. {
  15017. char *p = (char *) alloca (2 * sizeof (int));
  15018. if (p) return 0;
  15019. ;
  15020. return 0;
  15021. }
  15022. _ACEOF
  15023. if ac_fn_c_try_link "$LINENO"; then :
  15024. ac_cv_working_alloca_h=yes
  15025. else
  15026. ac_cv_working_alloca_h=no
  15027. fi
  15028. rm -f core conftest.err conftest.$ac_objext \
  15029. conftest$ac_exeext conftest.$ac_ext
  15030. fi
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15032. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15033. if test $ac_cv_working_alloca_h = yes; then
  15034. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15035. fi
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15037. $as_echo_n "checking for alloca... " >&6; }
  15038. if ${ac_cv_func_alloca_works+:} false; then :
  15039. $as_echo_n "(cached) " >&6
  15040. else
  15041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15042. /* end confdefs.h. */
  15043. #ifdef __GNUC__
  15044. # define alloca __builtin_alloca
  15045. #else
  15046. # ifdef _MSC_VER
  15047. # include <malloc.h>
  15048. # define alloca _alloca
  15049. # else
  15050. # ifdef HAVE_ALLOCA_H
  15051. # include <alloca.h>
  15052. # else
  15053. # ifdef _AIX
  15054. #pragma alloca
  15055. # else
  15056. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15057. void *alloca (size_t);
  15058. # endif
  15059. # endif
  15060. # endif
  15061. # endif
  15062. #endif
  15063. int
  15064. main ()
  15065. {
  15066. char *p = (char *) alloca (1);
  15067. if (p) return 0;
  15068. ;
  15069. return 0;
  15070. }
  15071. _ACEOF
  15072. if ac_fn_c_try_link "$LINENO"; then :
  15073. ac_cv_func_alloca_works=yes
  15074. else
  15075. ac_cv_func_alloca_works=no
  15076. fi
  15077. rm -f core conftest.err conftest.$ac_objext \
  15078. conftest$ac_exeext conftest.$ac_ext
  15079. fi
  15080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15081. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15082. if test $ac_cv_func_alloca_works = yes; then
  15083. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15084. else
  15085. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15086. # that cause trouble. Some versions do not even contain alloca or
  15087. # contain a buggy version. If you still want to use their alloca,
  15088. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15089. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15090. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15092. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15093. if ${ac_cv_os_cray+:} false; then :
  15094. $as_echo_n "(cached) " >&6
  15095. else
  15096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15097. /* end confdefs.h. */
  15098. #if defined CRAY && ! defined CRAY2
  15099. webecray
  15100. #else
  15101. wenotbecray
  15102. #endif
  15103. _ACEOF
  15104. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15105. $EGREP "webecray" >/dev/null 2>&1; then :
  15106. ac_cv_os_cray=yes
  15107. else
  15108. ac_cv_os_cray=no
  15109. fi
  15110. rm -f conftest*
  15111. fi
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15113. $as_echo "$ac_cv_os_cray" >&6; }
  15114. if test $ac_cv_os_cray = yes; then
  15115. for ac_func in _getb67 GETB67 getb67; do
  15116. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15117. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15118. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15119. cat >>confdefs.h <<_ACEOF
  15120. #define CRAY_STACKSEG_END $ac_func
  15121. _ACEOF
  15122. break
  15123. fi
  15124. done
  15125. fi
  15126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15127. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15128. if ${ac_cv_c_stack_direction+:} false; then :
  15129. $as_echo_n "(cached) " >&6
  15130. else
  15131. if test "$cross_compiling" = yes; then :
  15132. ac_cv_c_stack_direction=0
  15133. else
  15134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15135. /* end confdefs.h. */
  15136. $ac_includes_default
  15137. int
  15138. find_stack_direction (int *addr, int depth)
  15139. {
  15140. int dir, dummy = 0;
  15141. if (! addr)
  15142. addr = &dummy;
  15143. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15144. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15145. return dir + dummy;
  15146. }
  15147. int
  15148. main (int argc, char **argv)
  15149. {
  15150. return find_stack_direction (0, argc + !argv + 20) < 0;
  15151. }
  15152. _ACEOF
  15153. if ac_fn_c_try_run "$LINENO"; then :
  15154. ac_cv_c_stack_direction=1
  15155. else
  15156. ac_cv_c_stack_direction=-1
  15157. fi
  15158. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15159. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15160. fi
  15161. fi
  15162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15163. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15164. cat >>confdefs.h <<_ACEOF
  15165. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15166. _ACEOF
  15167. fi
  15168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15169. $as_echo_n "checking for working memcmp... " >&6; }
  15170. if ${ac_cv_func_memcmp_working+:} false; then :
  15171. $as_echo_n "(cached) " >&6
  15172. else
  15173. if test "$cross_compiling" = yes; then :
  15174. ac_cv_func_memcmp_working=no
  15175. else
  15176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15177. /* end confdefs.h. */
  15178. $ac_includes_default
  15179. int
  15180. main ()
  15181. {
  15182. /* Some versions of memcmp are not 8-bit clean. */
  15183. char c0 = '\100', c1 = '\200', c2 = '\201';
  15184. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15185. return 1;
  15186. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15187. or more and with at least one buffer not starting on a 4-byte boundary.
  15188. William Lewis provided this test program. */
  15189. {
  15190. char foo[21];
  15191. char bar[21];
  15192. int i;
  15193. for (i = 0; i < 4; i++)
  15194. {
  15195. char *a = foo + i;
  15196. char *b = bar + i;
  15197. strcpy (a, "--------01111111");
  15198. strcpy (b, "--------10000000");
  15199. if (memcmp (a, b, 16) >= 0)
  15200. return 1;
  15201. }
  15202. return 0;
  15203. }
  15204. ;
  15205. return 0;
  15206. }
  15207. _ACEOF
  15208. if ac_fn_c_try_run "$LINENO"; then :
  15209. ac_cv_func_memcmp_working=yes
  15210. else
  15211. ac_cv_func_memcmp_working=no
  15212. fi
  15213. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15214. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15215. fi
  15216. fi
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15218. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15219. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15220. *" memcmp.$ac_objext "* ) ;;
  15221. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15222. ;;
  15223. esac
  15224. if test x$ac_cv_func_memcmp_working = xyes; then
  15225. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15226. fi
  15227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15228. $as_echo_n "checking for working strtod... " >&6; }
  15229. if ${ac_cv_func_strtod+:} false; then :
  15230. $as_echo_n "(cached) " >&6
  15231. else
  15232. if test "$cross_compiling" = yes; then :
  15233. ac_cv_func_strtod=no
  15234. else
  15235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15236. /* end confdefs.h. */
  15237. $ac_includes_default
  15238. #ifndef strtod
  15239. double strtod ();
  15240. #endif
  15241. int
  15242. main()
  15243. {
  15244. {
  15245. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15246. char *string = " +69";
  15247. char *term;
  15248. double value;
  15249. value = strtod (string, &term);
  15250. if (value != 69 || term != (string + 4))
  15251. return 1;
  15252. }
  15253. {
  15254. /* Under Solaris 2.4, strtod returns the wrong value for the
  15255. terminating character under some conditions. */
  15256. char *string = "NaN";
  15257. char *term;
  15258. strtod (string, &term);
  15259. if (term != string && *(term - 1) == 0)
  15260. return 1;
  15261. }
  15262. return 0;
  15263. }
  15264. _ACEOF
  15265. if ac_fn_c_try_run "$LINENO"; then :
  15266. ac_cv_func_strtod=yes
  15267. else
  15268. ac_cv_func_strtod=no
  15269. fi
  15270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15271. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15272. fi
  15273. fi
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15275. $as_echo "$ac_cv_func_strtod" >&6; }
  15276. if test $ac_cv_func_strtod = no; then
  15277. case " $LIBOBJS " in
  15278. *" strtod.$ac_objext "* ) ;;
  15279. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15280. ;;
  15281. esac
  15282. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15283. if test "x$ac_cv_func_pow" = xyes; then :
  15284. fi
  15285. if test $ac_cv_func_pow = no; then
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15287. $as_echo_n "checking for pow in -lm... " >&6; }
  15288. if ${ac_cv_lib_m_pow+:} false; then :
  15289. $as_echo_n "(cached) " >&6
  15290. else
  15291. ac_check_lib_save_LIBS=$LIBS
  15292. LIBS="-lm $LIBS"
  15293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15294. /* end confdefs.h. */
  15295. /* Override any GCC internal prototype to avoid an error.
  15296. Use char because int might match the return type of a GCC
  15297. builtin and then its argument prototype would still apply. */
  15298. #ifdef __cplusplus
  15299. extern "C"
  15300. #endif
  15301. char pow ();
  15302. int
  15303. main ()
  15304. {
  15305. return pow ();
  15306. ;
  15307. return 0;
  15308. }
  15309. _ACEOF
  15310. if ac_fn_c_try_link "$LINENO"; then :
  15311. ac_cv_lib_m_pow=yes
  15312. else
  15313. ac_cv_lib_m_pow=no
  15314. fi
  15315. rm -f core conftest.err conftest.$ac_objext \
  15316. conftest$ac_exeext conftest.$ac_ext
  15317. LIBS=$ac_check_lib_save_LIBS
  15318. fi
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15320. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15321. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15322. POW_LIB=-lm
  15323. else
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15325. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15326. fi
  15327. fi
  15328. fi
  15329. if test x$ac_cv_func_strtod = xyes; then
  15330. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15331. fi
  15332. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15333. if test "x$ac_cv_func_mprotect" = xyes; then :
  15334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15335. /* end confdefs.h. */
  15336. #include <sys/types.h>
  15337. #include <sys/mman.h>
  15338. int
  15339. main ()
  15340. {
  15341. ;
  15342. return 0;
  15343. }
  15344. _ACEOF
  15345. if ac_fn_c_try_compile "$LINENO"; then :
  15346. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15347. fi
  15348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15349. fi
  15350. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv bsearch qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  15351. do :
  15352. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15353. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15354. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15355. cat >>confdefs.h <<_ACEOF
  15356. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15357. _ACEOF
  15358. fi
  15359. done
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15361. $as_echo_n "checking for pow in -lm... " >&6; }
  15362. if ${ac_cv_lib_m_pow+:} false; then :
  15363. $as_echo_n "(cached) " >&6
  15364. else
  15365. ac_check_lib_save_LIBS=$LIBS
  15366. LIBS="-lm $LIBS"
  15367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15368. /* end confdefs.h. */
  15369. /* Override any GCC internal prototype to avoid an error.
  15370. Use char because int might match the return type of a GCC
  15371. builtin and then its argument prototype would still apply. */
  15372. #ifdef __cplusplus
  15373. extern "C"
  15374. #endif
  15375. char pow ();
  15376. int
  15377. main ()
  15378. {
  15379. return pow ();
  15380. ;
  15381. return 0;
  15382. }
  15383. _ACEOF
  15384. if ac_fn_c_try_link "$LINENO"; then :
  15385. ac_cv_lib_m_pow=yes
  15386. else
  15387. ac_cv_lib_m_pow=no
  15388. fi
  15389. rm -f core conftest.err conftest.$ac_objext \
  15390. conftest$ac_exeext conftest.$ac_ext
  15391. LIBS=$ac_check_lib_save_LIBS
  15392. fi
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15394. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15395. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15396. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15397. fi
  15398. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  15399. do :
  15400. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15401. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15402. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15403. cat >>confdefs.h <<_ACEOF
  15404. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15405. _ACEOF
  15406. fi
  15407. done
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15409. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15410. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15411. $as_echo_n "(cached) " >&6
  15412. else
  15413. ac_check_lib_save_LIBS=$LIBS
  15414. LIBS="-liconv $LIBS"
  15415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15416. /* end confdefs.h. */
  15417. /* Override any GCC internal prototype to avoid an error.
  15418. Use char because int might match the return type of a GCC
  15419. builtin and then its argument prototype would still apply. */
  15420. #ifdef __cplusplus
  15421. extern "C"
  15422. #endif
  15423. char iconv_open ();
  15424. int
  15425. main ()
  15426. {
  15427. return iconv_open ();
  15428. ;
  15429. return 0;
  15430. }
  15431. _ACEOF
  15432. if ac_fn_c_try_link "$LINENO"; then :
  15433. ac_cv_lib_iconv_iconv_open=yes
  15434. else
  15435. ac_cv_lib_iconv_iconv_open=no
  15436. fi
  15437. rm -f core conftest.err conftest.$ac_objext \
  15438. conftest$ac_exeext conftest.$ac_ext
  15439. LIBS=$ac_check_lib_save_LIBS
  15440. fi
  15441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15442. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15443. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15444. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15445. fi
  15446. for ac_func in iconv
  15447. do :
  15448. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15449. if test "x$ac_cv_func_iconv" = xyes; then :
  15450. cat >>confdefs.h <<_ACEOF
  15451. #define HAVE_ICONV 1
  15452. _ACEOF
  15453. fi
  15454. done
  15455. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15456. "
  15457. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15458. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15459. fi
  15460. for ac_header in libunwind.h
  15461. do :
  15462. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15463. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15464. cat >>confdefs.h <<_ACEOF
  15465. #define HAVE_LIBUNWIND_H 1
  15466. _ACEOF
  15467. fi
  15468. done
  15469. fi
  15470. # Check whether --enable-gcc-atomics was given.
  15471. if test "${enable_gcc_atomics+set}" = set; then :
  15472. enableval=$enable_gcc_atomics;
  15473. else
  15474. enable_gcc_atomics=yes
  15475. fi
  15476. if test x$enable_gcc_atomics = xyes; then
  15477. have_gcc_atomics=no
  15478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15479. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15481. /* end confdefs.h. */
  15482. int
  15483. main ()
  15484. {
  15485. int a;
  15486. void *x, *y, *z;
  15487. __sync_lock_test_and_set(&a, 4);
  15488. __sync_lock_test_and_set(&x, y);
  15489. __sync_fetch_and_add(&a, 1);
  15490. __sync_bool_compare_and_swap(&a, 5, 10);
  15491. __sync_bool_compare_and_swap(&x, y, z);
  15492. ;
  15493. return 0;
  15494. }
  15495. _ACEOF
  15496. if ac_fn_c_try_link "$LINENO"; then :
  15497. have_gcc_atomics=yes
  15498. fi
  15499. rm -f core conftest.err conftest.$ac_objext \
  15500. conftest$ac_exeext conftest.$ac_ext
  15501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15502. $as_echo "$have_gcc_atomics" >&6; }
  15503. if test x$have_gcc_atomics = xyes; then
  15504. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15505. else
  15506. # See if we have the minimum operation needed for GCC atomics
  15507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15508. /* end confdefs.h. */
  15509. int
  15510. main ()
  15511. {
  15512. int a;
  15513. __sync_lock_test_and_set(&a, 1);
  15514. __sync_lock_release(&a);
  15515. ;
  15516. return 0;
  15517. }
  15518. _ACEOF
  15519. if ac_fn_c_try_link "$LINENO"; then :
  15520. have_gcc_sync_lock_test_and_set=yes
  15521. fi
  15522. rm -f core conftest.err conftest.$ac_objext \
  15523. conftest$ac_exeext conftest.$ac_ext
  15524. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15525. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15526. fi
  15527. fi
  15528. fi
  15529. # Standard C sources
  15530. SOURCES="$SOURCES $srcdir/src/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15535. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15536. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15537. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15538. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15539. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15540. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15541. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15542. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15543. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15544. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15545. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15546. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15547. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15548. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15549. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15550. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15551. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15552. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15553. case "$host" in
  15554. *-*-emscripten*)
  15555. default_atomic=no
  15556. ;;
  15557. *)
  15558. default_atomic=yes
  15559. ;;
  15560. esac
  15561. # Check whether --enable-atomic was given.
  15562. if test "${enable_atomic+set}" = set; then :
  15563. enableval=$enable_atomic;
  15564. else
  15565. enable_atomic=$default_atomic
  15566. fi
  15567. if test x$enable_atomic != xyes; then
  15568. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15569. else
  15570. SUMMARY_modules="${SUMMARY_modules} atomic"
  15571. fi
  15572. # Check whether --enable-audio was given.
  15573. if test "${enable_audio+set}" = set; then :
  15574. enableval=$enable_audio;
  15575. else
  15576. enable_audio=yes
  15577. fi
  15578. if test x$enable_audio != xyes; then
  15579. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15580. else
  15581. SUMMARY_modules="${SUMMARY_modules} audio"
  15582. fi
  15583. # Check whether --enable-video was given.
  15584. if test "${enable_video+set}" = set; then :
  15585. enableval=$enable_video;
  15586. else
  15587. enable_video=yes
  15588. fi
  15589. if test x$enable_video != xyes; then
  15590. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15591. else
  15592. SUMMARY_modules="${SUMMARY_modules} video"
  15593. fi
  15594. # Check whether --enable-render was given.
  15595. if test "${enable_render+set}" = set; then :
  15596. enableval=$enable_render;
  15597. else
  15598. enable_render=yes
  15599. fi
  15600. if test x$enable_render != xyes; then
  15601. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15602. else
  15603. SUMMARY_modules="${SUMMARY_modules} render"
  15604. fi
  15605. # Check whether --enable-events was given.
  15606. if test "${enable_events+set}" = set; then :
  15607. enableval=$enable_events;
  15608. else
  15609. enable_events=yes
  15610. fi
  15611. if test x$enable_events != xyes; then
  15612. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15613. else
  15614. SUMMARY_modules="${SUMMARY_modules} events"
  15615. fi
  15616. # Check whether --enable-joystick was given.
  15617. if test "${enable_joystick+set}" = set; then :
  15618. enableval=$enable_joystick;
  15619. else
  15620. enable_joystick=yes
  15621. fi
  15622. if test x$enable_joystick != xyes; then
  15623. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15624. else
  15625. SUMMARY_modules="${SUMMARY_modules} joystick"
  15626. fi
  15627. # Check whether --enable-haptic was given.
  15628. if test "${enable_haptic+set}" = set; then :
  15629. enableval=$enable_haptic;
  15630. else
  15631. enable_haptic=yes
  15632. fi
  15633. if test x$enable_haptic != xyes; then
  15634. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15635. else
  15636. SUMMARY_modules="${SUMMARY_modules} haptic"
  15637. fi
  15638. # Check whether --enable-hidapi was given.
  15639. if test "${enable_hidapi+set}" = set; then :
  15640. enableval=$enable_hidapi;
  15641. else
  15642. enable_hidapi=yes
  15643. fi
  15644. if test x$enable_hidapi != xyes; then
  15645. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15646. else
  15647. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15648. fi
  15649. # Check whether --enable-sensor was given.
  15650. if test "${enable_sensor+set}" = set; then :
  15651. enableval=$enable_sensor;
  15652. else
  15653. enable_sensor=yes
  15654. fi
  15655. if test x$enable_sensor != xyes; then
  15656. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15657. else
  15658. SUMMARY_modules="${SUMMARY_modules} sensor"
  15659. fi
  15660. # Check whether --enable-power was given.
  15661. if test "${enable_power+set}" = set; then :
  15662. enableval=$enable_power;
  15663. else
  15664. enable_power=yes
  15665. fi
  15666. if test x$enable_power != xyes; then
  15667. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15668. else
  15669. SUMMARY_modules="${SUMMARY_modules} power"
  15670. fi
  15671. # Check whether --enable-filesystem was given.
  15672. if test "${enable_filesystem+set}" = set; then :
  15673. enableval=$enable_filesystem;
  15674. else
  15675. enable_filesystem=yes
  15676. fi
  15677. if test x$enable_filesystem != xyes; then
  15678. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15679. else
  15680. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15681. fi
  15682. # Check whether --enable-threads was given.
  15683. if test "${enable_threads+set}" = set; then :
  15684. enableval=$enable_threads;
  15685. else
  15686. enable_threads=yes
  15687. fi
  15688. if test x$enable_threads != xyes; then
  15689. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15690. else
  15691. SUMMARY_modules="${SUMMARY_modules} threads"
  15692. fi
  15693. # Check whether --enable-timers was given.
  15694. if test "${enable_timers+set}" = set; then :
  15695. enableval=$enable_timers;
  15696. else
  15697. enable_timers=yes
  15698. fi
  15699. if test x$enable_timers != xyes; then
  15700. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15701. else
  15702. SUMMARY_modules="${SUMMARY_modules} timers"
  15703. fi
  15704. # Check whether --enable-file was given.
  15705. if test "${enable_file+set}" = set; then :
  15706. enableval=$enable_file;
  15707. else
  15708. enable_file=yes
  15709. fi
  15710. if test x$enable_file != xyes; then
  15711. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15712. else
  15713. SUMMARY_modules="${SUMMARY_modules} file"
  15714. fi
  15715. # Check whether --enable-misc was given.
  15716. if test "${enable_misc+set}" = set; then :
  15717. enableval=$enable_misc;
  15718. else
  15719. enable_misc=yes
  15720. fi
  15721. if test x$enable_misc != xyes; then
  15722. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15723. else
  15724. SUMMARY_modules="${SUMMARY_modules} misc"
  15725. fi
  15726. # Check whether --enable-locale was given.
  15727. if test "${enable_locale+set}" = set; then :
  15728. enableval=$enable_locale;
  15729. else
  15730. enable_locale=yes
  15731. fi
  15732. if test x$enable_locale != xyes; then
  15733. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15734. else
  15735. SUMMARY_modules="${SUMMARY_modules} locale"
  15736. fi
  15737. # Check whether --enable-loadso was given.
  15738. if test "${enable_loadso+set}" = set; then :
  15739. enableval=$enable_loadso;
  15740. else
  15741. enable_loadso=yes
  15742. fi
  15743. if test x$enable_loadso != xyes; then
  15744. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15745. else
  15746. SUMMARY_modules="${SUMMARY_modules} loadso"
  15747. fi
  15748. # Check whether --enable-cpuinfo was given.
  15749. if test "${enable_cpuinfo+set}" = set; then :
  15750. enableval=$enable_cpuinfo;
  15751. else
  15752. enable_cpuinfo=yes
  15753. fi
  15754. if test x$enable_cpuinfo != xyes; then
  15755. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15756. else
  15757. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15758. fi
  15759. # Check whether --enable-assembly was given.
  15760. if test "${enable_assembly+set}" = set; then :
  15761. enableval=$enable_assembly;
  15762. else
  15763. enable_assembly=yes
  15764. fi
  15765. if test x$enable_assembly = xyes; then
  15766. SUMMARY_modules="${SUMMARY_modules} assembly"
  15767. # Make sure that we don't generate floating point code that would
  15768. # cause illegal instruction exceptions on older processors
  15769. case "$host" in
  15770. *-*-darwin*)
  15771. # Don't need to worry about Apple hardware, it's all SSE capable
  15772. default_ssemath=yes
  15773. ;;
  15774. *64-*-*)
  15775. # x86 64-bit architectures all have SSE instructions
  15776. default_ssemath=yes
  15777. ;;
  15778. *)
  15779. default_ssemath=no
  15780. ;;
  15781. esac
  15782. # Check whether --enable-ssemath was given.
  15783. if test "${enable_ssemath+set}" = set; then :
  15784. enableval=$enable_ssemath;
  15785. else
  15786. enable_ssemath=$default_ssemath
  15787. fi
  15788. if test x$enable_ssemath = xno; then
  15789. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15790. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15791. fi
  15792. fi
  15793. # Check whether --enable-mmx was given.
  15794. if test "${enable_mmx+set}" = set; then :
  15795. enableval=$enable_mmx;
  15796. else
  15797. enable_mmx=yes
  15798. fi
  15799. if test x$enable_mmx = xyes; then
  15800. save_CFLAGS="$CFLAGS"
  15801. have_gcc_mmx=no
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15803. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15804. mmx_CFLAGS="-mmmx"
  15805. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15807. /* end confdefs.h. */
  15808. #ifdef __MINGW32__
  15809. #include <_mingw.h>
  15810. #ifdef __MINGW64_VERSION_MAJOR
  15811. #include <intrin.h>
  15812. #else
  15813. #include <mmintrin.h>
  15814. #endif
  15815. #else
  15816. #include <mmintrin.h>
  15817. #endif
  15818. #ifndef __MMX__
  15819. #error Assembler CPP flag not enabled
  15820. #endif
  15821. int
  15822. main ()
  15823. {
  15824. ;
  15825. return 0;
  15826. }
  15827. _ACEOF
  15828. if ac_fn_c_try_compile "$LINENO"; then :
  15829. have_gcc_mmx=yes
  15830. fi
  15831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15833. $as_echo "$have_gcc_mmx" >&6; }
  15834. CFLAGS="$save_CFLAGS"
  15835. if test x$have_gcc_mmx = xyes; then
  15836. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15837. SUMMARY_math="${SUMMARY_math} mmx"
  15838. fi
  15839. fi
  15840. # Check whether --enable-3dnow was given.
  15841. if test "${enable_3dnow+set}" = set; then :
  15842. enableval=$enable_3dnow;
  15843. else
  15844. enable_3dnow=yes
  15845. fi
  15846. if test x$enable_3dnow = xyes; then
  15847. save_CFLAGS="$CFLAGS"
  15848. have_gcc_3dnow=no
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15850. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15851. amd3dnow_CFLAGS="-m3dnow"
  15852. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15854. /* end confdefs.h. */
  15855. #include <mm3dnow.h>
  15856. #ifndef __3dNOW__
  15857. #error Assembler CPP flag not enabled
  15858. #endif
  15859. int
  15860. main ()
  15861. {
  15862. void *p = 0;
  15863. _m_prefetch(p);
  15864. ;
  15865. return 0;
  15866. }
  15867. _ACEOF
  15868. if ac_fn_c_try_link "$LINENO"; then :
  15869. have_gcc_3dnow=yes
  15870. fi
  15871. rm -f core conftest.err conftest.$ac_objext \
  15872. conftest$ac_exeext conftest.$ac_ext
  15873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15874. $as_echo "$have_gcc_3dnow" >&6; }
  15875. CFLAGS="$save_CFLAGS"
  15876. if test x$have_gcc_3dnow = xyes; then
  15877. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15878. SUMMARY_math="${SUMMARY_math} 3dnow"
  15879. fi
  15880. fi
  15881. # Check whether --enable-sse was given.
  15882. if test "${enable_sse+set}" = set; then :
  15883. enableval=$enable_sse;
  15884. else
  15885. enable_sse=yes
  15886. fi
  15887. if test x$enable_sse = xyes; then
  15888. save_CFLAGS="$CFLAGS"
  15889. have_gcc_sse=no
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15891. $as_echo_n "checking for GCC -msse option... " >&6; }
  15892. sse_CFLAGS="-msse"
  15893. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15895. /* end confdefs.h. */
  15896. #ifdef __MINGW32__
  15897. #include <_mingw.h>
  15898. #ifdef __MINGW64_VERSION_MAJOR
  15899. #include <intrin.h>
  15900. #else
  15901. #include <xmmintrin.h>
  15902. #endif
  15903. #else
  15904. #include <xmmintrin.h>
  15905. #endif
  15906. #ifndef __SSE__
  15907. #error Assembler CPP flag not enabled
  15908. #endif
  15909. int
  15910. main ()
  15911. {
  15912. ;
  15913. return 0;
  15914. }
  15915. _ACEOF
  15916. if ac_fn_c_try_compile "$LINENO"; then :
  15917. have_gcc_sse=yes
  15918. fi
  15919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15921. $as_echo "$have_gcc_sse" >&6; }
  15922. CFLAGS="$save_CFLAGS"
  15923. if test x$have_gcc_sse = xyes; then
  15924. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15925. SUMMARY_math="${SUMMARY_math} sse"
  15926. fi
  15927. fi
  15928. # Check whether --enable-sse2 was given.
  15929. if test "${enable_sse2+set}" = set; then :
  15930. enableval=$enable_sse2;
  15931. else
  15932. enable_sse2=$default_ssemath
  15933. fi
  15934. if test x$enable_sse2 = xyes; then
  15935. save_CFLAGS="$CFLAGS"
  15936. have_gcc_sse2=no
  15937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15938. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15939. sse2_CFLAGS="-msse2"
  15940. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15942. /* end confdefs.h. */
  15943. #ifdef __MINGW32__
  15944. #include <_mingw.h>
  15945. #ifdef __MINGW64_VERSION_MAJOR
  15946. #include <intrin.h>
  15947. #else
  15948. #include <emmintrin.h>
  15949. #endif
  15950. #else
  15951. #include <emmintrin.h>
  15952. #endif
  15953. #ifndef __SSE2__
  15954. #error Assembler CPP flag not enabled
  15955. #endif
  15956. int
  15957. main ()
  15958. {
  15959. ;
  15960. return 0;
  15961. }
  15962. _ACEOF
  15963. if ac_fn_c_try_compile "$LINENO"; then :
  15964. have_gcc_sse2=yes
  15965. fi
  15966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15968. $as_echo "$have_gcc_sse2" >&6; }
  15969. CFLAGS="$save_CFLAGS"
  15970. if test x$have_gcc_sse2 = xyes; then
  15971. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15972. SUMMARY_math="${SUMMARY_math} sse2"
  15973. fi
  15974. fi
  15975. # Check whether --enable-sse3 was given.
  15976. if test "${enable_sse3+set}" = set; then :
  15977. enableval=$enable_sse3;
  15978. else
  15979. enable_sse3=$default_ssemath
  15980. fi
  15981. if test x$enable_sse3 = xyes; then
  15982. save_CFLAGS="$CFLAGS"
  15983. have_gcc_sse3=no
  15984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15985. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15986. sse3_CFLAGS="-msse3"
  15987. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15989. /* end confdefs.h. */
  15990. #ifdef __MINGW32__
  15991. #include <_mingw.h>
  15992. #ifdef __MINGW64_VERSION_MAJOR
  15993. #include <intrin.h>
  15994. #else
  15995. #include <pmmintrin.h>
  15996. #endif
  15997. #else
  15998. #include <pmmintrin.h>
  15999. #endif
  16000. #ifndef __SSE2__
  16001. #error Assembler CPP flag not enabled
  16002. #endif
  16003. int
  16004. main ()
  16005. {
  16006. ;
  16007. return 0;
  16008. }
  16009. _ACEOF
  16010. if ac_fn_c_try_compile "$LINENO"; then :
  16011. have_gcc_sse3=yes
  16012. fi
  16013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16015. $as_echo "$have_gcc_sse3" >&6; }
  16016. CFLAGS="$save_CFLAGS"
  16017. if test x$have_gcc_sse3 = xyes; then
  16018. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16019. SUMMARY_math="${SUMMARY_math} sse3"
  16020. fi
  16021. fi
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16023. $as_echo_n "checking for immintrin.h... " >&6; }
  16024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16025. /* end confdefs.h. */
  16026. #include <immintrin.h>
  16027. int
  16028. main ()
  16029. {
  16030. ;
  16031. return 0;
  16032. }
  16033. _ACEOF
  16034. if ac_fn_c_try_compile "$LINENO"; then :
  16035. have_immintrin_h_hdr=yes
  16036. else
  16037. have_immintrin_h_hdr=no
  16038. fi
  16039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16041. $as_echo "$have_immintrin_h_hdr" >&6; }
  16042. if test x$have_immintrin_h_hdr = xyes; then
  16043. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16044. fi
  16045. # Check whether --enable-altivec was given.
  16046. if test "${enable_altivec+set}" = set; then :
  16047. enableval=$enable_altivec;
  16048. else
  16049. enable_altivec=yes
  16050. fi
  16051. if test x$enable_altivec = xyes; then
  16052. save_CFLAGS="$CFLAGS"
  16053. have_gcc_altivec=no
  16054. have_altivec_h_hdr=no
  16055. altivec_CFLAGS="-maltivec"
  16056. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16058. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16060. /* end confdefs.h. */
  16061. #include <altivec.h>
  16062. vector unsigned int vzero() {
  16063. return vec_splat_u32(0);
  16064. }
  16065. int
  16066. main ()
  16067. {
  16068. ;
  16069. return 0;
  16070. }
  16071. _ACEOF
  16072. if ac_fn_c_try_compile "$LINENO"; then :
  16073. have_gcc_altivec=yes
  16074. have_altivec_h_hdr=yes
  16075. fi
  16076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16078. $as_echo "$have_gcc_altivec" >&6; }
  16079. if test x$have_gcc_altivec = xno; then
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16081. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16083. /* end confdefs.h. */
  16084. vector unsigned int vzero() {
  16085. return vec_splat_u32(0);
  16086. }
  16087. int
  16088. main ()
  16089. {
  16090. ;
  16091. return 0;
  16092. }
  16093. _ACEOF
  16094. if ac_fn_c_try_compile "$LINENO"; then :
  16095. have_gcc_altivec=yes
  16096. fi
  16097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16099. $as_echo "$have_gcc_altivec" >&6; }
  16100. fi
  16101. if test x$have_gcc_altivec = xno; then
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16103. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16104. altivec_CFLAGS="-faltivec"
  16105. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16107. /* end confdefs.h. */
  16108. #include <altivec.h>
  16109. vector unsigned int vzero() {
  16110. return vec_splat_u32(0);
  16111. }
  16112. int
  16113. main ()
  16114. {
  16115. ;
  16116. return 0;
  16117. }
  16118. _ACEOF
  16119. if ac_fn_c_try_compile "$LINENO"; then :
  16120. have_gcc_altivec=yes
  16121. have_altivec_h_hdr=yes
  16122. fi
  16123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16125. $as_echo "$have_gcc_altivec" >&6; }
  16126. fi
  16127. if test x$have_gcc_altivec = xno; then
  16128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16129. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16131. /* end confdefs.h. */
  16132. vector unsigned int vzero() {
  16133. return vec_splat_u32(0);
  16134. }
  16135. int
  16136. main ()
  16137. {
  16138. ;
  16139. return 0;
  16140. }
  16141. _ACEOF
  16142. if ac_fn_c_try_compile "$LINENO"; then :
  16143. have_gcc_altivec=yes
  16144. fi
  16145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16147. $as_echo "$have_gcc_altivec" >&6; }
  16148. fi
  16149. CFLAGS="$save_CFLAGS"
  16150. if test x$have_gcc_altivec = xyes; then
  16151. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16152. if test x$have_altivec_h_hdr = xyes; then
  16153. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16154. fi
  16155. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16156. SUMMARY_math="${SUMMARY_math} altivec"
  16157. fi
  16158. fi
  16159. fi
  16160. CheckOSS()
  16161. {
  16162. # Check whether --enable-oss was given.
  16163. if test "${enable_oss+set}" = set; then :
  16164. enableval=$enable_oss;
  16165. else
  16166. enable_oss=maybe
  16167. fi
  16168. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16169. # use sndio instead. So on there, we default to disabled. You can force
  16170. # it on if you really want, though.
  16171. if test x$enable_oss = xmaybe; then
  16172. enable_oss=yes
  16173. case "$host" in
  16174. *-*-openbsd*)
  16175. enable_oss=no;;
  16176. esac
  16177. fi
  16178. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16180. $as_echo_n "checking for OSS audio support... " >&6; }
  16181. have_oss=no
  16182. if test x$have_oss != xyes; then
  16183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16184. /* end confdefs.h. */
  16185. #include <sys/soundcard.h>
  16186. int
  16187. main ()
  16188. {
  16189. int arg = SNDCTL_DSP_SETFRAGMENT;
  16190. ;
  16191. return 0;
  16192. }
  16193. _ACEOF
  16194. if ac_fn_c_try_compile "$LINENO"; then :
  16195. have_oss=yes
  16196. fi
  16197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16198. fi
  16199. if test x$have_oss != xyes; then
  16200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16201. /* end confdefs.h. */
  16202. #include <soundcard.h>
  16203. int
  16204. main ()
  16205. {
  16206. int arg = SNDCTL_DSP_SETFRAGMENT;
  16207. ;
  16208. return 0;
  16209. }
  16210. _ACEOF
  16211. if ac_fn_c_try_compile "$LINENO"; then :
  16212. have_oss=yes
  16213. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16214. fi
  16215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16216. fi
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16218. $as_echo "$have_oss" >&6; }
  16219. if test x$have_oss = xyes; then
  16220. SUMMARY_audio="${SUMMARY_audio} oss"
  16221. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16222. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16223. have_audio=yes
  16224. # We may need to link with ossaudio emulation library
  16225. case "$host" in
  16226. *-*-openbsd*|*-*-netbsd*)
  16227. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16228. esac
  16229. fi
  16230. fi
  16231. }
  16232. CheckALSA()
  16233. {
  16234. # Check whether --enable-alsa was given.
  16235. if test "${enable_alsa+set}" = set; then :
  16236. enableval=$enable_alsa;
  16237. else
  16238. enable_alsa=yes
  16239. fi
  16240. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16241. alsa_save_CFLAGS="$CFLAGS"
  16242. alsa_save_LDFLAGS="$LDFLAGS"
  16243. alsa_save_LIBS="$LIBS"
  16244. alsa_found=yes
  16245. # Check whether --with-alsa-prefix was given.
  16246. if test "${with_alsa_prefix+set}" = set; then :
  16247. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16248. else
  16249. alsa_prefix=""
  16250. fi
  16251. # Check whether --with-alsa-inc-prefix was given.
  16252. if test "${with_alsa_inc_prefix+set}" = set; then :
  16253. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16254. else
  16255. alsa_inc_prefix=""
  16256. fi
  16257. # Check whether --enable-alsatest was given.
  16258. if test "${enable_alsatest+set}" = set; then :
  16259. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16260. else
  16261. enable_alsatest=yes
  16262. fi
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16264. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16265. if test "$alsa_inc_prefix" != "" ; then
  16266. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16267. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16268. fi
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16270. $as_echo "$ALSA_CFLAGS" >&6; }
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16272. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16273. if test "$alsa_prefix" != "" ; then
  16274. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16275. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16276. fi
  16277. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16278. LIBS=`echo $LIBS | sed 's/-lm//'`
  16279. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16280. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16281. LIBS=`echo $LIBS | sed 's/ //'`
  16282. LIBS="$ALSA_LIBS $LIBS"
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16284. $as_echo "$ALSA_LIBS" >&6; }
  16285. min_alsa_version=1.0.11
  16286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16287. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16288. no_alsa=""
  16289. alsa_min_major_version=`echo $min_alsa_version | \
  16290. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16291. alsa_min_minor_version=`echo $min_alsa_version | \
  16292. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16293. alsa_min_micro_version=`echo $min_alsa_version | \
  16294. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16295. ac_ext=c
  16296. ac_cpp='$CPP $CPPFLAGS'
  16297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16301. /* end confdefs.h. */
  16302. #include <alsa/asoundlib.h>
  16303. int
  16304. main ()
  16305. {
  16306. /* ensure backward compatibility */
  16307. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16308. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16309. #endif
  16310. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16311. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16312. #endif
  16313. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16314. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16315. #endif
  16316. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16317. exit(0);
  16318. # else
  16319. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16320. # error not present
  16321. # endif
  16322. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16323. exit(0);
  16324. # else
  16325. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16326. # error not present
  16327. # endif
  16328. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16329. # error not present
  16330. # endif
  16331. # endif
  16332. # endif
  16333. exit(0);
  16334. ;
  16335. return 0;
  16336. }
  16337. _ACEOF
  16338. if ac_fn_c_try_compile "$LINENO"; then :
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16340. $as_echo "found." >&6; }
  16341. else
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16343. $as_echo "not present." >&6; }
  16344. alsa_found=no
  16345. fi
  16346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16347. ac_ext=c
  16348. ac_cpp='$CPP $CPPFLAGS'
  16349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16352. if test "x$enable_alsatest" = "xyes"; then
  16353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16354. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16355. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16356. $as_echo_n "(cached) " >&6
  16357. else
  16358. ac_check_lib_save_LIBS=$LIBS
  16359. LIBS="-lasound $LIBS"
  16360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16361. /* end confdefs.h. */
  16362. /* Override any GCC internal prototype to avoid an error.
  16363. Use char because int might match the return type of a GCC
  16364. builtin and then its argument prototype would still apply. */
  16365. #ifdef __cplusplus
  16366. extern "C"
  16367. #endif
  16368. char snd_ctl_open ();
  16369. int
  16370. main ()
  16371. {
  16372. return snd_ctl_open ();
  16373. ;
  16374. return 0;
  16375. }
  16376. _ACEOF
  16377. if ac_fn_c_try_link "$LINENO"; then :
  16378. ac_cv_lib_asound_snd_ctl_open=yes
  16379. else
  16380. ac_cv_lib_asound_snd_ctl_open=no
  16381. fi
  16382. rm -f core conftest.err conftest.$ac_objext \
  16383. conftest$ac_exeext conftest.$ac_ext
  16384. LIBS=$ac_check_lib_save_LIBS
  16385. fi
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16387. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16388. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16389. cat >>confdefs.h <<_ACEOF
  16390. #define HAVE_LIBASOUND 1
  16391. _ACEOF
  16392. LIBS="-lasound $LIBS"
  16393. else
  16394. alsa_found=no
  16395. fi
  16396. fi
  16397. if test "x$alsa_found" = "xyes" ; then
  16398. have_alsa=yes
  16399. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16400. LIBS=`echo $LIBS | sed 's/ //'`
  16401. LIBS="-lasound $LIBS"
  16402. fi
  16403. if test "x$alsa_found" = "xno" ; then
  16404. have_alsa=no
  16405. CFLAGS="$alsa_save_CFLAGS"
  16406. LDFLAGS="$alsa_save_LDFLAGS"
  16407. LIBS="$alsa_save_LIBS"
  16408. ALSA_CFLAGS=""
  16409. ALSA_LIBS=""
  16410. fi
  16411. # Restore all flags from before the ALSA detection runs
  16412. CFLAGS="$alsa_save_CFLAGS"
  16413. LDFLAGS="$alsa_save_LDFLAGS"
  16414. LIBS="$alsa_save_LIBS"
  16415. if test x$have_alsa = xyes; then
  16416. # Check whether --enable-alsa-shared was given.
  16417. if test "${enable_alsa_shared+set}" = set; then :
  16418. enableval=$enable_alsa_shared;
  16419. else
  16420. enable_alsa_shared=yes
  16421. fi
  16422. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16423. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16424. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16425. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16426. if test x$have_loadso != xyes && \
  16427. test x$enable_alsa_shared = xyes; then
  16428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16429. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16430. fi
  16431. if test x$have_loadso = xyes && \
  16432. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16433. echo "-- dynamic libasound -> $alsa_lib"
  16434. cat >>confdefs.h <<_ACEOF
  16435. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16436. _ACEOF
  16437. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16438. else
  16439. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16440. SUMMARY_audio="${SUMMARY_audio} alsa"
  16441. fi
  16442. have_audio=yes
  16443. fi
  16444. fi
  16445. }
  16446. CheckJACK()
  16447. {
  16448. # Check whether --enable-jack was given.
  16449. if test "${enable_jack+set}" = set; then :
  16450. enableval=$enable_jack;
  16451. else
  16452. enable_jack=yes
  16453. fi
  16454. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16455. pkg_failed=no
  16456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16457. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16458. if test -n "$JACK_CFLAGS"; then
  16459. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16460. elif test -n "$PKG_CONFIG"; then
  16461. if test -n "$PKG_CONFIG" && \
  16462. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16463. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16464. ac_status=$?
  16465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16466. test $ac_status = 0; }; then
  16467. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16468. test "x$?" != "x0" && pkg_failed=yes
  16469. else
  16470. pkg_failed=yes
  16471. fi
  16472. else
  16473. pkg_failed=untried
  16474. fi
  16475. if test -n "$JACK_LIBS"; then
  16476. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16477. elif test -n "$PKG_CONFIG"; then
  16478. if test -n "$PKG_CONFIG" && \
  16479. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16480. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16481. ac_status=$?
  16482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16483. test $ac_status = 0; }; then
  16484. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16485. test "x$?" != "x0" && pkg_failed=yes
  16486. else
  16487. pkg_failed=yes
  16488. fi
  16489. else
  16490. pkg_failed=untried
  16491. fi
  16492. if test $pkg_failed = yes; then
  16493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16494. $as_echo "no" >&6; }
  16495. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16496. _pkg_short_errors_supported=yes
  16497. else
  16498. _pkg_short_errors_supported=no
  16499. fi
  16500. if test $_pkg_short_errors_supported = yes; then
  16501. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16502. else
  16503. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16504. fi
  16505. # Put the nasty error message in config.log where it belongs
  16506. echo "$JACK_PKG_ERRORS" >&5
  16507. audio_jack=no
  16508. elif test $pkg_failed = untried; then
  16509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16510. $as_echo "no" >&6; }
  16511. audio_jack=no
  16512. else
  16513. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16514. JACK_LIBS=$pkg_cv_JACK_LIBS
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16516. $as_echo "yes" >&6; }
  16517. audio_jack=yes
  16518. fi
  16519. if test x$audio_jack = xyes; then
  16520. # Check whether --enable-jack-shared was given.
  16521. if test "${enable_jack_shared+set}" = set; then :
  16522. enableval=$enable_jack_shared;
  16523. else
  16524. enable_jack_shared=yes
  16525. fi
  16526. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16527. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16528. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16529. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16530. if test x$have_loadso != xyes && \
  16531. test x$enable_jack_shared = xyes; then
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16533. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16534. fi
  16535. if test x$have_loadso = xyes && \
  16536. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16537. echo "-- dynamic libjack -> $jack_lib"
  16538. cat >>confdefs.h <<_ACEOF
  16539. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16540. _ACEOF
  16541. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16542. case "$host" in
  16543. # On Solaris, jack must be linked deferred explicitly
  16544. # to prevent undefined symbol failures.
  16545. *-*-solaris*)
  16546. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16547. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16548. esac
  16549. else
  16550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16551. SUMMARY_audio="${SUMMARY_audio} jack"
  16552. fi
  16553. have_audio=yes
  16554. fi
  16555. fi
  16556. }
  16557. CheckESD()
  16558. {
  16559. # Check whether --enable-esd was given.
  16560. if test "${enable_esd+set}" = set; then :
  16561. enableval=$enable_esd;
  16562. else
  16563. enable_esd=yes
  16564. fi
  16565. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16566. # Check whether --with-esd-prefix was given.
  16567. if test "${with_esd_prefix+set}" = set; then :
  16568. withval=$with_esd_prefix; esd_prefix="$withval"
  16569. else
  16570. esd_prefix=""
  16571. fi
  16572. # Check whether --with-esd-exec-prefix was given.
  16573. if test "${with_esd_exec_prefix+set}" = set; then :
  16574. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16575. else
  16576. esd_exec_prefix=""
  16577. fi
  16578. # Check whether --enable-esdtest was given.
  16579. if test "${enable_esdtest+set}" = set; then :
  16580. enableval=$enable_esdtest;
  16581. else
  16582. enable_esdtest=yes
  16583. fi
  16584. if test x$esd_exec_prefix != x ; then
  16585. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16586. if test x${ESD_CONFIG+set} != xset ; then
  16587. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16588. fi
  16589. fi
  16590. if test x$esd_prefix != x ; then
  16591. esd_args="$esd_args --prefix=$esd_prefix"
  16592. if test x${ESD_CONFIG+set} != xset ; then
  16593. ESD_CONFIG=$esd_prefix/bin/esd-config
  16594. fi
  16595. fi
  16596. # Extract the first word of "esd-config", so it can be a program name with args.
  16597. set dummy esd-config; ac_word=$2
  16598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16599. $as_echo_n "checking for $ac_word... " >&6; }
  16600. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16601. $as_echo_n "(cached) " >&6
  16602. else
  16603. case $ESD_CONFIG in
  16604. [\\/]* | ?:[\\/]*)
  16605. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16606. ;;
  16607. *)
  16608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16609. for as_dir in $PATH
  16610. do
  16611. IFS=$as_save_IFS
  16612. test -z "$as_dir" && as_dir=.
  16613. for ac_exec_ext in '' $ac_executable_extensions; do
  16614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16615. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16617. break 2
  16618. fi
  16619. done
  16620. done
  16621. IFS=$as_save_IFS
  16622. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16623. ;;
  16624. esac
  16625. fi
  16626. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16627. if test -n "$ESD_CONFIG"; then
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16629. $as_echo "$ESD_CONFIG" >&6; }
  16630. else
  16631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16632. $as_echo "no" >&6; }
  16633. fi
  16634. min_esd_version=0.2.8
  16635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16636. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16637. no_esd=""
  16638. if test "$ESD_CONFIG" = "no" ; then
  16639. no_esd=yes
  16640. else
  16641. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16642. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16643. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16644. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16645. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16646. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16647. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16648. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16649. if test "x$enable_esdtest" = "xyes" ; then
  16650. ac_ext=c
  16651. ac_cpp='$CPP $CPPFLAGS'
  16652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16655. ac_save_CFLAGS="$CFLAGS"
  16656. ac_save_LIBS="$LIBS"
  16657. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16658. LIBS="$LIBS $ESD_LIBS"
  16659. rm -f conf.esdtest
  16660. if test "$cross_compiling" = yes; then :
  16661. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16662. else
  16663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16664. /* end confdefs.h. */
  16665. #include <stdio.h>
  16666. #include <stdlib.h>
  16667. #include <esd.h>
  16668. int main (void)
  16669. {
  16670. int major, minor, micro;
  16671. FILE *fp = fopen("conf.esdtest", "w");
  16672. if (fp) fclose(fp);
  16673. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16674. printf("%s, bad version string\n", "$min_esd_version");
  16675. exit(1);
  16676. }
  16677. if (($esd_major_version > major) ||
  16678. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16679. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16680. {
  16681. return 0;
  16682. }
  16683. else
  16684. {
  16685. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16686. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16687. printf("*** best to upgrade to the required version.\n");
  16688. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16689. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16690. printf("*** config.cache before re-running configure\n");
  16691. return 1;
  16692. }
  16693. }
  16694. _ACEOF
  16695. if ac_fn_c_try_run "$LINENO"; then :
  16696. else
  16697. no_esd=yes
  16698. fi
  16699. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16700. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16701. fi
  16702. CFLAGS="$ac_save_CFLAGS"
  16703. LIBS="$ac_save_LIBS"
  16704. ac_ext=c
  16705. ac_cpp='$CPP $CPPFLAGS'
  16706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16709. fi
  16710. fi
  16711. if test "x$no_esd" = x ; then
  16712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16713. $as_echo "yes" >&6; }
  16714. have_esd=yes
  16715. else
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16717. $as_echo "no" >&6; }
  16718. if test "$ESD_CONFIG" = "no" ; then
  16719. echo "*** The esd-config script installed by ESD could not be found"
  16720. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16721. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16722. echo "*** full path to esd-config."
  16723. else
  16724. if test -f conf.esdtest ; then
  16725. :
  16726. else
  16727. echo "*** Could not run ESD test program, checking why..."
  16728. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16729. LIBS="$LIBS $ESD_LIBS"
  16730. ac_ext=c
  16731. ac_cpp='$CPP $CPPFLAGS'
  16732. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16733. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16734. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16736. /* end confdefs.h. */
  16737. #include <stdio.h>
  16738. #include <esd.h>
  16739. int
  16740. main ()
  16741. {
  16742. return 0;
  16743. ;
  16744. return 0;
  16745. }
  16746. _ACEOF
  16747. if ac_fn_c_try_link "$LINENO"; then :
  16748. echo "*** The test program compiled, but did not run. This usually means"
  16749. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16750. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16751. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16752. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16753. echo "*** is required on your system"
  16754. echo "***"
  16755. echo "*** If you have an old version installed, it is best to remove it, although"
  16756. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16757. else
  16758. echo "*** The test program failed to compile or link. See the file config.log for the"
  16759. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16760. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16761. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16762. fi
  16763. rm -f core conftest.err conftest.$ac_objext \
  16764. conftest$ac_exeext conftest.$ac_ext
  16765. CFLAGS="$ac_save_CFLAGS"
  16766. LIBS="$ac_save_LIBS"
  16767. ac_ext=c
  16768. ac_cpp='$CPP $CPPFLAGS'
  16769. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16770. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16771. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16772. fi
  16773. fi
  16774. ESD_CFLAGS=""
  16775. ESD_LIBS=""
  16776. have_esd=no
  16777. fi
  16778. rm -f conf.esdtest
  16779. if test x$have_esd = xyes; then
  16780. # Check whether --enable-esd-shared was given.
  16781. if test "${enable_esd_shared+set}" = set; then :
  16782. enableval=$enable_esd_shared;
  16783. else
  16784. enable_esd_shared=yes
  16785. fi
  16786. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16787. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16788. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16789. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16790. if test x$have_loadso != xyes && \
  16791. test x$enable_esd_shared = xyes; then
  16792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16793. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16794. fi
  16795. if test x$have_loadso = xyes && \
  16796. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16797. echo "-- dynamic libesd -> $esd_lib"
  16798. cat >>confdefs.h <<_ACEOF
  16799. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16800. _ACEOF
  16801. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16802. else
  16803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16804. SUMMARY_audio="${SUMMARY_audio} esd"
  16805. fi
  16806. have_audio=yes
  16807. fi
  16808. fi
  16809. }
  16810. CheckPipewire()
  16811. {
  16812. # Check whether --enable-pipewire was given.
  16813. if test "${enable_pipewire+set}" = set; then :
  16814. enableval=$enable_pipewire;
  16815. else
  16816. enable_pipewire=yes
  16817. fi
  16818. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16819. pkg_failed=no
  16820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16821. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16822. if test -n "$PIPEWIRE_CFLAGS"; then
  16823. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16824. elif test -n "$PKG_CONFIG"; then
  16825. if test -n "$PKG_CONFIG" && \
  16826. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16827. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16828. ac_status=$?
  16829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16830. test $ac_status = 0; }; then
  16831. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16832. test "x$?" != "x0" && pkg_failed=yes
  16833. else
  16834. pkg_failed=yes
  16835. fi
  16836. else
  16837. pkg_failed=untried
  16838. fi
  16839. if test -n "$PIPEWIRE_LIBS"; then
  16840. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16841. elif test -n "$PKG_CONFIG"; then
  16842. if test -n "$PKG_CONFIG" && \
  16843. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16844. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16845. ac_status=$?
  16846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16847. test $ac_status = 0; }; then
  16848. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16849. test "x$?" != "x0" && pkg_failed=yes
  16850. else
  16851. pkg_failed=yes
  16852. fi
  16853. else
  16854. pkg_failed=untried
  16855. fi
  16856. if test $pkg_failed = yes; then
  16857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16858. $as_echo "no" >&6; }
  16859. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16860. _pkg_short_errors_supported=yes
  16861. else
  16862. _pkg_short_errors_supported=no
  16863. fi
  16864. if test $_pkg_short_errors_supported = yes; then
  16865. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16866. else
  16867. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16868. fi
  16869. # Put the nasty error message in config.log where it belongs
  16870. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16871. audio_pipewire=no
  16872. elif test $pkg_failed = untried; then
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16874. $as_echo "no" >&6; }
  16875. audio_pipewire=no
  16876. else
  16877. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16878. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16880. $as_echo "yes" >&6; }
  16881. audio_pipewire=yes
  16882. fi
  16883. if test x$audio_pipewire = xyes; then
  16884. # Check whether --enable-pipewire-shared was given.
  16885. if test "${enable_pipewire_shared+set}" = set; then :
  16886. enableval=$enable_pipewire_shared;
  16887. else
  16888. enable_pipewire_shared=yes
  16889. fi
  16890. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16891. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16892. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16893. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16894. if test x$have_loadso != xyes && \
  16895. test x$enable_pipewire_shared = xyes; then
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16897. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16898. fi
  16899. if test x$have_loadso = xyes && \
  16900. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16901. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16902. cat >>confdefs.h <<_ACEOF
  16903. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16904. _ACEOF
  16905. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16906. else
  16907. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16908. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16909. fi
  16910. have_audio=yes
  16911. fi
  16912. fi
  16913. }
  16914. CheckPulseAudio()
  16915. {
  16916. # Check whether --enable-pulseaudio was given.
  16917. if test "${enable_pulseaudio+set}" = set; then :
  16918. enableval=$enable_pulseaudio;
  16919. else
  16920. enable_pulseaudio=yes
  16921. fi
  16922. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16923. pkg_failed=no
  16924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16925. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16926. if test -n "$PULSEAUDIO_CFLAGS"; then
  16927. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16928. elif test -n "$PKG_CONFIG"; then
  16929. if test -n "$PKG_CONFIG" && \
  16930. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16931. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16932. ac_status=$?
  16933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16934. test $ac_status = 0; }; then
  16935. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16936. test "x$?" != "x0" && pkg_failed=yes
  16937. else
  16938. pkg_failed=yes
  16939. fi
  16940. else
  16941. pkg_failed=untried
  16942. fi
  16943. if test -n "$PULSEAUDIO_LIBS"; then
  16944. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16945. elif test -n "$PKG_CONFIG"; then
  16946. if test -n "$PKG_CONFIG" && \
  16947. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16948. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16949. ac_status=$?
  16950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16951. test $ac_status = 0; }; then
  16952. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16953. test "x$?" != "x0" && pkg_failed=yes
  16954. else
  16955. pkg_failed=yes
  16956. fi
  16957. else
  16958. pkg_failed=untried
  16959. fi
  16960. if test $pkg_failed = yes; then
  16961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16962. $as_echo "no" >&6; }
  16963. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16964. _pkg_short_errors_supported=yes
  16965. else
  16966. _pkg_short_errors_supported=no
  16967. fi
  16968. if test $_pkg_short_errors_supported = yes; then
  16969. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16970. else
  16971. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16972. fi
  16973. # Put the nasty error message in config.log where it belongs
  16974. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16975. audio_pulseaudio=no
  16976. elif test $pkg_failed = untried; then
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16978. $as_echo "no" >&6; }
  16979. audio_pulseaudio=no
  16980. else
  16981. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16982. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16984. $as_echo "yes" >&6; }
  16985. audio_pulseaudio=yes
  16986. fi
  16987. if test x$audio_pulseaudio = xyes; then
  16988. # Check whether --enable-pulseaudio-shared was given.
  16989. if test "${enable_pulseaudio_shared+set}" = set; then :
  16990. enableval=$enable_pulseaudio_shared;
  16991. else
  16992. enable_pulseaudio_shared=yes
  16993. fi
  16994. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16995. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16996. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16997. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16998. if test x$have_loadso != xyes && \
  16999. test x$enable_pulseaudio_shared = xyes; then
  17000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  17001. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  17002. fi
  17003. if test x$have_loadso = xyes && \
  17004. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  17005. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  17006. cat >>confdefs.h <<_ACEOF
  17007. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  17008. _ACEOF
  17009. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  17010. case "$host" in
  17011. # On Solaris, pulseaudio must be linked deferred explicitly
  17012. # to prevent undefined symbol failures.
  17013. *-*-solaris*)
  17014. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17015. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17016. esac
  17017. else
  17018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17019. SUMMARY_audio="${SUMMARY_audio} pulse"
  17020. fi
  17021. have_audio=yes
  17022. fi
  17023. fi
  17024. }
  17025. CheckARTSC()
  17026. {
  17027. # Check whether --enable-arts was given.
  17028. if test "${enable_arts+set}" = set; then :
  17029. enableval=$enable_arts;
  17030. else
  17031. enable_arts=yes
  17032. fi
  17033. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17034. # Extract the first word of "artsc-config", so it can be a program name with args.
  17035. set dummy artsc-config; ac_word=$2
  17036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17037. $as_echo_n "checking for $ac_word... " >&6; }
  17038. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17039. $as_echo_n "(cached) " >&6
  17040. else
  17041. case $ARTSCONFIG in
  17042. [\\/]* | ?:[\\/]*)
  17043. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17044. ;;
  17045. *)
  17046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17047. for as_dir in $PATH
  17048. do
  17049. IFS=$as_save_IFS
  17050. test -z "$as_dir" && as_dir=.
  17051. for ac_exec_ext in '' $ac_executable_extensions; do
  17052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17053. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17055. break 2
  17056. fi
  17057. done
  17058. done
  17059. IFS=$as_save_IFS
  17060. ;;
  17061. esac
  17062. fi
  17063. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17064. if test -n "$ARTSCONFIG"; then
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17066. $as_echo "$ARTSCONFIG" >&6; }
  17067. else
  17068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17069. $as_echo "no" >&6; }
  17070. fi
  17071. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17072. : # arts isn't installed
  17073. else
  17074. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17075. ARTS_LIBS=`$ARTSCONFIG --libs`
  17076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17077. $as_echo_n "checking for aRts development environment... " >&6; }
  17078. audio_arts=no
  17079. save_CFLAGS="$CFLAGS"
  17080. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17082. /* end confdefs.h. */
  17083. #include <artsc.h>
  17084. int
  17085. main ()
  17086. {
  17087. arts_stream_t stream;
  17088. ;
  17089. return 0;
  17090. }
  17091. _ACEOF
  17092. if ac_fn_c_try_compile "$LINENO"; then :
  17093. audio_arts=yes
  17094. fi
  17095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17096. CFLAGS="$save_CFLAGS"
  17097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17098. $as_echo "$audio_arts" >&6; }
  17099. if test x$audio_arts = xyes; then
  17100. # Check whether --enable-arts-shared was given.
  17101. if test "${enable_arts_shared+set}" = set; then :
  17102. enableval=$enable_arts_shared;
  17103. else
  17104. enable_arts_shared=yes
  17105. fi
  17106. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17107. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17108. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17109. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17110. if test x$have_loadso != xyes && \
  17111. test x$enable_arts_shared = xyes; then
  17112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17113. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17114. fi
  17115. if test x$have_loadso = xyes && \
  17116. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17117. echo "-- dynamic libartsc -> $arts_lib"
  17118. cat >>confdefs.h <<_ACEOF
  17119. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17120. _ACEOF
  17121. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17122. else
  17123. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17124. SUMMARY_audio="${SUMMARY_audio} arts"
  17125. fi
  17126. have_audio=yes
  17127. fi
  17128. fi
  17129. fi
  17130. }
  17131. CheckNAS()
  17132. {
  17133. # Check whether --enable-nas was given.
  17134. if test "${enable_nas+set}" = set; then :
  17135. enableval=$enable_nas;
  17136. else
  17137. enable_nas=yes
  17138. fi
  17139. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17140. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17141. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17142. have_nas_hdr=yes
  17143. fi
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17145. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17146. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17147. $as_echo_n "(cached) " >&6
  17148. else
  17149. ac_check_lib_save_LIBS=$LIBS
  17150. LIBS="-laudio $LIBS"
  17151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17152. /* end confdefs.h. */
  17153. /* Override any GCC internal prototype to avoid an error.
  17154. Use char because int might match the return type of a GCC
  17155. builtin and then its argument prototype would still apply. */
  17156. #ifdef __cplusplus
  17157. extern "C"
  17158. #endif
  17159. char AuOpenServer ();
  17160. int
  17161. main ()
  17162. {
  17163. return AuOpenServer ();
  17164. ;
  17165. return 0;
  17166. }
  17167. _ACEOF
  17168. if ac_fn_c_try_link "$LINENO"; then :
  17169. ac_cv_lib_audio_AuOpenServer=yes
  17170. else
  17171. ac_cv_lib_audio_AuOpenServer=no
  17172. fi
  17173. rm -f core conftest.err conftest.$ac_objext \
  17174. conftest$ac_exeext conftest.$ac_ext
  17175. LIBS=$ac_check_lib_save_LIBS
  17176. fi
  17177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17178. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17179. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17180. have_nas_lib=yes
  17181. fi
  17182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17183. $as_echo_n "checking for NAS audio support... " >&6; }
  17184. have_nas=no
  17185. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17186. have_nas=yes
  17187. NAS_LIBS="-laudio"
  17188. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17189. have_nas=yes
  17190. NAS_CFLAGS="-I/usr/X11R6/include/"
  17191. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17192. fi
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17194. $as_echo "$have_nas" >&6; }
  17195. if test x$have_nas = xyes; then
  17196. # Check whether --enable-nas-shared was given.
  17197. if test "${enable_nas_shared+set}" = set; then :
  17198. enableval=$enable_nas_shared;
  17199. else
  17200. enable_nas_shared=yes
  17201. fi
  17202. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17203. if test x$have_loadso != xyes && \
  17204. test x$enable_nas_shared = xyes; then
  17205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17206. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17207. fi
  17208. if test x$have_loadso = xyes && \
  17209. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17210. echo "-- dynamic libaudio -> $nas_lib"
  17211. cat >>confdefs.h <<_ACEOF
  17212. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17213. _ACEOF
  17214. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17215. else
  17216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17217. SUMMARY_audio="${SUMMARY_audio} nas"
  17218. fi
  17219. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17220. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17221. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17222. have_audio=yes
  17223. fi
  17224. fi
  17225. }
  17226. CheckSNDIO()
  17227. {
  17228. # Check whether --enable-sndio was given.
  17229. if test "${enable_sndio+set}" = set; then :
  17230. enableval=$enable_sndio;
  17231. else
  17232. enable_sndio=yes
  17233. fi
  17234. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17235. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17236. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17237. have_sndio_hdr=yes
  17238. fi
  17239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17240. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17241. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17242. $as_echo_n "(cached) " >&6
  17243. else
  17244. ac_check_lib_save_LIBS=$LIBS
  17245. LIBS="-lsndio $LIBS"
  17246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17247. /* end confdefs.h. */
  17248. /* Override any GCC internal prototype to avoid an error.
  17249. Use char because int might match the return type of a GCC
  17250. builtin and then its argument prototype would still apply. */
  17251. #ifdef __cplusplus
  17252. extern "C"
  17253. #endif
  17254. char sio_open ();
  17255. int
  17256. main ()
  17257. {
  17258. return sio_open ();
  17259. ;
  17260. return 0;
  17261. }
  17262. _ACEOF
  17263. if ac_fn_c_try_link "$LINENO"; then :
  17264. ac_cv_lib_sndio_sio_open=yes
  17265. else
  17266. ac_cv_lib_sndio_sio_open=no
  17267. fi
  17268. rm -f core conftest.err conftest.$ac_objext \
  17269. conftest$ac_exeext conftest.$ac_ext
  17270. LIBS=$ac_check_lib_save_LIBS
  17271. fi
  17272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17273. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17274. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17275. have_sndio_lib=yes
  17276. fi
  17277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17278. $as_echo_n "checking for sndio audio support... " >&6; }
  17279. have_sndio=no
  17280. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17281. have_sndio=yes
  17282. SNDIO_LIBS="-lsndio"
  17283. fi
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17285. $as_echo "$have_sndio" >&6; }
  17286. if test x$have_sndio = xyes; then
  17287. # Check whether --enable-sndio-shared was given.
  17288. if test "${enable_sndio_shared+set}" = set; then :
  17289. enableval=$enable_sndio_shared;
  17290. else
  17291. enable_sndio_shared=yes
  17292. fi
  17293. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17294. if test x$have_loadso != xyes && \
  17295. test x$enable_sndio_shared = xyes; then
  17296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17297. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17298. fi
  17299. if test x$have_loadso = xyes && \
  17300. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17301. echo "-- dynamic libsndio -> $sndio_lib"
  17302. cat >>confdefs.h <<_ACEOF
  17303. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17304. _ACEOF
  17305. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17306. else
  17307. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17308. SUMMARY_audio="${SUMMARY_audio} sndio"
  17309. fi
  17310. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17311. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17312. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17313. have_audio=yes
  17314. fi
  17315. fi
  17316. }
  17317. CheckFusionSound()
  17318. {
  17319. # Check whether --enable-fusionsound was given.
  17320. if test "${enable_fusionsound+set}" = set; then :
  17321. enableval=$enable_fusionsound;
  17322. else
  17323. enable_fusionsound=no
  17324. fi
  17325. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17326. pkg_failed=no
  17327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17328. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17329. if test -n "$FUSIONSOUND_CFLAGS"; then
  17330. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17331. elif test -n "$PKG_CONFIG"; then
  17332. if test -n "$PKG_CONFIG" && \
  17333. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17334. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17335. ac_status=$?
  17336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17337. test $ac_status = 0; }; then
  17338. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17339. test "x$?" != "x0" && pkg_failed=yes
  17340. else
  17341. pkg_failed=yes
  17342. fi
  17343. else
  17344. pkg_failed=untried
  17345. fi
  17346. if test -n "$FUSIONSOUND_LIBS"; then
  17347. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17348. elif test -n "$PKG_CONFIG"; then
  17349. if test -n "$PKG_CONFIG" && \
  17350. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17351. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17352. ac_status=$?
  17353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17354. test $ac_status = 0; }; then
  17355. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17356. test "x$?" != "x0" && pkg_failed=yes
  17357. else
  17358. pkg_failed=yes
  17359. fi
  17360. else
  17361. pkg_failed=untried
  17362. fi
  17363. if test $pkg_failed = yes; then
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17365. $as_echo "no" >&6; }
  17366. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17367. _pkg_short_errors_supported=yes
  17368. else
  17369. _pkg_short_errors_supported=no
  17370. fi
  17371. if test $_pkg_short_errors_supported = yes; then
  17372. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17373. else
  17374. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17375. fi
  17376. # Put the nasty error message in config.log where it belongs
  17377. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17378. fusionsound=no
  17379. elif test $pkg_failed = untried; then
  17380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17381. $as_echo "no" >&6; }
  17382. fusionsound=no
  17383. else
  17384. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17385. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17387. $as_echo "yes" >&6; }
  17388. fusionsound=yes
  17389. fi
  17390. if test x$fusionsound = xyes; then
  17391. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17392. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17393. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17394. # Check whether --enable-fusionsound-shared was given.
  17395. if test "${enable_fusionsound_shared+set}" = set; then :
  17396. enableval=$enable_fusionsound_shared;
  17397. else
  17398. enable_fusionsound_shared=yes
  17399. fi
  17400. fusionsound_shared=no
  17401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17402. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17403. if test x$have_loadso != xyes && \
  17404. test x$enable_fusionsound_shared = xyes; then
  17405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17406. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17407. fi
  17408. if test x$have_loadso = xyes && \
  17409. test x$enable_fusionsound_shared = xyes; then
  17410. cat >>confdefs.h <<_ACEOF
  17411. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17412. _ACEOF
  17413. fusionsound_shared=yes
  17414. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17415. else
  17416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17417. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17418. fi
  17419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17420. $as_echo "$fusionsound_shared" >&6; }
  17421. have_audio=yes
  17422. fi
  17423. fi
  17424. }
  17425. CheckDiskAudio()
  17426. {
  17427. # Check whether --enable-diskaudio was given.
  17428. if test "${enable_diskaudio+set}" = set; then :
  17429. enableval=$enable_diskaudio;
  17430. else
  17431. enable_diskaudio=yes
  17432. fi
  17433. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17434. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17435. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17436. SUMMARY_audio="${SUMMARY_audio} disk"
  17437. have_audio=yes
  17438. fi
  17439. }
  17440. CheckDummyAudio()
  17441. {
  17442. # Check whether --enable-dummyaudio was given.
  17443. if test "${enable_dummyaudio+set}" = set; then :
  17444. enableval=$enable_dummyaudio;
  17445. else
  17446. enable_dummyaudio=yes
  17447. fi
  17448. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17449. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17450. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17451. SUMMARY_audio="${SUMMARY_audio} dummy"
  17452. have_audio=yes
  17453. fi
  17454. }
  17455. CheckLibSampleRate()
  17456. {
  17457. # Check whether --enable-libsamplerate was given.
  17458. if test "${enable_libsamplerate+set}" = set; then :
  17459. enableval=$enable_libsamplerate;
  17460. else
  17461. enable_libsamplerate=yes
  17462. fi
  17463. if test x$enable_libsamplerate = xyes; then
  17464. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17465. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17466. have_samplerate_h_hdr=yes
  17467. else
  17468. have_samplerate_h_hdr=no
  17469. fi
  17470. if test x$have_samplerate_h_hdr = xyes; then
  17471. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17472. # Check whether --enable-libsamplerate-shared was given.
  17473. if test "${enable_libsamplerate_shared+set}" = set; then :
  17474. enableval=$enable_libsamplerate_shared;
  17475. else
  17476. enable_libsamplerate_shared=yes
  17477. fi
  17478. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17479. if test x$have_loadso != xyes && \
  17480. test x$enable_libsamplerate_shared = xyes; then
  17481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17482. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17483. fi
  17484. if test x$have_loadso = xyes && \
  17485. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17486. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17487. cat >>confdefs.h <<_ACEOF
  17488. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17489. _ACEOF
  17490. else
  17491. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17492. fi
  17493. fi
  17494. fi
  17495. }
  17496. CheckARM()
  17497. {
  17498. # Check whether --enable-arm-simd was given.
  17499. if test "${enable_arm_simd+set}" = set; then :
  17500. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17501. else
  17502. enable_arm_simd=no
  17503. fi
  17504. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17505. save_CFLAGS="$CFLAGS"
  17506. have_arm_simd=no
  17507. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17509. $as_echo_n "checking for ARM SIMD... " >&6; }
  17510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17511. /* end confdefs.h. */
  17512. .text
  17513. .arch armv6
  17514. .object_arch armv4
  17515. .arm
  17516. .altmacro
  17517. #ifndef __ARM_EABI__
  17518. #error EABI is required (to be sure that calling conventions are compatible)
  17519. #endif
  17520. pld [r0]
  17521. uqadd8 r0, r0, r0
  17522. _ACEOF
  17523. if ac_fn_c_try_compile "$LINENO"; then :
  17524. have_arm_simd=yes
  17525. fi
  17526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17528. $as_echo "$have_arm_simd" >&6; }
  17529. CFLAGS="$save_CFLAGS"
  17530. if test x$have_arm_simd = xyes; then
  17531. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17532. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17533. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17534. fi
  17535. fi
  17536. }
  17537. CheckNEON()
  17538. {
  17539. # Check whether --enable-arm-neon was given.
  17540. if test "${enable_arm_neon+set}" = set; then :
  17541. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17542. else
  17543. enable_arm_neon=no
  17544. fi
  17545. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17546. save_CFLAGS="$CFLAGS"
  17547. have_arm_neon=no
  17548. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17550. $as_echo_n "checking for ARM NEON... " >&6; }
  17551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17552. /* end confdefs.h. */
  17553. .text
  17554. .fpu neon
  17555. .arch armv7a
  17556. .object_arch armv4
  17557. .eabi_attribute 10, 0
  17558. .arm
  17559. .altmacro
  17560. #ifndef __ARM_EABI__
  17561. #error EABI is required (to be sure that calling conventions are compatible)
  17562. #endif
  17563. pld [r0]
  17564. vmovn.u16 d0, q0
  17565. _ACEOF
  17566. if ac_fn_c_try_compile "$LINENO"; then :
  17567. have_arm_neon=yes
  17568. fi
  17569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17571. $as_echo "$have_arm_neon" >&6; }
  17572. CFLAGS="$save_CFLAGS"
  17573. if test x$have_arm_neon = xyes; then
  17574. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17575. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17576. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17577. fi
  17578. fi
  17579. }
  17580. CheckObjectiveCARC()
  17581. {
  17582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  17583. $as_echo_n "checking for clang -fobjc-arc option... " >&6; }
  17584. have_clang_objc_arc=no
  17585. save_CFLAGS="$CFLAGS"
  17586. CFLAGS="$save_CFLAGS -fobjc-arc"
  17587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17588. /* end confdefs.h. */
  17589. int x = 0;
  17590. int
  17591. main ()
  17592. {
  17593. ;
  17594. return 0;
  17595. }
  17596. _ACEOF
  17597. if ac_fn_c_try_compile "$LINENO"; then :
  17598. have_clang_objc_arc=yes
  17599. fi
  17600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  17602. $as_echo "$have_clang_objc_arc" >&6; }
  17603. CFLAGS="$save_CFLAGS"
  17604. if test x$have_clang_objc_arc = xyes; then
  17605. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  17606. fi
  17607. }
  17608. CheckVisibilityHidden()
  17609. {
  17610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17611. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17612. have_gcc_fvisibility=no
  17613. visibility_CFLAGS="-fvisibility=hidden"
  17614. save_CFLAGS="$CFLAGS"
  17615. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17617. /* end confdefs.h. */
  17618. #if !defined(__GNUC__) || __GNUC__ < 4
  17619. #error SDL only uses visibility attributes in GCC 4 or newer
  17620. #endif
  17621. int
  17622. main ()
  17623. {
  17624. ;
  17625. return 0;
  17626. }
  17627. _ACEOF
  17628. if ac_fn_c_try_compile "$LINENO"; then :
  17629. have_gcc_fvisibility=yes
  17630. fi
  17631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17633. $as_echo "$have_gcc_fvisibility" >&6; }
  17634. CFLAGS="$save_CFLAGS"
  17635. if test x$have_gcc_fvisibility = xyes; then
  17636. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17637. fi
  17638. }
  17639. CheckNoStrictAliasing()
  17640. {
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17642. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17643. have_gcc_no_strict_aliasing=no
  17644. save_CFLAGS="$CFLAGS"
  17645. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17647. /* end confdefs.h. */
  17648. int x = 0;
  17649. int
  17650. main ()
  17651. {
  17652. ;
  17653. return 0;
  17654. }
  17655. _ACEOF
  17656. if ac_fn_c_try_compile "$LINENO"; then :
  17657. have_gcc_no_strict_aliasing=yes
  17658. fi
  17659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17661. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17662. CFLAGS="$save_CFLAGS"
  17663. if test x$have_gcc_no_strict_aliasing = xyes; then
  17664. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17665. fi
  17666. }
  17667. CheckStackBoundary()
  17668. {
  17669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17670. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17671. have_gcc_preferred_stack_boundary=no
  17672. save_CFLAGS="$CFLAGS"
  17673. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17675. /* end confdefs.h. */
  17676. int x = 0;
  17677. int
  17678. main ()
  17679. {
  17680. ;
  17681. return 0;
  17682. }
  17683. _ACEOF
  17684. if ac_fn_c_try_compile "$LINENO"; then :
  17685. have_gcc_preferred_stack_boundary=yes
  17686. fi
  17687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17689. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17690. CFLAGS="$save_CFLAGS"
  17691. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17692. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17693. fi
  17694. }
  17695. CheckDeclarationAfterStatement()
  17696. {
  17697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17698. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17699. have_gcc_declaration_after_statement=no
  17700. save_CFLAGS="$CFLAGS"
  17701. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17703. /* end confdefs.h. */
  17704. int x = 0;
  17705. int
  17706. main ()
  17707. {
  17708. ;
  17709. return 0;
  17710. }
  17711. _ACEOF
  17712. if ac_fn_c_try_compile "$LINENO"; then :
  17713. have_gcc_declaration_after_statement=yes
  17714. fi
  17715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17717. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17718. CFLAGS="$save_CFLAGS"
  17719. if test x$have_gcc_declaration_after_statement = xyes; then
  17720. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17721. fi
  17722. }
  17723. CheckWarnAll()
  17724. {
  17725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17726. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17727. have_gcc_Wall=no
  17728. save_CFLAGS="$CFLAGS"
  17729. CFLAGS="$save_CFLAGS -Wall"
  17730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17731. /* end confdefs.h. */
  17732. int x = 0;
  17733. int
  17734. main ()
  17735. {
  17736. ;
  17737. return 0;
  17738. }
  17739. _ACEOF
  17740. if ac_fn_c_try_compile "$LINENO"; then :
  17741. have_gcc_Wall=yes
  17742. fi
  17743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17745. $as_echo "$have_gcc_Wall" >&6; }
  17746. CFLAGS="$save_CFLAGS"
  17747. if test x$have_gcc_Wall = xyes; then
  17748. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17750. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17751. need_gcc_Wno_multichar=no
  17752. case "$host" in
  17753. *-*-haiku*)
  17754. need_gcc_Wno_multichar=yes
  17755. ;;
  17756. esac
  17757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17758. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17759. if test x$need_gcc_Wno_multichar = xyes; then
  17760. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17761. fi
  17762. fi
  17763. }
  17764. CheckWayland()
  17765. {
  17766. # Check whether --enable-video-wayland was given.
  17767. if test "${enable_video_wayland+set}" = set; then :
  17768. enableval=$enable_video_wayland;
  17769. else
  17770. enable_video_wayland=yes
  17771. fi
  17772. # Check whether --enable-video-wayland-qt-touch was given.
  17773. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17774. enableval=$enable_video_wayland_qt_touch;
  17775. else
  17776. enable_video_wayland_qt_touch=yes
  17777. fi
  17778. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17780. $as_echo_n "checking for Wayland support... " >&6; }
  17781. video_wayland=no
  17782. if test x$video_opengl_egl = xyes && \
  17783. test x$video_opengles_v2 = xyes; then
  17784. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17785. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17786. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17787. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17788. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17789. WAYLAND_SCANNER_CODE_MODE=private-code
  17790. else
  17791. WAYLAND_SCANNER_CODE_MODE=code
  17792. fi
  17793. video_wayland=yes
  17794. fi
  17795. fi
  17796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17797. $as_echo "$video_wayland" >&6; }
  17798. if test x$video_wayland = xyes; then
  17799. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17800. if test x$enable_video_wayland_qt_touch = xyes; then
  17801. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17802. fi
  17803. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17804. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17805. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17806. # Check whether --enable-wayland-shared was given.
  17807. if test "${enable_wayland_shared+set}" = set; then :
  17808. enableval=$enable_wayland_shared;
  17809. else
  17810. enable_wayland_shared=maybe
  17811. fi
  17812. case "$host" in
  17813. *)
  17814. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17815. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17816. if test x$wayland_egl_lib = x; then
  17817. # This works in Ubuntu 13.10, maybe others
  17818. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17819. fi
  17820. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17821. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17822. ;;
  17823. esac
  17824. if test x$enable_wayland_shared = xmaybe; then
  17825. enable_wayland_shared=yes
  17826. fi
  17827. if test x$have_loadso != xyes && \
  17828. test x$enable_wayland_shared = xyes; then
  17829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17830. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17831. enable_wayland_shared=no
  17832. fi
  17833. if test x$have_loadso = xyes && \
  17834. test x$enable_wayland_shared = xyes && \
  17835. test x$wayland_client_lib != x && \
  17836. test x$wayland_egl_lib != x && \
  17837. test x$wayland_cursor_lib != x && \
  17838. test x$xkbcommon_lib != x; then
  17839. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17840. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17841. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17842. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17843. cat >>confdefs.h <<_ACEOF
  17844. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17845. _ACEOF
  17846. cat >>confdefs.h <<_ACEOF
  17847. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17848. _ACEOF
  17849. cat >>confdefs.h <<_ACEOF
  17850. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17851. _ACEOF
  17852. cat >>confdefs.h <<_ACEOF
  17853. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17854. _ACEOF
  17855. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17856. else
  17857. enable_wayland_shared=no
  17858. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17859. SUMMARY_video="${SUMMARY_video} wayland"
  17860. fi
  17861. have_video=yes
  17862. # Check whether --enable-libdecor was given.
  17863. if test "${enable_libdecor+set}" = set; then :
  17864. enableval=$enable_libdecor;
  17865. else
  17866. enable_libdecor=yes
  17867. fi
  17868. if test x$enable_libdecor = xyes; then
  17869. pkg_failed=no
  17870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  17871. $as_echo_n "checking for libdecor-0... " >&6; }
  17872. if test -n "$DECOR_CFLAGS"; then
  17873. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  17874. elif test -n "$PKG_CONFIG"; then
  17875. if test -n "$PKG_CONFIG" && \
  17876. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17877. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17878. ac_status=$?
  17879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17880. test $ac_status = 0; }; then
  17881. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  17882. test "x$?" != "x0" && pkg_failed=yes
  17883. else
  17884. pkg_failed=yes
  17885. fi
  17886. else
  17887. pkg_failed=untried
  17888. fi
  17889. if test -n "$DECOR_LIBS"; then
  17890. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  17891. elif test -n "$PKG_CONFIG"; then
  17892. if test -n "$PKG_CONFIG" && \
  17893. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17894. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17895. ac_status=$?
  17896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17897. test $ac_status = 0; }; then
  17898. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  17899. test "x$?" != "x0" && pkg_failed=yes
  17900. else
  17901. pkg_failed=yes
  17902. fi
  17903. else
  17904. pkg_failed=untried
  17905. fi
  17906. if test $pkg_failed = yes; then
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17908. $as_echo "no" >&6; }
  17909. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17910. _pkg_short_errors_supported=yes
  17911. else
  17912. _pkg_short_errors_supported=no
  17913. fi
  17914. if test $_pkg_short_errors_supported = yes; then
  17915. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  17916. else
  17917. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  17918. fi
  17919. # Put the nasty error message in config.log where it belongs
  17920. echo "$DECOR_PKG_ERRORS" >&5
  17921. video_libdecor=no
  17922. elif test $pkg_failed = untried; then
  17923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17924. $as_echo "no" >&6; }
  17925. video_libdecor=no
  17926. else
  17927. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  17928. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  17929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17930. $as_echo "yes" >&6; }
  17931. video_libdecor=yes
  17932. fi
  17933. if test x$video_libdecor = xyes; then
  17934. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  17935. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17936. # Check whether --enable-libdecor-shared was given.
  17937. if test "${enable_libdecor_shared+set}" = set; then :
  17938. enableval=$enable_libdecor_shared;
  17939. else
  17940. enable_libdecor_shared=yes
  17941. fi
  17942. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17943. if test x$enable_wayland_shared != xyes; then
  17944. enable_libdecor_shared=no
  17945. fi
  17946. if test x$have_loadso != xyes && \
  17947. test x$enable_libdecor_shared = xyes; then
  17948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17949. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17950. fi
  17951. if test x$have_loadso = xyes && \
  17952. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17953. echo "-- dynamic libdecor -> $decor_lib"
  17954. cat >>confdefs.h <<_ACEOF
  17955. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17956. _ACEOF
  17957. else
  17958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  17959. fi
  17960. fi
  17961. fi
  17962. fi
  17963. fi
  17964. }
  17965. CheckNativeClient()
  17966. {
  17967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17968. /* end confdefs.h. */
  17969. #if !defined(__native_client__)
  17970. #error "NO NACL"
  17971. #endif
  17972. int
  17973. main ()
  17974. {
  17975. ;
  17976. return 0;
  17977. }
  17978. _ACEOF
  17979. if ac_fn_c_try_compile "$LINENO"; then :
  17980. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17981. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17982. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17983. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17984. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17985. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17986. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17987. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17988. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17989. SUMMARY_audio="${SUMMARY_audio} nacl"
  17990. have_audio=yes
  17991. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17992. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17993. have_video=yes
  17994. fi
  17995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17996. }
  17997. CheckRPI()
  17998. {
  17999. # Check whether --enable-video-rpi was given.
  18000. if test "${enable_video_rpi+set}" = set; then :
  18001. enableval=$enable_video_rpi;
  18002. else
  18003. enable_video_rpi=yes
  18004. fi
  18005. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  18006. pkg_failed=no
  18007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  18008. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  18009. if test -n "$RPI_CFLAGS"; then
  18010. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  18011. elif test -n "$PKG_CONFIG"; then
  18012. if test -n "$PKG_CONFIG" && \
  18013. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18014. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18015. ac_status=$?
  18016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18017. test $ac_status = 0; }; then
  18018. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  18019. test "x$?" != "x0" && pkg_failed=yes
  18020. else
  18021. pkg_failed=yes
  18022. fi
  18023. else
  18024. pkg_failed=untried
  18025. fi
  18026. if test -n "$RPI_LIBS"; then
  18027. pkg_cv_RPI_LIBS="$RPI_LIBS"
  18028. elif test -n "$PKG_CONFIG"; then
  18029. if test -n "$PKG_CONFIG" && \
  18030. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  18031. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  18032. ac_status=$?
  18033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18034. test $ac_status = 0; }; then
  18035. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  18036. test "x$?" != "x0" && pkg_failed=yes
  18037. else
  18038. pkg_failed=yes
  18039. fi
  18040. else
  18041. pkg_failed=untried
  18042. fi
  18043. if test $pkg_failed = yes; then
  18044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18045. $as_echo "no" >&6; }
  18046. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18047. _pkg_short_errors_supported=yes
  18048. else
  18049. _pkg_short_errors_supported=no
  18050. fi
  18051. if test $_pkg_short_errors_supported = yes; then
  18052. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18053. else
  18054. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18055. fi
  18056. # Put the nasty error message in config.log where it belongs
  18057. echo "$RPI_PKG_ERRORS" >&5
  18058. video_rpi=no
  18059. elif test $pkg_failed = untried; then
  18060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18061. $as_echo "no" >&6; }
  18062. video_rpi=no
  18063. else
  18064. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18065. RPI_LIBS=$pkg_cv_RPI_LIBS
  18066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18067. $as_echo "yes" >&6; }
  18068. video_rpi=yes
  18069. fi
  18070. if test x$video_rpi = xno; then
  18071. if test x$ARCH = xnetbsd; then
  18072. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18073. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18074. else
  18075. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18076. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18077. fi
  18078. fi
  18079. # Save the original compiler flags and libraries
  18080. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18081. # Add the Raspberry Pi compiler flags and libraries
  18082. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18084. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18085. have_video_rpi=no
  18086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18087. /* end confdefs.h. */
  18088. #include <bcm_host.h>
  18089. #include <EGL/eglplatform.h>
  18090. int
  18091. main ()
  18092. {
  18093. EGL_DISPMANX_WINDOW_T window;
  18094. bcm_host_init();
  18095. ;
  18096. return 0;
  18097. }
  18098. _ACEOF
  18099. if ac_fn_c_try_link "$LINENO"; then :
  18100. have_video_rpi=yes
  18101. fi
  18102. rm -f core conftest.err conftest.$ac_objext \
  18103. conftest$ac_exeext conftest.$ac_ext
  18104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18105. $as_echo "$have_video_rpi" >&6; }
  18106. # Restore the compiler flags and libraries
  18107. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18108. if test x$have_video_rpi = xyes; then
  18109. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18110. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18111. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18112. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18113. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18114. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18115. SUMMARY_video="${SUMMARY_video} rpi"
  18116. have_video=yes
  18117. fi
  18118. fi
  18119. }
  18120. CheckX11()
  18121. {
  18122. # Check whether --enable-video-x11 was given.
  18123. if test "${enable_video_x11+set}" = set; then :
  18124. enableval=$enable_video_x11;
  18125. else
  18126. enable_video_x11=yes
  18127. fi
  18128. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18129. case "$host" in
  18130. *-*-darwin*)
  18131. # This isn't necessary for X11, but fixes GLX detection
  18132. if test "x$x_includes" = xNONE && \
  18133. test "x$x_libraries" = xNONE && \
  18134. test -d /opt/X11/include && \
  18135. test -d /opt/X11/lib; then
  18136. x_includes="/opt/X11/include"
  18137. x_libraries="/opt/X11/lib"
  18138. fi
  18139. ;;
  18140. esac
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18142. $as_echo_n "checking for X... " >&6; }
  18143. # Check whether --with-x was given.
  18144. if test "${with_x+set}" = set; then :
  18145. withval=$with_x;
  18146. fi
  18147. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18148. if test "x$with_x" = xno; then
  18149. # The user explicitly disabled X.
  18150. have_x=disabled
  18151. else
  18152. case $x_includes,$x_libraries in #(
  18153. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18154. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18155. $as_echo_n "(cached) " >&6
  18156. else
  18157. # One or both of the vars are not set, and there is no cached value.
  18158. ac_x_includes=no
  18159. ac_x_libraries=no
  18160. # Do we need to do anything special at all?
  18161. ac_save_LIBS=$LIBS
  18162. LIBS="-lX11 $LIBS"
  18163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18164. /* end confdefs.h. */
  18165. #include <X11/Xlib.h>
  18166. int
  18167. main ()
  18168. {
  18169. XrmInitialize ()
  18170. ;
  18171. return 0;
  18172. }
  18173. _ACEOF
  18174. if ac_fn_c_try_link "$LINENO"; then :
  18175. # We can compile and link X programs with no special options.
  18176. ac_x_includes=
  18177. ac_x_libraries=
  18178. fi
  18179. rm -f core conftest.err conftest.$ac_objext \
  18180. conftest$ac_exeext conftest.$ac_ext
  18181. LIBS="$ac_save_LIBS"
  18182. # If that didn't work, only try xmkmf and filesystem searches
  18183. # for native compilation.
  18184. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18185. rm -f -r conftest.dir
  18186. if mkdir conftest.dir; then
  18187. cd conftest.dir
  18188. cat >Imakefile <<'_ACEOF'
  18189. incroot:
  18190. @echo incroot='${INCROOT}'
  18191. usrlibdir:
  18192. @echo usrlibdir='${USRLIBDIR}'
  18193. libdir:
  18194. @echo libdir='${LIBDIR}'
  18195. _ACEOF
  18196. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18197. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18198. for ac_var in incroot usrlibdir libdir; do
  18199. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18200. done
  18201. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18202. for ac_extension in a so sl dylib la dll; do
  18203. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18204. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18205. ac_im_usrlibdir=$ac_im_libdir; break
  18206. fi
  18207. done
  18208. # Screen out bogus values from the imake configuration. They are
  18209. # bogus both because they are the default anyway, and because
  18210. # using them would break gcc on systems where it needs fixed includes.
  18211. case $ac_im_incroot in
  18212. /usr/include) ac_x_includes= ;;
  18213. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18214. esac
  18215. case $ac_im_usrlibdir in
  18216. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18217. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18218. esac
  18219. fi
  18220. cd ..
  18221. rm -f -r conftest.dir
  18222. fi
  18223. # Standard set of common directories for X headers.
  18224. # Check X11 before X11Rn because it is often a symlink to the current release.
  18225. ac_x_header_dirs='
  18226. /usr/X11/include
  18227. /usr/X11R7/include
  18228. /usr/X11R6/include
  18229. /usr/X11R5/include
  18230. /usr/X11R4/include
  18231. /usr/include/X11
  18232. /usr/include/X11R7
  18233. /usr/include/X11R6
  18234. /usr/include/X11R5
  18235. /usr/include/X11R4
  18236. /usr/local/X11/include
  18237. /usr/local/X11R7/include
  18238. /usr/local/X11R6/include
  18239. /usr/local/X11R5/include
  18240. /usr/local/X11R4/include
  18241. /usr/local/include/X11
  18242. /usr/local/include/X11R7
  18243. /usr/local/include/X11R6
  18244. /usr/local/include/X11R5
  18245. /usr/local/include/X11R4
  18246. /opt/X11/include
  18247. /usr/X386/include
  18248. /usr/x386/include
  18249. /usr/XFree86/include/X11
  18250. /usr/include
  18251. /usr/local/include
  18252. /usr/unsupported/include
  18253. /usr/athena/include
  18254. /usr/local/x11r5/include
  18255. /usr/lpp/Xamples/include
  18256. /usr/openwin/include
  18257. /usr/openwin/share/include'
  18258. if test "$ac_x_includes" = no; then
  18259. # Guess where to find include files, by looking for Xlib.h.
  18260. # First, try using that file with no special directory specified.
  18261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18262. /* end confdefs.h. */
  18263. #include <X11/Xlib.h>
  18264. _ACEOF
  18265. if ac_fn_c_try_cpp "$LINENO"; then :
  18266. # We can compile using X headers with no special include directory.
  18267. ac_x_includes=
  18268. else
  18269. for ac_dir in $ac_x_header_dirs; do
  18270. if test -r "$ac_dir/X11/Xlib.h"; then
  18271. ac_x_includes=$ac_dir
  18272. break
  18273. fi
  18274. done
  18275. fi
  18276. rm -f conftest.err conftest.i conftest.$ac_ext
  18277. fi # $ac_x_includes = no
  18278. if test "$ac_x_libraries" = no; then
  18279. # Check for the libraries.
  18280. # See if we find them without any special options.
  18281. # Don't add to $LIBS permanently.
  18282. ac_save_LIBS=$LIBS
  18283. LIBS="-lX11 $LIBS"
  18284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18285. /* end confdefs.h. */
  18286. #include <X11/Xlib.h>
  18287. int
  18288. main ()
  18289. {
  18290. XrmInitialize ()
  18291. ;
  18292. return 0;
  18293. }
  18294. _ACEOF
  18295. if ac_fn_c_try_link "$LINENO"; then :
  18296. LIBS=$ac_save_LIBS
  18297. # We can link X programs with no special library path.
  18298. ac_x_libraries=
  18299. else
  18300. LIBS=$ac_save_LIBS
  18301. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18302. do
  18303. # Don't even attempt the hair of trying to link an X program!
  18304. for ac_extension in a so sl dylib la dll; do
  18305. if test -r "$ac_dir/libX11.$ac_extension"; then
  18306. ac_x_libraries=$ac_dir
  18307. break 2
  18308. fi
  18309. done
  18310. done
  18311. fi
  18312. rm -f core conftest.err conftest.$ac_objext \
  18313. conftest$ac_exeext conftest.$ac_ext
  18314. fi # $ac_x_libraries = no
  18315. fi
  18316. # Record the results.
  18317. case $ac_x_includes,$ac_x_libraries in #(
  18318. no,* | *,no | *\'*) :
  18319. # Didn't find X, or a directory has "'" in its name.
  18320. ac_cv_have_x="have_x=no" ;; #(
  18321. *) :
  18322. # Record where we found X for the cache.
  18323. ac_cv_have_x="have_x=yes\
  18324. ac_x_includes='$ac_x_includes'\
  18325. ac_x_libraries='$ac_x_libraries'" ;;
  18326. esac
  18327. fi
  18328. ;; #(
  18329. *) have_x=yes;;
  18330. esac
  18331. eval "$ac_cv_have_x"
  18332. fi # $with_x != no
  18333. if test "$have_x" != yes; then
  18334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18335. $as_echo "$have_x" >&6; }
  18336. no_x=yes
  18337. else
  18338. # If each of the values was on the command line, it overrides each guess.
  18339. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18340. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18341. # Update the cache value to reflect the command line values.
  18342. ac_cv_have_x="have_x=yes\
  18343. ac_x_includes='$x_includes'\
  18344. ac_x_libraries='$x_libraries'"
  18345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18346. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18347. fi
  18348. if test "$no_x" = yes; then
  18349. # Not all programs may use this symbol, but it does not hurt to define it.
  18350. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18351. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18352. else
  18353. if test -n "$x_includes"; then
  18354. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18355. fi
  18356. # It would also be nice to do this for all -L options, not just this one.
  18357. if test -n "$x_libraries"; then
  18358. X_LIBS="$X_LIBS -L$x_libraries"
  18359. # For Solaris; some versions of Sun CC require a space after -R and
  18360. # others require no space. Words are not sufficient . . . .
  18361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18362. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18363. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18364. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18365. ac_c_werror_flag=yes
  18366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18367. /* end confdefs.h. */
  18368. int
  18369. main ()
  18370. {
  18371. ;
  18372. return 0;
  18373. }
  18374. _ACEOF
  18375. if ac_fn_c_try_link "$LINENO"; then :
  18376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18377. $as_echo "no" >&6; }
  18378. X_LIBS="$X_LIBS -R$x_libraries"
  18379. else
  18380. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18382. /* end confdefs.h. */
  18383. int
  18384. main ()
  18385. {
  18386. ;
  18387. return 0;
  18388. }
  18389. _ACEOF
  18390. if ac_fn_c_try_link "$LINENO"; then :
  18391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18392. $as_echo "yes" >&6; }
  18393. X_LIBS="$X_LIBS -R $x_libraries"
  18394. else
  18395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18396. $as_echo "neither works" >&6; }
  18397. fi
  18398. rm -f core conftest.err conftest.$ac_objext \
  18399. conftest$ac_exeext conftest.$ac_ext
  18400. fi
  18401. rm -f core conftest.err conftest.$ac_objext \
  18402. conftest$ac_exeext conftest.$ac_ext
  18403. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18404. LIBS=$ac_xsave_LIBS
  18405. fi
  18406. # Check for system-dependent libraries X programs must link with.
  18407. # Do this before checking for the system-independent R6 libraries
  18408. # (-lICE), since we may need -lsocket or whatever for X linking.
  18409. if test "$ISC" = yes; then
  18410. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18411. else
  18412. # Martyn Johnson says this is needed for Ultrix, if the X
  18413. # libraries were built with DECnet support. And Karl Berry says
  18414. # the Alpha needs dnet_stub (dnet does not exist).
  18415. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18417. /* end confdefs.h. */
  18418. /* Override any GCC internal prototype to avoid an error.
  18419. Use char because int might match the return type of a GCC
  18420. builtin and then its argument prototype would still apply. */
  18421. #ifdef __cplusplus
  18422. extern "C"
  18423. #endif
  18424. char XOpenDisplay ();
  18425. int
  18426. main ()
  18427. {
  18428. return XOpenDisplay ();
  18429. ;
  18430. return 0;
  18431. }
  18432. _ACEOF
  18433. if ac_fn_c_try_link "$LINENO"; then :
  18434. else
  18435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18436. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18437. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18438. $as_echo_n "(cached) " >&6
  18439. else
  18440. ac_check_lib_save_LIBS=$LIBS
  18441. LIBS="-ldnet $LIBS"
  18442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18443. /* end confdefs.h. */
  18444. /* Override any GCC internal prototype to avoid an error.
  18445. Use char because int might match the return type of a GCC
  18446. builtin and then its argument prototype would still apply. */
  18447. #ifdef __cplusplus
  18448. extern "C"
  18449. #endif
  18450. char dnet_ntoa ();
  18451. int
  18452. main ()
  18453. {
  18454. return dnet_ntoa ();
  18455. ;
  18456. return 0;
  18457. }
  18458. _ACEOF
  18459. if ac_fn_c_try_link "$LINENO"; then :
  18460. ac_cv_lib_dnet_dnet_ntoa=yes
  18461. else
  18462. ac_cv_lib_dnet_dnet_ntoa=no
  18463. fi
  18464. rm -f core conftest.err conftest.$ac_objext \
  18465. conftest$ac_exeext conftest.$ac_ext
  18466. LIBS=$ac_check_lib_save_LIBS
  18467. fi
  18468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18469. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18470. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18471. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18472. fi
  18473. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18475. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18476. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18477. $as_echo_n "(cached) " >&6
  18478. else
  18479. ac_check_lib_save_LIBS=$LIBS
  18480. LIBS="-ldnet_stub $LIBS"
  18481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18482. /* end confdefs.h. */
  18483. /* Override any GCC internal prototype to avoid an error.
  18484. Use char because int might match the return type of a GCC
  18485. builtin and then its argument prototype would still apply. */
  18486. #ifdef __cplusplus
  18487. extern "C"
  18488. #endif
  18489. char dnet_ntoa ();
  18490. int
  18491. main ()
  18492. {
  18493. return dnet_ntoa ();
  18494. ;
  18495. return 0;
  18496. }
  18497. _ACEOF
  18498. if ac_fn_c_try_link "$LINENO"; then :
  18499. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18500. else
  18501. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18502. fi
  18503. rm -f core conftest.err conftest.$ac_objext \
  18504. conftest$ac_exeext conftest.$ac_ext
  18505. LIBS=$ac_check_lib_save_LIBS
  18506. fi
  18507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18508. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18509. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18510. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18511. fi
  18512. fi
  18513. fi
  18514. rm -f core conftest.err conftest.$ac_objext \
  18515. conftest$ac_exeext conftest.$ac_ext
  18516. LIBS="$ac_xsave_LIBS"
  18517. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18518. # to get the SysV transport functions.
  18519. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18520. # needs -lnsl.
  18521. # The nsl library prevents programs from opening the X display
  18522. # on Irix 5.2, according to T.E. Dickey.
  18523. # The functions gethostbyname, getservbyname, and inet_addr are
  18524. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18525. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18526. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18527. fi
  18528. if test $ac_cv_func_gethostbyname = no; then
  18529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18530. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18531. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18532. $as_echo_n "(cached) " >&6
  18533. else
  18534. ac_check_lib_save_LIBS=$LIBS
  18535. LIBS="-lnsl $LIBS"
  18536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18537. /* end confdefs.h. */
  18538. /* Override any GCC internal prototype to avoid an error.
  18539. Use char because int might match the return type of a GCC
  18540. builtin and then its argument prototype would still apply. */
  18541. #ifdef __cplusplus
  18542. extern "C"
  18543. #endif
  18544. char gethostbyname ();
  18545. int
  18546. main ()
  18547. {
  18548. return gethostbyname ();
  18549. ;
  18550. return 0;
  18551. }
  18552. _ACEOF
  18553. if ac_fn_c_try_link "$LINENO"; then :
  18554. ac_cv_lib_nsl_gethostbyname=yes
  18555. else
  18556. ac_cv_lib_nsl_gethostbyname=no
  18557. fi
  18558. rm -f core conftest.err conftest.$ac_objext \
  18559. conftest$ac_exeext conftest.$ac_ext
  18560. LIBS=$ac_check_lib_save_LIBS
  18561. fi
  18562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18563. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18564. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18565. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18566. fi
  18567. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18569. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18570. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18571. $as_echo_n "(cached) " >&6
  18572. else
  18573. ac_check_lib_save_LIBS=$LIBS
  18574. LIBS="-lbsd $LIBS"
  18575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18576. /* end confdefs.h. */
  18577. /* Override any GCC internal prototype to avoid an error.
  18578. Use char because int might match the return type of a GCC
  18579. builtin and then its argument prototype would still apply. */
  18580. #ifdef __cplusplus
  18581. extern "C"
  18582. #endif
  18583. char gethostbyname ();
  18584. int
  18585. main ()
  18586. {
  18587. return gethostbyname ();
  18588. ;
  18589. return 0;
  18590. }
  18591. _ACEOF
  18592. if ac_fn_c_try_link "$LINENO"; then :
  18593. ac_cv_lib_bsd_gethostbyname=yes
  18594. else
  18595. ac_cv_lib_bsd_gethostbyname=no
  18596. fi
  18597. rm -f core conftest.err conftest.$ac_objext \
  18598. conftest$ac_exeext conftest.$ac_ext
  18599. LIBS=$ac_check_lib_save_LIBS
  18600. fi
  18601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18602. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18603. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18604. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18605. fi
  18606. fi
  18607. fi
  18608. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18609. # socket/setsockopt and other routines are undefined under SCO ODT
  18610. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18611. # on later versions), says Simon Leinen: it contains gethostby*
  18612. # variants that don't use the name server (or something). -lsocket
  18613. # must be given before -lnsl if both are needed. We assume that
  18614. # if connect needs -lnsl, so does gethostbyname.
  18615. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18616. if test "x$ac_cv_func_connect" = xyes; then :
  18617. fi
  18618. if test $ac_cv_func_connect = no; then
  18619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18620. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18621. if ${ac_cv_lib_socket_connect+:} false; then :
  18622. $as_echo_n "(cached) " >&6
  18623. else
  18624. ac_check_lib_save_LIBS=$LIBS
  18625. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18627. /* end confdefs.h. */
  18628. /* Override any GCC internal prototype to avoid an error.
  18629. Use char because int might match the return type of a GCC
  18630. builtin and then its argument prototype would still apply. */
  18631. #ifdef __cplusplus
  18632. extern "C"
  18633. #endif
  18634. char connect ();
  18635. int
  18636. main ()
  18637. {
  18638. return connect ();
  18639. ;
  18640. return 0;
  18641. }
  18642. _ACEOF
  18643. if ac_fn_c_try_link "$LINENO"; then :
  18644. ac_cv_lib_socket_connect=yes
  18645. else
  18646. ac_cv_lib_socket_connect=no
  18647. fi
  18648. rm -f core conftest.err conftest.$ac_objext \
  18649. conftest$ac_exeext conftest.$ac_ext
  18650. LIBS=$ac_check_lib_save_LIBS
  18651. fi
  18652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18653. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18654. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18655. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18656. fi
  18657. fi
  18658. # Guillermo Gomez says -lposix is necessary on A/UX.
  18659. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18660. if test "x$ac_cv_func_remove" = xyes; then :
  18661. fi
  18662. if test $ac_cv_func_remove = no; then
  18663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18664. $as_echo_n "checking for remove in -lposix... " >&6; }
  18665. if ${ac_cv_lib_posix_remove+:} false; then :
  18666. $as_echo_n "(cached) " >&6
  18667. else
  18668. ac_check_lib_save_LIBS=$LIBS
  18669. LIBS="-lposix $LIBS"
  18670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18671. /* end confdefs.h. */
  18672. /* Override any GCC internal prototype to avoid an error.
  18673. Use char because int might match the return type of a GCC
  18674. builtin and then its argument prototype would still apply. */
  18675. #ifdef __cplusplus
  18676. extern "C"
  18677. #endif
  18678. char remove ();
  18679. int
  18680. main ()
  18681. {
  18682. return remove ();
  18683. ;
  18684. return 0;
  18685. }
  18686. _ACEOF
  18687. if ac_fn_c_try_link "$LINENO"; then :
  18688. ac_cv_lib_posix_remove=yes
  18689. else
  18690. ac_cv_lib_posix_remove=no
  18691. fi
  18692. rm -f core conftest.err conftest.$ac_objext \
  18693. conftest$ac_exeext conftest.$ac_ext
  18694. LIBS=$ac_check_lib_save_LIBS
  18695. fi
  18696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18697. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18698. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18699. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18700. fi
  18701. fi
  18702. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18703. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18704. if test "x$ac_cv_func_shmat" = xyes; then :
  18705. fi
  18706. if test $ac_cv_func_shmat = no; then
  18707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18708. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18709. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18710. $as_echo_n "(cached) " >&6
  18711. else
  18712. ac_check_lib_save_LIBS=$LIBS
  18713. LIBS="-lipc $LIBS"
  18714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18715. /* end confdefs.h. */
  18716. /* Override any GCC internal prototype to avoid an error.
  18717. Use char because int might match the return type of a GCC
  18718. builtin and then its argument prototype would still apply. */
  18719. #ifdef __cplusplus
  18720. extern "C"
  18721. #endif
  18722. char shmat ();
  18723. int
  18724. main ()
  18725. {
  18726. return shmat ();
  18727. ;
  18728. return 0;
  18729. }
  18730. _ACEOF
  18731. if ac_fn_c_try_link "$LINENO"; then :
  18732. ac_cv_lib_ipc_shmat=yes
  18733. else
  18734. ac_cv_lib_ipc_shmat=no
  18735. fi
  18736. rm -f core conftest.err conftest.$ac_objext \
  18737. conftest$ac_exeext conftest.$ac_ext
  18738. LIBS=$ac_check_lib_save_LIBS
  18739. fi
  18740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18741. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18742. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18743. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18744. fi
  18745. fi
  18746. fi
  18747. # Check for libraries that X11R6 Xt/Xaw programs need.
  18748. ac_save_LDFLAGS=$LDFLAGS
  18749. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18750. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18751. # check for ICE first), but we must link in the order -lSM -lICE or
  18752. # we get undefined symbols. So assume we have SM if we have ICE.
  18753. # These have to be linked with before -lX11, unlike the other
  18754. # libraries we check for below, so use a different variable.
  18755. # John Interrante, Karl Berry
  18756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18757. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18758. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18759. $as_echo_n "(cached) " >&6
  18760. else
  18761. ac_check_lib_save_LIBS=$LIBS
  18762. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18764. /* end confdefs.h. */
  18765. /* Override any GCC internal prototype to avoid an error.
  18766. Use char because int might match the return type of a GCC
  18767. builtin and then its argument prototype would still apply. */
  18768. #ifdef __cplusplus
  18769. extern "C"
  18770. #endif
  18771. char IceConnectionNumber ();
  18772. int
  18773. main ()
  18774. {
  18775. return IceConnectionNumber ();
  18776. ;
  18777. return 0;
  18778. }
  18779. _ACEOF
  18780. if ac_fn_c_try_link "$LINENO"; then :
  18781. ac_cv_lib_ICE_IceConnectionNumber=yes
  18782. else
  18783. ac_cv_lib_ICE_IceConnectionNumber=no
  18784. fi
  18785. rm -f core conftest.err conftest.$ac_objext \
  18786. conftest$ac_exeext conftest.$ac_ext
  18787. LIBS=$ac_check_lib_save_LIBS
  18788. fi
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18790. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18791. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18792. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18793. fi
  18794. LDFLAGS=$ac_save_LDFLAGS
  18795. fi
  18796. if test x$have_x = xyes; then
  18797. # Check whether --enable-x11-shared was given.
  18798. if test "${enable_x11_shared+set}" = set; then :
  18799. enableval=$enable_x11_shared;
  18800. else
  18801. enable_x11_shared=maybe
  18802. fi
  18803. case "$host" in
  18804. *-*-darwin*)
  18805. # Apple now puts this in /opt/X11
  18806. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18807. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18808. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18809. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18810. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18811. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18812. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18813. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18814. ;;
  18815. *-*-openbsd*)
  18816. x11_lib='libX11.so'
  18817. x11ext_lib='libXext.so'
  18818. xcursor_lib='libXcursor.so'
  18819. xinput_lib='libXi.so'
  18820. xfixes_lib='libXfixes.so'
  18821. xrandr_lib='libXrandr.so'
  18822. xrender_lib='libXrender.so'
  18823. xss_lib='libXss.so'
  18824. ;;
  18825. *)
  18826. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18827. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18828. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18829. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18830. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18831. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18832. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18833. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18834. ;;
  18835. esac
  18836. if test x$ac_cv_func_shmat != xyes; then
  18837. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18838. fi
  18839. CFLAGS="$CFLAGS $X_CFLAGS"
  18840. LDFLAGS="$LDFLAGS $X_LIBS"
  18841. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18842. #include <X11/Xproto.h>
  18843. "
  18844. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18845. have_xext_h_hdr=yes
  18846. else
  18847. have_xext_h_hdr=no
  18848. fi
  18849. if test x$have_xext_h_hdr != xyes; then
  18850. as_fn_error $? "
  18851. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18852. " "$LINENO" 5
  18853. fi
  18854. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18855. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18856. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18857. # Needed so SDL applications can include SDL_syswm.h
  18858. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18859. if test x$enable_x11_shared = xmaybe; then
  18860. enable_x11_shared=yes
  18861. fi
  18862. if test x$have_loadso != xyes && \
  18863. test x$enable_x11_shared = xyes; then
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18865. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18866. enable_x11_shared=no
  18867. fi
  18868. if test x$have_loadso = xyes && \
  18869. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18870. echo "-- dynamic libX11 -> $x11_lib"
  18871. echo "-- dynamic libX11ext -> $x11ext_lib"
  18872. cat >>confdefs.h <<_ACEOF
  18873. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18874. _ACEOF
  18875. cat >>confdefs.h <<_ACEOF
  18876. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18877. _ACEOF
  18878. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18879. else
  18880. enable_x11_shared=no
  18881. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18882. SUMMARY_video="${SUMMARY_video} x11"
  18883. fi
  18884. have_video=yes
  18885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18886. $as_echo_n "checking for XGenericEvent... " >&6; }
  18887. have_XGenericEvent=no
  18888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18889. /* end confdefs.h. */
  18890. #include <X11/Xlib.h>
  18891. int
  18892. main ()
  18893. {
  18894. Display *display;
  18895. XEvent event;
  18896. XGenericEventCookie *cookie = &event.xcookie;
  18897. XNextEvent(display, &event);
  18898. XGetEventData(display, cookie);
  18899. XFreeEventData(display, cookie);
  18900. ;
  18901. return 0;
  18902. }
  18903. _ACEOF
  18904. if ac_fn_c_try_compile "$LINENO"; then :
  18905. have_XGenericEvent=yes
  18906. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18907. fi
  18908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18910. $as_echo "$have_XGenericEvent" >&6; }
  18911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18912. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18913. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18914. $as_echo_n "(cached) " >&6
  18915. else
  18916. ac_check_lib_save_LIBS=$LIBS
  18917. LIBS="-lX11 $LIBS"
  18918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18919. /* end confdefs.h. */
  18920. /* Override any GCC internal prototype to avoid an error.
  18921. Use char because int might match the return type of a GCC
  18922. builtin and then its argument prototype would still apply. */
  18923. #ifdef __cplusplus
  18924. extern "C"
  18925. #endif
  18926. char XkbKeycodeToKeysym ();
  18927. int
  18928. main ()
  18929. {
  18930. return XkbKeycodeToKeysym ();
  18931. ;
  18932. return 0;
  18933. }
  18934. _ACEOF
  18935. if ac_fn_c_try_link "$LINENO"; then :
  18936. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18937. else
  18938. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18939. fi
  18940. rm -f core conftest.err conftest.$ac_objext \
  18941. conftest$ac_exeext conftest.$ac_ext
  18942. LIBS=$ac_check_lib_save_LIBS
  18943. fi
  18944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18945. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18946. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18947. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18948. fi
  18949. # Check whether --enable-video-x11-xcursor was given.
  18950. if test "${enable_video_x11_xcursor+set}" = set; then :
  18951. enableval=$enable_video_x11_xcursor;
  18952. else
  18953. enable_video_x11_xcursor=yes
  18954. fi
  18955. if test x$enable_video_x11_xcursor = xyes; then
  18956. definitely_enable_video_x11_xcursor=no
  18957. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18958. "
  18959. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18960. have_xcursor_h_hdr=yes
  18961. else
  18962. have_xcursor_h_hdr=no
  18963. fi
  18964. if test x$have_xcursor_h_hdr = xyes; then
  18965. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18966. echo "-- dynamic libXcursor -> $xcursor_lib"
  18967. cat >>confdefs.h <<_ACEOF
  18968. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18969. _ACEOF
  18970. definitely_enable_video_x11_xcursor=yes
  18971. else
  18972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18973. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18974. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18975. $as_echo_n "(cached) " >&6
  18976. else
  18977. ac_check_lib_save_LIBS=$LIBS
  18978. LIBS="-lXcursor $LIBS"
  18979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18980. /* end confdefs.h. */
  18981. /* Override any GCC internal prototype to avoid an error.
  18982. Use char because int might match the return type of a GCC
  18983. builtin and then its argument prototype would still apply. */
  18984. #ifdef __cplusplus
  18985. extern "C"
  18986. #endif
  18987. char XcursorImageCreate ();
  18988. int
  18989. main ()
  18990. {
  18991. return XcursorImageCreate ();
  18992. ;
  18993. return 0;
  18994. }
  18995. _ACEOF
  18996. if ac_fn_c_try_link "$LINENO"; then :
  18997. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18998. else
  18999. ac_cv_lib_Xcursor_XcursorImageCreate=no
  19000. fi
  19001. rm -f core conftest.err conftest.$ac_objext \
  19002. conftest$ac_exeext conftest.$ac_ext
  19003. LIBS=$ac_check_lib_save_LIBS
  19004. fi
  19005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  19006. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  19007. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  19008. have_xcursor_lib=yes
  19009. fi
  19010. if test x$have_xcursor_lib = xyes ; then
  19011. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  19012. definitely_enable_video_x11_xcursor=yes
  19013. fi
  19014. fi
  19015. fi
  19016. fi
  19017. if test x$definitely_enable_video_x11_xcursor = xyes; then
  19018. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  19019. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  19020. fi
  19021. # Check whether --enable-video-x11-xdbe was given.
  19022. if test "${enable_video_x11_xdbe+set}" = set; then :
  19023. enableval=$enable_video_x11_xdbe;
  19024. else
  19025. enable_video_x11_xdbe=yes
  19026. fi
  19027. if test x$enable_video_x11_xdbe = xyes; then
  19028. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  19029. "
  19030. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  19031. have_dbe_h_hdr=yes
  19032. else
  19033. have_dbe_h_hdr=no
  19034. fi
  19035. if test x$have_dbe_h_hdr = xyes; then
  19036. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19037. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19038. fi
  19039. fi
  19040. # Check whether --enable-video-x11-xinput was given.
  19041. if test "${enable_video_x11_xinput+set}" = set; then :
  19042. enableval=$enable_video_x11_xinput;
  19043. else
  19044. enable_video_x11_xinput=yes
  19045. fi
  19046. if test x$enable_video_x11_xinput = xyes; then
  19047. definitely_enable_video_x11_xinput=no
  19048. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19049. "
  19050. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19051. have_xinput_h_hdr=yes
  19052. else
  19053. have_xinput_h_hdr=no
  19054. fi
  19055. if test x$have_xinput_h_hdr = xyes; then
  19056. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19057. echo "-- dynamic libXi -> $xinput_lib"
  19058. cat >>confdefs.h <<_ACEOF
  19059. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19060. _ACEOF
  19061. definitely_enable_video_x11_xinput=yes
  19062. else
  19063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19064. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19065. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19066. $as_echo_n "(cached) " >&6
  19067. else
  19068. ac_check_lib_save_LIBS=$LIBS
  19069. LIBS="-lXi $LIBS"
  19070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19071. /* end confdefs.h. */
  19072. /* Override any GCC internal prototype to avoid an error.
  19073. Use char because int might match the return type of a GCC
  19074. builtin and then its argument prototype would still apply. */
  19075. #ifdef __cplusplus
  19076. extern "C"
  19077. #endif
  19078. char XOpenDevice ();
  19079. int
  19080. main ()
  19081. {
  19082. return XOpenDevice ();
  19083. ;
  19084. return 0;
  19085. }
  19086. _ACEOF
  19087. if ac_fn_c_try_link "$LINENO"; then :
  19088. ac_cv_lib_Xi_XOpenDevice=yes
  19089. else
  19090. ac_cv_lib_Xi_XOpenDevice=no
  19091. fi
  19092. rm -f core conftest.err conftest.$ac_objext \
  19093. conftest$ac_exeext conftest.$ac_ext
  19094. LIBS=$ac_check_lib_save_LIBS
  19095. fi
  19096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19097. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19098. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19099. have_xinput_lib=yes
  19100. fi
  19101. if test x$have_xinput_lib = xyes ; then
  19102. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19103. definitely_enable_video_x11_xinput=yes
  19104. fi
  19105. fi
  19106. fi
  19107. fi
  19108. if test x$definitely_enable_video_x11_xinput = xyes; then
  19109. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19110. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19112. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19113. have_xinput2_multitouch=no
  19114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19115. /* end confdefs.h. */
  19116. #include <X11/Xlib.h>
  19117. #include <X11/Xproto.h>
  19118. #include <X11/extensions/XInput2.h>
  19119. int
  19120. main ()
  19121. {
  19122. int event_type = XI_TouchBegin;
  19123. XITouchClassInfo *t;
  19124. ;
  19125. return 0;
  19126. }
  19127. _ACEOF
  19128. if ac_fn_c_try_compile "$LINENO"; then :
  19129. have_xinput2_multitouch=yes
  19130. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19131. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19132. fi
  19133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19135. $as_echo "$have_xinput2_multitouch" >&6; }
  19136. fi
  19137. # Check whether --enable-video-x11-xfixes was given.
  19138. if test "${enable_video_x11_xfixes+set}" = set; then :
  19139. enableval=$enable_video_x11_xfixes;
  19140. else
  19141. enable_video_x11_xfixes=yes
  19142. fi
  19143. if test x$enable_video_x11_xfixes = xyes; then
  19144. definitely_enable_video_x11_xfixes=no
  19145. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19147. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19149. /* end confdefs.h. */
  19150. #include <X11/Xlib.h>
  19151. #include <X11/Xproto.h>
  19152. #include <X11/extensions/XInput2.h>
  19153. #include <X11/extensions/Xfixes.h>
  19154. int
  19155. main ()
  19156. {
  19157. BarrierEventID b;
  19158. ;
  19159. return 0;
  19160. }
  19161. _ACEOF
  19162. if ac_fn_c_try_compile "$LINENO"; then :
  19163. have_xfixes_h_hdr=yes
  19164. else
  19165. have_xfixes_h_hdr=no
  19166. fi
  19167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19169. $as_echo "$have_xfixes_h_hdr" >&6; }
  19170. if test x$have_xfixes_h_hdr = xyes; then
  19171. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19172. echo "-- dynamic libXfixes -> $xfixes_lib"
  19173. cat >>confdefs.h <<_ACEOF
  19174. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19175. _ACEOF
  19176. definitely_enable_video_x11_xfixes=yes
  19177. else
  19178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19179. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19180. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19181. $as_echo_n "(cached) " >&6
  19182. else
  19183. ac_check_lib_save_LIBS=$LIBS
  19184. LIBS="-lXfixes $LIBS"
  19185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19186. /* end confdefs.h. */
  19187. /* Override any GCC internal prototype to avoid an error.
  19188. Use char because int might match the return type of a GCC
  19189. builtin and then its argument prototype would still apply. */
  19190. #ifdef __cplusplus
  19191. extern "C"
  19192. #endif
  19193. char XFixesCreatePointerBarrier ();
  19194. int
  19195. main ()
  19196. {
  19197. return XFixesCreatePointerBarrier ();
  19198. ;
  19199. return 0;
  19200. }
  19201. _ACEOF
  19202. if ac_fn_c_try_link "$LINENO"; then :
  19203. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19204. else
  19205. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19206. fi
  19207. rm -f core conftest.err conftest.$ac_objext \
  19208. conftest$ac_exeext conftest.$ac_ext
  19209. LIBS=$ac_check_lib_save_LIBS
  19210. fi
  19211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19212. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19213. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19214. have_xfixes_lib=yes
  19215. fi
  19216. if test x$have_xfixes_lib = xyes ; then
  19217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19218. definitely_enable_video_x11_xfixes=yes
  19219. fi
  19220. fi
  19221. fi
  19222. fi
  19223. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19224. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19225. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19226. fi
  19227. # Check whether --enable-video-x11-xrandr was given.
  19228. if test "${enable_video_x11_xrandr+set}" = set; then :
  19229. enableval=$enable_video_x11_xrandr;
  19230. else
  19231. enable_video_x11_xrandr=yes
  19232. fi
  19233. if test x$enable_video_x11_xrandr = xyes; then
  19234. definitely_enable_video_x11_xrandr=no
  19235. have_xrandr_h_hdr=no
  19236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19237. /* end confdefs.h. */
  19238. #include <X11/Xlib.h>
  19239. #include <X11/extensions/Xrandr.h>
  19240. int
  19241. main ()
  19242. {
  19243. XRRScreenResources *res = NULL;
  19244. ;
  19245. return 0;
  19246. }
  19247. _ACEOF
  19248. if ac_fn_c_try_compile "$LINENO"; then :
  19249. have_xrandr_h_hdr=yes
  19250. fi
  19251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19252. if test x$have_xrandr_h_hdr = xyes; then
  19253. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19254. echo "-- dynamic libXrandr -> $xrandr_lib"
  19255. cat >>confdefs.h <<_ACEOF
  19256. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19257. _ACEOF
  19258. definitely_enable_video_x11_xrandr=yes
  19259. else
  19260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19261. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19262. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19263. $as_echo_n "(cached) " >&6
  19264. else
  19265. ac_check_lib_save_LIBS=$LIBS
  19266. LIBS="-lXrandr $LIBS"
  19267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19268. /* end confdefs.h. */
  19269. /* Override any GCC internal prototype to avoid an error.
  19270. Use char because int might match the return type of a GCC
  19271. builtin and then its argument prototype would still apply. */
  19272. #ifdef __cplusplus
  19273. extern "C"
  19274. #endif
  19275. char XRRQueryExtension ();
  19276. int
  19277. main ()
  19278. {
  19279. return XRRQueryExtension ();
  19280. ;
  19281. return 0;
  19282. }
  19283. _ACEOF
  19284. if ac_fn_c_try_link "$LINENO"; then :
  19285. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19286. else
  19287. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19288. fi
  19289. rm -f core conftest.err conftest.$ac_objext \
  19290. conftest$ac_exeext conftest.$ac_ext
  19291. LIBS=$ac_check_lib_save_LIBS
  19292. fi
  19293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19294. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19295. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19296. have_xrandr_lib=yes
  19297. fi
  19298. if test x$have_xrandr_lib = xyes ; then
  19299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19300. definitely_enable_video_x11_xrandr=yes
  19301. fi
  19302. fi
  19303. fi
  19304. fi
  19305. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19306. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19307. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19308. fi
  19309. # Check whether --enable-video-x11-scrnsaver was given.
  19310. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19311. enableval=$enable_video_x11_scrnsaver;
  19312. else
  19313. enable_video_x11_scrnsaver=yes
  19314. fi
  19315. if test x$enable_video_x11_scrnsaver = xyes; then
  19316. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19317. "
  19318. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19319. have_scrnsaver_h_hdr=yes
  19320. else
  19321. have_scrnsaver_h_hdr=no
  19322. fi
  19323. if test x$have_scrnsaver_h_hdr = xyes; then
  19324. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19325. echo "-- dynamic libXss -> $xss_lib"
  19326. cat >>confdefs.h <<_ACEOF
  19327. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19328. _ACEOF
  19329. definitely_enable_video_x11_scrnsaver=yes
  19330. else
  19331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19332. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19333. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19334. $as_echo_n "(cached) " >&6
  19335. else
  19336. ac_check_lib_save_LIBS=$LIBS
  19337. LIBS="-lXss $LIBS"
  19338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19339. /* end confdefs.h. */
  19340. /* Override any GCC internal prototype to avoid an error.
  19341. Use char because int might match the return type of a GCC
  19342. builtin and then its argument prototype would still apply. */
  19343. #ifdef __cplusplus
  19344. extern "C"
  19345. #endif
  19346. char XScreenSaverSuspend ();
  19347. int
  19348. main ()
  19349. {
  19350. return XScreenSaverSuspend ();
  19351. ;
  19352. return 0;
  19353. }
  19354. _ACEOF
  19355. if ac_fn_c_try_link "$LINENO"; then :
  19356. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19357. else
  19358. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19359. fi
  19360. rm -f core conftest.err conftest.$ac_objext \
  19361. conftest$ac_exeext conftest.$ac_ext
  19362. LIBS=$ac_check_lib_save_LIBS
  19363. fi
  19364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19365. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19366. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19367. have_xss_lib=yes
  19368. fi
  19369. if test x$have_xss_lib = xyes ; then
  19370. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19371. definitely_enable_video_x11_scrnsaver=yes
  19372. fi
  19373. fi
  19374. fi
  19375. fi
  19376. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19377. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19378. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19379. fi
  19380. # Check whether --enable-video-x11-xshape was given.
  19381. if test "${enable_video_x11_xshape+set}" = set; then :
  19382. enableval=$enable_video_x11_xshape;
  19383. else
  19384. enable_video_x11_xshape=yes
  19385. fi
  19386. if test x$enable_video_x11_xshape = xyes; then
  19387. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19388. "
  19389. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19390. have_shape_h_hdr=yes
  19391. else
  19392. have_shape_h_hdr=no
  19393. fi
  19394. if test x$have_shape_h_hdr = xyes; then
  19395. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19396. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19397. fi
  19398. fi
  19399. fi
  19400. fi
  19401. if test x$have_x != xyes; then
  19402. # Prevent Mesa from including X11 headers
  19403. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19404. fi
  19405. }
  19406. CheckVivanteVideo()
  19407. {
  19408. # Check whether --enable-video-vivante was given.
  19409. if test "${enable_video_vivante+set}" = set; then :
  19410. enableval=$enable_video_vivante;
  19411. else
  19412. enable_video_vivante=yes
  19413. fi
  19414. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19416. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19417. have_vivante_vdk=no
  19418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19419. /* end confdefs.h. */
  19420. #define LINUX
  19421. #define EGL_API_FB
  19422. #include <gc_vdk.h>
  19423. int
  19424. main ()
  19425. {
  19426. ;
  19427. return 0;
  19428. }
  19429. _ACEOF
  19430. if ac_fn_c_try_compile "$LINENO"; then :
  19431. have_vivante_vdk=yes
  19432. fi
  19433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19435. $as_echo "$have_vivante_vdk" >&6; }
  19436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19437. $as_echo_n "checking for Vivante FB API... " >&6; }
  19438. have_vivante_egl=no
  19439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19440. /* end confdefs.h. */
  19441. #define LINUX
  19442. #define EGL_API_FB
  19443. #include <EGL/eglvivante.h>
  19444. int
  19445. main ()
  19446. {
  19447. ;
  19448. return 0;
  19449. }
  19450. _ACEOF
  19451. if ac_fn_c_try_compile "$LINENO"; then :
  19452. have_vivante_egl=yes
  19453. fi
  19454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19456. $as_echo "$have_vivante_egl" >&6; }
  19457. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19458. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19459. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19460. if test x$have_vivante_vdk = xyes; then
  19461. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19463. fi
  19464. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19465. SUMMARY_video="${SUMMARY_video} vivante"
  19466. have_video=yes
  19467. fi
  19468. fi
  19469. }
  19470. CheckHaikuVideo()
  19471. {
  19472. if test x$enable_video = xyes; then
  19473. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19474. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19475. have_video=yes
  19476. SUMMARY_video="${SUMMARY_video} haiku"
  19477. fi
  19478. }
  19479. CheckCOCOA()
  19480. {
  19481. # Check whether --enable-video-cocoa was given.
  19482. if test "${enable_video_cocoa+set}" = set; then :
  19483. enableval=$enable_video_cocoa;
  19484. else
  19485. enable_video_cocoa=yes
  19486. fi
  19487. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19488. save_CFLAGS="$CFLAGS"
  19489. CFLAGS="$CFLAGS -x objective-c"
  19490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19491. $as_echo_n "checking for Cocoa framework... " >&6; }
  19492. have_cocoa=no
  19493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19494. /* end confdefs.h. */
  19495. #import <Cocoa/Cocoa.h>
  19496. int
  19497. main ()
  19498. {
  19499. ;
  19500. return 0;
  19501. }
  19502. _ACEOF
  19503. if ac_fn_c_try_compile "$LINENO"; then :
  19504. have_cocoa=yes
  19505. fi
  19506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19508. $as_echo "$have_cocoa" >&6; }
  19509. CFLAGS="$save_CFLAGS"
  19510. if test x$have_cocoa = xyes; then
  19511. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19512. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19513. SUMMARY_video="${SUMMARY_video} cocoa"
  19514. have_video=yes
  19515. fi
  19516. fi
  19517. }
  19518. CheckMETAL()
  19519. {
  19520. # Check whether --enable-video-metal was given.
  19521. if test "${enable_video_metal+set}" = set; then :
  19522. enableval=$enable_video_metal;
  19523. else
  19524. enable_video_metal=yes
  19525. fi
  19526. # Check whether --enable-render-metal was given.
  19527. if test "${enable_render_metal+set}" = set; then :
  19528. enableval=$enable_render_metal;
  19529. else
  19530. enable_render_metal=yes
  19531. fi
  19532. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19533. save_CFLAGS="$CFLAGS"
  19534. CFLAGS="$CFLAGS -x objective-c"
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19536. $as_echo_n "checking for Metal framework... " >&6; }
  19537. have_metal=no
  19538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19539. /* end confdefs.h. */
  19540. #import <Cocoa/Cocoa.h>
  19541. #import <Metal/Metal.h>
  19542. #import <QuartzCore/CAMetalLayer.h>
  19543. #if TARGET_CPU_X86
  19544. #error Metal doesn't work on this configuration
  19545. #endif
  19546. int
  19547. main ()
  19548. {
  19549. ;
  19550. return 0;
  19551. }
  19552. _ACEOF
  19553. if ac_fn_c_try_compile "$LINENO"; then :
  19554. have_metal=yes
  19555. fi
  19556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19557. CFLAGS="$save_CFLAGS"
  19558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19559. $as_echo "$have_metal" >&6; }
  19560. if test x$have_metal = xyes; then
  19561. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19562. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19563. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19564. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19565. fi
  19566. SUMMARY_video="${SUMMARY_video} metal"
  19567. else
  19568. enable_video_metal=no
  19569. enable_render_metal=no
  19570. fi
  19571. fi
  19572. }
  19573. CheckDirectFB()
  19574. {
  19575. # Check whether --enable-video-directfb was given.
  19576. if test "${enable_video_directfb+set}" = set; then :
  19577. enableval=$enable_video_directfb;
  19578. else
  19579. enable_video_directfb=no
  19580. fi
  19581. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19582. pkg_failed=no
  19583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19584. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19585. if test -n "$DIRECTFB_CFLAGS"; then
  19586. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19587. elif test -n "$PKG_CONFIG"; then
  19588. if test -n "$PKG_CONFIG" && \
  19589. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19590. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19591. ac_status=$?
  19592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19593. test $ac_status = 0; }; then
  19594. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19595. test "x$?" != "x0" && pkg_failed=yes
  19596. else
  19597. pkg_failed=yes
  19598. fi
  19599. else
  19600. pkg_failed=untried
  19601. fi
  19602. if test -n "$DIRECTFB_LIBS"; then
  19603. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19604. elif test -n "$PKG_CONFIG"; then
  19605. if test -n "$PKG_CONFIG" && \
  19606. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19607. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19608. ac_status=$?
  19609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19610. test $ac_status = 0; }; then
  19611. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19612. test "x$?" != "x0" && pkg_failed=yes
  19613. else
  19614. pkg_failed=yes
  19615. fi
  19616. else
  19617. pkg_failed=untried
  19618. fi
  19619. if test $pkg_failed = yes; then
  19620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19621. $as_echo "no" >&6; }
  19622. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19623. _pkg_short_errors_supported=yes
  19624. else
  19625. _pkg_short_errors_supported=no
  19626. fi
  19627. if test $_pkg_short_errors_supported = yes; then
  19628. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19629. else
  19630. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19631. fi
  19632. # Put the nasty error message in config.log where it belongs
  19633. echo "$DIRECTFB_PKG_ERRORS" >&5
  19634. video_directfb=no
  19635. elif test $pkg_failed = untried; then
  19636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19637. $as_echo "no" >&6; }
  19638. video_directfb=no
  19639. else
  19640. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19641. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19643. $as_echo "yes" >&6; }
  19644. video_directfb=yes
  19645. fi
  19646. if test x$video_directfb = xyes; then
  19647. # SuSE 11.1 installs directfb-config without directfb-devel
  19648. save_CPPFLAGS="$CPPFLAGS"
  19649. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19650. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19651. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19652. have_directfb_hdr=yes
  19653. else
  19654. have_directfb_hdr=no
  19655. fi
  19656. CPPFLAGS="$save_CPPFLAGS"
  19657. video_directfb=$have_directfb_hdr
  19658. fi
  19659. if test x$video_directfb = xyes; then
  19660. # Check whether --enable-directfb-shared was given.
  19661. if test "${enable_directfb_shared+set}" = set; then :
  19662. enableval=$enable_directfb_shared;
  19663. else
  19664. enable_directfb_shared=yes
  19665. fi
  19666. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19667. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19668. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19669. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19670. directfb_shared=no
  19671. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19672. if test x$have_loadso != xyes && \
  19673. test x$enable_directfb_shared = xyes; then
  19674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19675. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19676. fi
  19677. if test x$have_loadso = xyes && \
  19678. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19679. directfb_shared=yes
  19680. echo "-- dynamic libdirectfb -> $directfb_lib"
  19681. cat >>confdefs.h <<_ACEOF
  19682. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19683. _ACEOF
  19684. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19685. else
  19686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19687. SUMMARY_video="${SUMMARY_video} directfb"
  19688. fi
  19689. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19690. have_video=yes
  19691. fi
  19692. fi
  19693. }
  19694. CheckKMSDRM()
  19695. {
  19696. # Check whether --enable-video-kmsdrm was given.
  19697. if test "${enable_video_kmsdrm+set}" = set; then :
  19698. enableval=$enable_video_kmsdrm;
  19699. else
  19700. enable_video_kmsdrm=yes
  19701. fi
  19702. if test x$enable_video = xyes && \
  19703. test x$enable_video_kmsdrm = xyes && \
  19704. test x$video_opengl_egl = xyes; then
  19705. video_kmsdrm=no
  19706. pkg_failed=no
  19707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19708. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19709. if test -n "$LIBDRM_CFLAGS"; then
  19710. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19711. elif test -n "$PKG_CONFIG"; then
  19712. if test -n "$PKG_CONFIG" && \
  19713. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19714. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19715. ac_status=$?
  19716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19717. test $ac_status = 0; }; then
  19718. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19719. test "x$?" != "x0" && pkg_failed=yes
  19720. else
  19721. pkg_failed=yes
  19722. fi
  19723. else
  19724. pkg_failed=untried
  19725. fi
  19726. if test -n "$LIBDRM_LIBS"; then
  19727. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19728. elif test -n "$PKG_CONFIG"; then
  19729. if test -n "$PKG_CONFIG" && \
  19730. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19731. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19732. ac_status=$?
  19733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19734. test $ac_status = 0; }; then
  19735. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19736. test "x$?" != "x0" && pkg_failed=yes
  19737. else
  19738. pkg_failed=yes
  19739. fi
  19740. else
  19741. pkg_failed=untried
  19742. fi
  19743. if test $pkg_failed = yes; then
  19744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19745. $as_echo "no" >&6; }
  19746. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19747. _pkg_short_errors_supported=yes
  19748. else
  19749. _pkg_short_errors_supported=no
  19750. fi
  19751. if test $_pkg_short_errors_supported = yes; then
  19752. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19753. else
  19754. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19755. fi
  19756. # Put the nasty error message in config.log where it belongs
  19757. echo "$LIBDRM_PKG_ERRORS" >&5
  19758. libdrm_avail=no
  19759. elif test $pkg_failed = untried; then
  19760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19761. $as_echo "no" >&6; }
  19762. libdrm_avail=no
  19763. else
  19764. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19765. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19767. $as_echo "yes" >&6; }
  19768. libdrm_avail=yes
  19769. fi
  19770. pkg_failed=no
  19771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19772. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19773. if test -n "$LIBGBM_CFLAGS"; then
  19774. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19775. elif test -n "$PKG_CONFIG"; then
  19776. if test -n "$PKG_CONFIG" && \
  19777. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19778. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19779. ac_status=$?
  19780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19781. test $ac_status = 0; }; then
  19782. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19783. test "x$?" != "x0" && pkg_failed=yes
  19784. else
  19785. pkg_failed=yes
  19786. fi
  19787. else
  19788. pkg_failed=untried
  19789. fi
  19790. if test -n "$LIBGBM_LIBS"; then
  19791. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19792. elif test -n "$PKG_CONFIG"; then
  19793. if test -n "$PKG_CONFIG" && \
  19794. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19795. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19796. ac_status=$?
  19797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19798. test $ac_status = 0; }; then
  19799. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19800. test "x$?" != "x0" && pkg_failed=yes
  19801. else
  19802. pkg_failed=yes
  19803. fi
  19804. else
  19805. pkg_failed=untried
  19806. fi
  19807. if test $pkg_failed = yes; then
  19808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19809. $as_echo "no" >&6; }
  19810. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19811. _pkg_short_errors_supported=yes
  19812. else
  19813. _pkg_short_errors_supported=no
  19814. fi
  19815. if test $_pkg_short_errors_supported = yes; then
  19816. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19817. else
  19818. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19819. fi
  19820. # Put the nasty error message in config.log where it belongs
  19821. echo "$LIBGBM_PKG_ERRORS" >&5
  19822. libgbm_avail=no
  19823. elif test $pkg_failed = untried; then
  19824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19825. $as_echo "no" >&6; }
  19826. libgbm_avail=no
  19827. else
  19828. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19829. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19831. $as_echo "yes" >&6; }
  19832. libgbm_avail=yes
  19833. fi
  19834. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19835. video_kmsdrm=yes
  19836. fi
  19837. if test x$video_kmsdrm = xyes; then
  19838. # Check whether --enable-kmsdrm-shared was given.
  19839. if test "${enable_kmsdrm_shared+set}" = set; then :
  19840. enableval=$enable_kmsdrm_shared;
  19841. else
  19842. enable_kmsdrm_shared=yes
  19843. fi
  19844. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19845. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19846. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19848. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19849. kmsdrm_shared=no
  19850. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19851. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19852. if test x$have_loadso != xyes && \
  19853. test x$enable_kmsdrm_shared = xyes; then
  19854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19855. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19856. fi
  19857. if test x$have_loadso = xyes && \
  19858. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19859. kmsdrm_shared=yes
  19860. cat >>confdefs.h <<_ACEOF
  19861. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19862. _ACEOF
  19863. cat >>confdefs.h <<_ACEOF
  19864. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19865. _ACEOF
  19866. cat >>confdefs.h <<_ACEOF
  19867. #define HAVE_KMSDRM_SHARED "TRUE"
  19868. _ACEOF
  19869. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19870. else
  19871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19872. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19873. fi
  19874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19875. $as_echo "$kmsdrm_shared" >&6; }
  19876. if test x$kmsdrm_shared = xyes; then
  19877. echo "-- dynamic libdrm -> $drm_lib"
  19878. echo "-- dynamic libgbm -> $gbm_lib"
  19879. fi
  19880. have_video=yes
  19881. fi
  19882. fi
  19883. }
  19884. CheckDummyVideo()
  19885. {
  19886. # Check whether --enable-video-dummy was given.
  19887. if test "${enable_video_dummy+set}" = set; then :
  19888. enableval=$enable_video_dummy;
  19889. else
  19890. enable_video_dummy=yes
  19891. fi
  19892. if test x$enable_video_dummy = xyes; then
  19893. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19894. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19895. have_video=yes
  19896. SUMMARY_video="${SUMMARY_video} dummy"
  19897. fi
  19898. }
  19899. CheckOffscreenVideo()
  19900. {
  19901. # Check whether --enable-video-offscreen was given.
  19902. if test "${enable_video_offscreen+set}" = set; then :
  19903. enableval=$enable_video_offscreen;
  19904. else
  19905. enable_video_offscreen=no
  19906. fi
  19907. if test x$enable_video_offscreen = xyes; then
  19908. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19909. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19910. have_video=yes
  19911. SUMMARY_video="${SUMMARY_video} offscreen"
  19912. fi
  19913. }
  19914. CheckQNXVideo()
  19915. {
  19916. if test x$enable_video = xyes; then
  19917. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19918. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19919. have_video=yes
  19920. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19921. SUMMARY_video="${SUMMARY_video} qnx"
  19922. fi
  19923. }
  19924. CheckQNXAudio()
  19925. {
  19926. if test x$enable_audio = xyes; then
  19927. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19928. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19929. have_audio=yes
  19930. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19931. SUMMARY_audio="${SUMMARY_audio} qsa"
  19932. fi
  19933. }
  19934. # Check whether --enable-video-opengl was given.
  19935. if test "${enable_video_opengl+set}" = set; then :
  19936. enableval=$enable_video_opengl;
  19937. else
  19938. enable_video_opengl=yes
  19939. fi
  19940. CheckGLX()
  19941. {
  19942. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19944. $as_echo_n "checking for GLX support... " >&6; }
  19945. video_opengl_glx=no
  19946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19947. /* end confdefs.h. */
  19948. #include <GL/glx.h>
  19949. int
  19950. main ()
  19951. {
  19952. ;
  19953. return 0;
  19954. }
  19955. _ACEOF
  19956. if ac_fn_c_try_compile "$LINENO"; then :
  19957. video_opengl_glx=yes
  19958. fi
  19959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19961. $as_echo "$video_opengl_glx" >&6; }
  19962. if test x$video_opengl_glx = xyes; then
  19963. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19964. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19965. fi
  19966. fi
  19967. }
  19968. # Check whether --enable-video-opengles was given.
  19969. if test "${enable_video_opengles+set}" = set; then :
  19970. enableval=$enable_video_opengles;
  19971. else
  19972. enable_video_opengles=yes
  19973. fi
  19974. # Check whether --enable-video-opengles1 was given.
  19975. if test "${enable_video_opengles1+set}" = set; then :
  19976. enableval=$enable_video_opengles1;
  19977. else
  19978. enable_video_opengles1=yes
  19979. fi
  19980. # Check whether --enable-video-opengles2 was given.
  19981. if test "${enable_video_opengles2+set}" = set; then :
  19982. enableval=$enable_video_opengles2;
  19983. else
  19984. enable_video_opengles2=yes
  19985. fi
  19986. CheckEGL()
  19987. {
  19988. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19990. $as_echo_n "checking for EGL support... " >&6; }
  19991. video_opengl_egl=no
  19992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19993. /* end confdefs.h. */
  19994. #define LINUX
  19995. #define EGL_API_FB
  19996. #define MESA_EGL_NO_X11_HEADERS
  19997. #define EGL_NO_X11
  19998. #include <EGL/egl.h>
  19999. #include <EGL/eglext.h>
  20000. int
  20001. main ()
  20002. {
  20003. ;
  20004. return 0;
  20005. }
  20006. _ACEOF
  20007. if ac_fn_c_try_compile "$LINENO"; then :
  20008. video_opengl_egl=yes
  20009. fi
  20010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20012. $as_echo "$video_opengl_egl" >&6; }
  20013. if test x$video_opengl_egl = xyes; then
  20014. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20015. fi
  20016. fi
  20017. }
  20018. CheckOpenGL()
  20019. {
  20020. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20022. $as_echo_n "checking for OpenGL headers... " >&6; }
  20023. video_opengl=no
  20024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20025. /* end confdefs.h. */
  20026. #include <GL/gl.h>
  20027. #include <GL/glext.h>
  20028. int
  20029. main ()
  20030. {
  20031. ;
  20032. return 0;
  20033. }
  20034. _ACEOF
  20035. if ac_fn_c_try_compile "$LINENO"; then :
  20036. video_opengl=yes
  20037. fi
  20038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20040. $as_echo "$video_opengl" >&6; }
  20041. if test x$video_opengl = xyes; then
  20042. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20043. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20044. SUMMARY_video="${SUMMARY_video} opengl"
  20045. fi
  20046. fi
  20047. }
  20048. CheckOpenGLES()
  20049. {
  20050. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20051. if test x$enable_video_opengles1 = xyes; then
  20052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20053. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20054. video_opengles_v1=no
  20055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20056. /* end confdefs.h. */
  20057. #include <GLES/gl.h>
  20058. #include <GLES/glext.h>
  20059. int
  20060. main ()
  20061. {
  20062. ;
  20063. return 0;
  20064. }
  20065. _ACEOF
  20066. if ac_fn_c_try_compile "$LINENO"; then :
  20067. video_opengles_v1=yes
  20068. fi
  20069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20071. $as_echo "$video_opengles_v1" >&6; }
  20072. if test x$video_opengles_v1 = xyes; then
  20073. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20074. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20075. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20076. fi
  20077. fi
  20078. if test x$enable_video_opengles2 = xyes; then
  20079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20080. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20081. video_opengles_v2=no
  20082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20083. /* end confdefs.h. */
  20084. #include <GLES2/gl2.h>
  20085. #include <GLES2/gl2ext.h>
  20086. int
  20087. main ()
  20088. {
  20089. ;
  20090. return 0;
  20091. }
  20092. _ACEOF
  20093. if ac_fn_c_try_compile "$LINENO"; then :
  20094. video_opengles_v2=yes
  20095. fi
  20096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20098. $as_echo "$video_opengles_v2" >&6; }
  20099. if test x$video_opengles_v2 = xyes; then
  20100. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20101. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20102. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20103. fi
  20104. fi
  20105. fi
  20106. }
  20107. CheckWINDOWSGL()
  20108. {
  20109. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20110. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20111. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20112. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20113. SUMMARY_video="${SUMMARY_video} opengl"
  20114. fi
  20115. }
  20116. CheckWINDOWSGLES()
  20117. {
  20118. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20120. $as_echo_n "checking for EGL support... " >&6; }
  20121. video_opengl_egl=no
  20122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20123. /* end confdefs.h. */
  20124. #include <EGL/egl.h>
  20125. int
  20126. main ()
  20127. {
  20128. ;
  20129. return 0;
  20130. }
  20131. _ACEOF
  20132. if ac_fn_c_try_compile "$LINENO"; then :
  20133. video_opengl_egl=yes
  20134. fi
  20135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20137. $as_echo "$video_opengl_egl" >&6; }
  20138. if test x$video_opengl_egl = xyes; then
  20139. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20140. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20141. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20142. fi
  20143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20144. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20145. video_opengles_v2=no
  20146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20147. /* end confdefs.h. */
  20148. #include <GLES2/gl2.h>
  20149. #include <GLES2/gl2ext.h>
  20150. int
  20151. main ()
  20152. {
  20153. ;
  20154. return 0;
  20155. }
  20156. _ACEOF
  20157. if ac_fn_c_try_compile "$LINENO"; then :
  20158. video_opengles_v2=yes
  20159. fi
  20160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20162. $as_echo "$video_opengles_v2" >&6; }
  20163. if test x$video_opengles_v2 = xyes; then
  20164. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20165. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20166. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20167. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20168. fi
  20169. fi
  20170. }
  20171. CheckHaikuGL()
  20172. {
  20173. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20174. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20175. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20176. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20177. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20178. SUMMARY_video="${SUMMARY_video} opengl"
  20179. fi
  20180. }
  20181. CheckMacGL()
  20182. {
  20183. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20184. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20185. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20186. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20187. SUMMARY_video="${SUMMARY_video} opengl"
  20188. fi
  20189. }
  20190. CheckMacGLES()
  20191. {
  20192. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20193. video_opengl_egl=yes
  20194. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20195. video_opengles_v2=yes
  20196. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20197. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20198. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20199. fi
  20200. }
  20201. CheckEmscriptenGLES()
  20202. {
  20203. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20205. $as_echo_n "checking for EGL support... " >&6; }
  20206. video_opengl_egl=no
  20207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20208. /* end confdefs.h. */
  20209. #include <EGL/egl.h>
  20210. int
  20211. main ()
  20212. {
  20213. ;
  20214. return 0;
  20215. }
  20216. _ACEOF
  20217. if ac_fn_c_try_compile "$LINENO"; then :
  20218. video_opengl_egl=yes
  20219. fi
  20220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20222. $as_echo "$video_opengl_egl" >&6; }
  20223. if test x$video_opengl_egl = xyes; then
  20224. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20225. fi
  20226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20227. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20228. video_opengles_v2=no
  20229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20230. /* end confdefs.h. */
  20231. #include <GLES2/gl2.h>
  20232. #include <GLES2/gl2ext.h>
  20233. int
  20234. main ()
  20235. {
  20236. ;
  20237. return 0;
  20238. }
  20239. _ACEOF
  20240. if ac_fn_c_try_compile "$LINENO"; then :
  20241. video_opengles_v2=yes
  20242. fi
  20243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20245. $as_echo "$video_opengles_v2" >&6; }
  20246. if test x$video_opengles_v2 = xyes; then
  20247. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20248. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20249. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20250. fi
  20251. fi
  20252. }
  20253. # Check whether --enable-video-vulkan was given.
  20254. if test "${enable_video_vulkan+set}" = set; then :
  20255. enableval=$enable_video_vulkan;
  20256. else
  20257. enable_video_vulkan=yes
  20258. fi
  20259. CheckVulkan()
  20260. {
  20261. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20262. case "$host" in
  20263. *-*-android*)
  20264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20265. /* end confdefs.h. */
  20266. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20267. #error Vulkan doesn't work on this configuration
  20268. #endif
  20269. int
  20270. main ()
  20271. {
  20272. ;
  20273. return 0;
  20274. }
  20275. _ACEOF
  20276. if ac_fn_c_try_compile "$LINENO"; then :
  20277. else
  20278. enable_video_vulkan=no
  20279. fi
  20280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20281. ;;
  20282. *-*-darwin*)
  20283. save_CFLAGS="$CFLAGS"
  20284. CFLAGS="$CFLAGS -x objective-c"
  20285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20286. /* end confdefs.h. */
  20287. #include <Cocoa/Cocoa.h>
  20288. #include <Metal/Metal.h>
  20289. #include <QuartzCore/CAMetalLayer.h>
  20290. #if TARGET_CPU_X86
  20291. #error Vulkan doesn't work on this configuration
  20292. #endif
  20293. int
  20294. main ()
  20295. {
  20296. ;
  20297. return 0;
  20298. }
  20299. _ACEOF
  20300. if ac_fn_c_try_compile "$LINENO"; then :
  20301. else
  20302. enable_video_vulkan=no
  20303. fi
  20304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20305. CFLAGS="$save_CFLAGS"
  20306. ;;
  20307. *)
  20308. ;;
  20309. esac
  20310. if test x$enable_video_vulkan = xno; then
  20311. # For reasons I am totally unable to see, I get an undefined macro error if
  20312. # I put this in the AC_TRY_COMPILE.
  20313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20314. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20315. fi
  20316. fi
  20317. if test x$have_loadso != xyes; then
  20318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20319. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20320. enable_video_vulkan=no
  20321. fi
  20322. if test x$enable_video_vulkan = xyes; then
  20323. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20324. SUMMARY_video="${SUMMARY_video} vulkan"
  20325. fi
  20326. }
  20327. CheckInputEvents()
  20328. {
  20329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20330. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20331. use_input_events=no
  20332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20333. /* end confdefs.h. */
  20334. #include <linux/input.h>
  20335. int
  20336. main ()
  20337. {
  20338. #ifndef EVIOCGNAME
  20339. #error EVIOCGNAME() ioctl not available
  20340. #endif
  20341. ;
  20342. return 0;
  20343. }
  20344. _ACEOF
  20345. if ac_fn_c_try_compile "$LINENO"; then :
  20346. use_input_events=yes
  20347. fi
  20348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20350. $as_echo "$use_input_events" >&6; }
  20351. if test x$use_input_events = xyes; then
  20352. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20353. SUMMARY_input="${SUMMARY_input} linuxev"
  20354. fi
  20355. }
  20356. CheckInputKD()
  20357. {
  20358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20359. $as_echo_n "checking for Linux kd.h... " >&6; }
  20360. use_input_kd=no
  20361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20362. /* end confdefs.h. */
  20363. #include <linux/kd.h>
  20364. #include <linux/keyboard.h>
  20365. int
  20366. main ()
  20367. {
  20368. struct kbentry kbe;
  20369. kbe.kb_table = KG_CTRL;
  20370. ioctl(0, KDGKBENT, &kbe);
  20371. ;
  20372. return 0;
  20373. }
  20374. _ACEOF
  20375. if ac_fn_c_try_compile "$LINENO"; then :
  20376. use_input_kd=yes
  20377. fi
  20378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20380. $as_echo "$use_input_kd" >&6; }
  20381. if test x$use_input_kd = xyes; then
  20382. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20383. SUMMARY_input="${SUMMARY_input} linuxkd"
  20384. fi
  20385. }
  20386. CheckInputKBIO()
  20387. {
  20388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20389. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20390. use_input_kbio=no
  20391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20392. /* end confdefs.h. */
  20393. #include <sys/kbio.h>
  20394. #include <sys/ioctl.h>
  20395. int
  20396. main ()
  20397. {
  20398. accentmap_t accTable;
  20399. ioctl(0, KDENABIO, 1);
  20400. ;
  20401. return 0;
  20402. }
  20403. _ACEOF
  20404. if ac_fn_c_try_compile "$LINENO"; then :
  20405. use_input_kbio=yes
  20406. fi
  20407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20409. $as_echo "$use_input_kbio" >&6; }
  20410. if test x$use_input_kbio = xyes; then
  20411. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20412. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20413. fi
  20414. }
  20415. CheckInputWSCONS()
  20416. {
  20417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20418. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20419. use_input_wscons=no
  20420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20421. /* end confdefs.h. */
  20422. #include <sys/time.h>
  20423. #include <dev/wscons/wsconsio.h>
  20424. #include <dev/wscons/wsksymdef.h>
  20425. #include <dev/wscons/wsksymvar.h>
  20426. #include <sys/ioctl.h>
  20427. int
  20428. main ()
  20429. {
  20430. struct wskbd_map_data data;
  20431. ioctl(0, WSKBDIO_GETMAP, &data);
  20432. ;
  20433. return 0;
  20434. }
  20435. _ACEOF
  20436. if ac_fn_c_try_compile "$LINENO"; then :
  20437. use_input_wscons=yes
  20438. fi
  20439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20441. $as_echo "$use_input_wscons" >&6; }
  20442. if test x$use_input_wscons = xyes; then
  20443. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20444. SUMMARY_input="${SUMMARY_input} wscons"
  20445. fi
  20446. }
  20447. CheckLibUDev()
  20448. {
  20449. # Check whether --enable-libudev was given.
  20450. if test "${enable_libudev+set}" = set; then :
  20451. enableval=$enable_libudev;
  20452. else
  20453. enable_libudev=yes
  20454. fi
  20455. if test x$enable_libudev = xyes; then
  20456. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20457. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20458. have_libudev_h_hdr=yes
  20459. else
  20460. have_libudev_h_hdr=no
  20461. fi
  20462. if test x$have_libudev_h_hdr = xyes; then
  20463. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20464. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20465. if test x$udev_lib != x; then
  20466. echo "-- dynamic udev -> $udev_lib"
  20467. cat >>confdefs.h <<_ACEOF
  20468. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20469. _ACEOF
  20470. fi
  20471. fi
  20472. fi
  20473. }
  20474. CheckDBus()
  20475. {
  20476. # Check whether --enable-dbus was given.
  20477. if test "${enable_dbus+set}" = set; then :
  20478. enableval=$enable_dbus;
  20479. else
  20480. enable_dbus=yes
  20481. fi
  20482. if test x$enable_dbus = xyes; then
  20483. pkg_failed=no
  20484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20485. $as_echo_n "checking for dbus-1... " >&6; }
  20486. if test -n "$DBUS_CFLAGS"; then
  20487. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20488. elif test -n "$PKG_CONFIG"; then
  20489. if test -n "$PKG_CONFIG" && \
  20490. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20491. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20492. ac_status=$?
  20493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20494. test $ac_status = 0; }; then
  20495. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20496. test "x$?" != "x0" && pkg_failed=yes
  20497. else
  20498. pkg_failed=yes
  20499. fi
  20500. else
  20501. pkg_failed=untried
  20502. fi
  20503. if test -n "$DBUS_LIBS"; then
  20504. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20505. elif test -n "$PKG_CONFIG"; then
  20506. if test -n "$PKG_CONFIG" && \
  20507. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20508. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20509. ac_status=$?
  20510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20511. test $ac_status = 0; }; then
  20512. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20513. test "x$?" != "x0" && pkg_failed=yes
  20514. else
  20515. pkg_failed=yes
  20516. fi
  20517. else
  20518. pkg_failed=untried
  20519. fi
  20520. if test $pkg_failed = yes; then
  20521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20522. $as_echo "no" >&6; }
  20523. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20524. _pkg_short_errors_supported=yes
  20525. else
  20526. _pkg_short_errors_supported=no
  20527. fi
  20528. if test $_pkg_short_errors_supported = yes; then
  20529. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20530. else
  20531. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20532. fi
  20533. # Put the nasty error message in config.log where it belongs
  20534. echo "$DBUS_PKG_ERRORS" >&5
  20535. have_dbus=no
  20536. elif test $pkg_failed = untried; then
  20537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20538. $as_echo "no" >&6; }
  20539. have_dbus=no
  20540. else
  20541. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20542. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20544. $as_echo "yes" >&6; }
  20545. have_dbus=yes
  20546. fi
  20547. save_CPPFLAGS="$CPPFLAGS"
  20548. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20549. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20550. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20551. have_dbus_dbus_h_hdr=yes
  20552. else
  20553. have_dbus_dbus_h_hdr=no
  20554. fi
  20555. CPPFLAGS="$save_CPPFLAGS"
  20556. if test x$have_dbus_dbus_h_hdr = xyes; then
  20557. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20558. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20559. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20560. fi
  20561. fi
  20562. }
  20563. CheckIME()
  20564. {
  20565. # Check whether --enable-ime was given.
  20566. if test "${enable_ime+set}" = set; then :
  20567. enableval=$enable_ime;
  20568. else
  20569. enable_ime=yes
  20570. fi
  20571. if test x$enable_ime = xyes; then
  20572. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20573. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20574. fi
  20575. }
  20576. CheckInotify()
  20577. {
  20578. save_LIBS="$LIBS"
  20579. case "$host" in
  20580. *-*-freebsd*) LIBS="$LIBS -linotify"
  20581. ;;
  20582. esac
  20583. for ac_header in sys/inotify.h
  20584. do :
  20585. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20586. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20587. cat >>confdefs.h <<_ACEOF
  20588. #define HAVE_SYS_INOTIFY_H 1
  20589. _ACEOF
  20590. have_inotify_inotify_h_hdr=yes
  20591. fi
  20592. done
  20593. for ac_func in inotify_init
  20594. do :
  20595. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20596. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20597. cat >>confdefs.h <<_ACEOF
  20598. #define HAVE_INOTIFY_INIT 1
  20599. _ACEOF
  20600. have_inotify=yes
  20601. fi
  20602. done
  20603. for ac_func in inotify_init1
  20604. do :
  20605. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20606. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20607. cat >>confdefs.h <<_ACEOF
  20608. #define HAVE_INOTIFY_INIT1 1
  20609. _ACEOF
  20610. fi
  20611. done
  20612. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20613. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20614. case "$host" in
  20615. *-*-freebsd*)
  20616. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20617. ;;
  20618. esac
  20619. fi
  20620. LIBS="$save_LIBS"
  20621. }
  20622. CheckIBus()
  20623. {
  20624. # Check whether --enable-ibus was given.
  20625. if test "${enable_ibus+set}" = set; then :
  20626. enableval=$enable_ibus;
  20627. else
  20628. enable_ibus=yes
  20629. fi
  20630. if test x$enable_ibus = xyes; then
  20631. pkg_failed=no
  20632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20633. $as_echo_n "checking for ibus-1.0... " >&6; }
  20634. if test -n "$IBUS_CFLAGS"; then
  20635. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20636. elif test -n "$PKG_CONFIG"; then
  20637. if test -n "$PKG_CONFIG" && \
  20638. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20639. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20640. ac_status=$?
  20641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20642. test $ac_status = 0; }; then
  20643. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20644. test "x$?" != "x0" && pkg_failed=yes
  20645. else
  20646. pkg_failed=yes
  20647. fi
  20648. else
  20649. pkg_failed=untried
  20650. fi
  20651. if test -n "$IBUS_LIBS"; then
  20652. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20653. elif test -n "$PKG_CONFIG"; then
  20654. if test -n "$PKG_CONFIG" && \
  20655. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20656. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20657. ac_status=$?
  20658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20659. test $ac_status = 0; }; then
  20660. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20661. test "x$?" != "x0" && pkg_failed=yes
  20662. else
  20663. pkg_failed=yes
  20664. fi
  20665. else
  20666. pkg_failed=untried
  20667. fi
  20668. if test $pkg_failed = yes; then
  20669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20670. $as_echo "no" >&6; }
  20671. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20672. _pkg_short_errors_supported=yes
  20673. else
  20674. _pkg_short_errors_supported=no
  20675. fi
  20676. if test $_pkg_short_errors_supported = yes; then
  20677. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20678. else
  20679. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20680. fi
  20681. # Put the nasty error message in config.log where it belongs
  20682. echo "$IBUS_PKG_ERRORS" >&5
  20683. have_ibus=no
  20684. elif test $pkg_failed = untried; then
  20685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20686. $as_echo "no" >&6; }
  20687. have_ibus=no
  20688. else
  20689. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20690. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20692. $as_echo "yes" >&6; }
  20693. have_ibus=yes
  20694. fi
  20695. save_CPPFLAGS="$CPPFLAGS"
  20696. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20697. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20698. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20699. have_ibus_ibus_h_hdr=yes
  20700. else
  20701. have_ibus_ibus_h_hdr=no
  20702. fi
  20703. CPPFLAGS="$save_CPPFLAGS"
  20704. if test x$have_ibus_ibus_h_hdr = xyes; then
  20705. if test x$enable_ime != xyes; then
  20706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20707. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20708. have_ibus_ibus_h_hdr=no
  20709. elif test x$enable_dbus != xyes; then
  20710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20711. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20712. have_ibus_ibus_h_hdr=no
  20713. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20715. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20716. have_ibus_ibus_h_hdr=no
  20717. else
  20718. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20719. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20720. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20721. fi
  20722. fi
  20723. fi
  20724. }
  20725. CheckFcitx()
  20726. {
  20727. # Check whether --enable-fcitx was given.
  20728. if test "${enable_fcitx+set}" = set; then :
  20729. enableval=$enable_fcitx;
  20730. else
  20731. enable_fcitx=yes
  20732. fi
  20733. if test x$enable_fcitx = xyes; then
  20734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20735. $as_echo_n "checking for fcitx support... " >&6; }
  20736. have_fcitx=no
  20737. if test x$enable_ime != xyes; then
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20739. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20740. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20742. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20743. else
  20744. have_fcitx=yes
  20745. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20746. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20747. fi
  20748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20749. $as_echo "$have_fcitx" >&6; }
  20750. fi
  20751. }
  20752. CheckJoystickMFI()
  20753. {
  20754. # Check whether --enable-joystick-mfi was given.
  20755. if test "${enable_joystick_mfi+set}" = set; then :
  20756. enableval=$enable_joystick_mfi;
  20757. else
  20758. enable_joystick_mfi=yes
  20759. fi
  20760. if test x$enable_joystick_mfi = xyes; then
  20761. save_CFLAGS="$CFLAGS"
  20762. save_LDFLAGS="$LDFLAGS"
  20763. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20764. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20766. $as_echo_n "checking for GameController framework... " >&6; }
  20767. enable_joystick_mfi=no
  20768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20769. /* end confdefs.h. */
  20770. #include <AvailabilityMacros.h>
  20771. #include <TargetConditionals.h>
  20772. #import <GameController/GameController.h>
  20773. int
  20774. main ()
  20775. {
  20776. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20777. #error GameController framework doesn't work on this configuration
  20778. #endif
  20779. #if TARGET_CPU_X86
  20780. #error GameController framework doesn't work on this configuration
  20781. #endif
  20782. ;
  20783. return 0;
  20784. }
  20785. _ACEOF
  20786. if ac_fn_c_try_link "$LINENO"; then :
  20787. enable_joystick_mfi=yes
  20788. fi
  20789. rm -f core conftest.err conftest.$ac_objext \
  20790. conftest$ac_exeext conftest.$ac_ext
  20791. CFLAGS="$save_CFLAGS"
  20792. LDFLAGS="$save_LDFLAGS"
  20793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20794. $as_echo "$enable_joystick_mfi" >&6; }
  20795. if test x$enable_joystick_mfi = xyes; then
  20796. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20797. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20798. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20799. fi
  20800. fi
  20801. }
  20802. CheckPTHREAD()
  20803. {
  20804. case "$host" in
  20805. *-*-emscripten*)
  20806. enable_pthreads_default=no
  20807. ;;
  20808. *)
  20809. enable_pthreads_default=yes
  20810. ;;
  20811. esac
  20812. # Check whether --enable-pthreads was given.
  20813. if test "${enable_pthreads+set}" = set; then :
  20814. enableval=$enable_pthreads;
  20815. else
  20816. enable_pthreads=maybe
  20817. fi
  20818. # Check whether --enable-pthread-sem was given.
  20819. if test "${enable_pthread_sem+set}" = set; then :
  20820. enableval=$enable_pthread_sem;
  20821. else
  20822. enable_pthread_sem=maybe
  20823. fi
  20824. if test x$enable_pthreads = xmaybe; then
  20825. enable_pthreads=$enable_pthreads_default
  20826. fi
  20827. if test x$enable_pthread_sem = xmaybe; then
  20828. enable_pthread_sem=$enable_pthreads
  20829. fi
  20830. case "$host" in
  20831. *-*-android*)
  20832. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20833. pthread_lib=""
  20834. ;;
  20835. *-*-linux*|*-*-uclinux*)
  20836. pthread_cflags="-D_REENTRANT"
  20837. pthread_lib="-lpthread"
  20838. ;;
  20839. *-*-bsdi*)
  20840. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20841. pthread_lib=""
  20842. ;;
  20843. *-*-darwin*)
  20844. pthread_cflags="-D_THREAD_SAFE"
  20845. # causes Carbon.p complaints?
  20846. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20847. ;;
  20848. *-*-freebsd*|*-*-dragonfly*)
  20849. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20850. pthread_lib="-pthread"
  20851. ;;
  20852. *-*-netbsd*)
  20853. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20854. pthread_lib="-lpthread"
  20855. ;;
  20856. *-*-openbsd*)
  20857. pthread_cflags="-D_REENTRANT"
  20858. pthread_lib="-pthread"
  20859. ;;
  20860. *-*-solaris2.9)
  20861. # From Solaris 9+, posix4's preferred name is rt.
  20862. pthread_cflags="-D_REENTRANT"
  20863. pthread_lib="-lpthread -lrt"
  20864. ;;
  20865. *-*-solaris2.10)
  20866. # Solaris 10+ merged pthread into libc.
  20867. pthread_cflags="-D_REENTRANT"
  20868. pthread_lib="-lrt"
  20869. ;;
  20870. *-*-solaris*)
  20871. # Solaris 11+ merged rt into libc.
  20872. pthread_cflags="-D_REENTRANT"
  20873. pthread_lib=""
  20874. ;;
  20875. *-*-sysv5*)
  20876. pthread_cflags="-D_REENTRANT -Kthread"
  20877. pthread_lib=""
  20878. ;;
  20879. *-*-aix*)
  20880. pthread_cflags="-D_REENTRANT -mthreads"
  20881. pthread_lib="-lpthread"
  20882. ;;
  20883. *-*-hpux11*)
  20884. pthread_cflags="-D_REENTRANT"
  20885. pthread_lib="-L/usr/lib -lpthread"
  20886. ;;
  20887. *-*-haiku*)
  20888. pthread_cflags="-D_REENTRANT"
  20889. pthread_lib=""
  20890. ;;
  20891. *-*-nto*)
  20892. pthread_cflags="-D_REENTRANT"
  20893. pthread_lib=""
  20894. ;;
  20895. *-*-emscripten*)
  20896. pthread_cflags="-D_REENTRANT -pthread"
  20897. pthread_lib="-pthread"
  20898. ;;
  20899. *)
  20900. pthread_cflags="-D_REENTRANT"
  20901. pthread_lib="-lpthread"
  20902. ;;
  20903. esac
  20904. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20905. # Save the original compiler flags and libraries
  20906. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20907. # Add the pthread compiler flags and libraries
  20908. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20909. # Check to see if we have pthread support on this system
  20910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20911. $as_echo_n "checking for pthreads... " >&6; }
  20912. use_pthreads=no
  20913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20914. /* end confdefs.h. */
  20915. #include <pthread.h>
  20916. int
  20917. main ()
  20918. {
  20919. pthread_attr_t type;
  20920. pthread_attr_init(&type);
  20921. ;
  20922. return 0;
  20923. }
  20924. _ACEOF
  20925. if ac_fn_c_try_link "$LINENO"; then :
  20926. use_pthreads=yes
  20927. fi
  20928. rm -f core conftest.err conftest.$ac_objext \
  20929. conftest$ac_exeext conftest.$ac_ext
  20930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20931. $as_echo "$use_pthreads" >&6; }
  20932. # Restore the compiler flags and libraries
  20933. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20934. # Do futher testing if we have pthread support...
  20935. if test x$use_pthreads = xyes; then
  20936. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20937. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20938. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20939. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20940. # Save the original compiler flags and libraries
  20941. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20942. # Add the pthread compiler flags and libraries
  20943. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20944. # Check to see if recursive mutexes are available
  20945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20946. $as_echo_n "checking for recursive mutexes... " >&6; }
  20947. has_recursive_mutexes=no
  20948. if test x$has_recursive_mutexes = xno; then
  20949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20950. /* end confdefs.h. */
  20951. #define _GNU_SOURCE 1
  20952. #include <pthread.h>
  20953. int
  20954. main ()
  20955. {
  20956. pthread_mutexattr_t attr;
  20957. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20958. ;
  20959. return 0;
  20960. }
  20961. _ACEOF
  20962. if ac_fn_c_try_link "$LINENO"; then :
  20963. has_recursive_mutexes=yes
  20964. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20965. fi
  20966. rm -f core conftest.err conftest.$ac_objext \
  20967. conftest$ac_exeext conftest.$ac_ext
  20968. fi
  20969. if test x$has_recursive_mutexes = xno; then
  20970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20971. /* end confdefs.h. */
  20972. #define _GNU_SOURCE 1
  20973. #include <pthread.h>
  20974. int
  20975. main ()
  20976. {
  20977. pthread_mutexattr_t attr;
  20978. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20979. ;
  20980. return 0;
  20981. }
  20982. _ACEOF
  20983. if ac_fn_c_try_link "$LINENO"; then :
  20984. has_recursive_mutexes=yes
  20985. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20986. fi
  20987. rm -f core conftest.err conftest.$ac_objext \
  20988. conftest$ac_exeext conftest.$ac_ext
  20989. fi
  20990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20991. $as_echo "$has_recursive_mutexes" >&6; }
  20992. # Check to see if pthread semaphore support is missing
  20993. if test x$enable_pthread_sem = xyes; then
  20994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20995. $as_echo_n "checking for pthread semaphores... " >&6; }
  20996. have_pthread_sem=no
  20997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20998. /* end confdefs.h. */
  20999. #include <pthread.h>
  21000. #include <semaphore.h>
  21001. int
  21002. main ()
  21003. {
  21004. ;
  21005. return 0;
  21006. }
  21007. _ACEOF
  21008. if ac_fn_c_try_compile "$LINENO"; then :
  21009. have_pthread_sem=yes
  21010. fi
  21011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21013. $as_echo "$have_pthread_sem" >&6; }
  21014. fi
  21015. if test x$have_pthread_sem = xyes; then
  21016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21017. $as_echo_n "checking for sem_timedwait... " >&6; }
  21018. have_sem_timedwait=no
  21019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21020. /* end confdefs.h. */
  21021. #include <pthread.h>
  21022. #include <semaphore.h>
  21023. int
  21024. main ()
  21025. {
  21026. sem_timedwait(NULL, NULL);
  21027. ;
  21028. return 0;
  21029. }
  21030. _ACEOF
  21031. if ac_fn_c_try_link "$LINENO"; then :
  21032. have_sem_timedwait=yes
  21033. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21034. fi
  21035. rm -f core conftest.err conftest.$ac_objext \
  21036. conftest$ac_exeext conftest.$ac_ext
  21037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21038. $as_echo "$have_sem_timedwait" >&6; }
  21039. fi
  21040. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21041. "
  21042. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21043. have_pthread_np_h=yes
  21044. else
  21045. have_pthread_np_h=no
  21046. fi
  21047. if test x$have_pthread_np_h = xyes; then
  21048. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21049. fi
  21050. # Check to see if pthread naming is available
  21051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21052. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21054. /* end confdefs.h. */
  21055. /* Override any GCC internal prototype to avoid an error.
  21056. Use char because int might match the return type of a GCC
  21057. builtin and then its argument prototype would still apply. */
  21058. #ifdef __cplusplus
  21059. extern "C"
  21060. #endif
  21061. char pthread_setname_np ();
  21062. int
  21063. main ()
  21064. {
  21065. return pthread_setname_np ();
  21066. ;
  21067. return 0;
  21068. }
  21069. _ACEOF
  21070. if ac_fn_c_try_link "$LINENO"; then :
  21071. has_pthread_setname_np=yes
  21072. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21073. else
  21074. has_pthread_setname_np=no
  21075. fi
  21076. rm -f core conftest.err conftest.$ac_objext \
  21077. conftest$ac_exeext conftest.$ac_ext
  21078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21079. $as_echo "$has_pthread_setname_np" >&6; }
  21080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21081. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21083. /* end confdefs.h. */
  21084. /* Override any GCC internal prototype to avoid an error.
  21085. Use char because int might match the return type of a GCC
  21086. builtin and then its argument prototype would still apply. */
  21087. #ifdef __cplusplus
  21088. extern "C"
  21089. #endif
  21090. char pthread_set_name_np ();
  21091. int
  21092. main ()
  21093. {
  21094. return pthread_set_name_np ();
  21095. ;
  21096. return 0;
  21097. }
  21098. _ACEOF
  21099. if ac_fn_c_try_link "$LINENO"; then :
  21100. has_pthread_set_name_np=yes
  21101. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21102. else
  21103. has_pthread_set_name_np=no
  21104. fi
  21105. rm -f core conftest.err conftest.$ac_objext \
  21106. conftest$ac_exeext conftest.$ac_ext
  21107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21108. $as_echo "$has_pthread_set_name_np" >&6; }
  21109. # Restore the compiler flags and libraries
  21110. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21111. # Basic thread creation functions
  21112. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21113. # Semaphores
  21114. # We can fake these with mutexes and condition variables if necessary
  21115. if test x$have_pthread_sem = xyes; then
  21116. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21117. else
  21118. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21119. fi
  21120. # Mutexes
  21121. # We can fake these with semaphores if necessary
  21122. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21123. # Condition variables
  21124. # We can fake these with semaphores and mutexes if necessary
  21125. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21126. # Thread local storage
  21127. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21128. have_threads=yes
  21129. fi
  21130. fi
  21131. }
  21132. CheckWINDOWS()
  21133. {
  21134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21135. $as_echo_n "checking Windows compiler... " >&6; }
  21136. have_win32_gcc=no
  21137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21138. /* end confdefs.h. */
  21139. #include <windows.h>
  21140. int
  21141. main ()
  21142. {
  21143. ;
  21144. return 0;
  21145. }
  21146. _ACEOF
  21147. if ac_fn_c_try_compile "$LINENO"; then :
  21148. have_win32_gcc=yes
  21149. fi
  21150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21152. $as_echo "$have_win32_gcc" >&6; }
  21153. if test x$have_win32_gcc != xyes; then
  21154. as_fn_error $? "
  21155. *** Your compiler ($CC) does not produce Windows executables!
  21156. " "$LINENO" 5
  21157. fi
  21158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21159. $as_echo_n "checking Windows CE... " >&6; }
  21160. have_wince=no
  21161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21162. /* end confdefs.h. */
  21163. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21164. #error This is not Windows CE
  21165. #endif
  21166. int
  21167. main ()
  21168. {
  21169. ;
  21170. return 0;
  21171. }
  21172. _ACEOF
  21173. if ac_fn_c_try_compile "$LINENO"; then :
  21174. have_wince=yes
  21175. as_fn_error $? "
  21176. *** Sorry, Windows CE is no longer supported.
  21177. " "$LINENO" 5
  21178. fi
  21179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21181. $as_echo "$have_wince" >&6; }
  21182. # This fixes Windows stack alignment with newer GCC
  21183. CheckStackBoundary
  21184. # headers needed elsewhere
  21185. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21186. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21187. have_tpcshrd_h=yes
  21188. fi
  21189. if test x$have_tpcshrd_h = xyes; then
  21190. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21191. fi
  21192. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21193. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21194. have_roapi_h=yes
  21195. fi
  21196. if test x$have_roapi_h = xyes; then
  21197. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21198. fi
  21199. }
  21200. CheckOS2()
  21201. {
  21202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21203. $as_echo_n "checking OS/2 compiler... " >&6; }
  21204. have_os2_gcc=no
  21205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21206. /* end confdefs.h. */
  21207. #include <os2.h>
  21208. int
  21209. main ()
  21210. {
  21211. ;
  21212. return 0;
  21213. }
  21214. _ACEOF
  21215. if ac_fn_c_try_compile "$LINENO"; then :
  21216. have_os2_gcc=yes
  21217. fi
  21218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21220. $as_echo "$have_os2_gcc" >&6; }
  21221. if test x$have_os2_gcc != xyes; then
  21222. as_fn_error $? "
  21223. *** Your compiler ($CC) does not produce OS/2 executables!
  21224. " "$LINENO" 5
  21225. fi
  21226. }
  21227. CheckDIRECTX()
  21228. {
  21229. # Check whether --enable-directx was given.
  21230. if test "${enable_directx+set}" = set; then :
  21231. enableval=$enable_directx;
  21232. else
  21233. enable_directx=yes
  21234. fi
  21235. if test x$enable_directx = xyes; then
  21236. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21237. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21238. have_d3d=yes
  21239. fi
  21240. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21241. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21242. have_d3d11=yes
  21243. fi
  21244. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21245. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21246. have_ddraw=yes
  21247. fi
  21248. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21249. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21250. have_dsound=yes
  21251. fi
  21252. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21253. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21254. have_dinput=yes
  21255. fi
  21256. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21257. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21258. have_dxgi=yes
  21259. fi
  21260. if test x$have_ddraw = xyes; then
  21261. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21262. fi
  21263. if test x$have_dinput = xyes; then
  21264. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21265. fi
  21266. if test x$have_dsound = xyes; then
  21267. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21268. fi
  21269. if test x$have_dxgi = xyes; then
  21270. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21271. fi
  21272. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21273. # FIXME: ...so force it off for now.
  21274. case "$host" in
  21275. *-*-cygwin*)
  21276. have_dinput=false
  21277. ;;
  21278. esac
  21279. fi
  21280. # Check whether --enable-xinput was given.
  21281. if test "${enable_xinput+set}" = set; then :
  21282. enableval=$enable_xinput;
  21283. else
  21284. enable_xinput=yes
  21285. fi
  21286. if test x$enable_xinput = xyes; then
  21287. have_xinput_gamepadex=no
  21288. have_xinput_stateex=no
  21289. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21290. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21291. have_xinput=yes
  21292. fi
  21293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21294. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21296. /* end confdefs.h. */
  21297. #include <windows.h>
  21298. #include <xinput.h>
  21299. XINPUT_GAMEPAD_EX x1;
  21300. int
  21301. main ()
  21302. {
  21303. ;
  21304. return 0;
  21305. }
  21306. _ACEOF
  21307. if ac_fn_c_try_compile "$LINENO"; then :
  21308. have_xinput_gamepadex=yes
  21309. fi
  21310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21312. $as_echo "$have_xinput_gamepadex" >&6; }
  21313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21314. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21316. /* end confdefs.h. */
  21317. #include <windows.h>
  21318. #include <xinput.h>
  21319. XINPUT_STATE_EX s1;
  21320. int
  21321. main ()
  21322. {
  21323. ;
  21324. return 0;
  21325. }
  21326. _ACEOF
  21327. if ac_fn_c_try_compile "$LINENO"; then :
  21328. have_xinput_stateex=yes
  21329. fi
  21330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21332. $as_echo "$have_xinput_stateex" >&6; }
  21333. if test x$have_xinput = xyes; then
  21334. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21335. fi
  21336. if test x$have_xinput_gamepadex = xyes; then
  21337. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21338. fi
  21339. if test x$have_xinput_stateex = xyes; then
  21340. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21341. fi
  21342. fi
  21343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21344. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21346. /* end confdefs.h. */
  21347. #define COBJMACROS
  21348. #include <windows.gaming.input.h>
  21349. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21350. int
  21351. main ()
  21352. {
  21353. ;
  21354. return 0;
  21355. }
  21356. _ACEOF
  21357. if ac_fn_c_try_compile "$LINENO"; then :
  21358. have_wgi=yes
  21359. else
  21360. have_wgi=no
  21361. fi
  21362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21364. $as_echo "$have_wgi" >&6; }
  21365. if test x$have_wgi = xyes; then
  21366. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21367. fi
  21368. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21369. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21370. have_wasapi=yes
  21371. fi
  21372. if test x$have_wasapi = xyes; then
  21373. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21374. fi
  21375. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21376. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21377. else
  21378. have_wasapi=no
  21379. fi
  21380. if test x$have_wasapi = xyes; then
  21381. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21382. fi
  21383. # Check whether --enable-wasapi was given.
  21384. if test "${enable_wasapi+set}" = set; then :
  21385. enableval=$enable_wasapi;
  21386. else
  21387. enable_wasapi=yes
  21388. fi
  21389. }
  21390. CheckDLOPEN()
  21391. {
  21392. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21393. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21394. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21395. have_dlfcn_h=yes
  21396. else
  21397. have_dlfcn_h=no
  21398. fi
  21399. have_dlopen=no
  21400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21401. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21402. if ${ac_cv_lib_c_dlopen+:} false; then :
  21403. $as_echo_n "(cached) " >&6
  21404. else
  21405. ac_check_lib_save_LIBS=$LIBS
  21406. LIBS="-lc $LIBS"
  21407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21408. /* end confdefs.h. */
  21409. /* Override any GCC internal prototype to avoid an error.
  21410. Use char because int might match the return type of a GCC
  21411. builtin and then its argument prototype would still apply. */
  21412. #ifdef __cplusplus
  21413. extern "C"
  21414. #endif
  21415. char dlopen ();
  21416. int
  21417. main ()
  21418. {
  21419. return dlopen ();
  21420. ;
  21421. return 0;
  21422. }
  21423. _ACEOF
  21424. if ac_fn_c_try_link "$LINENO"; then :
  21425. ac_cv_lib_c_dlopen=yes
  21426. else
  21427. ac_cv_lib_c_dlopen=no
  21428. fi
  21429. rm -f core conftest.err conftest.$ac_objext \
  21430. conftest$ac_exeext conftest.$ac_ext
  21431. LIBS=$ac_check_lib_save_LIBS
  21432. fi
  21433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21434. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21435. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21436. have_dlopen=yes
  21437. else
  21438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21439. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21440. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21441. $as_echo_n "(cached) " >&6
  21442. else
  21443. ac_check_lib_save_LIBS=$LIBS
  21444. LIBS="-ldl $LIBS"
  21445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21446. /* end confdefs.h. */
  21447. /* Override any GCC internal prototype to avoid an error.
  21448. Use char because int might match the return type of a GCC
  21449. builtin and then its argument prototype would still apply. */
  21450. #ifdef __cplusplus
  21451. extern "C"
  21452. #endif
  21453. char dlopen ();
  21454. int
  21455. main ()
  21456. {
  21457. return dlopen ();
  21458. ;
  21459. return 0;
  21460. }
  21461. _ACEOF
  21462. if ac_fn_c_try_link "$LINENO"; then :
  21463. ac_cv_lib_dl_dlopen=yes
  21464. else
  21465. ac_cv_lib_dl_dlopen=no
  21466. fi
  21467. rm -f core conftest.err conftest.$ac_objext \
  21468. conftest$ac_exeext conftest.$ac_ext
  21469. LIBS=$ac_check_lib_save_LIBS
  21470. fi
  21471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21472. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21473. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21474. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21475. fi
  21476. fi
  21477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21478. $as_echo_n "checking for dlopen... " >&6; }
  21479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21480. $as_echo "$have_dlopen" >&6; }
  21481. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21482. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21483. if test x$enable_loadso = xyes; then
  21484. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21485. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21486. have_loadso=yes
  21487. fi
  21488. fi
  21489. }
  21490. CheckO_CLOEXEC()
  21491. {
  21492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21493. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21495. /* end confdefs.h. */
  21496. #include <fcntl.h>
  21497. int flag = O_CLOEXEC;
  21498. int
  21499. main ()
  21500. {
  21501. ;
  21502. return 0;
  21503. }
  21504. _ACEOF
  21505. if ac_fn_c_try_compile "$LINENO"; then :
  21506. have_o_cloexec=yes
  21507. else
  21508. have_o_cloexec=no
  21509. fi
  21510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21512. $as_echo "$have_o_cloexec" >&6; }
  21513. if test $have_o_cloexec = yes; then
  21514. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21515. fi
  21516. }
  21517. CheckUSBHID()
  21518. {
  21519. case "$host" in
  21520. *-*-*bsd*|*-*-dragonfly*)
  21521. if test x$enable_joystick = xyes; then
  21522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21523. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21524. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21525. $as_echo_n "(cached) " >&6
  21526. else
  21527. ac_check_lib_save_LIBS=$LIBS
  21528. LIBS="-lusbhid $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. #ifdef __cplusplus
  21535. extern "C"
  21536. #endif
  21537. char hid_init ();
  21538. int
  21539. main ()
  21540. {
  21541. return hid_init ();
  21542. ;
  21543. return 0;
  21544. }
  21545. _ACEOF
  21546. if ac_fn_c_try_link "$LINENO"; then :
  21547. ac_cv_lib_usbhid_hid_init=yes
  21548. else
  21549. ac_cv_lib_usbhid_hid_init=no
  21550. fi
  21551. rm -f core conftest.err conftest.$ac_objext \
  21552. conftest$ac_exeext conftest.$ac_ext
  21553. LIBS=$ac_check_lib_save_LIBS
  21554. fi
  21555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21556. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21557. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21558. have_libusbhid=yes
  21559. fi
  21560. if test x$have_libusbhid = xyes; then
  21561. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21562. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21563. USB_CFLAGS="-DHAVE_USBHID_H"
  21564. fi
  21565. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21566. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21567. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21568. fi
  21569. USB_LIBS="$USB_LIBS -lusbhid"
  21570. else
  21571. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21572. if test "x$ac_cv_header_usb_h" = xyes; then :
  21573. USB_CFLAGS="-DHAVE_USB_H"
  21574. fi
  21575. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21576. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21577. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21578. fi
  21579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21580. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21581. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21582. $as_echo_n "(cached) " >&6
  21583. else
  21584. ac_check_lib_save_LIBS=$LIBS
  21585. LIBS="-lusb $LIBS"
  21586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21587. /* end confdefs.h. */
  21588. /* Override any GCC internal prototype to avoid an error.
  21589. Use char because int might match the return type of a GCC
  21590. builtin and then its argument prototype would still apply. */
  21591. #ifdef __cplusplus
  21592. extern "C"
  21593. #endif
  21594. char hid_init ();
  21595. int
  21596. main ()
  21597. {
  21598. return hid_init ();
  21599. ;
  21600. return 0;
  21601. }
  21602. _ACEOF
  21603. if ac_fn_c_try_link "$LINENO"; then :
  21604. ac_cv_lib_usb_hid_init=yes
  21605. else
  21606. ac_cv_lib_usb_hid_init=no
  21607. fi
  21608. rm -f core conftest.err conftest.$ac_objext \
  21609. conftest$ac_exeext conftest.$ac_ext
  21610. LIBS=$ac_check_lib_save_LIBS
  21611. fi
  21612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21613. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21614. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21615. USB_LIBS="$USB_LIBS -lusb"
  21616. fi
  21617. fi
  21618. save_CFLAGS="$CFLAGS"
  21619. CFLAGS="$CFLAGS $USB_CFLAGS"
  21620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21621. $as_echo_n "checking for usbhid... " >&6; }
  21622. have_usbhid=no
  21623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21624. /* end confdefs.h. */
  21625. #include <sys/types.h>
  21626. #if defined(HAVE_USB_H)
  21627. #include <usb.h>
  21628. #endif
  21629. #ifdef __DragonFly__
  21630. # include <bus/u4b/usb.h>
  21631. # include <bus/u4b/usbhid.h>
  21632. #else
  21633. # include <dev/usb/usb.h>
  21634. # include <dev/usb/usbhid.h>
  21635. #endif
  21636. #if defined(HAVE_USBHID_H)
  21637. #include <usbhid.h>
  21638. #elif defined(HAVE_LIBUSB_H)
  21639. #include <libusb.h>
  21640. #elif defined(HAVE_LIBUSBHID_H)
  21641. #include <libusbhid.h>
  21642. #endif
  21643. int
  21644. main ()
  21645. {
  21646. struct report_desc *repdesc;
  21647. struct usb_ctl_report *repbuf;
  21648. hid_kind_t hidkind;
  21649. ;
  21650. return 0;
  21651. }
  21652. _ACEOF
  21653. if ac_fn_c_try_compile "$LINENO"; then :
  21654. have_usbhid=yes
  21655. fi
  21656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21658. $as_echo "$have_usbhid" >&6; }
  21659. if test x$have_usbhid = xyes; then
  21660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21661. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21662. have_usbhid_ucr_data=no
  21663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21664. /* end confdefs.h. */
  21665. #include <sys/types.h>
  21666. #if defined(HAVE_USB_H)
  21667. #include <usb.h>
  21668. #endif
  21669. #ifdef __DragonFly__
  21670. # include <bus/u4b/usb.h>
  21671. # include <bus/u4b/usbhid.h>
  21672. #else
  21673. # include <dev/usb/usb.h>
  21674. # include <dev/usb/usbhid.h>
  21675. #endif
  21676. #if defined(HAVE_USBHID_H)
  21677. #include <usbhid.h>
  21678. #elif defined(HAVE_LIBUSB_H)
  21679. #include <libusb.h>
  21680. #elif defined(HAVE_LIBUSBHID_H)
  21681. #include <libusbhid.h>
  21682. #endif
  21683. int
  21684. main ()
  21685. {
  21686. struct usb_ctl_report buf;
  21687. if (buf.ucr_data) { }
  21688. ;
  21689. return 0;
  21690. }
  21691. _ACEOF
  21692. if ac_fn_c_try_compile "$LINENO"; then :
  21693. have_usbhid_ucr_data=yes
  21694. fi
  21695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21696. if test x$have_usbhid_ucr_data = xyes; then
  21697. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21698. fi
  21699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21700. $as_echo "$have_usbhid_ucr_data" >&6; }
  21701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21702. $as_echo_n "checking for new usbhid API... " >&6; }
  21703. have_usbhid_new=no
  21704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21705. /* end confdefs.h. */
  21706. #include <sys/types.h>
  21707. #if defined(HAVE_USB_H)
  21708. #include <usb.h>
  21709. #endif
  21710. #ifdef __DragonFly__
  21711. #include <bus/u4b/usb.h>
  21712. #include <bus/u4b/usbhid.h>
  21713. #else
  21714. #include <dev/usb/usb.h>
  21715. #include <dev/usb/usbhid.h>
  21716. #endif
  21717. #if defined(HAVE_USBHID_H)
  21718. #include <usbhid.h>
  21719. #elif defined(HAVE_LIBUSB_H)
  21720. #include <libusb.h>
  21721. #elif defined(HAVE_LIBUSBHID_H)
  21722. #include <libusbhid.h>
  21723. #endif
  21724. int
  21725. main ()
  21726. {
  21727. report_desc_t d;
  21728. hid_start_parse(d, 1, 1);
  21729. ;
  21730. return 0;
  21731. }
  21732. _ACEOF
  21733. if ac_fn_c_try_compile "$LINENO"; then :
  21734. have_usbhid_new=yes
  21735. fi
  21736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21737. if test x$have_usbhid_new = xyes; then
  21738. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21739. fi
  21740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21741. $as_echo "$have_usbhid_new" >&6; }
  21742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21743. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21744. have_machine_joystick=no
  21745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21746. /* end confdefs.h. */
  21747. #include <machine/joystick.h>
  21748. int
  21749. main ()
  21750. {
  21751. struct joystick t;
  21752. ;
  21753. return 0;
  21754. }
  21755. _ACEOF
  21756. if ac_fn_c_try_compile "$LINENO"; then :
  21757. have_machine_joystick=yes
  21758. fi
  21759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21760. if test x$have_machine_joystick = xyes; then
  21761. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21762. fi
  21763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21764. $as_echo "$have_machine_joystick" >&6; }
  21765. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21766. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21767. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21768. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21769. have_joystick=yes
  21770. fi
  21771. CFLAGS="$save_CFLAGS"
  21772. fi
  21773. ;;
  21774. esac
  21775. }
  21776. CheckHIDAPI()
  21777. {
  21778. # Check whether --enable-hidapi-joystick was given.
  21779. if test "${enable_hidapi_joystick+set}" = set; then :
  21780. enableval=$enable_hidapi_joystick;
  21781. else
  21782. enable_hidapi_joystick=yes
  21783. fi
  21784. # Check whether --enable-hidapi-libusb was given.
  21785. if test "${enable_hidapi_libusb+set}" = set; then :
  21786. enableval=$enable_hidapi_libusb;
  21787. else
  21788. enable_hidapi_libusb=maybe
  21789. fi
  21790. if test x$enable_hidapi = xyes; then
  21791. case "$host" in
  21792. # libusb does not support iOS
  21793. *-ios-* )
  21794. enable_hidapi_libusb=no
  21795. ;;
  21796. # On the other hand, *BSD specifically uses libusb only
  21797. *-*-*bsd* )
  21798. enable_hidapi_libusb=yes
  21799. require_hidapi_libusb=yes
  21800. ;;
  21801. *-*-os2* )
  21802. enable_hidapi_libusb=yes
  21803. ;;
  21804. esac
  21805. hidapi_support=yes
  21806. if test x$enable_hidapi_libusb = xyes; then
  21807. pkg_failed=no
  21808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21809. $as_echo_n "checking for libusb-1.0... " >&6; }
  21810. if test -n "$LIBUSB_CFLAGS"; then
  21811. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21812. elif test -n "$PKG_CONFIG"; then
  21813. if test -n "$PKG_CONFIG" && \
  21814. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21815. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21816. ac_status=$?
  21817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21818. test $ac_status = 0; }; then
  21819. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21820. test "x$?" != "x0" && pkg_failed=yes
  21821. else
  21822. pkg_failed=yes
  21823. fi
  21824. else
  21825. pkg_failed=untried
  21826. fi
  21827. if test -n "$LIBUSB_LIBS"; then
  21828. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21829. elif test -n "$PKG_CONFIG"; then
  21830. if test -n "$PKG_CONFIG" && \
  21831. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21832. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21833. ac_status=$?
  21834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21835. test $ac_status = 0; }; then
  21836. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21837. test "x$?" != "x0" && pkg_failed=yes
  21838. else
  21839. pkg_failed=yes
  21840. fi
  21841. else
  21842. pkg_failed=untried
  21843. fi
  21844. if test $pkg_failed = yes; then
  21845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21846. $as_echo "no" >&6; }
  21847. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21848. _pkg_short_errors_supported=yes
  21849. else
  21850. _pkg_short_errors_supported=no
  21851. fi
  21852. if test $_pkg_short_errors_supported = yes; then
  21853. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21854. else
  21855. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21856. fi
  21857. # Put the nasty error message in config.log where it belongs
  21858. echo "$LIBUSB_PKG_ERRORS" >&5
  21859. have_libusb=no
  21860. elif test $pkg_failed = untried; then
  21861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21862. $as_echo "no" >&6; }
  21863. have_libusb=no
  21864. else
  21865. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21866. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21868. $as_echo "yes" >&6; }
  21869. have_libusb=yes
  21870. fi
  21871. save_CPPFLAGS="$CPPFLAGS"
  21872. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21873. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21874. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21875. have_libusb_h=yes
  21876. else
  21877. have_libusb_h=no
  21878. fi
  21879. CPPFLAGS="$save_CPPFLAGS"
  21880. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21881. hidapi_support=no
  21882. fi
  21883. fi
  21884. if test x$hidapi_support = xyes; then
  21885. if test x$have_libusb_h = xyes; then
  21886. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21887. if test x$require_hidapi_libusb = xyes; then
  21888. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21889. else
  21890. if test x$have_loadso != xyes; then
  21891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21892. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21893. fi
  21894. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21895. libusb_lib=""
  21896. case "$host" in
  21897. *-*-darwin* )
  21898. libusb_lib="libusb-1.0.0.dylib"
  21899. ;;
  21900. *-*-cygwin* | *-*-mingw* )
  21901. libusb_lib="libusb-1.0.dll"
  21902. ;;
  21903. *-*-os2* )
  21904. libusb_lib="usb100.dll"
  21905. ;;
  21906. esac
  21907. if test x$libusb_lib = x; then
  21908. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21909. fi
  21910. cat >>confdefs.h <<_ACEOF
  21911. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21912. _ACEOF
  21913. fi
  21914. fi
  21915. fi
  21916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21917. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21919. $as_echo "$hidapi_support" >&6; }
  21920. fi
  21921. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21922. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21923. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21924. fi
  21925. }
  21926. CheckClockGettime()
  21927. {
  21928. # Check whether --enable-clock_gettime was given.
  21929. if test "${enable_clock_gettime+set}" = set; then :
  21930. enableval=$enable_clock_gettime;
  21931. else
  21932. enable_clock_gettime=yes
  21933. fi
  21934. if test x$enable_clock_gettime = xyes; then
  21935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21936. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21937. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21938. $as_echo_n "(cached) " >&6
  21939. else
  21940. ac_check_lib_save_LIBS=$LIBS
  21941. LIBS="-lrt $LIBS"
  21942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21943. /* end confdefs.h. */
  21944. /* Override any GCC internal prototype to avoid an error.
  21945. Use char because int might match the return type of a GCC
  21946. builtin and then its argument prototype would still apply. */
  21947. #ifdef __cplusplus
  21948. extern "C"
  21949. #endif
  21950. char clock_gettime ();
  21951. int
  21952. main ()
  21953. {
  21954. return clock_gettime ();
  21955. ;
  21956. return 0;
  21957. }
  21958. _ACEOF
  21959. if ac_fn_c_try_link "$LINENO"; then :
  21960. ac_cv_lib_rt_clock_gettime=yes
  21961. else
  21962. ac_cv_lib_rt_clock_gettime=no
  21963. fi
  21964. rm -f core conftest.err conftest.$ac_objext \
  21965. conftest$ac_exeext conftest.$ac_ext
  21966. LIBS=$ac_check_lib_save_LIBS
  21967. fi
  21968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21969. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21970. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21971. have_clock_gettime=yes
  21972. fi
  21973. if test x$have_clock_gettime = xyes; then
  21974. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21976. else
  21977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21978. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21979. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21980. $as_echo_n "(cached) " >&6
  21981. else
  21982. ac_check_lib_save_LIBS=$LIBS
  21983. LIBS="-lc $LIBS"
  21984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21985. /* end confdefs.h. */
  21986. /* Override any GCC internal prototype to avoid an error.
  21987. Use char because int might match the return type of a GCC
  21988. builtin and then its argument prototype would still apply. */
  21989. #ifdef __cplusplus
  21990. extern "C"
  21991. #endif
  21992. char clock_gettime ();
  21993. int
  21994. main ()
  21995. {
  21996. return clock_gettime ();
  21997. ;
  21998. return 0;
  21999. }
  22000. _ACEOF
  22001. if ac_fn_c_try_link "$LINENO"; then :
  22002. ac_cv_lib_c_clock_gettime=yes
  22003. else
  22004. ac_cv_lib_c_clock_gettime=no
  22005. fi
  22006. rm -f core conftest.err conftest.$ac_objext \
  22007. conftest$ac_exeext conftest.$ac_ext
  22008. LIBS=$ac_check_lib_save_LIBS
  22009. fi
  22010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22011. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22012. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22013. have_clock_gettime=yes
  22014. fi
  22015. if test x$have_clock_gettime = xyes; then
  22016. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22017. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22018. fi
  22019. fi
  22020. fi
  22021. }
  22022. CheckLinuxVersion()
  22023. {
  22024. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22025. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22026. have_linux_version_h=yes
  22027. fi
  22028. if test x$have_linux_version_h = xyes; then
  22029. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22030. fi
  22031. }
  22032. CheckRPATH()
  22033. {
  22034. # Check whether --enable-rpath was given.
  22035. if test "${enable_rpath+set}" = set; then :
  22036. enableval=$enable_rpath;
  22037. else
  22038. enable_rpath=yes
  22039. fi
  22040. }
  22041. CheckEventSignals()
  22042. {
  22043. # Check whether --enable-backgrounding-signal was given.
  22044. if test "${enable_backgrounding_signal+set}" = set; then :
  22045. enableval=$enable_backgrounding_signal;
  22046. else
  22047. enable_backgrounding_signal=no
  22048. fi
  22049. if test x$enable_backgrounding_signal != xno; then
  22050. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22051. fi
  22052. # Check whether --enable-foregrounding-signal was given.
  22053. if test "${enable_foregrounding_signal+set}" = set; then :
  22054. enableval=$enable_foregrounding_signal;
  22055. else
  22056. enable_foregrounding_signal=no
  22057. fi
  22058. if test x$enable_foregrounding_signal != xno; then
  22059. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22060. fi
  22061. }
  22062. CheckVirtualJoystick()
  22063. {
  22064. # Check whether --enable-joystick-virtual was given.
  22065. if test "${enable_joystick_virtual+set}" = set; then :
  22066. enableval=$enable_joystick_virtual;
  22067. else
  22068. enable_joystick_virtual=yes
  22069. fi
  22070. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22071. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22072. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22073. have_joystick_virtual=yes
  22074. fi
  22075. }
  22076. CheckWarnAll
  22077. CheckNoStrictAliasing
  22078. CheckEventSignals
  22079. have_locale=no
  22080. case "$host" in
  22081. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22082. case "$host" in
  22083. *-*-android*)
  22084. # Android
  22085. ARCH=android
  22086. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22087. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22088. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22089. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22090. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22091. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22092. if test x$enable_video = xyes; then
  22093. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22094. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22095. SUMMARY_video="${SUMMARY_video} android"
  22096. have_video=yes
  22097. fi
  22098. ;;
  22099. *-*-linux*) ARCH=linux ;;
  22100. *-*-uclinux*) ARCH=linux ;;
  22101. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22102. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22103. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22104. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22105. *-*-bsdi*) ARCH=bsdi ;;
  22106. *-*-freebsd*) ARCH=freebsd ;;
  22107. *-*-dragonfly*) ARCH=freebsd ;;
  22108. *-*-netbsd*) ARCH=netbsd ;;
  22109. *-*-openbsd*) ARCH=openbsd ;;
  22110. *-*-sysv5*) ARCH=sysv5 ;;
  22111. *-*-solaris*) ARCH=solaris ;;
  22112. *-*-hpux*) ARCH=hpux ;;
  22113. *-*-aix*) ARCH=aix ;;
  22114. *-*-minix*) ARCH=minix ;;
  22115. *-*-nto*) ARCH=nto
  22116. CheckQNXVideo
  22117. ;;
  22118. esac
  22119. CheckVisibilityHidden
  22120. CheckDeclarationAfterStatement
  22121. CheckDummyVideo
  22122. CheckOffscreenVideo
  22123. CheckDiskAudio
  22124. CheckDummyAudio
  22125. CheckDLOPEN
  22126. CheckARM
  22127. CheckNEON
  22128. CheckO_CLOEXEC
  22129. CheckOSS
  22130. CheckALSA
  22131. CheckPipewire
  22132. CheckPulseAudio
  22133. CheckJACK
  22134. CheckARTSC
  22135. CheckESD
  22136. CheckNAS
  22137. CheckSNDIO
  22138. CheckFusionSound
  22139. CheckLibSampleRate
  22140. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22141. CheckRPI
  22142. CheckX11
  22143. CheckDirectFB
  22144. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22145. CheckEGL
  22146. CheckKMSDRM
  22147. CheckGLX
  22148. CheckOpenGL
  22149. CheckOpenGLES
  22150. CheckVulkan
  22151. CheckWayland
  22152. CheckInputEvents
  22153. CheckLibUDev
  22154. CheckDBus
  22155. CheckIME
  22156. CheckInotify
  22157. CheckIBus
  22158. CheckFcitx
  22159. case $ARCH in
  22160. linux)
  22161. CheckInputKD
  22162. ;;
  22163. freebsd)
  22164. CheckInputKBIO
  22165. ;;
  22166. openbsd|netbsd)
  22167. CheckInputWSCONS
  22168. ;;
  22169. esac
  22170. CheckUSBHID
  22171. CheckHIDAPI
  22172. CheckPTHREAD
  22173. CheckClockGettime
  22174. CheckLinuxVersion
  22175. CheckRPATH
  22176. CheckVivanteVideo
  22177. # Set up files for the misc library
  22178. if test x$enable_misc = xyes; then
  22179. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22180. have_misc=yes
  22181. fi
  22182. # Set up files for the locale library
  22183. if test x$enable_locale = xyes; then
  22184. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22185. have_locale=yes
  22186. fi
  22187. # Set up files for the audio library
  22188. if test x$enable_audio = xyes; then
  22189. case $ARCH in
  22190. sysv5|solaris|hpux)
  22191. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22192. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22193. SUMMARY_audio="${SUMMARY_audio} sun"
  22194. have_audio=yes
  22195. ;;
  22196. netbsd) # Don't use this on OpenBSD, it's busted.
  22197. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22198. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22199. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22200. have_audio=yes
  22201. ;;
  22202. aix)
  22203. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22204. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22205. SUMMARY_audio="${SUMMARY_audio} paudio"
  22206. have_audio=yes
  22207. ;;
  22208. android)
  22209. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22210. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22211. SUMMARY_audio="${SUMMARY_audio} android"
  22212. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22213. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22214. SUMMARY_audio="${SUMMARY_audio} openslES"
  22215. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22216. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22217. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22218. have_audio=yes
  22219. ;;
  22220. nto)
  22221. CheckQNXAudio
  22222. ;;
  22223. esac
  22224. fi
  22225. # Set up files for the joystick library
  22226. if test x$enable_joystick = xyes; then
  22227. case $ARCH in
  22228. linux)
  22229. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22230. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22231. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22232. have_joystick=yes
  22233. ;;
  22234. freebsd)
  22235. if test x$use_input_events = xyes; then
  22236. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22237. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22238. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22239. have_joystick=yes
  22240. fi
  22241. ;;
  22242. android)
  22243. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22244. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22245. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22246. have_joystick=yes
  22247. ;;
  22248. esac
  22249. fi
  22250. # Set up files for the haptic library
  22251. if test x$enable_haptic = xyes; then
  22252. case $ARCH in
  22253. linux|freebsd)
  22254. if test x$use_input_events = xyes; then
  22255. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22256. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22257. have_haptic=yes
  22258. fi
  22259. ;;
  22260. android)
  22261. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22262. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22263. have_haptic=yes
  22264. ;;
  22265. esac
  22266. fi
  22267. # Set up files for the sensor library
  22268. if test x$enable_sensor = xyes; then
  22269. case $ARCH in
  22270. android)
  22271. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22272. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22273. have_sensor=yes
  22274. ;;
  22275. esac
  22276. fi
  22277. # Set up files for the power library
  22278. if test x$enable_power = xyes; then
  22279. case $ARCH in
  22280. linux)
  22281. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22282. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22283. have_power=yes
  22284. ;;
  22285. android)
  22286. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22287. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22288. have_power=yes
  22289. ;;
  22290. esac
  22291. fi
  22292. # Set up files for the filesystem library
  22293. if test x$enable_filesystem = xyes; then
  22294. case $ARCH in
  22295. android)
  22296. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22297. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22298. have_filesystem=yes
  22299. ;;
  22300. *)
  22301. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22302. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22303. have_filesystem=yes
  22304. ;;
  22305. esac
  22306. fi
  22307. # Set up files for the timer library
  22308. if test x$enable_timers = xyes; then
  22309. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22310. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22311. have_timers=yes
  22312. fi
  22313. # Set up files for udev hotplugging support
  22314. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22315. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22316. fi
  22317. # Set up files for evdev input
  22318. if test x$use_input_events = xyes; then
  22319. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22320. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22321. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22322. fi
  22323. # Set up files for wscons input
  22324. if test x$use_input_wscons = xyes; then
  22325. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22326. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22327. fi
  22328. # Set up other core UNIX files
  22329. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22330. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22331. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22332. ;;
  22333. *-*-cygwin* | *-*-mingw*)
  22334. ARCH=win32
  22335. if test "$build" != "$host"; then # cross-compiling
  22336. # Default cross-compile location
  22337. ac_default_prefix=/usr/local/cross-tools/$host
  22338. else
  22339. # Look for the location of the tools and install there
  22340. if test "$BUILD_PREFIX" != ""; then
  22341. ac_default_prefix=$BUILD_PREFIX
  22342. fi
  22343. fi
  22344. if test x$enable_loadso = xyes; then
  22345. have_loadso=yes
  22346. fi
  22347. CheckDeclarationAfterStatement
  22348. CheckDummyVideo
  22349. CheckOffscreenVideo
  22350. CheckDiskAudio
  22351. CheckDummyAudio
  22352. CheckWINDOWS
  22353. CheckWINDOWSGL
  22354. CheckWINDOWSGLES
  22355. CheckVulkan
  22356. CheckDIRECTX
  22357. CheckHIDAPI
  22358. # Set up the core platform files
  22359. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22360. # Set up files for the misc library
  22361. if test x$enable_misc = xyes; then
  22362. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22363. have_misc=yes
  22364. fi
  22365. # Use the Windows locale APIs.
  22366. if test x$enable_locale = xyes; then
  22367. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22368. have_locale=yes
  22369. fi
  22370. # Set up files for the video library
  22371. if test x$enable_video = xyes; then
  22372. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22373. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22374. have_video=yes
  22375. # Check whether --enable-render-d3d was given.
  22376. if test "${enable_render_d3d+set}" = set; then :
  22377. enableval=$enable_render_d3d;
  22378. else
  22379. enable_render_d3d=yes
  22380. fi
  22381. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22382. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22383. SUMMARY_video="${SUMMARY_video} d3d9"
  22384. fi
  22385. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22386. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22387. SUMMARY_video="${SUMMARY_video} d3d11"
  22388. fi
  22389. fi
  22390. # Set up files for the audio library
  22391. if test x$enable_audio = xyes; then
  22392. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22393. SUMMARY_audio="${SUMMARY_audio} winmm"
  22394. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22395. if test x$have_dsound = xyes; then
  22396. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22397. SUMMARY_audio="${SUMMARY_audio} directsound"
  22398. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22399. fi
  22400. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22401. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22402. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22403. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22404. fi
  22405. have_audio=yes
  22406. fi
  22407. # Set up files for the joystick library
  22408. if test x$enable_joystick = xyes; then
  22409. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22410. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22411. if test x$have_xinput = xyes; then
  22412. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22413. fi
  22414. if test x$have_wgi = xyes; then
  22415. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22416. fi
  22417. if test x$have_dinput = xyes; then
  22418. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22420. fi
  22421. fi
  22422. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22423. have_joystick=yes
  22424. fi
  22425. if test x$enable_haptic = xyes; then
  22426. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22427. if test x$have_xinput = xyes; then
  22428. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22429. fi
  22430. if test x$have_dinput = xyes; then
  22431. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22432. fi
  22433. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22434. have_haptic=yes
  22435. fi
  22436. fi
  22437. # Set up files for the sensor library
  22438. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22439. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22440. have_winsensors=yes
  22441. else
  22442. have_winsensors=no
  22443. fi
  22444. if test x$have_winsensors = xyes; then
  22445. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22446. fi
  22447. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22448. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22449. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22450. have_sensor=yes
  22451. fi
  22452. # Set up files for the power library
  22453. if test x$enable_power = xyes; then
  22454. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22455. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22456. have_power=yes
  22457. fi
  22458. # Set up files for the filesystem library
  22459. if test x$enable_filesystem = xyes; then
  22460. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22461. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22462. have_filesystem=yes
  22463. fi
  22464. # Set up files for the thread library
  22465. if test x$enable_threads = xyes; then
  22466. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22467. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22468. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22469. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22470. have_threads=yes
  22471. fi
  22472. # Set up files for the timer library
  22473. if test x$enable_timers = xyes; then
  22474. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22475. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22476. have_timers=yes
  22477. fi
  22478. # Set up files for the shared object loading library
  22479. if test x$enable_loadso = xyes; then
  22480. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22481. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22482. fi
  22483. # Set up the system libraries we need
  22484. if test -f /lib/w32api/libuuid.a; then
  22485. LIBUUID=/lib/w32api/libuuid.a
  22486. else
  22487. LIBUUID=-luuid
  22488. fi
  22489. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22490. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22491. # The Windows platform requires special setup
  22492. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22493. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22494. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22495. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22496. # Check to see if this is a mingw or cygwin build
  22497. have_mingw32=
  22498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22499. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22500. if ${ac_cv_lib_mingw32_main+:} false; then :
  22501. $as_echo_n "(cached) " >&6
  22502. else
  22503. ac_check_lib_save_LIBS=$LIBS
  22504. LIBS="-lmingw32 $LIBS"
  22505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22506. /* end confdefs.h. */
  22507. int
  22508. main ()
  22509. {
  22510. return main ();
  22511. ;
  22512. return 0;
  22513. }
  22514. _ACEOF
  22515. if ac_fn_c_try_link "$LINENO"; then :
  22516. ac_cv_lib_mingw32_main=yes
  22517. else
  22518. ac_cv_lib_mingw32_main=no
  22519. fi
  22520. rm -f core conftest.err conftest.$ac_objext \
  22521. conftest$ac_exeext conftest.$ac_ext
  22522. LIBS=$ac_check_lib_save_LIBS
  22523. fi
  22524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22525. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22526. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22527. have_mingw32=yes
  22528. fi
  22529. if test x$have_mingw32 = xyes; then
  22530. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22531. else
  22532. SDL_LIBS="-lcygwin $SDL_LIBS"
  22533. fi
  22534. ;;
  22535. *-*-beos*)
  22536. as_fn_error $? "
  22537. *** BeOS support has been removed as of SDL 2.0.2.
  22538. " "$LINENO" 5
  22539. ;;
  22540. *-*-haiku*)
  22541. ARCH=haiku
  22542. ac_default_prefix=/boot/system
  22543. CheckDummyVideo
  22544. CheckOffscreenVideo
  22545. CheckDiskAudio
  22546. CheckDummyAudio
  22547. CheckDLOPEN
  22548. CheckO_CLOEXEC
  22549. CheckHaikuVideo
  22550. CheckHaikuGL
  22551. CheckPTHREAD
  22552. # Set up files for the audio library
  22553. if test x$enable_audio = xyes; then
  22554. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22555. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22556. SUMMARY_audio="${SUMMARY_audio} haiku"
  22557. have_audio=yes
  22558. fi
  22559. # Set up files for the joystick library
  22560. if test x$enable_joystick = xyes; then
  22561. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22562. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22563. have_joystick=yes
  22564. fi
  22565. # Set up files for the timer library
  22566. if test x$enable_timers = xyes; then
  22567. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22568. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22569. have_timers=yes
  22570. fi
  22571. # Set up files for the system power library
  22572. if test x$enable_power = xyes; then
  22573. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22574. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22575. have_power=yes
  22576. fi
  22577. # Set up files for the system filesystem library
  22578. if test x$enable_filesystem = xyes; then
  22579. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22580. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22581. have_filesystem=yes
  22582. fi
  22583. # Set up files for the misc library
  22584. if test x$enable_misc = xyes; then
  22585. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22586. have_misc=yes
  22587. fi
  22588. # Set up files for the locale library
  22589. if test x$enable_locale = xyes; then
  22590. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22591. have_locale=yes
  22592. fi
  22593. # The Haiku platform requires special setup.
  22594. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22595. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22596. ;;
  22597. *-ios-*)
  22598. ARCH=ios
  22599. CheckVisibilityHidden
  22600. CheckDeclarationAfterStatement
  22601. CheckDummyVideo
  22602. CheckOffscreenVideo
  22603. CheckDiskAudio
  22604. CheckDummyAudio
  22605. CheckDLOPEN
  22606. CheckO_CLOEXEC
  22607. CheckMETAL
  22608. CheckVulkan
  22609. CheckPTHREAD
  22610. # Set up files for the misc library
  22611. if test x$enable_misc = xyes; then
  22612. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22613. have_misc=yes
  22614. fi
  22615. # Set up files for the locale library
  22616. if test x$enable_locale = xyes; then
  22617. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22618. have_locale=yes
  22619. fi
  22620. # Set up files for the audio library
  22621. if test x$enable_audio = xyes; then
  22622. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22623. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22624. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22625. have_audio=yes
  22626. fi
  22627. # Set up files for the joystick library
  22628. if test x$enable_joystick = xyes; then
  22629. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22630. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22631. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22632. have_joystick=yes
  22633. else
  22634. # Need this code for accelerometer as joystick support
  22635. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22636. fi
  22637. # Set up files for the haptic library
  22638. #if test x$enable_haptic = xyes; then
  22639. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22640. # have_haptic=yes
  22641. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22642. #fi
  22643. # Set up files for the sensor library
  22644. if test x$enable_sensor = xyes; then
  22645. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22646. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22647. have_sensor=yes
  22648. fi
  22649. # Set up files for the power library
  22650. if test x$enable_power = xyes; then
  22651. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22652. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22653. have_power=yes
  22654. fi
  22655. # Set up files for the filesystem library
  22656. if test x$enable_filesystem = xyes; then
  22657. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22658. have_filesystem=yes
  22659. fi
  22660. # Set up additional files for the file library
  22661. if test x$enable_file = xyes; then
  22662. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22663. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22664. fi
  22665. # Set up files for the timer library
  22666. if test x$enable_timers = xyes; then
  22667. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22668. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22669. have_timers=yes
  22670. fi
  22671. # Set up other core UNIX files
  22672. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22673. # The iOS platform requires special setup.
  22674. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22675. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22676. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22677. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22678. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22679. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22680. SUMMARY_video="${SUMMARY_video} uikit"
  22681. have_video=yes
  22682. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22690. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22692. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22693. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22695. fi
  22696. ;;
  22697. *-*-darwin* )
  22698. # This could be either full "Mac OS X", or plain "Darwin" which is
  22699. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22700. # Next line is broken, and a few files below require Mac OS X (full)
  22701. ARCH=macosx
  22702. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22703. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22704. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22705. CheckObjectiveCARC
  22706. CheckVisibilityHidden
  22707. CheckDeclarationAfterStatement
  22708. CheckDummyVideo
  22709. CheckOffscreenVideo
  22710. CheckDiskAudio
  22711. CheckDummyAudio
  22712. CheckDLOPEN
  22713. CheckO_CLOEXEC
  22714. CheckCOCOA
  22715. CheckMETAL
  22716. CheckX11
  22717. CheckMacGL
  22718. CheckMacGLES
  22719. CheckGLX
  22720. CheckOpenGL
  22721. CheckVulkan
  22722. CheckPTHREAD
  22723. CheckHIDAPI
  22724. # Set up files for the misc library
  22725. if test x$enable_misc = xyes; then
  22726. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22727. have_misc=yes
  22728. fi
  22729. # Set up files for the locale library
  22730. if test x$enable_locale = xyes; then
  22731. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22732. have_locale=yes
  22733. fi
  22734. # Set up files for the audio library
  22735. if test x$enable_audio = xyes; then
  22736. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22737. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22738. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22739. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22740. have_audio=yes
  22741. fi
  22742. # Set up files for the joystick library
  22743. if test x$enable_joystick = xyes; then
  22744. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22745. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22746. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22747. CheckJoystickMFI
  22748. have_joystick=yes
  22749. fi
  22750. # Set up files for the haptic library
  22751. if test x$enable_haptic = xyes; then
  22752. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22753. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22755. have_haptic=yes
  22756. fi
  22757. # Set up files for the power library
  22758. if test x$enable_power = xyes; then
  22759. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22760. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22761. have_power=yes
  22762. fi
  22763. # Set up files for the filesystem library
  22764. if test x$enable_filesystem = xyes; then
  22765. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22766. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22767. have_filesystem=yes
  22768. fi
  22769. # Set up files for the timer library
  22770. if test x$enable_timers = xyes; then
  22771. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22772. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22773. have_timers=yes
  22774. fi
  22775. # Set up additional files for the file library
  22776. if test x$enable_file = xyes; then
  22777. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22778. fi
  22779. # Set up other core UNIX files
  22780. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22781. # The Mac OS X platform requires special setup.
  22782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22783. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22785. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22786. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22787. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22788. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22789. fi
  22790. ;;
  22791. *-nacl|*-pnacl)
  22792. ARCH=nacl
  22793. CheckNativeClient
  22794. CheckDummyAudio
  22795. CheckDummyVideo
  22796. CheckOffscreenVideo
  22797. CheckInputEvents
  22798. CheckPTHREAD
  22799. CheckO_CLOEXEC
  22800. # Set up files for the timer library
  22801. if test x$enable_timers = xyes; then
  22802. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22803. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22804. have_timers=yes
  22805. fi
  22806. if test x$enable_filesystem = xyes; then
  22807. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22808. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22809. have_filesystem=yes
  22810. fi
  22811. ;;
  22812. *-*-emscripten* )
  22813. if test x$enable_video = xyes; then
  22814. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22815. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22816. have_video=yes
  22817. SUMMARY_video="${SUMMARY_video} emscripten"
  22818. fi
  22819. if test x$enable_audio = xyes; then
  22820. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22821. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22822. have_audio=yes
  22823. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22824. fi
  22825. CheckVisibilityHidden
  22826. CheckDeclarationAfterStatement
  22827. CheckDummyVideo
  22828. CheckOffscreenVideo
  22829. CheckDiskAudio
  22830. CheckDummyAudio
  22831. CheckPTHREAD
  22832. CheckDLOPEN
  22833. CheckClockGettime
  22834. CheckEmscriptenGLES
  22835. # Set up files for the misc library
  22836. if test x$enable_misc = xyes; then
  22837. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22838. have_misc=yes
  22839. fi
  22840. # Set up files for the power library
  22841. if test x$enable_power = xyes; then
  22842. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22843. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22844. have_power=yes
  22845. fi
  22846. # Set up files for the joystick library
  22847. if test x$enable_joystick = xyes; then
  22848. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22849. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22850. have_joystick=yes
  22851. fi
  22852. # Set up files for the filesystem library
  22853. if test x$enable_filesystem = xyes; then
  22854. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22855. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22856. have_filesystem=yes
  22857. fi
  22858. # Set up files for the timer library
  22859. if test x$enable_timers = xyes; then
  22860. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22861. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22862. have_timers=yes
  22863. fi
  22864. # Set up files for the locale library
  22865. if test x$enable_locale = xyes; then
  22866. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22867. have_locale=yes
  22868. fi
  22869. ;;
  22870. *-*-riscos*)
  22871. ARCH=riscos
  22872. CheckVisibilityHidden
  22873. CheckDeclarationAfterStatement
  22874. CheckDummyVideo
  22875. CheckOffscreenVideo
  22876. CheckDiskAudio
  22877. CheckDummyAudio
  22878. CheckDLOPEN
  22879. CheckO_CLOEXEC
  22880. CheckOSS
  22881. CheckPTHREAD
  22882. CheckClockGettime
  22883. # Set up files for the misc library
  22884. if test x$enable_misc = xyes; then
  22885. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22886. have_misc=yes
  22887. fi
  22888. # Set up files for the video library
  22889. if test x$enable_video = xyes; then
  22890. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22891. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22892. have_video=yes
  22893. SUMMARY_video="${SUMMARY_video} riscos"
  22894. fi
  22895. # Set up files for the filesystem library
  22896. if test x$enable_filesystem = xyes; then
  22897. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22898. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22899. have_filesystem=yes
  22900. fi
  22901. # Set up files for the timer library
  22902. if test x$enable_timers = xyes; then
  22903. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22904. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22905. have_timers=yes
  22906. fi
  22907. ;;
  22908. *-*-os2*)
  22909. ARCH=os2
  22910. if test "$build" != "$host"; then # cross-compiling
  22911. # Default cross-compile location
  22912. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22913. else
  22914. # Look for the location of the tools and install there
  22915. if test "$BUILD_PREFIX" != ""; then
  22916. ac_default_prefix=$BUILD_PREFIX
  22917. fi
  22918. fi
  22919. enable_static=no # disable static builds
  22920. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22921. CheckOS2
  22922. CheckDeclarationAfterStatement
  22923. CheckDummyVideo
  22924. CheckDiskAudio
  22925. CheckDummyAudio
  22926. CheckHIDAPI
  22927. # Set up the core platform files
  22928. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22929. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22930. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22931. fi
  22932. # Use the Unix locale APIs.
  22933. if test x$enable_locale = xyes; then
  22934. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22935. have_locale=yes
  22936. fi
  22937. # Set up files for the video library
  22938. if test x$enable_video = xyes; then
  22939. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22940. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22941. have_video=yes
  22942. SUMMARY_video="${SUMMARY_video} os/2"
  22943. fi
  22944. # Set up files for the audio library
  22945. if test x$enable_audio = xyes; then
  22946. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22947. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22948. have_audio=yes
  22949. SUMMARY_audio="${SUMMARY_audio} os/2"
  22950. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22951. fi
  22952. # Set up files for the thread library
  22953. if test x$enable_threads = xyes; then
  22954. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22955. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22956. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22957. have_threads=yes
  22958. fi
  22959. # Set up files for the timer library
  22960. if test x$enable_timers = xyes; then
  22961. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22962. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22963. have_timers=yes
  22964. fi
  22965. # Set up files for the shared object loading library
  22966. if test x$enable_loadso = xyes; then
  22967. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22968. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22969. have_loadso=yes
  22970. fi
  22971. # Set up files for the filesystem library
  22972. if test x$enable_filesystem = xyes; then
  22973. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22974. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22975. have_filesystem=yes
  22976. fi
  22977. # Set up files for the joystick library
  22978. if test x$enable_joystick = xyes; then
  22979. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22980. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22981. have_joystick=yes
  22982. fi
  22983. ;;
  22984. *)
  22985. as_fn_error $? "
  22986. *** Unsupported host: Please add to configure.ac
  22987. " "$LINENO" 5
  22988. ;;
  22989. esac
  22990. CheckVirtualJoystick
  22991. # Check whether to install sdl2-config
  22992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22993. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22994. # Check whether --enable-sdl2-config was given.
  22995. if test "${enable_sdl2_config+set}" = set; then :
  22996. enableval=$enable_sdl2_config; case "${enableval}" in
  22997. yes) enable_sdl2_config="TRUE" ;;
  22998. no) enable_sdl2_config="FALSE" ;;
  22999. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  23000. esac
  23001. else
  23002. enable_sdl2_config="TRUE"
  23003. fi
  23004. if test "$enable_sdl2_config" = "TRUE"; then
  23005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23006. $as_echo "yes" >&6; }
  23007. else
  23008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23009. $as_echo "no" >&6; }
  23010. fi
  23011. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23012. # Verify that we have all the platform specific files we need
  23013. if test x$have_audio != xyes; then
  23014. if test x$enable_audio = xyes; then
  23015. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23016. fi
  23017. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23018. fi
  23019. if test x$have_video != xyes; then
  23020. if test x$enable_video = xyes; then
  23021. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23022. fi
  23023. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23024. fi
  23025. if test x$have_misc != xyes; then
  23026. if test x$enable_misc = xyes; then
  23027. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23028. fi
  23029. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23030. fi
  23031. if test x$have_locale != xyes; then
  23032. if test x$enable_locale = xyes; then
  23033. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23034. fi
  23035. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23036. fi
  23037. if test x$have_joystick != xyes; then
  23038. if test x$enable_joystick = xyes; then
  23039. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23040. fi
  23041. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23042. fi
  23043. if test x$have_haptic != xyes; then
  23044. if test x$enable_haptic = xyes; then
  23045. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23046. fi
  23047. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23048. fi
  23049. if test x$have_sensor != xyes; then
  23050. if test x$enable_sensor = xyes; then
  23051. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23052. fi
  23053. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23054. fi
  23055. if test x$have_threads != xyes; then
  23056. if test x$enable_threads = xyes; then
  23057. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23058. fi
  23059. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23060. fi
  23061. if test x$have_timers != xyes; then
  23062. if test x$enable_timers = xyes; then
  23063. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23064. fi
  23065. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23066. fi
  23067. if test x$have_filesystem != xyes; then
  23068. if test x$enable_filesystem = xyes; then
  23069. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23070. fi
  23071. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23072. fi
  23073. if test x$have_loadso != xyes; then
  23074. if test x$enable_loadso = xyes; then
  23075. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23076. fi
  23077. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23078. fi
  23079. if test x$SDLMAIN_SOURCES = x; then
  23080. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23081. fi
  23082. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23083. if test x$video_wayland = xyes; then
  23084. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23085. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23086. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23087. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23088. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23089. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23090. echo ;\
  23091. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23092. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23093. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23094. echo ;\
  23095. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23096. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23097. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23098. echo ;\
  23099. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23100. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23101. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23102. done ;\
  23103. echo ;\
  23104. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23105. fi
  23106. OBJECTS=`echo $SOURCES`
  23107. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23108. for EXT in asm cc m c S; do
  23109. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23110. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23111. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23112. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23113. done
  23114. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23115. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23116. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23117. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23118. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23119. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23120. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23121. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23122. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23123. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23124. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23125. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23126. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23127. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23128. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23129. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23130. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23131. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23132. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23133. # Set runtime shared library paths as needed
  23134. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23135. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23136. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23138. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23139. have_enable_new_dtags=no
  23140. save_LDFLAGS="$LDFLAGS"
  23141. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23143. /* end confdefs.h. */
  23144. int
  23145. main ()
  23146. {
  23147. ;
  23148. return 0;
  23149. }
  23150. _ACEOF
  23151. if ac_fn_c_try_link "$LINENO"; then :
  23152. have_enable_new_dtags=yes
  23153. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23154. fi
  23155. rm -f core conftest.err conftest.$ac_objext \
  23156. conftest$ac_exeext conftest.$ac_ext
  23157. LDFLAGS="$save_LDFLAGS"
  23158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23159. $as_echo "$have_enable_new_dtags" >&6; }
  23160. fi
  23161. if test $ARCH = solaris; then
  23162. SDL_RLD_FLAGS="-R\${libdir}"
  23163. fi
  23164. else
  23165. SDL_RLD_FLAGS=""
  23166. fi
  23167. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23168. eval pkg_prefix=$prefix
  23169. eval pkg_cmakedir=$libdir/cmake/SDL2
  23170. cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23171. eval pkg_bindir=$bindir
  23172. bin_prefix_relpath="$(echo -n "pkg_bindir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  23173. if test x$enable_shared = xyes; then
  23174. PKGCONFIG_LIBS_PRIV="
  23175. Libs.private:"
  23176. ENABLE_SHARED_TRUE=
  23177. ENABLE_SHARED_FALSE="#"
  23178. else
  23179. PKGCONFIG_LIBS_PRIV=
  23180. ENABLE_SHARED_TRUE="#"
  23181. ENABLE_SHARED_FALSE=
  23182. fi
  23183. if test x$enable_static = xyes; then
  23184. ENABLE_STATIC_TRUE=
  23185. ENABLE_STATIC_FALSE="#"
  23186. else
  23187. ENABLE_STATIC_TRUE="#"
  23188. ENABLE_STATIC_FALSE=
  23189. fi
  23190. cat >Makefile.rules <<__EOF__
  23191. # Build rules for objects
  23192. -include \$(OBJECTS:.lo=.d)
  23193. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23194. $srcdir/src/SDL.c: update-revision
  23195. $DEPENDS
  23196. $VERSION_DEPENDS
  23197. $SDLMAIN_DEPENDS
  23198. $SDLTEST_DEPENDS
  23199. $WAYLAND_PROTOCOLS_DEPENDS
  23200. __EOF__
  23201. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23202. ac_config_commands="$ac_config_commands sdl2_config"
  23203. SUMMARY="SDL2 Configure Summary:\n"
  23204. if test x$enable_shared = xyes; then
  23205. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23206. fi
  23207. if test x$enable_static = xyes; then
  23208. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23209. fi
  23210. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23211. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23212. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23213. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23214. if test x$have_x = xyes; then
  23215. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23216. fi
  23217. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23218. if test x$have_joystick_virtual = xyes; then
  23219. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23220. else
  23221. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23222. fi
  23223. if test x$have_samplerate_h_hdr = xyes; then
  23224. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23225. else
  23226. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23227. fi
  23228. if test x$have_libudev_h_hdr = xyes; then
  23229. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23230. else
  23231. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23232. fi
  23233. if test x$have_dbus_dbus_h_hdr = xyes; then
  23234. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23235. else
  23236. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23237. fi
  23238. if test x$enable_ime = xyes; then
  23239. SUMMARY="${SUMMARY}Using ime : YES\n"
  23240. else
  23241. SUMMARY="${SUMMARY}Using ime : NO\n"
  23242. fi
  23243. if test x$have_ibus_ibus_h_hdr = xyes; then
  23244. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23245. else
  23246. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23247. fi
  23248. if test x$have_fcitx = xyes; then
  23249. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23250. else
  23251. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23252. fi
  23253. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23254. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23255. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23256. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23257. SUMMARY="${SUMMARY}configure script with:\n"
  23258. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23259. fi
  23260. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23261. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23262. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23263. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23264. SUMMARY="${SUMMARY}configure script with:\n"
  23265. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23266. fi
  23267. ac_config_commands="$ac_config_commands summary"
  23268. cat >confcache <<\_ACEOF
  23269. # This file is a shell script that caches the results of configure
  23270. # tests run on this system so they can be shared between configure
  23271. # scripts and configure runs, see configure's option --config-cache.
  23272. # It is not useful on other systems. If it contains results you don't
  23273. # want to keep, you may remove or edit it.
  23274. #
  23275. # config.status only pays attention to the cache file if you give it
  23276. # the --recheck option to rerun configure.
  23277. #
  23278. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23279. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23280. # following values.
  23281. _ACEOF
  23282. # The following way of writing the cache mishandles newlines in values,
  23283. # but we know of no workaround that is simple, portable, and efficient.
  23284. # So, we kill variables containing newlines.
  23285. # Ultrix sh set writes to stderr and can't be redirected directly,
  23286. # and sets the high bit in the cache file unless we assign to the vars.
  23287. (
  23288. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23289. eval ac_val=\$$ac_var
  23290. case $ac_val in #(
  23291. *${as_nl}*)
  23292. case $ac_var in #(
  23293. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23294. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23295. esac
  23296. case $ac_var in #(
  23297. _ | IFS | as_nl) ;; #(
  23298. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23299. *) { eval $ac_var=; unset $ac_var;} ;;
  23300. esac ;;
  23301. esac
  23302. done
  23303. (set) 2>&1 |
  23304. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23305. *${as_nl}ac_space=\ *)
  23306. # `set' does not quote correctly, so add quotes: double-quote
  23307. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23308. sed -n \
  23309. "s/'/'\\\\''/g;
  23310. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23311. ;; #(
  23312. *)
  23313. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23314. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23315. ;;
  23316. esac |
  23317. sort
  23318. ) |
  23319. sed '
  23320. /^ac_cv_env_/b end
  23321. t clear
  23322. :clear
  23323. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23324. t end
  23325. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23326. :end' >>confcache
  23327. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23328. if test -w "$cache_file"; then
  23329. if test "x$cache_file" != "x/dev/null"; then
  23330. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23331. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23332. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23333. cat confcache >"$cache_file"
  23334. else
  23335. case $cache_file in #(
  23336. */* | ?:*)
  23337. mv -f confcache "$cache_file"$$ &&
  23338. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23339. *)
  23340. mv -f confcache "$cache_file" ;;
  23341. esac
  23342. fi
  23343. fi
  23344. else
  23345. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23346. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23347. fi
  23348. fi
  23349. rm -f confcache
  23350. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23351. # Let make expand exec_prefix.
  23352. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23353. DEFS=-DHAVE_CONFIG_H
  23354. ac_libobjs=
  23355. ac_ltlibobjs=
  23356. U=
  23357. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23358. # 1. Remove the extension, and $U if already installed.
  23359. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23360. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23361. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23362. # will be set to the directory where LIBOBJS objects are built.
  23363. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23364. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23365. done
  23366. LIBOBJS=$ac_libobjs
  23367. LTLIBOBJS=$ac_ltlibobjs
  23368. : "${CONFIG_STATUS=./config.status}"
  23369. ac_write_fail=0
  23370. ac_clean_files_save=$ac_clean_files
  23371. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23372. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23373. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23374. as_write_fail=0
  23375. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23376. #! $SHELL
  23377. # Generated by $as_me.
  23378. # Run this file to recreate the current configuration.
  23379. # Compiler output produced by configure, useful for debugging
  23380. # configure, is in config.log if it exists.
  23381. debug=false
  23382. ac_cs_recheck=false
  23383. ac_cs_silent=false
  23384. SHELL=\${CONFIG_SHELL-$SHELL}
  23385. export SHELL
  23386. _ASEOF
  23387. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23388. ## -------------------- ##
  23389. ## M4sh Initialization. ##
  23390. ## -------------------- ##
  23391. # Be more Bourne compatible
  23392. DUALCASE=1; export DUALCASE # for MKS sh
  23393. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23394. emulate sh
  23395. NULLCMD=:
  23396. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23397. # is contrary to our usage. Disable this feature.
  23398. alias -g '${1+"$@"}'='"$@"'
  23399. setopt NO_GLOB_SUBST
  23400. else
  23401. case `(set -o) 2>/dev/null` in #(
  23402. *posix*) :
  23403. set -o posix ;; #(
  23404. *) :
  23405. ;;
  23406. esac
  23407. fi
  23408. as_nl='
  23409. '
  23410. export as_nl
  23411. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23412. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23413. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23414. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23415. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23416. # but without wasting forks for bash or zsh.
  23417. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23418. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23419. as_echo='print -r --'
  23420. as_echo_n='print -rn --'
  23421. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23422. as_echo='printf %s\n'
  23423. as_echo_n='printf %s'
  23424. else
  23425. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23426. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23427. as_echo_n='/usr/ucb/echo -n'
  23428. else
  23429. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23430. as_echo_n_body='eval
  23431. arg=$1;
  23432. case $arg in #(
  23433. *"$as_nl"*)
  23434. expr "X$arg" : "X\\(.*\\)$as_nl";
  23435. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23436. esac;
  23437. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23438. '
  23439. export as_echo_n_body
  23440. as_echo_n='sh -c $as_echo_n_body as_echo'
  23441. fi
  23442. export as_echo_body
  23443. as_echo='sh -c $as_echo_body as_echo'
  23444. fi
  23445. # The user is always right.
  23446. if test "${PATH_SEPARATOR+set}" != set; then
  23447. PATH_SEPARATOR=:
  23448. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23449. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23450. PATH_SEPARATOR=';'
  23451. }
  23452. fi
  23453. # IFS
  23454. # We need space, tab and new line, in precisely that order. Quoting is
  23455. # there to prevent editors from complaining about space-tab.
  23456. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23457. # splitting by setting IFS to empty value.)
  23458. IFS=" "" $as_nl"
  23459. # Find who we are. Look in the path if we contain no directory separator.
  23460. as_myself=
  23461. case $0 in #((
  23462. *[\\/]* ) as_myself=$0 ;;
  23463. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23464. for as_dir in $PATH
  23465. do
  23466. IFS=$as_save_IFS
  23467. test -z "$as_dir" && as_dir=.
  23468. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23469. done
  23470. IFS=$as_save_IFS
  23471. ;;
  23472. esac
  23473. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23474. # in which case we are not to be found in the path.
  23475. if test "x$as_myself" = x; then
  23476. as_myself=$0
  23477. fi
  23478. if test ! -f "$as_myself"; then
  23479. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23480. exit 1
  23481. fi
  23482. # Unset variables that we do not need and which cause bugs (e.g. in
  23483. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23484. # suppresses any "Segmentation fault" message there. '((' could
  23485. # trigger a bug in pdksh 5.2.14.
  23486. for as_var in BASH_ENV ENV MAIL MAILPATH
  23487. do eval test x\${$as_var+set} = xset \
  23488. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23489. done
  23490. PS1='$ '
  23491. PS2='> '
  23492. PS4='+ '
  23493. # NLS nuisances.
  23494. LC_ALL=C
  23495. export LC_ALL
  23496. LANGUAGE=C
  23497. export LANGUAGE
  23498. # CDPATH.
  23499. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23500. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23501. # ----------------------------------------
  23502. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23503. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23504. # script with STATUS, using 1 if that was 0.
  23505. as_fn_error ()
  23506. {
  23507. as_status=$1; test $as_status -eq 0 && as_status=1
  23508. if test "$4"; then
  23509. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23510. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23511. fi
  23512. $as_echo "$as_me: error: $2" >&2
  23513. as_fn_exit $as_status
  23514. } # as_fn_error
  23515. # as_fn_set_status STATUS
  23516. # -----------------------
  23517. # Set $? to STATUS, without forking.
  23518. as_fn_set_status ()
  23519. {
  23520. return $1
  23521. } # as_fn_set_status
  23522. # as_fn_exit STATUS
  23523. # -----------------
  23524. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23525. as_fn_exit ()
  23526. {
  23527. set +e
  23528. as_fn_set_status $1
  23529. exit $1
  23530. } # as_fn_exit
  23531. # as_fn_unset VAR
  23532. # ---------------
  23533. # Portably unset VAR.
  23534. as_fn_unset ()
  23535. {
  23536. { eval $1=; unset $1;}
  23537. }
  23538. as_unset=as_fn_unset
  23539. # as_fn_append VAR VALUE
  23540. # ----------------------
  23541. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23542. # advantage of any shell optimizations that allow amortized linear growth over
  23543. # repeated appends, instead of the typical quadratic growth present in naive
  23544. # implementations.
  23545. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23546. eval 'as_fn_append ()
  23547. {
  23548. eval $1+=\$2
  23549. }'
  23550. else
  23551. as_fn_append ()
  23552. {
  23553. eval $1=\$$1\$2
  23554. }
  23555. fi # as_fn_append
  23556. # as_fn_arith ARG...
  23557. # ------------------
  23558. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23559. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23560. # must be portable across $(()) and expr.
  23561. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23562. eval 'as_fn_arith ()
  23563. {
  23564. as_val=$(( $* ))
  23565. }'
  23566. else
  23567. as_fn_arith ()
  23568. {
  23569. as_val=`expr "$@" || test $? -eq 1`
  23570. }
  23571. fi # as_fn_arith
  23572. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23573. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23574. as_expr=expr
  23575. else
  23576. as_expr=false
  23577. fi
  23578. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23579. as_basename=basename
  23580. else
  23581. as_basename=false
  23582. fi
  23583. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23584. as_dirname=dirname
  23585. else
  23586. as_dirname=false
  23587. fi
  23588. as_me=`$as_basename -- "$0" ||
  23589. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23590. X"$0" : 'X\(//\)$' \| \
  23591. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23592. $as_echo X/"$0" |
  23593. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23594. s//\1/
  23595. q
  23596. }
  23597. /^X\/\(\/\/\)$/{
  23598. s//\1/
  23599. q
  23600. }
  23601. /^X\/\(\/\).*/{
  23602. s//\1/
  23603. q
  23604. }
  23605. s/.*/./; q'`
  23606. # Avoid depending upon Character Ranges.
  23607. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23608. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23609. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23610. as_cr_digits='0123456789'
  23611. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23612. ECHO_C= ECHO_N= ECHO_T=
  23613. case `echo -n x` in #(((((
  23614. -n*)
  23615. case `echo 'xy\c'` in
  23616. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23617. xy) ECHO_C='\c';;
  23618. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23619. ECHO_T=' ';;
  23620. esac;;
  23621. *)
  23622. ECHO_N='-n';;
  23623. esac
  23624. rm -f conf$$ conf$$.exe conf$$.file
  23625. if test -d conf$$.dir; then
  23626. rm -f conf$$.dir/conf$$.file
  23627. else
  23628. rm -f conf$$.dir
  23629. mkdir conf$$.dir 2>/dev/null
  23630. fi
  23631. if (echo >conf$$.file) 2>/dev/null; then
  23632. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23633. as_ln_s='ln -s'
  23634. # ... but there are two gotchas:
  23635. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23636. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23637. # In both cases, we have to default to `cp -pR'.
  23638. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23639. as_ln_s='cp -pR'
  23640. elif ln conf$$.file conf$$ 2>/dev/null; then
  23641. as_ln_s=ln
  23642. else
  23643. as_ln_s='cp -pR'
  23644. fi
  23645. else
  23646. as_ln_s='cp -pR'
  23647. fi
  23648. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23649. rmdir conf$$.dir 2>/dev/null
  23650. # as_fn_mkdir_p
  23651. # -------------
  23652. # Create "$as_dir" as a directory, including parents if necessary.
  23653. as_fn_mkdir_p ()
  23654. {
  23655. case $as_dir in #(
  23656. -*) as_dir=./$as_dir;;
  23657. esac
  23658. test -d "$as_dir" || eval $as_mkdir_p || {
  23659. as_dirs=
  23660. while :; do
  23661. case $as_dir in #(
  23662. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23663. *) as_qdir=$as_dir;;
  23664. esac
  23665. as_dirs="'$as_qdir' $as_dirs"
  23666. as_dir=`$as_dirname -- "$as_dir" ||
  23667. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23668. X"$as_dir" : 'X\(//\)[^/]' \| \
  23669. X"$as_dir" : 'X\(//\)$' \| \
  23670. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23671. $as_echo X"$as_dir" |
  23672. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23673. s//\1/
  23674. q
  23675. }
  23676. /^X\(\/\/\)[^/].*/{
  23677. s//\1/
  23678. q
  23679. }
  23680. /^X\(\/\/\)$/{
  23681. s//\1/
  23682. q
  23683. }
  23684. /^X\(\/\).*/{
  23685. s//\1/
  23686. q
  23687. }
  23688. s/.*/./; q'`
  23689. test -d "$as_dir" && break
  23690. done
  23691. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23692. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23693. } # as_fn_mkdir_p
  23694. if mkdir -p . 2>/dev/null; then
  23695. as_mkdir_p='mkdir -p "$as_dir"'
  23696. else
  23697. test -d ./-p && rmdir ./-p
  23698. as_mkdir_p=false
  23699. fi
  23700. # as_fn_executable_p FILE
  23701. # -----------------------
  23702. # Test if FILE is an executable regular file.
  23703. as_fn_executable_p ()
  23704. {
  23705. test -f "$1" && test -x "$1"
  23706. } # as_fn_executable_p
  23707. as_test_x='test -x'
  23708. as_executable_p=as_fn_executable_p
  23709. # Sed expression to map a string onto a valid CPP name.
  23710. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23711. # Sed expression to map a string onto a valid variable name.
  23712. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23713. exec 6>&1
  23714. ## ----------------------------------- ##
  23715. ## Main body of $CONFIG_STATUS script. ##
  23716. ## ----------------------------------- ##
  23717. _ASEOF
  23718. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23719. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23720. # Save the log message, to keep $0 and so on meaningful, and to
  23721. # report actual input values of CONFIG_FILES etc. instead of their
  23722. # values after options handling.
  23723. ac_log="
  23724. This file was extended by $as_me, which was
  23725. generated by GNU Autoconf 2.69. Invocation command line was
  23726. CONFIG_FILES = $CONFIG_FILES
  23727. CONFIG_HEADERS = $CONFIG_HEADERS
  23728. CONFIG_LINKS = $CONFIG_LINKS
  23729. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23730. $ $0 $@
  23731. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23732. "
  23733. _ACEOF
  23734. case $ac_config_files in *"
  23735. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23736. esac
  23737. case $ac_config_headers in *"
  23738. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23739. esac
  23740. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23741. # Files that config.status was made for.
  23742. config_files="$ac_config_files"
  23743. config_headers="$ac_config_headers"
  23744. config_commands="$ac_config_commands"
  23745. _ACEOF
  23746. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23747. ac_cs_usage="\
  23748. \`$as_me' instantiates files and other configuration actions
  23749. from templates according to the current configuration. Unless the files
  23750. and actions are specified as TAGs, all are instantiated by default.
  23751. Usage: $0 [OPTION]... [TAG]...
  23752. -h, --help print this help, then exit
  23753. -V, --version print version number and configuration settings, then exit
  23754. --config print configuration, then exit
  23755. -q, --quiet, --silent
  23756. do not print progress messages
  23757. -d, --debug don't remove temporary files
  23758. --recheck update $as_me by reconfiguring in the same conditions
  23759. --file=FILE[:TEMPLATE]
  23760. instantiate the configuration file FILE
  23761. --header=FILE[:TEMPLATE]
  23762. instantiate the configuration header FILE
  23763. Configuration files:
  23764. $config_files
  23765. Configuration headers:
  23766. $config_headers
  23767. Configuration commands:
  23768. $config_commands
  23769. Report bugs to the package provider."
  23770. _ACEOF
  23771. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23772. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23773. ac_cs_version="\\
  23774. config.status
  23775. configured by $0, generated by GNU Autoconf 2.69,
  23776. with options \\"\$ac_cs_config\\"
  23777. Copyright (C) 2012 Free Software Foundation, Inc.
  23778. This config.status script is free software; the Free Software Foundation
  23779. gives unlimited permission to copy, distribute and modify it."
  23780. ac_pwd='$ac_pwd'
  23781. srcdir='$srcdir'
  23782. INSTALL='$INSTALL'
  23783. AWK='$AWK'
  23784. test -n "\$AWK" || AWK=awk
  23785. _ACEOF
  23786. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23787. # The default lists apply if the user does not specify any file.
  23788. ac_need_defaults=:
  23789. while test $# != 0
  23790. do
  23791. case $1 in
  23792. --*=?*)
  23793. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23794. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23795. ac_shift=:
  23796. ;;
  23797. --*=)
  23798. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23799. ac_optarg=
  23800. ac_shift=:
  23801. ;;
  23802. *)
  23803. ac_option=$1
  23804. ac_optarg=$2
  23805. ac_shift=shift
  23806. ;;
  23807. esac
  23808. case $ac_option in
  23809. # Handling of the options.
  23810. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23811. ac_cs_recheck=: ;;
  23812. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23813. $as_echo "$ac_cs_version"; exit ;;
  23814. --config | --confi | --conf | --con | --co | --c )
  23815. $as_echo "$ac_cs_config"; exit ;;
  23816. --debug | --debu | --deb | --de | --d | -d )
  23817. debug=: ;;
  23818. --file | --fil | --fi | --f )
  23819. $ac_shift
  23820. case $ac_optarg in
  23821. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23822. '') as_fn_error $? "missing file argument" ;;
  23823. esac
  23824. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23825. ac_need_defaults=false;;
  23826. --header | --heade | --head | --hea )
  23827. $ac_shift
  23828. case $ac_optarg in
  23829. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23830. esac
  23831. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23832. ac_need_defaults=false;;
  23833. --he | --h)
  23834. # Conflict between --help and --header
  23835. as_fn_error $? "ambiguous option: \`$1'
  23836. Try \`$0 --help' for more information.";;
  23837. --help | --hel | -h )
  23838. $as_echo "$ac_cs_usage"; exit ;;
  23839. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23840. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23841. ac_cs_silent=: ;;
  23842. # This is an error.
  23843. -*) as_fn_error $? "unrecognized option: \`$1'
  23844. Try \`$0 --help' for more information." ;;
  23845. *) as_fn_append ac_config_targets " $1"
  23846. ac_need_defaults=false ;;
  23847. esac
  23848. shift
  23849. done
  23850. ac_configure_extra_args=
  23851. if $ac_cs_silent; then
  23852. exec 6>/dev/null
  23853. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23854. fi
  23855. _ACEOF
  23856. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23857. if \$ac_cs_recheck; then
  23858. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23859. shift
  23860. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23861. CONFIG_SHELL='$SHELL'
  23862. export CONFIG_SHELL
  23863. exec "\$@"
  23864. fi
  23865. _ACEOF
  23866. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23867. exec 5>>config.log
  23868. {
  23869. echo
  23870. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23871. ## Running $as_me. ##
  23872. _ASBOX
  23873. $as_echo "$ac_log"
  23874. } >&5
  23875. _ACEOF
  23876. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23877. #
  23878. # INIT-COMMANDS
  23879. #
  23880. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23881. # if CDPATH is set.
  23882. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23883. sed_quote_subst='$sed_quote_subst'
  23884. double_quote_subst='$double_quote_subst'
  23885. delay_variable_subst='$delay_variable_subst'
  23886. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23887. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23888. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23889. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23890. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23891. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23892. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23893. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23894. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23895. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23896. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23897. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23898. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23899. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23900. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23901. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23902. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23903. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23904. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23905. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23906. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23907. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23908. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23909. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23910. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23911. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23912. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23913. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23914. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23915. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23916. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23917. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23918. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23919. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23920. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23921. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23922. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23923. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23924. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23925. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23926. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23927. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23928. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23929. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23930. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23931. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23932. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23933. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23934. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23935. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23936. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23937. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23938. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23939. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23940. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23941. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23942. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23943. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23944. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23945. 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"`'
  23946. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23947. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23948. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23949. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23950. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23951. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23952. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23953. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23954. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23955. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23956. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23957. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23958. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23959. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23960. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23961. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23962. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23963. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23964. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23965. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23966. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23967. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23968. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23969. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23970. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23971. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23972. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23973. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23974. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23975. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23976. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23977. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23978. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23979. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23980. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23981. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23982. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23983. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23984. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23985. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23986. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23987. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23988. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23989. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23990. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23991. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23992. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23993. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23994. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23995. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23996. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23997. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23998. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23999. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24000. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24001. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24002. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24003. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24004. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24005. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24006. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24007. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24008. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24009. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24010. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24011. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24012. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24013. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24014. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24015. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24016. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24017. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24018. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24019. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24020. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24021. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24022. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24023. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24024. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24025. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24026. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24027. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24028. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24029. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24030. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24031. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24032. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24033. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24034. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24035. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24036. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24037. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24038. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24039. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24040. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24041. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24042. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24043. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24044. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24045. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24046. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24047. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24048. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24049. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24050. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24051. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24052. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24053. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24054. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24055. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24056. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24057. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24058. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24059. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24060. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24061. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24062. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24063. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24064. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24065. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24066. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24067. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24068. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24069. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24070. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24071. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24072. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24073. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24074. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24075. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24076. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24077. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24078. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24079. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24080. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24081. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24082. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24083. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24084. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24085. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24086. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24087. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24088. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24089. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24090. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24091. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24092. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24093. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24094. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24095. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24096. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24097. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24098. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24099. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24100. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24101. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24102. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24103. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24104. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24105. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24106. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24107. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24108. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24109. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24110. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24111. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24112. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24113. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24114. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24115. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24116. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24117. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24118. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24119. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24120. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24121. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24122. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24123. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24124. LTCC='$LTCC'
  24125. LTCFLAGS='$LTCFLAGS'
  24126. compiler='$compiler_DEFAULT'
  24127. # A function that is used when there is no print builtin or printf.
  24128. func_fallback_echo ()
  24129. {
  24130. eval 'cat <<_LTECHO_EOF
  24131. \$1
  24132. _LTECHO_EOF'
  24133. }
  24134. # Quote evaled strings.
  24135. for var in AS \
  24136. DLLTOOL \
  24137. OBJDUMP \
  24138. SHELL \
  24139. ECHO \
  24140. PATH_SEPARATOR \
  24141. SED \
  24142. GREP \
  24143. EGREP \
  24144. FGREP \
  24145. LD \
  24146. NM \
  24147. LN_S \
  24148. lt_SP2NL \
  24149. lt_NL2SP \
  24150. reload_flag \
  24151. deplibs_check_method \
  24152. file_magic_cmd \
  24153. file_magic_glob \
  24154. want_nocaseglob \
  24155. sharedlib_from_linklib_cmd \
  24156. AR \
  24157. AR_FLAGS \
  24158. archiver_list_spec \
  24159. STRIP \
  24160. RANLIB \
  24161. CC \
  24162. CFLAGS \
  24163. compiler \
  24164. lt_cv_sys_global_symbol_pipe \
  24165. lt_cv_sys_global_symbol_to_cdecl \
  24166. lt_cv_sys_global_symbol_to_import \
  24167. lt_cv_sys_global_symbol_to_c_name_address \
  24168. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24169. lt_cv_nm_interface \
  24170. nm_file_list_spec \
  24171. lt_cv_truncate_bin \
  24172. lt_prog_compiler_no_builtin_flag \
  24173. lt_prog_compiler_pic \
  24174. lt_prog_compiler_wl \
  24175. lt_prog_compiler_static \
  24176. lt_cv_prog_compiler_c_o \
  24177. need_locks \
  24178. MANIFEST_TOOL \
  24179. DSYMUTIL \
  24180. NMEDIT \
  24181. LIPO \
  24182. OTOOL \
  24183. OTOOL64 \
  24184. shrext_cmds \
  24185. export_dynamic_flag_spec \
  24186. whole_archive_flag_spec \
  24187. compiler_needs_object \
  24188. with_gnu_ld \
  24189. allow_undefined_flag \
  24190. no_undefined_flag \
  24191. hardcode_libdir_flag_spec \
  24192. hardcode_libdir_separator \
  24193. exclude_expsyms \
  24194. include_expsyms \
  24195. file_list_spec \
  24196. variables_saved_for_relink \
  24197. libname_spec \
  24198. library_names_spec \
  24199. soname_spec \
  24200. install_override_mode \
  24201. finish_eval \
  24202. old_striplib \
  24203. striplib \
  24204. compiler_lib_search_dirs \
  24205. predep_objects \
  24206. postdep_objects \
  24207. predeps \
  24208. postdeps \
  24209. compiler_lib_search_path \
  24210. LD_RC \
  24211. LD_CXX \
  24212. reload_flag_RC \
  24213. reload_flag_CXX \
  24214. compiler_RC \
  24215. compiler_CXX \
  24216. lt_prog_compiler_no_builtin_flag_RC \
  24217. lt_prog_compiler_no_builtin_flag_CXX \
  24218. lt_prog_compiler_pic_RC \
  24219. lt_prog_compiler_pic_CXX \
  24220. lt_prog_compiler_wl_RC \
  24221. lt_prog_compiler_wl_CXX \
  24222. lt_prog_compiler_static_RC \
  24223. lt_prog_compiler_static_CXX \
  24224. lt_cv_prog_compiler_c_o_RC \
  24225. lt_cv_prog_compiler_c_o_CXX \
  24226. export_dynamic_flag_spec_RC \
  24227. export_dynamic_flag_spec_CXX \
  24228. whole_archive_flag_spec_RC \
  24229. whole_archive_flag_spec_CXX \
  24230. compiler_needs_object_RC \
  24231. compiler_needs_object_CXX \
  24232. with_gnu_ld_RC \
  24233. with_gnu_ld_CXX \
  24234. allow_undefined_flag_RC \
  24235. allow_undefined_flag_CXX \
  24236. no_undefined_flag_RC \
  24237. no_undefined_flag_CXX \
  24238. hardcode_libdir_flag_spec_RC \
  24239. hardcode_libdir_flag_spec_CXX \
  24240. hardcode_libdir_separator_RC \
  24241. hardcode_libdir_separator_CXX \
  24242. exclude_expsyms_RC \
  24243. exclude_expsyms_CXX \
  24244. include_expsyms_RC \
  24245. include_expsyms_CXX \
  24246. file_list_spec_RC \
  24247. file_list_spec_CXX \
  24248. compiler_lib_search_dirs_RC \
  24249. compiler_lib_search_dirs_CXX \
  24250. predep_objects_RC \
  24251. predep_objects_CXX \
  24252. postdep_objects_RC \
  24253. postdep_objects_CXX \
  24254. predeps_RC \
  24255. predeps_CXX \
  24256. postdeps_RC \
  24257. postdeps_CXX \
  24258. compiler_lib_search_path_RC \
  24259. compiler_lib_search_path_CXX; do
  24260. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24261. *[\\\\\\\`\\"\\\$]*)
  24262. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24263. ;;
  24264. *)
  24265. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24266. ;;
  24267. esac
  24268. done
  24269. # Double-quote double-evaled strings.
  24270. for var in reload_cmds \
  24271. old_postinstall_cmds \
  24272. old_postuninstall_cmds \
  24273. old_archive_cmds \
  24274. extract_expsyms_cmds \
  24275. old_archive_from_new_cmds \
  24276. old_archive_from_expsyms_cmds \
  24277. archive_cmds \
  24278. archive_expsym_cmds \
  24279. module_cmds \
  24280. module_expsym_cmds \
  24281. export_symbols_cmds \
  24282. prelink_cmds \
  24283. postlink_cmds \
  24284. postinstall_cmds \
  24285. postuninstall_cmds \
  24286. finish_cmds \
  24287. sys_lib_search_path_spec \
  24288. configure_time_dlsearch_path \
  24289. configure_time_lt_sys_library_path \
  24290. reload_cmds_RC \
  24291. reload_cmds_CXX \
  24292. old_archive_cmds_RC \
  24293. old_archive_cmds_CXX \
  24294. old_archive_from_new_cmds_RC \
  24295. old_archive_from_new_cmds_CXX \
  24296. old_archive_from_expsyms_cmds_RC \
  24297. old_archive_from_expsyms_cmds_CXX \
  24298. archive_cmds_RC \
  24299. archive_cmds_CXX \
  24300. archive_expsym_cmds_RC \
  24301. archive_expsym_cmds_CXX \
  24302. module_cmds_RC \
  24303. module_cmds_CXX \
  24304. module_expsym_cmds_RC \
  24305. module_expsym_cmds_CXX \
  24306. export_symbols_cmds_RC \
  24307. export_symbols_cmds_CXX \
  24308. prelink_cmds_RC \
  24309. prelink_cmds_CXX \
  24310. postlink_cmds_RC \
  24311. postlink_cmds_CXX; do
  24312. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24313. *[\\\\\\\`\\"\\\$]*)
  24314. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24315. ;;
  24316. *)
  24317. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24318. ;;
  24319. esac
  24320. done
  24321. ac_aux_dir='$ac_aux_dir'
  24322. # See if we are running on zsh, and set the options that allow our
  24323. # commands through without removal of \ escapes INIT.
  24324. if test -n "\${ZSH_VERSION+set}"; then
  24325. setopt NO_GLOB_SUBST
  24326. fi
  24327. PACKAGE='$PACKAGE'
  24328. VERSION='$VERSION'
  24329. RM='$RM'
  24330. ofile='$ofile'
  24331. SUMMARY="$SUMMARY"
  24332. _ACEOF
  24333. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24334. # Handling of arguments.
  24335. for ac_config_target in $ac_config_targets
  24336. do
  24337. case $ac_config_target in
  24338. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24339. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24340. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24341. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24342. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24343. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24344. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24345. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24346. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24347. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24348. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24349. esac
  24350. done
  24351. # If the user did not use the arguments to specify the items to instantiate,
  24352. # then the envvar interface is used. Set only those that are not.
  24353. # We use the long form for the default assignment because of an extremely
  24354. # bizarre bug on SunOS 4.1.3.
  24355. if $ac_need_defaults; then
  24356. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24357. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24358. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24359. fi
  24360. # Have a temporary directory for convenience. Make it in the build tree
  24361. # simply because there is no reason against having it here, and in addition,
  24362. # creating and moving files from /tmp can sometimes cause problems.
  24363. # Hook for its removal unless debugging.
  24364. # Note that there is a small window in which the directory will not be cleaned:
  24365. # after its creation but before its name has been assigned to `$tmp'.
  24366. $debug ||
  24367. {
  24368. tmp= ac_tmp=
  24369. trap 'exit_status=$?
  24370. : "${ac_tmp:=$tmp}"
  24371. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24372. ' 0
  24373. trap 'as_fn_exit 1' 1 2 13 15
  24374. }
  24375. # Create a (secure) tmp directory for tmp files.
  24376. {
  24377. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24378. test -d "$tmp"
  24379. } ||
  24380. {
  24381. tmp=./conf$$-$RANDOM
  24382. (umask 077 && mkdir "$tmp")
  24383. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24384. ac_tmp=$tmp
  24385. # Set up the scripts for CONFIG_FILES section.
  24386. # No need to generate them if there are no CONFIG_FILES.
  24387. # This happens for instance with `./config.status config.h'.
  24388. if test -n "$CONFIG_FILES"; then
  24389. ac_cr=`echo X | tr X '\015'`
  24390. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24391. # But we know of no other shell where ac_cr would be empty at this
  24392. # point, so we can use a bashism as a fallback.
  24393. if test "x$ac_cr" = x; then
  24394. eval ac_cr=\$\'\\r\'
  24395. fi
  24396. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24397. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24398. ac_cs_awk_cr='\\r'
  24399. else
  24400. ac_cs_awk_cr=$ac_cr
  24401. fi
  24402. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24403. _ACEOF
  24404. {
  24405. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24406. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24407. echo "_ACEOF"
  24408. } >conf$$subs.sh ||
  24409. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24410. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24411. ac_delim='%!_!# '
  24412. for ac_last_try in false false false false false :; do
  24413. . ./conf$$subs.sh ||
  24414. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24415. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24416. if test $ac_delim_n = $ac_delim_num; then
  24417. break
  24418. elif $ac_last_try; then
  24419. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24420. else
  24421. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24422. fi
  24423. done
  24424. rm -f conf$$subs.sh
  24425. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24426. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24427. _ACEOF
  24428. sed -n '
  24429. h
  24430. s/^/S["/; s/!.*/"]=/
  24431. p
  24432. g
  24433. s/^[^!]*!//
  24434. :repl
  24435. t repl
  24436. s/'"$ac_delim"'$//
  24437. t delim
  24438. :nl
  24439. h
  24440. s/\(.\{148\}\)..*/\1/
  24441. t more1
  24442. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24443. p
  24444. n
  24445. b repl
  24446. :more1
  24447. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24448. p
  24449. g
  24450. s/.\{148\}//
  24451. t nl
  24452. :delim
  24453. h
  24454. s/\(.\{148\}\)..*/\1/
  24455. t more2
  24456. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24457. p
  24458. b
  24459. :more2
  24460. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24461. p
  24462. g
  24463. s/.\{148\}//
  24464. t delim
  24465. ' <conf$$subs.awk | sed '
  24466. /^[^""]/{
  24467. N
  24468. s/\n//
  24469. }
  24470. ' >>$CONFIG_STATUS || ac_write_fail=1
  24471. rm -f conf$$subs.awk
  24472. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24473. _ACAWK
  24474. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24475. for (key in S) S_is_set[key] = 1
  24476. FS = ""
  24477. }
  24478. {
  24479. line = $ 0
  24480. nfields = split(line, field, "@")
  24481. substed = 0
  24482. len = length(field[1])
  24483. for (i = 2; i < nfields; i++) {
  24484. key = field[i]
  24485. keylen = length(key)
  24486. if (S_is_set[key]) {
  24487. value = S[key]
  24488. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24489. len += length(value) + length(field[++i])
  24490. substed = 1
  24491. } else
  24492. len += 1 + keylen
  24493. }
  24494. print line
  24495. }
  24496. _ACAWK
  24497. _ACEOF
  24498. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24499. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24500. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24501. else
  24502. cat
  24503. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24504. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24505. _ACEOF
  24506. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24507. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24508. # trailing colons and then remove the whole line if VPATH becomes empty
  24509. # (actually we leave an empty line to preserve line numbers).
  24510. if test "x$srcdir" = x.; then
  24511. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24512. h
  24513. s///
  24514. s/^/:/
  24515. s/[ ]*$/:/
  24516. s/:\$(srcdir):/:/g
  24517. s/:\${srcdir}:/:/g
  24518. s/:@srcdir@:/:/g
  24519. s/^:*//
  24520. s/:*$//
  24521. x
  24522. s/\(=[ ]*\).*/\1/
  24523. G
  24524. s/\n//
  24525. s/^[^=]*=[ ]*$//
  24526. }'
  24527. fi
  24528. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24529. fi # test -n "$CONFIG_FILES"
  24530. # Set up the scripts for CONFIG_HEADERS section.
  24531. # No need to generate them if there are no CONFIG_HEADERS.
  24532. # This happens for instance with `./config.status Makefile'.
  24533. if test -n "$CONFIG_HEADERS"; then
  24534. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24535. BEGIN {
  24536. _ACEOF
  24537. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24538. # here-document in config.status, that substitutes the proper values into
  24539. # config.h.in to produce config.h.
  24540. # Create a delimiter string that does not exist in confdefs.h, to ease
  24541. # handling of long lines.
  24542. ac_delim='%!_!# '
  24543. for ac_last_try in false false :; do
  24544. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24545. if test -z "$ac_tt"; then
  24546. break
  24547. elif $ac_last_try; then
  24548. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24549. else
  24550. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24551. fi
  24552. done
  24553. # For the awk script, D is an array of macro values keyed by name,
  24554. # likewise P contains macro parameters if any. Preserve backslash
  24555. # newline sequences.
  24556. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24557. sed -n '
  24558. s/.\{148\}/&'"$ac_delim"'/g
  24559. t rset
  24560. :rset
  24561. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24562. t def
  24563. d
  24564. :def
  24565. s/\\$//
  24566. t bsnl
  24567. s/["\\]/\\&/g
  24568. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24569. D["\1"]=" \3"/p
  24570. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24571. d
  24572. :bsnl
  24573. s/["\\]/\\&/g
  24574. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24575. D["\1"]=" \3\\\\\\n"\\/p
  24576. t cont
  24577. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24578. t cont
  24579. d
  24580. :cont
  24581. n
  24582. s/.\{148\}/&'"$ac_delim"'/g
  24583. t clear
  24584. :clear
  24585. s/\\$//
  24586. t bsnlc
  24587. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24588. d
  24589. :bsnlc
  24590. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24591. b cont
  24592. ' <confdefs.h | sed '
  24593. s/'"$ac_delim"'/"\\\
  24594. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24595. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24596. for (key in D) D_is_set[key] = 1
  24597. FS = ""
  24598. }
  24599. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24600. line = \$ 0
  24601. split(line, arg, " ")
  24602. if (arg[1] == "#") {
  24603. defundef = arg[2]
  24604. mac1 = arg[3]
  24605. } else {
  24606. defundef = substr(arg[1], 2)
  24607. mac1 = arg[2]
  24608. }
  24609. split(mac1, mac2, "(") #)
  24610. macro = mac2[1]
  24611. prefix = substr(line, 1, index(line, defundef) - 1)
  24612. if (D_is_set[macro]) {
  24613. # Preserve the white space surrounding the "#".
  24614. print prefix "define", macro P[macro] D[macro]
  24615. next
  24616. } else {
  24617. # Replace #undef with comments. This is necessary, for example,
  24618. # in the case of _POSIX_SOURCE, which is predefined and required
  24619. # on some systems where configure will not decide to define it.
  24620. if (defundef == "undef") {
  24621. print "/*", prefix defundef, macro, "*/"
  24622. next
  24623. }
  24624. }
  24625. }
  24626. { print }
  24627. _ACAWK
  24628. _ACEOF
  24629. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24630. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24631. fi # test -n "$CONFIG_HEADERS"
  24632. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24633. shift
  24634. for ac_tag
  24635. do
  24636. case $ac_tag in
  24637. :[FHLC]) ac_mode=$ac_tag; continue;;
  24638. esac
  24639. case $ac_mode$ac_tag in
  24640. :[FHL]*:*);;
  24641. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24642. :[FH]-) ac_tag=-:-;;
  24643. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24644. esac
  24645. ac_save_IFS=$IFS
  24646. IFS=:
  24647. set x $ac_tag
  24648. IFS=$ac_save_IFS
  24649. shift
  24650. ac_file=$1
  24651. shift
  24652. case $ac_mode in
  24653. :L) ac_source=$1;;
  24654. :[FH])
  24655. ac_file_inputs=
  24656. for ac_f
  24657. do
  24658. case $ac_f in
  24659. -) ac_f="$ac_tmp/stdin";;
  24660. *) # Look for the file first in the build tree, then in the source tree
  24661. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24662. # because $ac_f cannot contain `:'.
  24663. test -f "$ac_f" ||
  24664. case $ac_f in
  24665. [\\/$]*) false;;
  24666. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24667. esac ||
  24668. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24669. esac
  24670. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24671. as_fn_append ac_file_inputs " '$ac_f'"
  24672. done
  24673. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24674. # use $as_me), people would be surprised to read:
  24675. # /* config.h. Generated by config.status. */
  24676. configure_input='Generated from '`
  24677. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24678. `' by configure.'
  24679. if test x"$ac_file" != x-; then
  24680. configure_input="$ac_file. $configure_input"
  24681. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24682. $as_echo "$as_me: creating $ac_file" >&6;}
  24683. fi
  24684. # Neutralize special characters interpreted by sed in replacement strings.
  24685. case $configure_input in #(
  24686. *\&* | *\|* | *\\* )
  24687. ac_sed_conf_input=`$as_echo "$configure_input" |
  24688. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24689. *) ac_sed_conf_input=$configure_input;;
  24690. esac
  24691. case $ac_tag in
  24692. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24693. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24694. esac
  24695. ;;
  24696. esac
  24697. ac_dir=`$as_dirname -- "$ac_file" ||
  24698. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24699. X"$ac_file" : 'X\(//\)[^/]' \| \
  24700. X"$ac_file" : 'X\(//\)$' \| \
  24701. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24702. $as_echo X"$ac_file" |
  24703. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24704. s//\1/
  24705. q
  24706. }
  24707. /^X\(\/\/\)[^/].*/{
  24708. s//\1/
  24709. q
  24710. }
  24711. /^X\(\/\/\)$/{
  24712. s//\1/
  24713. q
  24714. }
  24715. /^X\(\/\).*/{
  24716. s//\1/
  24717. q
  24718. }
  24719. s/.*/./; q'`
  24720. as_dir="$ac_dir"; as_fn_mkdir_p
  24721. ac_builddir=.
  24722. case "$ac_dir" in
  24723. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24724. *)
  24725. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24726. # A ".." for each directory in $ac_dir_suffix.
  24727. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24728. case $ac_top_builddir_sub in
  24729. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24730. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24731. esac ;;
  24732. esac
  24733. ac_abs_top_builddir=$ac_pwd
  24734. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24735. # for backward compatibility:
  24736. ac_top_builddir=$ac_top_build_prefix
  24737. case $srcdir in
  24738. .) # We are building in place.
  24739. ac_srcdir=.
  24740. ac_top_srcdir=$ac_top_builddir_sub
  24741. ac_abs_top_srcdir=$ac_pwd ;;
  24742. [\\/]* | ?:[\\/]* ) # Absolute name.
  24743. ac_srcdir=$srcdir$ac_dir_suffix;
  24744. ac_top_srcdir=$srcdir
  24745. ac_abs_top_srcdir=$srcdir ;;
  24746. *) # Relative name.
  24747. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24748. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24749. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24750. esac
  24751. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24752. case $ac_mode in
  24753. :F)
  24754. #
  24755. # CONFIG_FILE
  24756. #
  24757. case $INSTALL in
  24758. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24759. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24760. esac
  24761. _ACEOF
  24762. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24763. # If the template does not know about datarootdir, expand it.
  24764. # FIXME: This hack should be removed a few years after 2.60.
  24765. ac_datarootdir_hack=; ac_datarootdir_seen=
  24766. ac_sed_dataroot='
  24767. /datarootdir/ {
  24768. p
  24769. q
  24770. }
  24771. /@datadir@/p
  24772. /@docdir@/p
  24773. /@infodir@/p
  24774. /@localedir@/p
  24775. /@mandir@/p'
  24776. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24777. *datarootdir*) ac_datarootdir_seen=yes;;
  24778. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24780. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24781. _ACEOF
  24782. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24783. ac_datarootdir_hack='
  24784. s&@datadir@&$datadir&g
  24785. s&@docdir@&$docdir&g
  24786. s&@infodir@&$infodir&g
  24787. s&@localedir@&$localedir&g
  24788. s&@mandir@&$mandir&g
  24789. s&\\\${datarootdir}&$datarootdir&g' ;;
  24790. esac
  24791. _ACEOF
  24792. # Neutralize VPATH when `$srcdir' = `.'.
  24793. # Shell code in configure.ac might set extrasub.
  24794. # FIXME: do we really want to maintain this feature?
  24795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24796. ac_sed_extra="$ac_vpsub
  24797. $extrasub
  24798. _ACEOF
  24799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24800. :t
  24801. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24802. s|@configure_input@|$ac_sed_conf_input|;t t
  24803. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24804. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24805. s&@srcdir@&$ac_srcdir&;t t
  24806. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24807. s&@top_srcdir@&$ac_top_srcdir&;t t
  24808. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24809. s&@builddir@&$ac_builddir&;t t
  24810. s&@abs_builddir@&$ac_abs_builddir&;t t
  24811. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24812. s&@INSTALL@&$ac_INSTALL&;t t
  24813. $ac_datarootdir_hack
  24814. "
  24815. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24816. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24817. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24818. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24819. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24820. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24822. which seems to be undefined. Please make sure it is defined" >&5
  24823. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24824. which seems to be undefined. Please make sure it is defined" >&2;}
  24825. rm -f "$ac_tmp/stdin"
  24826. case $ac_file in
  24827. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24828. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24829. esac \
  24830. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24831. ;;
  24832. :H)
  24833. #
  24834. # CONFIG_HEADER
  24835. #
  24836. if test x"$ac_file" != x-; then
  24837. {
  24838. $as_echo "/* $configure_input */" \
  24839. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24840. } >"$ac_tmp/config.h" \
  24841. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24842. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24843. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24844. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24845. else
  24846. rm -f "$ac_file"
  24847. mv "$ac_tmp/config.h" "$ac_file" \
  24848. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24849. fi
  24850. else
  24851. $as_echo "/* $configure_input */" \
  24852. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24853. || as_fn_error $? "could not create -" "$LINENO" 5
  24854. fi
  24855. ;;
  24856. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24857. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24858. ;;
  24859. esac
  24860. case $ac_file$ac_mode in
  24861. "libtool":C)
  24862. # See if we are running on zsh, and set the options that allow our
  24863. # commands through without removal of \ escapes.
  24864. if test -n "${ZSH_VERSION+set}"; then
  24865. setopt NO_GLOB_SUBST
  24866. fi
  24867. cfgfile=${ofile}T
  24868. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24869. $RM "$cfgfile"
  24870. cat <<_LT_EOF >> "$cfgfile"
  24871. #! $SHELL
  24872. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24873. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24874. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24875. # Provide generalized library-building support services.
  24876. # Written by Gordon Matzigkeit, 1996
  24877. # Copyright (C) 2014 Free Software Foundation, Inc.
  24878. # This is free software; see the source for copying conditions. There is NO
  24879. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24880. # GNU Libtool is free software; you can redistribute it and/or modify
  24881. # it under the terms of the GNU General Public License as published by
  24882. # the Free Software Foundation; either version 2 of of the License, or
  24883. # (at your option) any later version.
  24884. #
  24885. # As a special exception to the GNU General Public License, if you
  24886. # distribute this file as part of a program or library that is built
  24887. # using GNU Libtool, you may include this file under the same
  24888. # distribution terms that you use for the rest of that program.
  24889. #
  24890. # GNU Libtool is distributed in the hope that it will be useful, but
  24891. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24892. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24893. # GNU General Public License for more details.
  24894. #
  24895. # You should have received a copy of the GNU General Public License
  24896. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24897. # The names of the tagged configurations supported by this script.
  24898. available_tags='RC CXX '
  24899. # Configured defaults for sys_lib_dlsearch_path munging.
  24900. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24901. # ### BEGIN LIBTOOL CONFIG
  24902. # Which release of libtool.m4 was used?
  24903. macro_version=$macro_version
  24904. macro_revision=$macro_revision
  24905. # Assembler program.
  24906. AS=$lt_AS
  24907. # DLL creation program.
  24908. DLLTOOL=$lt_DLLTOOL
  24909. # Object dumper program.
  24910. OBJDUMP=$lt_OBJDUMP
  24911. # Whether or not to build shared libraries.
  24912. build_libtool_libs=$enable_shared
  24913. # Whether or not to build static libraries.
  24914. build_old_libs=$enable_static
  24915. # What type of objects to build.
  24916. pic_mode=$pic_mode
  24917. # Whether or not to optimize for fast installation.
  24918. fast_install=$enable_fast_install
  24919. # Shared archive member basename,for filename based shared library versioning on AIX.
  24920. shared_archive_member_spec=$shared_archive_member_spec
  24921. # Shell to use when invoking shell scripts.
  24922. SHELL=$lt_SHELL
  24923. # An echo program that protects backslashes.
  24924. ECHO=$lt_ECHO
  24925. # The PATH separator for the build system.
  24926. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24927. # The host system.
  24928. host_alias=$host_alias
  24929. host=$host
  24930. host_os=$host_os
  24931. # The build system.
  24932. build_alias=$build_alias
  24933. build=$build
  24934. build_os=$build_os
  24935. # A sed program that does not truncate output.
  24936. SED=$lt_SED
  24937. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24938. Xsed="\$SED -e 1s/^X//"
  24939. # A grep program that handles long lines.
  24940. GREP=$lt_GREP
  24941. # An ERE matcher.
  24942. EGREP=$lt_EGREP
  24943. # A literal string matcher.
  24944. FGREP=$lt_FGREP
  24945. # A BSD- or MS-compatible name lister.
  24946. NM=$lt_NM
  24947. # Whether we need soft or hard links.
  24948. LN_S=$lt_LN_S
  24949. # What is the maximum length of a command?
  24950. max_cmd_len=$max_cmd_len
  24951. # Object file suffix (normally "o").
  24952. objext=$ac_objext
  24953. # Executable file suffix (normally "").
  24954. exeext=$exeext
  24955. # whether the shell understands "unset".
  24956. lt_unset=$lt_unset
  24957. # turn spaces into newlines.
  24958. SP2NL=$lt_lt_SP2NL
  24959. # turn newlines into spaces.
  24960. NL2SP=$lt_lt_NL2SP
  24961. # convert \$build file names to \$host format.
  24962. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24963. # convert \$build files to toolchain format.
  24964. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24965. # Method to check whether dependent libraries are shared objects.
  24966. deplibs_check_method=$lt_deplibs_check_method
  24967. # Command to use when deplibs_check_method = "file_magic".
  24968. file_magic_cmd=$lt_file_magic_cmd
  24969. # How to find potential files when deplibs_check_method = "file_magic".
  24970. file_magic_glob=$lt_file_magic_glob
  24971. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24972. want_nocaseglob=$lt_want_nocaseglob
  24973. # Command to associate shared and link libraries.
  24974. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24975. # The archiver.
  24976. AR=$lt_AR
  24977. # Flags to create an archive.
  24978. AR_FLAGS=$lt_AR_FLAGS
  24979. # How to feed a file listing to the archiver.
  24980. archiver_list_spec=$lt_archiver_list_spec
  24981. # A symbol stripping program.
  24982. STRIP=$lt_STRIP
  24983. # Commands used to install an old-style archive.
  24984. RANLIB=$lt_RANLIB
  24985. old_postinstall_cmds=$lt_old_postinstall_cmds
  24986. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24987. # Whether to use a lock for old archive extraction.
  24988. lock_old_archive_extraction=$lock_old_archive_extraction
  24989. # A C compiler.
  24990. LTCC=$lt_CC
  24991. # LTCC compiler flags.
  24992. LTCFLAGS=$lt_CFLAGS
  24993. # Take the output of nm and produce a listing of raw symbols and C names.
  24994. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24995. # Transform the output of nm in a proper C declaration.
  24996. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24997. # Transform the output of nm into a list of symbols to manually relocate.
  24998. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24999. # Transform the output of nm in a C name address pair.
  25000. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25001. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25002. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25003. # The name lister interface.
  25004. nm_interface=$lt_lt_cv_nm_interface
  25005. # Specify filename containing input files for \$NM.
  25006. nm_file_list_spec=$lt_nm_file_list_spec
  25007. # The root where to search for dependent libraries,and where our libraries should be installed.
  25008. lt_sysroot=$lt_sysroot
  25009. # Command to truncate a binary pipe.
  25010. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25011. # The name of the directory that contains temporary libtool files.
  25012. objdir=$objdir
  25013. # Used to examine libraries when file_magic_cmd begins with "file".
  25014. MAGIC_CMD=$MAGIC_CMD
  25015. # Must we lock files when doing compilation?
  25016. need_locks=$lt_need_locks
  25017. # Manifest tool.
  25018. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25019. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25020. DSYMUTIL=$lt_DSYMUTIL
  25021. # Tool to change global to local symbols on Mac OS X.
  25022. NMEDIT=$lt_NMEDIT
  25023. # Tool to manipulate fat objects and archives on Mac OS X.
  25024. LIPO=$lt_LIPO
  25025. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25026. OTOOL=$lt_OTOOL
  25027. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25028. OTOOL64=$lt_OTOOL64
  25029. # Old archive suffix (normally "a").
  25030. libext=$libext
  25031. # Shared library suffix (normally ".so").
  25032. shrext_cmds=$lt_shrext_cmds
  25033. # The commands to extract the exported symbol list from a shared archive.
  25034. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25035. # Variables whose values should be saved in libtool wrapper scripts and
  25036. # restored at link time.
  25037. variables_saved_for_relink=$lt_variables_saved_for_relink
  25038. # Do we need the "lib" prefix for modules?
  25039. need_lib_prefix=$need_lib_prefix
  25040. # Do we need a version for libraries?
  25041. need_version=$need_version
  25042. # Library versioning type.
  25043. version_type=$version_type
  25044. # Shared library runtime path variable.
  25045. runpath_var=$runpath_var
  25046. # Shared library path variable.
  25047. shlibpath_var=$shlibpath_var
  25048. # Is shlibpath searched before the hard-coded library search path?
  25049. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25050. # Format of library name prefix.
  25051. libname_spec=$lt_libname_spec
  25052. # List of archive names. First name is the real one, the rest are links.
  25053. # The last name is the one that the linker finds with -lNAME
  25054. library_names_spec=$lt_library_names_spec
  25055. # The coded name of the library, if different from the real name.
  25056. soname_spec=$lt_soname_spec
  25057. # Permission mode override for installation of shared libraries.
  25058. install_override_mode=$lt_install_override_mode
  25059. # Command to use after installation of a shared archive.
  25060. postinstall_cmds=$lt_postinstall_cmds
  25061. # Command to use after uninstallation of a shared archive.
  25062. postuninstall_cmds=$lt_postuninstall_cmds
  25063. # Commands used to finish a libtool library installation in a directory.
  25064. finish_cmds=$lt_finish_cmds
  25065. # As "finish_cmds", except a single script fragment to be evaled but
  25066. # not shown.
  25067. finish_eval=$lt_finish_eval
  25068. # Whether we should hardcode library paths into libraries.
  25069. hardcode_into_libs=$hardcode_into_libs
  25070. # Compile-time system search path for libraries.
  25071. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25072. # Detected run-time system search path for libraries.
  25073. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25074. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25075. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25076. # Whether dlopen is supported.
  25077. dlopen_support=$enable_dlopen
  25078. # Whether dlopen of programs is supported.
  25079. dlopen_self=$enable_dlopen_self
  25080. # Whether dlopen of statically linked programs is supported.
  25081. dlopen_self_static=$enable_dlopen_self_static
  25082. # Commands to strip libraries.
  25083. old_striplib=$lt_old_striplib
  25084. striplib=$lt_striplib
  25085. # The linker used to build libraries.
  25086. LD=$lt_LD
  25087. # How to create reloadable object files.
  25088. reload_flag=$lt_reload_flag
  25089. reload_cmds=$lt_reload_cmds
  25090. # Commands used to build an old-style archive.
  25091. old_archive_cmds=$lt_old_archive_cmds
  25092. # A language specific compiler.
  25093. CC=$lt_compiler
  25094. # Is the compiler the GNU compiler?
  25095. with_gcc=$GCC
  25096. # Compiler flag to turn off builtin functions.
  25097. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25098. # Additional compiler flags for building library objects.
  25099. pic_flag=$lt_lt_prog_compiler_pic
  25100. # How to pass a linker flag through the compiler.
  25101. wl=$lt_lt_prog_compiler_wl
  25102. # Compiler flag to prevent dynamic linking.
  25103. link_static_flag=$lt_lt_prog_compiler_static
  25104. # Does compiler simultaneously support -c and -o options?
  25105. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25106. # Whether or not to add -lc for building shared libraries.
  25107. build_libtool_need_lc=$archive_cmds_need_lc
  25108. # Whether or not to disallow shared libs when runtime libs are static.
  25109. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25110. # Compiler flag to allow reflexive dlopens.
  25111. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25112. # Compiler flag to generate shared objects directly from archives.
  25113. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25114. # Whether the compiler copes with passing no objects directly.
  25115. compiler_needs_object=$lt_compiler_needs_object
  25116. # Create an old-style archive from a shared archive.
  25117. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25118. # Create a temporary old-style archive to link instead of a shared archive.
  25119. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25120. # Commands used to build a shared archive.
  25121. archive_cmds=$lt_archive_cmds
  25122. archive_expsym_cmds=$lt_archive_expsym_cmds
  25123. # Commands used to build a loadable module if different from building
  25124. # a shared archive.
  25125. module_cmds=$lt_module_cmds
  25126. module_expsym_cmds=$lt_module_expsym_cmds
  25127. # Whether we are building with GNU ld or not.
  25128. with_gnu_ld=$lt_with_gnu_ld
  25129. # Flag that allows shared libraries with undefined symbols to be built.
  25130. allow_undefined_flag=$lt_allow_undefined_flag
  25131. # Flag that enforces no undefined symbols.
  25132. no_undefined_flag=$lt_no_undefined_flag
  25133. # Flag to hardcode \$libdir into a binary during linking.
  25134. # This must work even if \$libdir does not exist
  25135. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25136. # Whether we need a single "-rpath" flag with a separated argument.
  25137. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25138. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25139. # DIR into the resulting binary.
  25140. hardcode_direct=$hardcode_direct
  25141. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25142. # DIR into the resulting binary and the resulting library dependency is
  25143. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25144. # library is relocated.
  25145. hardcode_direct_absolute=$hardcode_direct_absolute
  25146. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25147. # into the resulting binary.
  25148. hardcode_minus_L=$hardcode_minus_L
  25149. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25150. # into the resulting binary.
  25151. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25152. # Set to "yes" if building a shared library automatically hardcodes DIR
  25153. # into the library and all subsequent libraries and executables linked
  25154. # against it.
  25155. hardcode_automatic=$hardcode_automatic
  25156. # Set to yes if linker adds runtime paths of dependent libraries
  25157. # to runtime path list.
  25158. inherit_rpath=$inherit_rpath
  25159. # Whether libtool must link a program against all its dependency libraries.
  25160. link_all_deplibs=$link_all_deplibs
  25161. # Set to "yes" if exported symbols are required.
  25162. always_export_symbols=$always_export_symbols
  25163. # The commands to list exported symbols.
  25164. export_symbols_cmds=$lt_export_symbols_cmds
  25165. # Symbols that should not be listed in the preloaded symbols.
  25166. exclude_expsyms=$lt_exclude_expsyms
  25167. # Symbols that must always be exported.
  25168. include_expsyms=$lt_include_expsyms
  25169. # Commands necessary for linking programs (against libraries) with templates.
  25170. prelink_cmds=$lt_prelink_cmds
  25171. # Commands necessary for finishing linking programs.
  25172. postlink_cmds=$lt_postlink_cmds
  25173. # Specify filename containing input files.
  25174. file_list_spec=$lt_file_list_spec
  25175. # How to hardcode a shared library path into an executable.
  25176. hardcode_action=$hardcode_action
  25177. # The directories searched by this compiler when creating a shared library.
  25178. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25179. # Dependencies to place before and after the objects being linked to
  25180. # create a shared library.
  25181. predep_objects=$lt_predep_objects
  25182. postdep_objects=$lt_postdep_objects
  25183. predeps=$lt_predeps
  25184. postdeps=$lt_postdeps
  25185. # The library search path used internally by the compiler when linking
  25186. # a shared library.
  25187. compiler_lib_search_path=$lt_compiler_lib_search_path
  25188. # ### END LIBTOOL CONFIG
  25189. _LT_EOF
  25190. cat <<'_LT_EOF' >> "$cfgfile"
  25191. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25192. # func_munge_path_list VARIABLE PATH
  25193. # -----------------------------------
  25194. # VARIABLE is name of variable containing _space_ separated list of
  25195. # directories to be munged by the contents of PATH, which is string
  25196. # having a format:
  25197. # "DIR[:DIR]:"
  25198. # string "DIR[ DIR]" will be prepended to VARIABLE
  25199. # ":DIR[:DIR]"
  25200. # string "DIR[ DIR]" will be appended to VARIABLE
  25201. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25202. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25203. # "DIRA[ DIRA]" will be appended to VARIABLE
  25204. # "DIR[:DIR]"
  25205. # VARIABLE will be replaced by "DIR[ DIR]"
  25206. func_munge_path_list ()
  25207. {
  25208. case x$2 in
  25209. x)
  25210. ;;
  25211. *:)
  25212. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25213. ;;
  25214. x:*)
  25215. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25216. ;;
  25217. *::*)
  25218. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25219. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25220. ;;
  25221. *)
  25222. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25223. ;;
  25224. esac
  25225. }
  25226. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25227. func_cc_basename ()
  25228. {
  25229. for cc_temp in $*""; do
  25230. case $cc_temp in
  25231. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25232. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25233. \-*) ;;
  25234. *) break;;
  25235. esac
  25236. done
  25237. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25238. }
  25239. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25240. _LT_EOF
  25241. case $host_os in
  25242. aix3*)
  25243. cat <<\_LT_EOF >> "$cfgfile"
  25244. # AIX sometimes has problems with the GCC collect2 program. For some
  25245. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25246. # vanish in a puff of smoke.
  25247. if test set != "${COLLECT_NAMES+set}"; then
  25248. COLLECT_NAMES=
  25249. export COLLECT_NAMES
  25250. fi
  25251. _LT_EOF
  25252. ;;
  25253. esac
  25254. ltmain=$ac_aux_dir/ltmain.sh
  25255. # We use sed instead of cat because bash on DJGPP gets confused if
  25256. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25257. # text mode, it properly converts lines to CR/LF. This bash problem
  25258. # is reportedly fixed, but why not run on old versions too?
  25259. sed '$q' "$ltmain" >> "$cfgfile" \
  25260. || (rm -f "$cfgfile"; exit 1)
  25261. mv -f "$cfgfile" "$ofile" ||
  25262. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25263. chmod +x "$ofile"
  25264. cat <<_LT_EOF >> "$ofile"
  25265. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25266. # The linker used to build libraries.
  25267. LD=$lt_LD_RC
  25268. # How to create reloadable object files.
  25269. reload_flag=$lt_reload_flag_RC
  25270. reload_cmds=$lt_reload_cmds_RC
  25271. # Commands used to build an old-style archive.
  25272. old_archive_cmds=$lt_old_archive_cmds_RC
  25273. # A language specific compiler.
  25274. CC=$lt_compiler_RC
  25275. # Is the compiler the GNU compiler?
  25276. with_gcc=$GCC_RC
  25277. # Compiler flag to turn off builtin functions.
  25278. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25279. # Additional compiler flags for building library objects.
  25280. pic_flag=$lt_lt_prog_compiler_pic_RC
  25281. # How to pass a linker flag through the compiler.
  25282. wl=$lt_lt_prog_compiler_wl_RC
  25283. # Compiler flag to prevent dynamic linking.
  25284. link_static_flag=$lt_lt_prog_compiler_static_RC
  25285. # Does compiler simultaneously support -c and -o options?
  25286. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25287. # Whether or not to add -lc for building shared libraries.
  25288. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25289. # Whether or not to disallow shared libs when runtime libs are static.
  25290. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25291. # Compiler flag to allow reflexive dlopens.
  25292. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25293. # Compiler flag to generate shared objects directly from archives.
  25294. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25295. # Whether the compiler copes with passing no objects directly.
  25296. compiler_needs_object=$lt_compiler_needs_object_RC
  25297. # Create an old-style archive from a shared archive.
  25298. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25299. # Create a temporary old-style archive to link instead of a shared archive.
  25300. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25301. # Commands used to build a shared archive.
  25302. archive_cmds=$lt_archive_cmds_RC
  25303. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25304. # Commands used to build a loadable module if different from building
  25305. # a shared archive.
  25306. module_cmds=$lt_module_cmds_RC
  25307. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25308. # Whether we are building with GNU ld or not.
  25309. with_gnu_ld=$lt_with_gnu_ld_RC
  25310. # Flag that allows shared libraries with undefined symbols to be built.
  25311. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25312. # Flag that enforces no undefined symbols.
  25313. no_undefined_flag=$lt_no_undefined_flag_RC
  25314. # Flag to hardcode \$libdir into a binary during linking.
  25315. # This must work even if \$libdir does not exist
  25316. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25317. # Whether we need a single "-rpath" flag with a separated argument.
  25318. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25319. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25320. # DIR into the resulting binary.
  25321. hardcode_direct=$hardcode_direct_RC
  25322. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25323. # DIR into the resulting binary and the resulting library dependency is
  25324. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25325. # library is relocated.
  25326. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25327. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25328. # into the resulting binary.
  25329. hardcode_minus_L=$hardcode_minus_L_RC
  25330. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25331. # into the resulting binary.
  25332. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25333. # Set to "yes" if building a shared library automatically hardcodes DIR
  25334. # into the library and all subsequent libraries and executables linked
  25335. # against it.
  25336. hardcode_automatic=$hardcode_automatic_RC
  25337. # Set to yes if linker adds runtime paths of dependent libraries
  25338. # to runtime path list.
  25339. inherit_rpath=$inherit_rpath_RC
  25340. # Whether libtool must link a program against all its dependency libraries.
  25341. link_all_deplibs=$link_all_deplibs_RC
  25342. # Set to "yes" if exported symbols are required.
  25343. always_export_symbols=$always_export_symbols_RC
  25344. # The commands to list exported symbols.
  25345. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25346. # Symbols that should not be listed in the preloaded symbols.
  25347. exclude_expsyms=$lt_exclude_expsyms_RC
  25348. # Symbols that must always be exported.
  25349. include_expsyms=$lt_include_expsyms_RC
  25350. # Commands necessary for linking programs (against libraries) with templates.
  25351. prelink_cmds=$lt_prelink_cmds_RC
  25352. # Commands necessary for finishing linking programs.
  25353. postlink_cmds=$lt_postlink_cmds_RC
  25354. # Specify filename containing input files.
  25355. file_list_spec=$lt_file_list_spec_RC
  25356. # How to hardcode a shared library path into an executable.
  25357. hardcode_action=$hardcode_action_RC
  25358. # The directories searched by this compiler when creating a shared library.
  25359. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25360. # Dependencies to place before and after the objects being linked to
  25361. # create a shared library.
  25362. predep_objects=$lt_predep_objects_RC
  25363. postdep_objects=$lt_postdep_objects_RC
  25364. predeps=$lt_predeps_RC
  25365. postdeps=$lt_postdeps_RC
  25366. # The library search path used internally by the compiler when linking
  25367. # a shared library.
  25368. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25369. # ### END LIBTOOL TAG CONFIG: RC
  25370. _LT_EOF
  25371. cat <<_LT_EOF >> "$ofile"
  25372. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25373. # The linker used to build libraries.
  25374. LD=$lt_LD_CXX
  25375. # How to create reloadable object files.
  25376. reload_flag=$lt_reload_flag_CXX
  25377. reload_cmds=$lt_reload_cmds_CXX
  25378. # Commands used to build an old-style archive.
  25379. old_archive_cmds=$lt_old_archive_cmds_CXX
  25380. # A language specific compiler.
  25381. CC=$lt_compiler_CXX
  25382. # Is the compiler the GNU compiler?
  25383. with_gcc=$GCC_CXX
  25384. # Compiler flag to turn off builtin functions.
  25385. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25386. # Additional compiler flags for building library objects.
  25387. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25388. # How to pass a linker flag through the compiler.
  25389. wl=$lt_lt_prog_compiler_wl_CXX
  25390. # Compiler flag to prevent dynamic linking.
  25391. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25392. # Does compiler simultaneously support -c and -o options?
  25393. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25394. # Whether or not to add -lc for building shared libraries.
  25395. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25396. # Whether or not to disallow shared libs when runtime libs are static.
  25397. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25398. # Compiler flag to allow reflexive dlopens.
  25399. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25400. # Compiler flag to generate shared objects directly from archives.
  25401. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25402. # Whether the compiler copes with passing no objects directly.
  25403. compiler_needs_object=$lt_compiler_needs_object_CXX
  25404. # Create an old-style archive from a shared archive.
  25405. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25406. # Create a temporary old-style archive to link instead of a shared archive.
  25407. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25408. # Commands used to build a shared archive.
  25409. archive_cmds=$lt_archive_cmds_CXX
  25410. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25411. # Commands used to build a loadable module if different from building
  25412. # a shared archive.
  25413. module_cmds=$lt_module_cmds_CXX
  25414. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25415. # Whether we are building with GNU ld or not.
  25416. with_gnu_ld=$lt_with_gnu_ld_CXX
  25417. # Flag that allows shared libraries with undefined symbols to be built.
  25418. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25419. # Flag that enforces no undefined symbols.
  25420. no_undefined_flag=$lt_no_undefined_flag_CXX
  25421. # Flag to hardcode \$libdir into a binary during linking.
  25422. # This must work even if \$libdir does not exist
  25423. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25424. # Whether we need a single "-rpath" flag with a separated argument.
  25425. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25426. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25427. # DIR into the resulting binary.
  25428. hardcode_direct=$hardcode_direct_CXX
  25429. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25430. # DIR into the resulting binary and the resulting library dependency is
  25431. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25432. # library is relocated.
  25433. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25434. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25435. # into the resulting binary.
  25436. hardcode_minus_L=$hardcode_minus_L_CXX
  25437. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25438. # into the resulting binary.
  25439. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25440. # Set to "yes" if building a shared library automatically hardcodes DIR
  25441. # into the library and all subsequent libraries and executables linked
  25442. # against it.
  25443. hardcode_automatic=$hardcode_automatic_CXX
  25444. # Set to yes if linker adds runtime paths of dependent libraries
  25445. # to runtime path list.
  25446. inherit_rpath=$inherit_rpath_CXX
  25447. # Whether libtool must link a program against all its dependency libraries.
  25448. link_all_deplibs=$link_all_deplibs_CXX
  25449. # Set to "yes" if exported symbols are required.
  25450. always_export_symbols=$always_export_symbols_CXX
  25451. # The commands to list exported symbols.
  25452. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25453. # Symbols that should not be listed in the preloaded symbols.
  25454. exclude_expsyms=$lt_exclude_expsyms_CXX
  25455. # Symbols that must always be exported.
  25456. include_expsyms=$lt_include_expsyms_CXX
  25457. # Commands necessary for linking programs (against libraries) with templates.
  25458. prelink_cmds=$lt_prelink_cmds_CXX
  25459. # Commands necessary for finishing linking programs.
  25460. postlink_cmds=$lt_postlink_cmds_CXX
  25461. # Specify filename containing input files.
  25462. file_list_spec=$lt_file_list_spec_CXX
  25463. # How to hardcode a shared library path into an executable.
  25464. hardcode_action=$hardcode_action_CXX
  25465. # The directories searched by this compiler when creating a shared library.
  25466. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25467. # Dependencies to place before and after the objects being linked to
  25468. # create a shared library.
  25469. predep_objects=$lt_predep_objects_CXX
  25470. postdep_objects=$lt_postdep_objects_CXX
  25471. predeps=$lt_predeps_CXX
  25472. postdeps=$lt_postdeps_CXX
  25473. # The library search path used internally by the compiler when linking
  25474. # a shared library.
  25475. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25476. # ### END LIBTOOL TAG CONFIG: CXX
  25477. _LT_EOF
  25478. ;;
  25479. "sdl2_config":C) chmod a+x sdl2-config ;;
  25480. "summary":C) printf "$SUMMARY" ;;
  25481. esac
  25482. done # for ac_tag
  25483. as_fn_exit 0
  25484. _ACEOF
  25485. ac_clean_files=$ac_clean_files_save
  25486. test $ac_write_fail = 0 ||
  25487. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25488. # configure is writing to config.log, and then calls config.status.
  25489. # config.status does its own redirection, appending to config.log.
  25490. # Unfortunately, on DOS this fails, as config.log is still kept open
  25491. # by configure, so config.status won't be able to write to it; its
  25492. # output is simply discarded. So we exec the FD to /dev/null,
  25493. # effectively closing config.log, so it can be properly (re)opened and
  25494. # appended to by config.status. When coming back to configure, we
  25495. # need to make the FD available again.
  25496. if test "$no_create" != yes; then
  25497. ac_cs_success=:
  25498. ac_config_status_args=
  25499. test "$silent" = yes &&
  25500. ac_config_status_args="$ac_config_status_args --quiet"
  25501. exec 5>/dev/null
  25502. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25503. exec 5>>config.log
  25504. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25505. # would make configure fail if this is the last instruction.
  25506. $ac_cs_success || as_fn_exit 1
  25507. fi
  25508. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25510. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25511. fi