configure 884 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762
  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. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. LIBTOOLLINKERTAG
  642. LINKER
  643. PKG_CONFIG_LIBDIR
  644. PKG_CONFIG_PATH
  645. PKG_CONFIG
  646. SET_MAKE
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. CXXCPP
  651. ac_ct_CXX
  652. CXXFLAGS
  653. CXX
  654. LT_AGE
  655. LT_REVISION
  656. LT_CURRENT
  657. LT_RELEASE
  658. RC
  659. CPP
  660. LT_SYS_LIBRARY_PATH
  661. OTOOL64
  662. OTOOL
  663. LIPO
  664. NMEDIT
  665. DSYMUTIL
  666. MANIFEST_TOOL
  667. AWK
  668. RANLIB
  669. STRIP
  670. ac_ct_AR
  671. AR
  672. LN_S
  673. NM
  674. ac_ct_DUMPBIN
  675. DUMPBIN
  676. LD
  677. FGREP
  678. EGREP
  679. GREP
  680. SED
  681. OBJEXT
  682. EXEEXT
  683. ac_ct_CC
  684. CPPFLAGS
  685. LDFLAGS
  686. CFLAGS
  687. CC
  688. host_os
  689. host_vendor
  690. host_cpu
  691. host
  692. build_os
  693. build_vendor
  694. build_cpu
  695. build
  696. LIBTOOL
  697. OBJDUMP
  698. DLLTOOL
  699. AS
  700. SDL_VERSION
  701. SDL_BINARY_AGE
  702. SDL_INTERFACE_AGE
  703. SDL_MICRO_VERSION
  704. SDL_MINOR_VERSION
  705. SDL_MAJOR_VERSION
  706. target_alias
  707. host_alias
  708. build_alias
  709. LIBS
  710. ECHO_T
  711. ECHO_N
  712. ECHO_C
  713. DEFS
  714. mandir
  715. localedir
  716. libdir
  717. psdir
  718. pdfdir
  719. dvidir
  720. htmldir
  721. infodir
  722. docdir
  723. oldincludedir
  724. includedir
  725. localstatedir
  726. sharedstatedir
  727. sysconfdir
  728. datadir
  729. datarootdir
  730. libexecdir
  731. sbindir
  732. bindir
  733. program_transform_name
  734. prefix
  735. exec_prefix
  736. PACKAGE_URL
  737. PACKAGE_BUGREPORT
  738. PACKAGE_STRING
  739. PACKAGE_VERSION
  740. PACKAGE_TARNAME
  741. PACKAGE_NAME
  742. PATH_SEPARATOR
  743. SHELL'
  744. ac_subst_files=''
  745. ac_user_opts='
  746. enable_option_checking
  747. enable_shared
  748. enable_static
  749. with_pic
  750. enable_fast_install
  751. with_aix_soname
  752. with_gnu_ld
  753. with_sysroot
  754. enable_libtool_lock
  755. enable_assertions
  756. enable_dependency_tracking
  757. enable_libc
  758. enable_gcc_atomics
  759. enable_atomic
  760. enable_audio
  761. enable_video
  762. enable_render
  763. enable_events
  764. enable_joystick
  765. enable_haptic
  766. enable_hidapi
  767. enable_sensor
  768. enable_power
  769. enable_filesystem
  770. enable_threads
  771. enable_timers
  772. enable_file
  773. enable_loadso
  774. enable_cpuinfo
  775. enable_assembly
  776. enable_ssemath
  777. enable_mmx
  778. enable_3dnow
  779. enable_sse
  780. enable_sse2
  781. enable_sse3
  782. enable_altivec
  783. enable_oss
  784. enable_alsa
  785. with_alsa_prefix
  786. with_alsa_inc_prefix
  787. enable_alsatest
  788. enable_alsa_shared
  789. enable_jack
  790. enable_jack_shared
  791. enable_esd
  792. with_esd_prefix
  793. with_esd_exec_prefix
  794. enable_esdtest
  795. enable_esd_shared
  796. enable_pipewire
  797. enable_pipewire_shared
  798. enable_pulseaudio
  799. enable_pulseaudio_shared
  800. enable_arts
  801. enable_arts_shared
  802. enable_nas
  803. enable_nas_shared
  804. enable_sndio
  805. enable_sndio_shared
  806. enable_fusionsound
  807. enable_fusionsound_shared
  808. enable_diskaudio
  809. enable_dummyaudio
  810. enable_libsamplerate
  811. enable_libsamplerate_shared
  812. enable_arm_simd
  813. enable_arm_neon
  814. enable_video_wayland
  815. enable_video_wayland_qt_touch
  816. enable_wayland_shared
  817. enable_libdecor
  818. enable_libdecor_shared
  819. enable_video_rpi
  820. enable_video_x11
  821. with_x
  822. enable_x11_shared
  823. enable_video_x11_xcursor
  824. enable_video_x11_xdbe
  825. enable_video_x11_xinerama
  826. enable_video_x11_xinput
  827. enable_video_x11_xfixes
  828. enable_video_x11_xrandr
  829. enable_video_x11_scrnsaver
  830. enable_video_x11_xshape
  831. enable_video_x11_vm
  832. enable_video_vivante
  833. enable_video_cocoa
  834. enable_video_metal
  835. enable_render_metal
  836. enable_video_directfb
  837. enable_directfb_shared
  838. enable_video_kmsdrm
  839. enable_kmsdrm_shared
  840. enable_video_dummy
  841. enable_video_offscreen
  842. enable_video_opengl
  843. enable_video_opengles
  844. enable_video_opengles1
  845. enable_video_opengles2
  846. enable_video_vulkan
  847. enable_libudev
  848. enable_dbus
  849. enable_ime
  850. enable_ibus
  851. enable_fcitx
  852. enable_joystick_mfi
  853. enable_pthreads
  854. enable_pthread_sem
  855. enable_directx
  856. enable_xinput
  857. enable_wasapi
  858. enable_hidapi_joystick
  859. enable_hidapi_libusb
  860. enable_clock_gettime
  861. enable_rpath
  862. enable_backgrounding_signal
  863. enable_foregrounding_signal
  864. enable_joystick_virtual
  865. enable_render_d3d
  866. enable_sdl2_config
  867. '
  868. ac_precious_vars='build_alias
  869. host_alias
  870. target_alias
  871. CC
  872. CFLAGS
  873. LDFLAGS
  874. LIBS
  875. CPPFLAGS
  876. LT_SYS_LIBRARY_PATH
  877. CPP
  878. CXX
  879. CXXFLAGS
  880. CCC
  881. CXXCPP
  882. PKG_CONFIG
  883. PKG_CONFIG_PATH
  884. PKG_CONFIG_LIBDIR
  885. JACK_CFLAGS
  886. JACK_LIBS
  887. PIPEWIRE_CFLAGS
  888. PIPEWIRE_LIBS
  889. PULSEAUDIO_CFLAGS
  890. PULSEAUDIO_LIBS
  891. FUSIONSOUND_CFLAGS
  892. FUSIONSOUND_LIBS
  893. RPI_CFLAGS
  894. RPI_LIBS
  895. XMKMF
  896. DIRECTFB_CFLAGS
  897. DIRECTFB_LIBS
  898. LIBDRM_CFLAGS
  899. LIBDRM_LIBS
  900. LIBGBM_CFLAGS
  901. LIBGBM_LIBS
  902. DBUS_CFLAGS
  903. DBUS_LIBS
  904. IBUS_CFLAGS
  905. IBUS_LIBS
  906. LIBUSB_CFLAGS
  907. LIBUSB_LIBS'
  908. # Initialize some variables set by options.
  909. ac_init_help=
  910. ac_init_version=false
  911. ac_unrecognized_opts=
  912. ac_unrecognized_sep=
  913. # The variables have the same names as the options, with
  914. # dashes changed to underlines.
  915. cache_file=/dev/null
  916. exec_prefix=NONE
  917. no_create=
  918. no_recursion=
  919. prefix=NONE
  920. program_prefix=NONE
  921. program_suffix=NONE
  922. program_transform_name=s,x,x,
  923. silent=
  924. site=
  925. srcdir=
  926. verbose=
  927. x_includes=NONE
  928. x_libraries=NONE
  929. # Installation directory options.
  930. # These are left unexpanded so users can "make install exec_prefix=/foo"
  931. # and all the variables that are supposed to be based on exec_prefix
  932. # by default will actually change.
  933. # Use braces instead of parens because sh, perl, etc. also accept them.
  934. # (The list follows the same order as the GNU Coding Standards.)
  935. bindir='${exec_prefix}/bin'
  936. sbindir='${exec_prefix}/sbin'
  937. libexecdir='${exec_prefix}/libexec'
  938. datarootdir='${prefix}/share'
  939. datadir='${datarootdir}'
  940. sysconfdir='${prefix}/etc'
  941. sharedstatedir='${prefix}/com'
  942. localstatedir='${prefix}/var'
  943. includedir='${prefix}/include'
  944. oldincludedir='/usr/include'
  945. docdir='${datarootdir}/doc/${PACKAGE}'
  946. infodir='${datarootdir}/info'
  947. htmldir='${docdir}'
  948. dvidir='${docdir}'
  949. pdfdir='${docdir}'
  950. psdir='${docdir}'
  951. libdir='${exec_prefix}/lib'
  952. localedir='${datarootdir}/locale'
  953. mandir='${datarootdir}/man'
  954. ac_prev=
  955. ac_dashdash=
  956. for ac_option
  957. do
  958. # If the previous option needs an argument, assign it.
  959. if test -n "$ac_prev"; then
  960. eval $ac_prev=\$ac_option
  961. ac_prev=
  962. continue
  963. fi
  964. case $ac_option in
  965. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  966. *=) ac_optarg= ;;
  967. *) ac_optarg=yes ;;
  968. esac
  969. # Accept the important Cygnus configure options, so we can diagnose typos.
  970. case $ac_dashdash$ac_option in
  971. --)
  972. ac_dashdash=yes ;;
  973. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  974. ac_prev=bindir ;;
  975. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  976. bindir=$ac_optarg ;;
  977. -build | --build | --buil | --bui | --bu)
  978. ac_prev=build_alias ;;
  979. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  980. build_alias=$ac_optarg ;;
  981. -cache-file | --cache-file | --cache-fil | --cache-fi \
  982. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  983. ac_prev=cache_file ;;
  984. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  985. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  986. cache_file=$ac_optarg ;;
  987. --config-cache | -C)
  988. cache_file=config.cache ;;
  989. -datadir | --datadir | --datadi | --datad)
  990. ac_prev=datadir ;;
  991. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  992. datadir=$ac_optarg ;;
  993. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  994. | --dataroo | --dataro | --datar)
  995. ac_prev=datarootdir ;;
  996. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  997. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  998. datarootdir=$ac_optarg ;;
  999. -disable-* | --disable-*)
  1000. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1001. # Reject names that are not valid shell variable names.
  1002. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1003. as_fn_error $? "invalid feature name: $ac_useropt"
  1004. ac_useropt_orig=$ac_useropt
  1005. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1006. case $ac_user_opts in
  1007. *"
  1008. "enable_$ac_useropt"
  1009. "*) ;;
  1010. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1011. ac_unrecognized_sep=', ';;
  1012. esac
  1013. eval enable_$ac_useropt=no ;;
  1014. -docdir | --docdir | --docdi | --doc | --do)
  1015. ac_prev=docdir ;;
  1016. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1017. docdir=$ac_optarg ;;
  1018. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1019. ac_prev=dvidir ;;
  1020. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1021. dvidir=$ac_optarg ;;
  1022. -enable-* | --enable-*)
  1023. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1024. # Reject names that are not valid shell variable names.
  1025. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1026. as_fn_error $? "invalid feature name: $ac_useropt"
  1027. ac_useropt_orig=$ac_useropt
  1028. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1029. case $ac_user_opts in
  1030. *"
  1031. "enable_$ac_useropt"
  1032. "*) ;;
  1033. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1034. ac_unrecognized_sep=', ';;
  1035. esac
  1036. eval enable_$ac_useropt=\$ac_optarg ;;
  1037. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1038. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1039. | --exec | --exe | --ex)
  1040. ac_prev=exec_prefix ;;
  1041. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1042. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1043. | --exec=* | --exe=* | --ex=*)
  1044. exec_prefix=$ac_optarg ;;
  1045. -gas | --gas | --ga | --g)
  1046. # Obsolete; use --with-gas.
  1047. with_gas=yes ;;
  1048. -help | --help | --hel | --he | -h)
  1049. ac_init_help=long ;;
  1050. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1051. ac_init_help=recursive ;;
  1052. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1053. ac_init_help=short ;;
  1054. -host | --host | --hos | --ho)
  1055. ac_prev=host_alias ;;
  1056. -host=* | --host=* | --hos=* | --ho=*)
  1057. host_alias=$ac_optarg ;;
  1058. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1059. ac_prev=htmldir ;;
  1060. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1061. | --ht=*)
  1062. htmldir=$ac_optarg ;;
  1063. -includedir | --includedir | --includedi | --included | --include \
  1064. | --includ | --inclu | --incl | --inc)
  1065. ac_prev=includedir ;;
  1066. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1067. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1068. includedir=$ac_optarg ;;
  1069. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1070. ac_prev=infodir ;;
  1071. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1072. infodir=$ac_optarg ;;
  1073. -libdir | --libdir | --libdi | --libd)
  1074. ac_prev=libdir ;;
  1075. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1076. libdir=$ac_optarg ;;
  1077. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1078. | --libexe | --libex | --libe)
  1079. ac_prev=libexecdir ;;
  1080. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1081. | --libexe=* | --libex=* | --libe=*)
  1082. libexecdir=$ac_optarg ;;
  1083. -localedir | --localedir | --localedi | --localed | --locale)
  1084. ac_prev=localedir ;;
  1085. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1086. localedir=$ac_optarg ;;
  1087. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1088. | --localstate | --localstat | --localsta | --localst | --locals)
  1089. ac_prev=localstatedir ;;
  1090. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1091. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1092. localstatedir=$ac_optarg ;;
  1093. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1094. ac_prev=mandir ;;
  1095. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1096. mandir=$ac_optarg ;;
  1097. -nfp | --nfp | --nf)
  1098. # Obsolete; use --without-fp.
  1099. with_fp=no ;;
  1100. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1101. | --no-cr | --no-c | -n)
  1102. no_create=yes ;;
  1103. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1104. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1105. no_recursion=yes ;;
  1106. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1107. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1108. | --oldin | --oldi | --old | --ol | --o)
  1109. ac_prev=oldincludedir ;;
  1110. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1111. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1112. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1113. oldincludedir=$ac_optarg ;;
  1114. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1115. ac_prev=prefix ;;
  1116. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1117. prefix=$ac_optarg ;;
  1118. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1119. | --program-pre | --program-pr | --program-p)
  1120. ac_prev=program_prefix ;;
  1121. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1122. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1123. program_prefix=$ac_optarg ;;
  1124. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1125. | --program-suf | --program-su | --program-s)
  1126. ac_prev=program_suffix ;;
  1127. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1128. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1129. program_suffix=$ac_optarg ;;
  1130. -program-transform-name | --program-transform-name \
  1131. | --program-transform-nam | --program-transform-na \
  1132. | --program-transform-n | --program-transform- \
  1133. | --program-transform | --program-transfor \
  1134. | --program-transfo | --program-transf \
  1135. | --program-trans | --program-tran \
  1136. | --progr-tra | --program-tr | --program-t)
  1137. ac_prev=program_transform_name ;;
  1138. -program-transform-name=* | --program-transform-name=* \
  1139. | --program-transform-nam=* | --program-transform-na=* \
  1140. | --program-transform-n=* | --program-transform-=* \
  1141. | --program-transform=* | --program-transfor=* \
  1142. | --program-transfo=* | --program-transf=* \
  1143. | --program-trans=* | --program-tran=* \
  1144. | --progr-tra=* | --program-tr=* | --program-t=*)
  1145. program_transform_name=$ac_optarg ;;
  1146. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1147. ac_prev=pdfdir ;;
  1148. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1149. pdfdir=$ac_optarg ;;
  1150. -psdir | --psdir | --psdi | --psd | --ps)
  1151. ac_prev=psdir ;;
  1152. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1153. psdir=$ac_optarg ;;
  1154. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1155. | -silent | --silent | --silen | --sile | --sil)
  1156. silent=yes ;;
  1157. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1158. ac_prev=sbindir ;;
  1159. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1160. | --sbi=* | --sb=*)
  1161. sbindir=$ac_optarg ;;
  1162. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1163. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1164. | --sharedst | --shareds | --shared | --share | --shar \
  1165. | --sha | --sh)
  1166. ac_prev=sharedstatedir ;;
  1167. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1168. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1169. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1170. | --sha=* | --sh=*)
  1171. sharedstatedir=$ac_optarg ;;
  1172. -site | --site | --sit)
  1173. ac_prev=site ;;
  1174. -site=* | --site=* | --sit=*)
  1175. site=$ac_optarg ;;
  1176. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1177. ac_prev=srcdir ;;
  1178. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1179. srcdir=$ac_optarg ;;
  1180. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1181. | --syscon | --sysco | --sysc | --sys | --sy)
  1182. ac_prev=sysconfdir ;;
  1183. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1184. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1185. sysconfdir=$ac_optarg ;;
  1186. -target | --target | --targe | --targ | --tar | --ta | --t)
  1187. ac_prev=target_alias ;;
  1188. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1189. target_alias=$ac_optarg ;;
  1190. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1191. verbose=yes ;;
  1192. -version | --version | --versio | --versi | --vers | -V)
  1193. ac_init_version=: ;;
  1194. -with-* | --with-*)
  1195. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1196. # Reject names that are not valid shell variable names.
  1197. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1198. as_fn_error $? "invalid package name: $ac_useropt"
  1199. ac_useropt_orig=$ac_useropt
  1200. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1201. case $ac_user_opts in
  1202. *"
  1203. "with_$ac_useropt"
  1204. "*) ;;
  1205. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1206. ac_unrecognized_sep=', ';;
  1207. esac
  1208. eval with_$ac_useropt=\$ac_optarg ;;
  1209. -without-* | --without-*)
  1210. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1211. # Reject names that are not valid shell variable names.
  1212. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1213. as_fn_error $? "invalid package name: $ac_useropt"
  1214. ac_useropt_orig=$ac_useropt
  1215. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1216. case $ac_user_opts in
  1217. *"
  1218. "with_$ac_useropt"
  1219. "*) ;;
  1220. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1221. ac_unrecognized_sep=', ';;
  1222. esac
  1223. eval with_$ac_useropt=no ;;
  1224. --x)
  1225. # Obsolete; use --with-x.
  1226. with_x=yes ;;
  1227. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1228. | --x-incl | --x-inc | --x-in | --x-i)
  1229. ac_prev=x_includes ;;
  1230. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1231. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1232. x_includes=$ac_optarg ;;
  1233. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1234. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1235. ac_prev=x_libraries ;;
  1236. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1237. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1238. x_libraries=$ac_optarg ;;
  1239. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1240. Try \`$0 --help' for more information"
  1241. ;;
  1242. *=*)
  1243. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1244. # Reject names that are not valid shell variable names.
  1245. case $ac_envvar in #(
  1246. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1247. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1248. esac
  1249. eval $ac_envvar=\$ac_optarg
  1250. export $ac_envvar ;;
  1251. *)
  1252. # FIXME: should be removed in autoconf 3.0.
  1253. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1254. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1255. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1256. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1257. ;;
  1258. esac
  1259. done
  1260. if test -n "$ac_prev"; then
  1261. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1262. as_fn_error $? "missing argument to $ac_option"
  1263. fi
  1264. if test -n "$ac_unrecognized_opts"; then
  1265. case $enable_option_checking in
  1266. no) ;;
  1267. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1268. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1269. esac
  1270. fi
  1271. # Check all directory arguments for consistency.
  1272. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1273. datadir sysconfdir sharedstatedir localstatedir includedir \
  1274. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1275. libdir localedir mandir
  1276. do
  1277. eval ac_val=\$$ac_var
  1278. # Remove trailing slashes.
  1279. case $ac_val in
  1280. */ )
  1281. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1282. eval $ac_var=\$ac_val;;
  1283. esac
  1284. # Be sure to have absolute directory names.
  1285. case $ac_val in
  1286. [\\/$]* | ?:[\\/]* ) continue;;
  1287. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1288. esac
  1289. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1290. done
  1291. # There might be people who depend on the old broken behavior: `$host'
  1292. # used to hold the argument of --host etc.
  1293. # FIXME: To remove some day.
  1294. build=$build_alias
  1295. host=$host_alias
  1296. target=$target_alias
  1297. # FIXME: To remove some day.
  1298. if test "x$host_alias" != x; then
  1299. if test "x$build_alias" = x; then
  1300. cross_compiling=maybe
  1301. elif test "x$build_alias" != "x$host_alias"; then
  1302. cross_compiling=yes
  1303. fi
  1304. fi
  1305. ac_tool_prefix=
  1306. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1307. test "$silent" = yes && exec 6>/dev/null
  1308. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1309. ac_ls_di=`ls -di .` &&
  1310. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1311. as_fn_error $? "working directory cannot be determined"
  1312. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1313. as_fn_error $? "pwd does not report name of working directory"
  1314. # Find the source files, if location was not specified.
  1315. if test -z "$srcdir"; then
  1316. ac_srcdir_defaulted=yes
  1317. # Try the directory containing this script, then the parent directory.
  1318. ac_confdir=`$as_dirname -- "$as_myself" ||
  1319. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1320. X"$as_myself" : 'X\(//\)[^/]' \| \
  1321. X"$as_myself" : 'X\(//\)$' \| \
  1322. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1323. $as_echo X"$as_myself" |
  1324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1325. s//\1/
  1326. q
  1327. }
  1328. /^X\(\/\/\)[^/].*/{
  1329. s//\1/
  1330. q
  1331. }
  1332. /^X\(\/\/\)$/{
  1333. s//\1/
  1334. q
  1335. }
  1336. /^X\(\/\).*/{
  1337. s//\1/
  1338. q
  1339. }
  1340. s/.*/./; q'`
  1341. srcdir=$ac_confdir
  1342. if test ! -r "$srcdir/$ac_unique_file"; then
  1343. srcdir=..
  1344. fi
  1345. else
  1346. ac_srcdir_defaulted=no
  1347. fi
  1348. if test ! -r "$srcdir/$ac_unique_file"; then
  1349. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1350. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1351. fi
  1352. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1353. ac_abs_confdir=`(
  1354. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1355. pwd)`
  1356. # When building in place, set srcdir=.
  1357. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1358. srcdir=.
  1359. fi
  1360. # Remove unnecessary trailing slashes from srcdir.
  1361. # Double slashes in file names in object file debugging info
  1362. # mess up M-x gdb in Emacs.
  1363. case $srcdir in
  1364. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1365. esac
  1366. for ac_var in $ac_precious_vars; do
  1367. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1368. eval ac_env_${ac_var}_value=\$${ac_var}
  1369. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1370. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1371. done
  1372. #
  1373. # Report the --help message.
  1374. #
  1375. if test "$ac_init_help" = "long"; then
  1376. # Omit some internal or obsolete options to make the list less imposing.
  1377. # This message is too long to be a string in the A/UX 3.1 sh.
  1378. cat <<_ACEOF
  1379. \`configure' configures this package to adapt to many kinds of systems.
  1380. Usage: $0 [OPTION]... [VAR=VALUE]...
  1381. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1382. VAR=VALUE. See below for descriptions of some of the useful variables.
  1383. Defaults for the options are specified in brackets.
  1384. Configuration:
  1385. -h, --help display this help and exit
  1386. --help=short display options specific to this package
  1387. --help=recursive display the short help of all the included packages
  1388. -V, --version display version information and exit
  1389. -q, --quiet, --silent do not print \`checking ...' messages
  1390. --cache-file=FILE cache test results in FILE [disabled]
  1391. -C, --config-cache alias for \`--cache-file=config.cache'
  1392. -n, --no-create do not create output files
  1393. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1394. Installation directories:
  1395. --prefix=PREFIX install architecture-independent files in PREFIX
  1396. [$ac_default_prefix]
  1397. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1398. [PREFIX]
  1399. By default, \`make install' will install all the files in
  1400. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1401. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1402. for instance \`--prefix=\$HOME'.
  1403. For better control, use the options below.
  1404. Fine tuning of the installation directories:
  1405. --bindir=DIR user executables [EPREFIX/bin]
  1406. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1407. --libexecdir=DIR program executables [EPREFIX/libexec]
  1408. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1409. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1410. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1411. --libdir=DIR object code libraries [EPREFIX/lib]
  1412. --includedir=DIR C header files [PREFIX/include]
  1413. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1414. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1415. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1416. --infodir=DIR info documentation [DATAROOTDIR/info]
  1417. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1418. --mandir=DIR man documentation [DATAROOTDIR/man]
  1419. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1420. --htmldir=DIR html documentation [DOCDIR]
  1421. --dvidir=DIR dvi documentation [DOCDIR]
  1422. --pdfdir=DIR pdf documentation [DOCDIR]
  1423. --psdir=DIR ps documentation [DOCDIR]
  1424. _ACEOF
  1425. cat <<\_ACEOF
  1426. X features:
  1427. --x-includes=DIR X include files are in DIR
  1428. --x-libraries=DIR X library files are in DIR
  1429. System types:
  1430. --build=BUILD configure for building on BUILD [guessed]
  1431. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1432. _ACEOF
  1433. fi
  1434. if test -n "$ac_init_help"; then
  1435. cat <<\_ACEOF
  1436. Optional Features:
  1437. --disable-option-checking ignore unrecognized --enable/--with options
  1438. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1439. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1440. --enable-shared[=PKGS] build shared libraries [default=yes]
  1441. --enable-static[=PKGS] build static libraries [default=yes]
  1442. --enable-fast-install[=PKGS]
  1443. optimize for fast installation [default=yes]
  1444. --disable-libtool-lock avoid locking (might break parallel builds)
  1445. --enable-assertions Enable internal sanity checks
  1446. (auto/disabled/release/enabled/paranoid)
  1447. [default=auto]
  1448. --enable-dependency-tracking
  1449. Use gcc -MMD -MT dependency tracking [default=yes]
  1450. --enable-libc Use the system C library [default=yes]
  1451. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1452. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1453. --enable-audio Enable the audio subsystem [default=yes]
  1454. --enable-video Enable the video subsystem [default=yes]
  1455. --enable-render Enable the render subsystem [default=yes]
  1456. --enable-events Enable the events subsystem [default=yes]
  1457. --enable-joystick Enable the joystick subsystem [default=yes]
  1458. --enable-haptic Enable the haptic (force feedback) subsystem
  1459. [default=yes]
  1460. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1461. --enable-sensor Enable the sensor subsystem [default=yes]
  1462. --enable-power Enable the power subsystem [default=yes]
  1463. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1464. --enable-threads Enable the threading subsystem [default=yes]
  1465. --enable-timers Enable the timer subsystem [default=yes]
  1466. --enable-file Enable the file subsystem [default=yes]
  1467. --enable-loadso Enable the shared object loading subsystem
  1468. [default=yes]
  1469. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1470. --enable-assembly Enable assembly routines [default=yes]
  1471. --enable-ssemath Allow GCC to use SSE floating point math
  1472. [default=maybe]
  1473. --enable-mmx use MMX assembly routines [default=yes]
  1474. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1475. --enable-sse use SSE assembly routines [default=yes]
  1476. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1477. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1478. --enable-altivec use Altivec assembly routines [default=yes]
  1479. --enable-oss support the OSS audio API [default=maybe]
  1480. --enable-alsa support the ALSA audio API [default=yes]
  1481. --disable-alsatest Do not try to compile and run a test Alsa program
  1482. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1483. --enable-jack use JACK audio [default=yes]
  1484. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1485. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1486. --disable-esdtest Do not try to compile and run a test ESD program
  1487. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1488. --enable-pipewire use Pipewire audio [default=yes]
  1489. --enable-pipewire-shared
  1490. dynamically load Pipewire support [default=yes]
  1491. --enable-pulseaudio use PulseAudio [default=yes]
  1492. --enable-pulseaudio-shared
  1493. dynamically load PulseAudio support [default=yes]
  1494. --enable-arts support the Analog Real Time Synthesizer
  1495. [default=yes]
  1496. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1497. --enable-nas support the NAS audio API [default=yes]
  1498. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1499. --enable-sndio support the sndio audio API [default=yes]
  1500. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1501. --enable-fusionsound use FusionSound audio driver [default=no]
  1502. --enable-fusionsound-shared
  1503. dynamically load fusionsound audio support
  1504. [default=yes]
  1505. --enable-diskaudio support the disk writer audio driver [default=yes]
  1506. --enable-dummyaudio support the dummy audio driver [default=yes]
  1507. --enable-libsamplerate use libsamplerate for audio rate conversion
  1508. [default=yes]
  1509. --enable-libsamplerate-shared
  1510. dynamically load libsamplerate [default=yes]
  1511. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1512. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1513. --enable-video-wayland use Wayland video driver [default=yes]
  1514. --enable-video-wayland-qt-touch
  1515. QtWayland server support for Wayland video driver
  1516. [default=yes]
  1517. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1518. --enable-libdecor use libdecor for Wayland client-side decorations
  1519. [default=yes]
  1520. --enable-libdecor-shared
  1521. dynamically load libdecor [default=yes]
  1522. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1523. --enable-video-x11 use X11 video driver [default=yes]
  1524. --enable-x11-shared dynamically load X11 support [default=maybe]
  1525. --enable-video-x11-xcursor
  1526. enable X11 Xcursor support [default=yes]
  1527. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1528. --enable-video-x11-xinerama
  1529. enable X11 Xinerama support [default=yes]
  1530. --enable-video-x11-xinput
  1531. enable X11 XInput extension for manymouse, tablets,
  1532. etc [default=yes]
  1533. --enable-video-x11-xfixes
  1534. enable X11 Xfixes support [default=yes]
  1535. --enable-video-x11-xrandr
  1536. enable X11 Xrandr extension for fullscreen
  1537. [default=yes]
  1538. --enable-video-x11-scrnsaver
  1539. enable X11 screensaver extension [default=yes]
  1540. --enable-video-x11-xshape
  1541. enable X11 XShape support [default=yes]
  1542. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1543. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1544. --enable-video-cocoa use Cocoa video driver [default=yes]
  1545. --enable-video-metal include Metal support [default=yes]
  1546. --enable-render-metal enable the Metal render driver [default=yes]
  1547. --enable-video-directfb use DirectFB video driver [default=no]
  1548. --enable-directfb-shared
  1549. dynamically load directfb support [default=yes]
  1550. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1551. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1552. --enable-video-dummy use dummy video driver [default=yes]
  1553. --enable-video-offscreen
  1554. use offscreen video driver [default=no]
  1555. --enable-video-opengl include OpenGL support [default=yes]
  1556. --enable-video-opengles include OpenGL ES support [default=yes]
  1557. --enable-video-opengles1
  1558. include OpenGL ES 1.1 support [default=yes]
  1559. --enable-video-opengles2
  1560. include OpenGL ES 2.0 support [default=yes]
  1561. --enable-video-vulkan include Vulkan support [default=yes]
  1562. --enable-libudev enable libudev support [default=yes]
  1563. --enable-dbus enable D-Bus support [default=yes]
  1564. --enable-ime enable IME support [default=yes]
  1565. --enable-ibus enable IBus support [default=yes]
  1566. --enable-fcitx enable fcitx support [default=yes]
  1567. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1568. --enable-pthreads use POSIX threads for multi-threading
  1569. [default=maybe]
  1570. --enable-pthread-sem use pthread semaphores [default=maybe]
  1571. --enable-directx use DirectX for Windows audio/video [default=yes]
  1572. --enable-xinput use Xinput for Windows [default=yes]
  1573. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1574. --enable-hidapi-joystick
  1575. use HIDAPI for low level joystick drivers
  1576. [default=yes]
  1577. --enable-hidapi-libusb use libusb for low level joystick drivers
  1578. [default=maybe]
  1579. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1580. UNIX [default=yes]
  1581. --enable-rpath use an rpath when linking SDL [default=yes]
  1582. --enable-backgrounding-signal
  1583. number to use for magic backgrounding signal or 'no'
  1584. [default=no]
  1585. --enable-foregrounding-signal
  1586. number to use for magic foregrounding signal or 'no'
  1587. [default=no]
  1588. --enable-joystick-virtual
  1589. enable virtual joystick APIs [default=yes]
  1590. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1591. --enable-sdl2-config Install sdl2-config [default=yes]
  1592. Optional Packages:
  1593. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1594. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1595. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1596. both]
  1597. --with-aix-soname=aix|svr4|both
  1598. shared library versioning (aka "SONAME") variant to
  1599. provide on AIX, [default=aix].
  1600. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1601. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1602. compiler's sysroot if not specified).
  1603. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1604. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1605. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1606. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1607. --with-x use the X Window System
  1608. Some influential environment variables:
  1609. CC C compiler command
  1610. CFLAGS C compiler flags
  1611. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1612. nonstandard directory <lib dir>
  1613. LIBS libraries to pass to the linker, e.g. -l<library>
  1614. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1615. you have headers in a nonstandard directory <include dir>
  1616. LT_SYS_LIBRARY_PATH
  1617. User-defined run-time library search path.
  1618. CPP C preprocessor
  1619. CXX C++ compiler command
  1620. CXXFLAGS C++ compiler flags
  1621. CXXCPP C++ preprocessor
  1622. PKG_CONFIG path to pkg-config utility
  1623. PKG_CONFIG_PATH
  1624. directories to add to pkg-config's search path
  1625. PKG_CONFIG_LIBDIR
  1626. path overriding pkg-config's built-in search path
  1627. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1628. JACK_LIBS linker flags for JACK, overriding pkg-config
  1629. PIPEWIRE_CFLAGS
  1630. C compiler flags for PIPEWIRE, overriding pkg-config
  1631. PIPEWIRE_LIBS
  1632. linker flags for PIPEWIRE, overriding pkg-config
  1633. PULSEAUDIO_CFLAGS
  1634. C compiler flags for PULSEAUDIO, overriding pkg-config
  1635. PULSEAUDIO_LIBS
  1636. linker flags for PULSEAUDIO, overriding pkg-config
  1637. FUSIONSOUND_CFLAGS
  1638. C compiler flags for FUSIONSOUND, overriding pkg-config
  1639. FUSIONSOUND_LIBS
  1640. linker flags for FUSIONSOUND, overriding pkg-config
  1641. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1642. RPI_LIBS linker flags for RPI, overriding pkg-config
  1643. XMKMF Path to xmkmf, Makefile generator for X Window System
  1644. DIRECTFB_CFLAGS
  1645. C compiler flags for DIRECTFB, overriding pkg-config
  1646. DIRECTFB_LIBS
  1647. linker flags for DIRECTFB, overriding pkg-config
  1648. LIBDRM_CFLAGS
  1649. C compiler flags for LIBDRM, overriding pkg-config
  1650. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1651. LIBGBM_CFLAGS
  1652. C compiler flags for LIBGBM, overriding pkg-config
  1653. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1654. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1655. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1656. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1657. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1658. LIBUSB_CFLAGS
  1659. C compiler flags for LIBUSB, overriding pkg-config
  1660. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1661. Use these variables to override the choices made by `configure' or to help
  1662. it to find libraries and programs with nonstandard names/locations.
  1663. Report bugs to the package provider.
  1664. _ACEOF
  1665. ac_status=$?
  1666. fi
  1667. if test "$ac_init_help" = "recursive"; then
  1668. # If there are subdirs, report their specific --help.
  1669. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1670. test -d "$ac_dir" ||
  1671. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1672. continue
  1673. ac_builddir=.
  1674. case "$ac_dir" in
  1675. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1676. *)
  1677. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1678. # A ".." for each directory in $ac_dir_suffix.
  1679. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1680. case $ac_top_builddir_sub in
  1681. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1682. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1683. esac ;;
  1684. esac
  1685. ac_abs_top_builddir=$ac_pwd
  1686. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1687. # for backward compatibility:
  1688. ac_top_builddir=$ac_top_build_prefix
  1689. case $srcdir in
  1690. .) # We are building in place.
  1691. ac_srcdir=.
  1692. ac_top_srcdir=$ac_top_builddir_sub
  1693. ac_abs_top_srcdir=$ac_pwd ;;
  1694. [\\/]* | ?:[\\/]* ) # Absolute name.
  1695. ac_srcdir=$srcdir$ac_dir_suffix;
  1696. ac_top_srcdir=$srcdir
  1697. ac_abs_top_srcdir=$srcdir ;;
  1698. *) # Relative name.
  1699. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1700. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1701. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1702. esac
  1703. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1704. cd "$ac_dir" || { ac_status=$?; continue; }
  1705. # Check for guested configure.
  1706. if test -f "$ac_srcdir/configure.gnu"; then
  1707. echo &&
  1708. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1709. elif test -f "$ac_srcdir/configure"; then
  1710. echo &&
  1711. $SHELL "$ac_srcdir/configure" --help=recursive
  1712. else
  1713. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1714. fi || ac_status=$?
  1715. cd "$ac_pwd" || { ac_status=$?; break; }
  1716. done
  1717. fi
  1718. test -n "$ac_init_help" && exit $ac_status
  1719. if $ac_init_version; then
  1720. cat <<\_ACEOF
  1721. configure
  1722. generated by GNU Autoconf 2.69
  1723. Copyright (C) 2012 Free Software Foundation, Inc.
  1724. This configure script is free software; the Free Software Foundation
  1725. gives unlimited permission to copy, distribute and modify it.
  1726. _ACEOF
  1727. exit
  1728. fi
  1729. ## ------------------------ ##
  1730. ## Autoconf initialization. ##
  1731. ## ------------------------ ##
  1732. # ac_fn_c_try_compile LINENO
  1733. # --------------------------
  1734. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1735. ac_fn_c_try_compile ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. rm -f conftest.$ac_objext
  1739. if { { ac_try="$ac_compile"
  1740. case "(($ac_try" in
  1741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742. *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. $as_echo "$ac_try_echo"; } >&5
  1746. (eval "$ac_compile") 2>conftest.err
  1747. ac_status=$?
  1748. if test -s conftest.err; then
  1749. grep -v '^ *+' conftest.err >conftest.er1
  1750. cat conftest.er1 >&5
  1751. mv -f conftest.er1 conftest.err
  1752. fi
  1753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1754. test $ac_status = 0; } && {
  1755. test -z "$ac_c_werror_flag" ||
  1756. test ! -s conftest.err
  1757. } && test -s conftest.$ac_objext; then :
  1758. ac_retval=0
  1759. else
  1760. $as_echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762. ac_retval=1
  1763. fi
  1764. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1765. as_fn_set_status $ac_retval
  1766. } # ac_fn_c_try_compile
  1767. # ac_fn_c_try_link LINENO
  1768. # -----------------------
  1769. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1770. ac_fn_c_try_link ()
  1771. {
  1772. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1773. rm -f conftest.$ac_objext conftest$ac_exeext
  1774. if { { ac_try="$ac_link"
  1775. case "(($ac_try" in
  1776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1777. *) ac_try_echo=$ac_try;;
  1778. esac
  1779. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1780. $as_echo "$ac_try_echo"; } >&5
  1781. (eval "$ac_link") 2>conftest.err
  1782. ac_status=$?
  1783. if test -s conftest.err; then
  1784. grep -v '^ *+' conftest.err >conftest.er1
  1785. cat conftest.er1 >&5
  1786. mv -f conftest.er1 conftest.err
  1787. fi
  1788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1789. test $ac_status = 0; } && {
  1790. test -z "$ac_c_werror_flag" ||
  1791. test ! -s conftest.err
  1792. } && test -s conftest$ac_exeext && {
  1793. test "$cross_compiling" = yes ||
  1794. test -x conftest$ac_exeext
  1795. }; then :
  1796. ac_retval=0
  1797. else
  1798. $as_echo "$as_me: failed program was:" >&5
  1799. sed 's/^/| /' conftest.$ac_ext >&5
  1800. ac_retval=1
  1801. fi
  1802. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1803. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1804. # interfere with the next link command; also delete a directory that is
  1805. # left behind by Apple's compiler. We do this before executing the actions.
  1806. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1807. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1808. as_fn_set_status $ac_retval
  1809. } # ac_fn_c_try_link
  1810. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1811. # -------------------------------------------------------
  1812. # Tests whether HEADER exists and can be compiled using the include files in
  1813. # INCLUDES, setting the cache variable VAR accordingly.
  1814. ac_fn_c_check_header_compile ()
  1815. {
  1816. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1818. $as_echo_n "checking for $2... " >&6; }
  1819. if eval \${$3+:} false; then :
  1820. $as_echo_n "(cached) " >&6
  1821. else
  1822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1823. /* end confdefs.h. */
  1824. $4
  1825. #include <$2>
  1826. _ACEOF
  1827. if ac_fn_c_try_compile "$LINENO"; then :
  1828. eval "$3=yes"
  1829. else
  1830. eval "$3=no"
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1833. fi
  1834. eval ac_res=\$$3
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1836. $as_echo "$ac_res" >&6; }
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. } # ac_fn_c_check_header_compile
  1839. # ac_fn_c_try_cpp LINENO
  1840. # ----------------------
  1841. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1842. ac_fn_c_try_cpp ()
  1843. {
  1844. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1845. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1846. case "(($ac_try" in
  1847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1848. *) ac_try_echo=$ac_try;;
  1849. esac
  1850. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1851. $as_echo "$ac_try_echo"; } >&5
  1852. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1853. ac_status=$?
  1854. if test -s conftest.err; then
  1855. grep -v '^ *+' conftest.err >conftest.er1
  1856. cat conftest.er1 >&5
  1857. mv -f conftest.er1 conftest.err
  1858. fi
  1859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1860. test $ac_status = 0; } > conftest.i && {
  1861. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1862. test ! -s conftest.err
  1863. }; then :
  1864. ac_retval=0
  1865. else
  1866. $as_echo "$as_me: failed program was:" >&5
  1867. sed 's/^/| /' conftest.$ac_ext >&5
  1868. ac_retval=1
  1869. fi
  1870. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1871. as_fn_set_status $ac_retval
  1872. } # ac_fn_c_try_cpp
  1873. # ac_fn_c_try_run LINENO
  1874. # ----------------------
  1875. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1876. # that executables *can* be run.
  1877. ac_fn_c_try_run ()
  1878. {
  1879. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1880. if { { ac_try="$ac_link"
  1881. case "(($ac_try" in
  1882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1883. *) ac_try_echo=$ac_try;;
  1884. esac
  1885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1886. $as_echo "$ac_try_echo"; } >&5
  1887. (eval "$ac_link") 2>&5
  1888. ac_status=$?
  1889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1890. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1891. { { case "(($ac_try" in
  1892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1893. *) ac_try_echo=$ac_try;;
  1894. esac
  1895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1896. $as_echo "$ac_try_echo"; } >&5
  1897. (eval "$ac_try") 2>&5
  1898. ac_status=$?
  1899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1900. test $ac_status = 0; }; }; then :
  1901. ac_retval=0
  1902. else
  1903. $as_echo "$as_me: program exited with status $ac_status" >&5
  1904. $as_echo "$as_me: failed program was:" >&5
  1905. sed 's/^/| /' conftest.$ac_ext >&5
  1906. ac_retval=$ac_status
  1907. fi
  1908. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1909. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1910. as_fn_set_status $ac_retval
  1911. } # ac_fn_c_try_run
  1912. # ac_fn_c_check_func LINENO FUNC VAR
  1913. # ----------------------------------
  1914. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1915. ac_fn_c_check_func ()
  1916. {
  1917. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1919. $as_echo_n "checking for $2... " >&6; }
  1920. if eval \${$3+:} false; then :
  1921. $as_echo_n "(cached) " >&6
  1922. else
  1923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1924. /* end confdefs.h. */
  1925. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1926. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1927. #define $2 innocuous_$2
  1928. /* System header to define __stub macros and hopefully few prototypes,
  1929. which can conflict with char $2 (); below.
  1930. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1931. <limits.h> exists even on freestanding compilers. */
  1932. #ifdef __STDC__
  1933. # include <limits.h>
  1934. #else
  1935. # include <assert.h>
  1936. #endif
  1937. #undef $2
  1938. /* Override any GCC internal prototype to avoid an error.
  1939. Use char because int might match the return type of a GCC
  1940. builtin and then its argument prototype would still apply. */
  1941. #ifdef __cplusplus
  1942. extern "C"
  1943. #endif
  1944. char $2 ();
  1945. /* The GNU C library defines this for functions which it implements
  1946. to always fail with ENOSYS. Some functions are actually named
  1947. something starting with __ and the normal name is an alias. */
  1948. #if defined __stub_$2 || defined __stub___$2
  1949. choke me
  1950. #endif
  1951. int
  1952. main ()
  1953. {
  1954. return $2 ();
  1955. ;
  1956. return 0;
  1957. }
  1958. _ACEOF
  1959. if ac_fn_c_try_link "$LINENO"; then :
  1960. eval "$3=yes"
  1961. else
  1962. eval "$3=no"
  1963. fi
  1964. rm -f core conftest.err conftest.$ac_objext \
  1965. conftest$ac_exeext conftest.$ac_ext
  1966. fi
  1967. eval ac_res=\$$3
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1969. $as_echo "$ac_res" >&6; }
  1970. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1971. } # ac_fn_c_check_func
  1972. # ac_fn_cxx_try_compile LINENO
  1973. # ----------------------------
  1974. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1975. ac_fn_cxx_try_compile ()
  1976. {
  1977. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1978. rm -f conftest.$ac_objext
  1979. if { { ac_try="$ac_compile"
  1980. case "(($ac_try" in
  1981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1982. *) ac_try_echo=$ac_try;;
  1983. esac
  1984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1985. $as_echo "$ac_try_echo"; } >&5
  1986. (eval "$ac_compile") 2>conftest.err
  1987. ac_status=$?
  1988. if test -s conftest.err; then
  1989. grep -v '^ *+' conftest.err >conftest.er1
  1990. cat conftest.er1 >&5
  1991. mv -f conftest.er1 conftest.err
  1992. fi
  1993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1994. test $ac_status = 0; } && {
  1995. test -z "$ac_cxx_werror_flag" ||
  1996. test ! -s conftest.err
  1997. } && test -s conftest.$ac_objext; then :
  1998. ac_retval=0
  1999. else
  2000. $as_echo "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. ac_retval=1
  2003. fi
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_compile
  2007. # ac_fn_cxx_try_cpp LINENO
  2008. # ------------------------
  2009. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2010. ac_fn_cxx_try_cpp ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2014. case "(($ac_try" in
  2015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2016. *) ac_try_echo=$ac_try;;
  2017. esac
  2018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2019. $as_echo "$ac_try_echo"; } >&5
  2020. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2021. ac_status=$?
  2022. if test -s conftest.err; then
  2023. grep -v '^ *+' conftest.err >conftest.er1
  2024. cat conftest.er1 >&5
  2025. mv -f conftest.er1 conftest.err
  2026. fi
  2027. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2028. test $ac_status = 0; } > conftest.i && {
  2029. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2030. test ! -s conftest.err
  2031. }; then :
  2032. ac_retval=0
  2033. else
  2034. $as_echo "$as_me: failed program was:" >&5
  2035. sed 's/^/| /' conftest.$ac_ext >&5
  2036. ac_retval=1
  2037. fi
  2038. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2039. as_fn_set_status $ac_retval
  2040. } # ac_fn_cxx_try_cpp
  2041. # ac_fn_cxx_try_link LINENO
  2042. # -------------------------
  2043. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2044. ac_fn_cxx_try_link ()
  2045. {
  2046. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2047. rm -f conftest.$ac_objext conftest$ac_exeext
  2048. if { { ac_try="$ac_link"
  2049. case "(($ac_try" in
  2050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2051. *) ac_try_echo=$ac_try;;
  2052. esac
  2053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2054. $as_echo "$ac_try_echo"; } >&5
  2055. (eval "$ac_link") 2>conftest.err
  2056. ac_status=$?
  2057. if test -s conftest.err; then
  2058. grep -v '^ *+' conftest.err >conftest.er1
  2059. cat conftest.er1 >&5
  2060. mv -f conftest.er1 conftest.err
  2061. fi
  2062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2063. test $ac_status = 0; } && {
  2064. test -z "$ac_cxx_werror_flag" ||
  2065. test ! -s conftest.err
  2066. } && test -s conftest$ac_exeext && {
  2067. test "$cross_compiling" = yes ||
  2068. test -x conftest$ac_exeext
  2069. }; then :
  2070. ac_retval=0
  2071. else
  2072. $as_echo "$as_me: failed program was:" >&5
  2073. sed 's/^/| /' conftest.$ac_ext >&5
  2074. ac_retval=1
  2075. fi
  2076. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2077. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2078. # interfere with the next link command; also delete a directory that is
  2079. # left behind by Apple's compiler. We do this before executing the actions.
  2080. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2081. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2082. as_fn_set_status $ac_retval
  2083. } # ac_fn_cxx_try_link
  2084. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2085. # -------------------------------------------------------
  2086. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2087. # the include files in INCLUDES and setting the cache variable VAR
  2088. # accordingly.
  2089. ac_fn_c_check_header_mongrel ()
  2090. {
  2091. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2092. if eval \${$3+:} false; then :
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2094. $as_echo_n "checking for $2... " >&6; }
  2095. if eval \${$3+:} false; then :
  2096. $as_echo_n "(cached) " >&6
  2097. fi
  2098. eval ac_res=\$$3
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2100. $as_echo "$ac_res" >&6; }
  2101. else
  2102. # Is the header compilable?
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2104. $as_echo_n "checking $2 usability... " >&6; }
  2105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2106. /* end confdefs.h. */
  2107. $4
  2108. #include <$2>
  2109. _ACEOF
  2110. if ac_fn_c_try_compile "$LINENO"; then :
  2111. ac_header_compiler=yes
  2112. else
  2113. ac_header_compiler=no
  2114. fi
  2115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2117. $as_echo "$ac_header_compiler" >&6; }
  2118. # Is the header present?
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2120. $as_echo_n "checking $2 presence... " >&6; }
  2121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2122. /* end confdefs.h. */
  2123. #include <$2>
  2124. _ACEOF
  2125. if ac_fn_c_try_cpp "$LINENO"; then :
  2126. ac_header_preproc=yes
  2127. else
  2128. ac_header_preproc=no
  2129. fi
  2130. rm -f conftest.err conftest.i conftest.$ac_ext
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2132. $as_echo "$ac_header_preproc" >&6; }
  2133. # So? What about this header?
  2134. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2135. yes:no: )
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2137. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2139. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2140. ;;
  2141. no:yes:* )
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2143. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2145. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2147. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2149. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2151. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2152. ;;
  2153. esac
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2155. $as_echo_n "checking for $2... " >&6; }
  2156. if eval \${$3+:} false; then :
  2157. $as_echo_n "(cached) " >&6
  2158. else
  2159. eval "$3=\$ac_header_compiler"
  2160. fi
  2161. eval ac_res=\$$3
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2163. $as_echo "$ac_res" >&6; }
  2164. fi
  2165. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2166. } # ac_fn_c_check_header_mongrel
  2167. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2168. # -------------------------------------------
  2169. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2170. # variable VAR accordingly.
  2171. ac_fn_c_check_type ()
  2172. {
  2173. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2175. $as_echo_n "checking for $2... " >&6; }
  2176. if eval \${$3+:} false; then :
  2177. $as_echo_n "(cached) " >&6
  2178. else
  2179. eval "$3=no"
  2180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2181. /* end confdefs.h. */
  2182. $4
  2183. int
  2184. main ()
  2185. {
  2186. if (sizeof ($2))
  2187. return 0;
  2188. ;
  2189. return 0;
  2190. }
  2191. _ACEOF
  2192. if ac_fn_c_try_compile "$LINENO"; then :
  2193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2194. /* end confdefs.h. */
  2195. $4
  2196. int
  2197. main ()
  2198. {
  2199. if (sizeof (($2)))
  2200. return 0;
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. if ac_fn_c_try_compile "$LINENO"; then :
  2206. else
  2207. eval "$3=yes"
  2208. fi
  2209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2210. fi
  2211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2212. fi
  2213. eval ac_res=\$$3
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2215. $as_echo "$ac_res" >&6; }
  2216. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2217. } # ac_fn_c_check_type
  2218. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2219. # ----------------------------------------------------
  2220. # Tries to find if the field MEMBER exists in type AGGR, after including
  2221. # INCLUDES, setting cache variable VAR accordingly.
  2222. ac_fn_c_check_member ()
  2223. {
  2224. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2226. $as_echo_n "checking for $2.$3... " >&6; }
  2227. if eval \${$4+:} false; then :
  2228. $as_echo_n "(cached) " >&6
  2229. else
  2230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2231. /* end confdefs.h. */
  2232. $5
  2233. int
  2234. main ()
  2235. {
  2236. static $2 ac_aggr;
  2237. if (ac_aggr.$3)
  2238. return 0;
  2239. ;
  2240. return 0;
  2241. }
  2242. _ACEOF
  2243. if ac_fn_c_try_compile "$LINENO"; then :
  2244. eval "$4=yes"
  2245. else
  2246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2247. /* end confdefs.h. */
  2248. $5
  2249. int
  2250. main ()
  2251. {
  2252. static $2 ac_aggr;
  2253. if (sizeof ac_aggr.$3)
  2254. return 0;
  2255. ;
  2256. return 0;
  2257. }
  2258. _ACEOF
  2259. if ac_fn_c_try_compile "$LINENO"; then :
  2260. eval "$4=yes"
  2261. else
  2262. eval "$4=no"
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2265. fi
  2266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2267. fi
  2268. eval ac_res=\$$4
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2270. $as_echo "$ac_res" >&6; }
  2271. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2272. } # ac_fn_c_check_member
  2273. cat >config.log <<_ACEOF
  2274. This file contains any messages produced by compilers while
  2275. running configure, to aid debugging if configure makes a mistake.
  2276. It was created by $as_me, which was
  2277. generated by GNU Autoconf 2.69. Invocation command line was
  2278. $ $0 $@
  2279. _ACEOF
  2280. exec 5>>config.log
  2281. {
  2282. cat <<_ASUNAME
  2283. ## --------- ##
  2284. ## Platform. ##
  2285. ## --------- ##
  2286. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2287. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2288. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2289. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2290. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2291. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2292. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2293. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2294. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2295. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2296. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2297. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2298. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2299. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2300. _ASUNAME
  2301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2302. for as_dir in $PATH
  2303. do
  2304. IFS=$as_save_IFS
  2305. test -z "$as_dir" && as_dir=.
  2306. $as_echo "PATH: $as_dir"
  2307. done
  2308. IFS=$as_save_IFS
  2309. } >&5
  2310. cat >&5 <<_ACEOF
  2311. ## ----------- ##
  2312. ## Core tests. ##
  2313. ## ----------- ##
  2314. _ACEOF
  2315. # Keep a trace of the command line.
  2316. # Strip out --no-create and --no-recursion so they do not pile up.
  2317. # Strip out --silent because we don't want to record it for future runs.
  2318. # Also quote any args containing shell meta-characters.
  2319. # Make two passes to allow for proper duplicate-argument suppression.
  2320. ac_configure_args=
  2321. ac_configure_args0=
  2322. ac_configure_args1=
  2323. ac_must_keep_next=false
  2324. for ac_pass in 1 2
  2325. do
  2326. for ac_arg
  2327. do
  2328. case $ac_arg in
  2329. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2330. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2331. | -silent | --silent | --silen | --sile | --sil)
  2332. continue ;;
  2333. *\'*)
  2334. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2335. esac
  2336. case $ac_pass in
  2337. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2338. 2)
  2339. as_fn_append ac_configure_args1 " '$ac_arg'"
  2340. if test $ac_must_keep_next = true; then
  2341. ac_must_keep_next=false # Got value, back to normal.
  2342. else
  2343. case $ac_arg in
  2344. *=* | --config-cache | -C | -disable-* | --disable-* \
  2345. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2346. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2347. | -with-* | --with-* | -without-* | --without-* | --x)
  2348. case "$ac_configure_args0 " in
  2349. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2350. esac
  2351. ;;
  2352. -* ) ac_must_keep_next=true ;;
  2353. esac
  2354. fi
  2355. as_fn_append ac_configure_args " '$ac_arg'"
  2356. ;;
  2357. esac
  2358. done
  2359. done
  2360. { ac_configure_args0=; unset ac_configure_args0;}
  2361. { ac_configure_args1=; unset ac_configure_args1;}
  2362. # When interrupted or exit'd, cleanup temporary files, and complete
  2363. # config.log. We remove comments because anyway the quotes in there
  2364. # would cause problems or look ugly.
  2365. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2366. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2367. trap 'exit_status=$?
  2368. # Save into config.log some information that might help in debugging.
  2369. {
  2370. echo
  2371. $as_echo "## ---------------- ##
  2372. ## Cache variables. ##
  2373. ## ---------------- ##"
  2374. echo
  2375. # The following way of writing the cache mishandles newlines in values,
  2376. (
  2377. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2378. eval ac_val=\$$ac_var
  2379. case $ac_val in #(
  2380. *${as_nl}*)
  2381. case $ac_var in #(
  2382. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2383. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2384. esac
  2385. case $ac_var in #(
  2386. _ | IFS | as_nl) ;; #(
  2387. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2388. *) { eval $ac_var=; unset $ac_var;} ;;
  2389. esac ;;
  2390. esac
  2391. done
  2392. (set) 2>&1 |
  2393. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2394. *${as_nl}ac_space=\ *)
  2395. sed -n \
  2396. "s/'\''/'\''\\\\'\'''\''/g;
  2397. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2398. ;; #(
  2399. *)
  2400. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2401. ;;
  2402. esac |
  2403. sort
  2404. )
  2405. echo
  2406. $as_echo "## ----------------- ##
  2407. ## Output variables. ##
  2408. ## ----------------- ##"
  2409. echo
  2410. for ac_var in $ac_subst_vars
  2411. do
  2412. eval ac_val=\$$ac_var
  2413. case $ac_val in
  2414. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2415. esac
  2416. $as_echo "$ac_var='\''$ac_val'\''"
  2417. done | sort
  2418. echo
  2419. if test -n "$ac_subst_files"; then
  2420. $as_echo "## ------------------- ##
  2421. ## File substitutions. ##
  2422. ## ------------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_files
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. $as_echo "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. fi
  2434. if test -s confdefs.h; then
  2435. $as_echo "## ----------- ##
  2436. ## confdefs.h. ##
  2437. ## ----------- ##"
  2438. echo
  2439. cat confdefs.h
  2440. echo
  2441. fi
  2442. test "$ac_signal" != 0 &&
  2443. $as_echo "$as_me: caught signal $ac_signal"
  2444. $as_echo "$as_me: exit $exit_status"
  2445. } >&5
  2446. rm -f core *.core core.conftest.* &&
  2447. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2448. exit $exit_status
  2449. ' 0
  2450. for ac_signal in 1 2 13 15; do
  2451. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2452. done
  2453. ac_signal=0
  2454. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2455. rm -f -r conftest* confdefs.h
  2456. $as_echo "/* confdefs.h */" > confdefs.h
  2457. # Predefined preprocessor variables.
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define PACKAGE_NAME "$PACKAGE_NAME"
  2460. _ACEOF
  2461. cat >>confdefs.h <<_ACEOF
  2462. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2463. _ACEOF
  2464. cat >>confdefs.h <<_ACEOF
  2465. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2466. _ACEOF
  2467. cat >>confdefs.h <<_ACEOF
  2468. #define PACKAGE_STRING "$PACKAGE_STRING"
  2469. _ACEOF
  2470. cat >>confdefs.h <<_ACEOF
  2471. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2472. _ACEOF
  2473. cat >>confdefs.h <<_ACEOF
  2474. #define PACKAGE_URL "$PACKAGE_URL"
  2475. _ACEOF
  2476. # Let the site file select an alternate cache file if it wants to.
  2477. # Prefer an explicitly selected file to automatically selected ones.
  2478. ac_site_file1=NONE
  2479. ac_site_file2=NONE
  2480. if test -n "$CONFIG_SITE"; then
  2481. # We do not want a PATH search for config.site.
  2482. case $CONFIG_SITE in #((
  2483. -*) ac_site_file1=./$CONFIG_SITE;;
  2484. */*) ac_site_file1=$CONFIG_SITE;;
  2485. *) ac_site_file1=./$CONFIG_SITE;;
  2486. esac
  2487. elif test "x$prefix" != xNONE; then
  2488. ac_site_file1=$prefix/share/config.site
  2489. ac_site_file2=$prefix/etc/config.site
  2490. else
  2491. ac_site_file1=$ac_default_prefix/share/config.site
  2492. ac_site_file2=$ac_default_prefix/etc/config.site
  2493. fi
  2494. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2495. do
  2496. test "x$ac_site_file" = xNONE && continue
  2497. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2499. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2500. sed 's/^/| /' "$ac_site_file" >&5
  2501. . "$ac_site_file" \
  2502. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2503. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2504. as_fn_error $? "failed to load site script $ac_site_file
  2505. See \`config.log' for more details" "$LINENO" 5; }
  2506. fi
  2507. done
  2508. if test -r "$cache_file"; then
  2509. # Some versions of bash will fail to source /dev/null (special files
  2510. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2511. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2513. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2514. case $cache_file in
  2515. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2516. *) . "./$cache_file";;
  2517. esac
  2518. fi
  2519. else
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2521. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2522. >$cache_file
  2523. fi
  2524. # Check that the precious variables saved in the cache have kept the same
  2525. # value.
  2526. ac_cache_corrupted=false
  2527. for ac_var in $ac_precious_vars; do
  2528. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2529. eval ac_new_set=\$ac_env_${ac_var}_set
  2530. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2531. eval ac_new_val=\$ac_env_${ac_var}_value
  2532. case $ac_old_set,$ac_new_set in
  2533. set,)
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2535. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2536. ac_cache_corrupted=: ;;
  2537. ,set)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2539. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2540. ac_cache_corrupted=: ;;
  2541. ,);;
  2542. *)
  2543. if test "x$ac_old_val" != "x$ac_new_val"; then
  2544. # differences in whitespace do not lead to failure.
  2545. ac_old_val_w=`echo x $ac_old_val`
  2546. ac_new_val_w=`echo x $ac_new_val`
  2547. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2549. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2550. ac_cache_corrupted=:
  2551. else
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2553. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2554. eval $ac_var=\$ac_old_val
  2555. fi
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2557. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2559. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2560. fi;;
  2561. esac
  2562. # Pass precious variables to config.status.
  2563. if test "$ac_new_set" = set; then
  2564. case $ac_new_val in
  2565. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2566. *) ac_arg=$ac_var=$ac_new_val ;;
  2567. esac
  2568. case " $ac_configure_args " in
  2569. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2570. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2571. esac
  2572. fi
  2573. done
  2574. if $ac_cache_corrupted; then
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2576. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2578. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2579. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2580. fi
  2581. ## -------------------- ##
  2582. ## Main body of script. ##
  2583. ## -------------------- ##
  2584. ac_ext=c
  2585. ac_cpp='$CPP $CPPFLAGS'
  2586. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2587. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2588. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2589. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2590. ac_aux_dir=
  2591. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2592. if test -f "$ac_dir/install-sh"; then
  2593. ac_aux_dir=$ac_dir
  2594. ac_install_sh="$ac_aux_dir/install-sh -c"
  2595. break
  2596. elif test -f "$ac_dir/install.sh"; then
  2597. ac_aux_dir=$ac_dir
  2598. ac_install_sh="$ac_aux_dir/install.sh -c"
  2599. break
  2600. elif test -f "$ac_dir/shtool"; then
  2601. ac_aux_dir=$ac_dir
  2602. ac_install_sh="$ac_aux_dir/shtool install -c"
  2603. break
  2604. fi
  2605. done
  2606. if test -z "$ac_aux_dir"; then
  2607. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2608. fi
  2609. # These three variables are undocumented and unsupported,
  2610. # and are intended to be withdrawn in a future Autoconf release.
  2611. # They can cause serious problems if a builder's source tree is in a directory
  2612. # whose full name contains unusual characters.
  2613. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2614. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2615. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2616. orig_CFLAGS="$CFLAGS"
  2617. #
  2618. # Making releases:
  2619. # Edit include/SDL_version.h and change the version, then:
  2620. # SDL_MICRO_VERSION += 1;
  2621. # SDL_INTERFACE_AGE += 1;
  2622. # SDL_BINARY_AGE += 1;
  2623. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2624. # if backwards compatibility has been broken,
  2625. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2626. #
  2627. SDL_MAJOR_VERSION=2
  2628. SDL_MINOR_VERSION=0
  2629. SDL_MICRO_VERSION=21
  2630. SDL_INTERFACE_AGE=3
  2631. SDL_BINARY_AGE=21
  2632. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2633. # libtool versioning
  2634. case `pwd` in
  2635. *\ * | *\ *)
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2637. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2638. esac
  2639. macro_version='2.4.6'
  2640. macro_revision='2.4.6'
  2641. ltmain=$ac_aux_dir/ltmain.sh
  2642. # Make sure we can run config.sub.
  2643. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2644. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2646. $as_echo_n "checking build system type... " >&6; }
  2647. if ${ac_cv_build+:} false; then :
  2648. $as_echo_n "(cached) " >&6
  2649. else
  2650. ac_build_alias=$build_alias
  2651. test "x$ac_build_alias" = x &&
  2652. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2653. test "x$ac_build_alias" = x &&
  2654. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2655. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2656. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2659. $as_echo "$ac_cv_build" >&6; }
  2660. case $ac_cv_build in
  2661. *-*-*) ;;
  2662. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2663. esac
  2664. build=$ac_cv_build
  2665. ac_save_IFS=$IFS; IFS='-'
  2666. set x $ac_cv_build
  2667. shift
  2668. build_cpu=$1
  2669. build_vendor=$2
  2670. shift; shift
  2671. # Remember, the first character of IFS is used to create $*,
  2672. # except with old shells:
  2673. build_os=$*
  2674. IFS=$ac_save_IFS
  2675. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2677. $as_echo_n "checking host system type... " >&6; }
  2678. if ${ac_cv_host+:} false; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. if test "x$host_alias" = x; then
  2682. ac_cv_host=$ac_cv_build
  2683. else
  2684. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2685. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2686. fi
  2687. fi
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2689. $as_echo "$ac_cv_host" >&6; }
  2690. case $ac_cv_host in
  2691. *-*-*) ;;
  2692. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2693. esac
  2694. host=$ac_cv_host
  2695. ac_save_IFS=$IFS; IFS='-'
  2696. set x $ac_cv_host
  2697. shift
  2698. host_cpu=$1
  2699. host_vendor=$2
  2700. shift; shift
  2701. # Remember, the first character of IFS is used to create $*,
  2702. # except with old shells:
  2703. host_os=$*
  2704. IFS=$ac_save_IFS
  2705. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2706. # Backslashify metacharacters that are still active within
  2707. # double-quoted strings.
  2708. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2709. # Same as above, but do not quote variable references.
  2710. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2711. # Sed substitution to delay expansion of an escaped shell variable in a
  2712. # double_quote_subst'ed string.
  2713. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2714. # Sed substitution to delay expansion of an escaped single quote.
  2715. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2716. # Sed substitution to avoid accidental globbing in evaled expressions
  2717. no_glob_subst='s/\*/\\\*/g'
  2718. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2719. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2720. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2722. $as_echo_n "checking how to print strings... " >&6; }
  2723. # Test print first, because it will be a builtin if present.
  2724. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2725. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2726. ECHO='print -r --'
  2727. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2728. ECHO='printf %s\n'
  2729. else
  2730. # Use this function as a fallback that always works.
  2731. func_fallback_echo ()
  2732. {
  2733. eval 'cat <<_LTECHO_EOF
  2734. $1
  2735. _LTECHO_EOF'
  2736. }
  2737. ECHO='func_fallback_echo'
  2738. fi
  2739. # func_echo_all arg...
  2740. # Invoke $ECHO with all args, space-separated.
  2741. func_echo_all ()
  2742. {
  2743. $ECHO ""
  2744. }
  2745. case $ECHO in
  2746. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2747. $as_echo "printf" >&6; } ;;
  2748. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2749. $as_echo "print -r" >&6; } ;;
  2750. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2751. $as_echo "cat" >&6; } ;;
  2752. esac
  2753. ac_ext=c
  2754. ac_cpp='$CPP $CPPFLAGS'
  2755. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2756. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2757. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2758. if test -n "$ac_tool_prefix"; then
  2759. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2760. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2762. $as_echo_n "checking for $ac_word... " >&6; }
  2763. if ${ac_cv_prog_CC+:} false; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. if test -n "$CC"; then
  2767. ac_cv_prog_CC="$CC" # Let the user override the test.
  2768. else
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH
  2771. do
  2772. IFS=$as_save_IFS
  2773. test -z "$as_dir" && as_dir=.
  2774. for ac_exec_ext in '' $ac_executable_extensions; do
  2775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2776. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2778. break 2
  2779. fi
  2780. done
  2781. done
  2782. IFS=$as_save_IFS
  2783. fi
  2784. fi
  2785. CC=$ac_cv_prog_CC
  2786. if test -n "$CC"; then
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2788. $as_echo "$CC" >&6; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. fi
  2794. if test -z "$ac_cv_prog_CC"; then
  2795. ac_ct_CC=$CC
  2796. # Extract the first word of "gcc", so it can be a program name with args.
  2797. set dummy gcc; ac_word=$2
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2799. $as_echo_n "checking for $ac_word... " >&6; }
  2800. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2801. $as_echo_n "(cached) " >&6
  2802. else
  2803. if test -n "$ac_ct_CC"; then
  2804. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2805. else
  2806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2807. for as_dir in $PATH
  2808. do
  2809. IFS=$as_save_IFS
  2810. test -z "$as_dir" && as_dir=.
  2811. for ac_exec_ext in '' $ac_executable_extensions; do
  2812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2813. ac_cv_prog_ac_ct_CC="gcc"
  2814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2815. break 2
  2816. fi
  2817. done
  2818. done
  2819. IFS=$as_save_IFS
  2820. fi
  2821. fi
  2822. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2823. if test -n "$ac_ct_CC"; then
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2825. $as_echo "$ac_ct_CC" >&6; }
  2826. else
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2828. $as_echo "no" >&6; }
  2829. fi
  2830. if test "x$ac_ct_CC" = x; then
  2831. CC=""
  2832. else
  2833. case $cross_compiling:$ac_tool_warned in
  2834. yes:)
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2837. ac_tool_warned=yes ;;
  2838. esac
  2839. CC=$ac_ct_CC
  2840. fi
  2841. else
  2842. CC="$ac_cv_prog_CC"
  2843. fi
  2844. if test -z "$CC"; then
  2845. if test -n "$ac_tool_prefix"; then
  2846. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2847. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2849. $as_echo_n "checking for $ac_word... " >&6; }
  2850. if ${ac_cv_prog_CC+:} false; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. if test -n "$CC"; then
  2854. ac_cv_prog_CC="$CC" # Let the user override the test.
  2855. else
  2856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857. for as_dir in $PATH
  2858. do
  2859. IFS=$as_save_IFS
  2860. test -z "$as_dir" && as_dir=.
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2863. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2865. break 2
  2866. fi
  2867. done
  2868. done
  2869. IFS=$as_save_IFS
  2870. fi
  2871. fi
  2872. CC=$ac_cv_prog_CC
  2873. if test -n "$CC"; then
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2875. $as_echo "$CC" >&6; }
  2876. else
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2878. $as_echo "no" >&6; }
  2879. fi
  2880. fi
  2881. fi
  2882. if test -z "$CC"; then
  2883. # Extract the first word of "cc", so it can be a program name with args.
  2884. set dummy cc; ac_word=$2
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2886. $as_echo_n "checking for $ac_word... " >&6; }
  2887. if ${ac_cv_prog_CC+:} false; then :
  2888. $as_echo_n "(cached) " >&6
  2889. else
  2890. if test -n "$CC"; then
  2891. ac_cv_prog_CC="$CC" # Let the user override the test.
  2892. else
  2893. ac_prog_rejected=no
  2894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2895. for as_dir in $PATH
  2896. do
  2897. IFS=$as_save_IFS
  2898. test -z "$as_dir" && as_dir=.
  2899. for ac_exec_ext in '' $ac_executable_extensions; do
  2900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2901. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2902. ac_prog_rejected=yes
  2903. continue
  2904. fi
  2905. ac_cv_prog_CC="cc"
  2906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2907. break 2
  2908. fi
  2909. done
  2910. done
  2911. IFS=$as_save_IFS
  2912. if test $ac_prog_rejected = yes; then
  2913. # We found a bogon in the path, so make sure we never use it.
  2914. set dummy $ac_cv_prog_CC
  2915. shift
  2916. if test $# != 0; then
  2917. # We chose a different compiler from the bogus one.
  2918. # However, it has the same basename, so the bogon will be chosen
  2919. # first if we set CC to just the basename; use the full file name.
  2920. shift
  2921. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2922. fi
  2923. fi
  2924. fi
  2925. fi
  2926. CC=$ac_cv_prog_CC
  2927. if test -n "$CC"; then
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2929. $as_echo "$CC" >&6; }
  2930. else
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2932. $as_echo "no" >&6; }
  2933. fi
  2934. fi
  2935. if test -z "$CC"; then
  2936. if test -n "$ac_tool_prefix"; then
  2937. for ac_prog in cl.exe
  2938. do
  2939. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2940. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2942. $as_echo_n "checking for $ac_word... " >&6; }
  2943. if ${ac_cv_prog_CC+:} false; then :
  2944. $as_echo_n "(cached) " >&6
  2945. else
  2946. if test -n "$CC"; then
  2947. ac_cv_prog_CC="$CC" # Let the user override the test.
  2948. else
  2949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2950. for as_dir in $PATH
  2951. do
  2952. IFS=$as_save_IFS
  2953. test -z "$as_dir" && as_dir=.
  2954. for ac_exec_ext in '' $ac_executable_extensions; do
  2955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2956. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2958. break 2
  2959. fi
  2960. done
  2961. done
  2962. IFS=$as_save_IFS
  2963. fi
  2964. fi
  2965. CC=$ac_cv_prog_CC
  2966. if test -n "$CC"; then
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2968. $as_echo "$CC" >&6; }
  2969. else
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2971. $as_echo "no" >&6; }
  2972. fi
  2973. test -n "$CC" && break
  2974. done
  2975. fi
  2976. if test -z "$CC"; then
  2977. ac_ct_CC=$CC
  2978. for ac_prog in cl.exe
  2979. do
  2980. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2981. set dummy $ac_prog; ac_word=$2
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2983. $as_echo_n "checking for $ac_word... " >&6; }
  2984. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. if test -n "$ac_ct_CC"; then
  2988. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2989. else
  2990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2991. for as_dir in $PATH
  2992. do
  2993. IFS=$as_save_IFS
  2994. test -z "$as_dir" && as_dir=.
  2995. for ac_exec_ext in '' $ac_executable_extensions; do
  2996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2997. ac_cv_prog_ac_ct_CC="$ac_prog"
  2998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2999. break 2
  3000. fi
  3001. done
  3002. done
  3003. IFS=$as_save_IFS
  3004. fi
  3005. fi
  3006. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3007. if test -n "$ac_ct_CC"; then
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3009. $as_echo "$ac_ct_CC" >&6; }
  3010. else
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3012. $as_echo "no" >&6; }
  3013. fi
  3014. test -n "$ac_ct_CC" && break
  3015. done
  3016. if test "x$ac_ct_CC" = x; then
  3017. CC=""
  3018. else
  3019. case $cross_compiling:$ac_tool_warned in
  3020. yes:)
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3023. ac_tool_warned=yes ;;
  3024. esac
  3025. CC=$ac_ct_CC
  3026. fi
  3027. fi
  3028. fi
  3029. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3031. as_fn_error $? "no acceptable C compiler found in \$PATH
  3032. See \`config.log' for more details" "$LINENO" 5; }
  3033. # Provide some information about the compiler.
  3034. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3035. set X $ac_compile
  3036. ac_compiler=$2
  3037. for ac_option in --version -v -V -qversion; do
  3038. { { ac_try="$ac_compiler $ac_option >&5"
  3039. case "(($ac_try" in
  3040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3041. *) ac_try_echo=$ac_try;;
  3042. esac
  3043. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3044. $as_echo "$ac_try_echo"; } >&5
  3045. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3046. ac_status=$?
  3047. if test -s conftest.err; then
  3048. sed '10a\
  3049. ... rest of stderr output deleted ...
  3050. 10q' conftest.err >conftest.er1
  3051. cat conftest.er1 >&5
  3052. fi
  3053. rm -f conftest.er1 conftest.err
  3054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3055. test $ac_status = 0; }
  3056. done
  3057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3058. /* end confdefs.h. */
  3059. int
  3060. main ()
  3061. {
  3062. ;
  3063. return 0;
  3064. }
  3065. _ACEOF
  3066. ac_clean_files_save=$ac_clean_files
  3067. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3068. # Try to create an executable without -o first, disregard a.out.
  3069. # It will help us diagnose broken compilers, and finding out an intuition
  3070. # of exeext.
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3072. $as_echo_n "checking whether the C compiler works... " >&6; }
  3073. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3074. # The possible output files:
  3075. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3076. ac_rmfiles=
  3077. for ac_file in $ac_files
  3078. do
  3079. case $ac_file in
  3080. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3081. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3082. esac
  3083. done
  3084. rm -f $ac_rmfiles
  3085. if { { ac_try="$ac_link_default"
  3086. case "(($ac_try" in
  3087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3088. *) ac_try_echo=$ac_try;;
  3089. esac
  3090. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3091. $as_echo "$ac_try_echo"; } >&5
  3092. (eval "$ac_link_default") 2>&5
  3093. ac_status=$?
  3094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3095. test $ac_status = 0; }; then :
  3096. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3097. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3098. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3099. # so that the user can short-circuit this test for compilers unknown to
  3100. # Autoconf.
  3101. for ac_file in $ac_files ''
  3102. do
  3103. test -f "$ac_file" || continue
  3104. case $ac_file in
  3105. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3106. ;;
  3107. [ab].out )
  3108. # We found the default executable, but exeext='' is most
  3109. # certainly right.
  3110. break;;
  3111. *.* )
  3112. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3113. then :; else
  3114. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3115. fi
  3116. # We set ac_cv_exeext here because the later test for it is not
  3117. # safe: cross compilers may not add the suffix if given an `-o'
  3118. # argument, so we may need to know it at that point already.
  3119. # Even if this section looks crufty: it has the advantage of
  3120. # actually working.
  3121. break;;
  3122. * )
  3123. break;;
  3124. esac
  3125. done
  3126. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3127. else
  3128. ac_file=''
  3129. fi
  3130. if test -z "$ac_file"; then :
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3132. $as_echo "no" >&6; }
  3133. $as_echo "$as_me: failed program was:" >&5
  3134. sed 's/^/| /' conftest.$ac_ext >&5
  3135. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3136. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3137. as_fn_error 77 "C compiler cannot create executables
  3138. See \`config.log' for more details" "$LINENO" 5; }
  3139. else
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3141. $as_echo "yes" >&6; }
  3142. fi
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3144. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3146. $as_echo "$ac_file" >&6; }
  3147. ac_exeext=$ac_cv_exeext
  3148. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3149. ac_clean_files=$ac_clean_files_save
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3151. $as_echo_n "checking for suffix of executables... " >&6; }
  3152. if { { ac_try="$ac_link"
  3153. case "(($ac_try" in
  3154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3155. *) ac_try_echo=$ac_try;;
  3156. esac
  3157. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3158. $as_echo "$ac_try_echo"; } >&5
  3159. (eval "$ac_link") 2>&5
  3160. ac_status=$?
  3161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3162. test $ac_status = 0; }; then :
  3163. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3164. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3165. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3166. # `rm'.
  3167. for ac_file in conftest.exe conftest conftest.*; do
  3168. test -f "$ac_file" || continue
  3169. case $ac_file in
  3170. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3171. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3172. break;;
  3173. * ) break;;
  3174. esac
  3175. done
  3176. else
  3177. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3178. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3179. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3180. See \`config.log' for more details" "$LINENO" 5; }
  3181. fi
  3182. rm -f conftest conftest$ac_cv_exeext
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3184. $as_echo "$ac_cv_exeext" >&6; }
  3185. rm -f conftest.$ac_ext
  3186. EXEEXT=$ac_cv_exeext
  3187. ac_exeext=$EXEEXT
  3188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3189. /* end confdefs.h. */
  3190. #include <stdio.h>
  3191. int
  3192. main ()
  3193. {
  3194. FILE *f = fopen ("conftest.out", "w");
  3195. return ferror (f) || fclose (f) != 0;
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. ac_clean_files="$ac_clean_files conftest.out"
  3201. # Check that the compiler produces executables we can run. If not, either
  3202. # the compiler is broken, or we cross compile.
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3204. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3205. if test "$cross_compiling" != yes; then
  3206. { { ac_try="$ac_link"
  3207. case "(($ac_try" in
  3208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3209. *) ac_try_echo=$ac_try;;
  3210. esac
  3211. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3212. $as_echo "$ac_try_echo"; } >&5
  3213. (eval "$ac_link") 2>&5
  3214. ac_status=$?
  3215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3216. test $ac_status = 0; }
  3217. if { ac_try='./conftest$ac_cv_exeext'
  3218. { { case "(($ac_try" in
  3219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3220. *) ac_try_echo=$ac_try;;
  3221. esac
  3222. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3223. $as_echo "$ac_try_echo"; } >&5
  3224. (eval "$ac_try") 2>&5
  3225. ac_status=$?
  3226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3227. test $ac_status = 0; }; }; then
  3228. cross_compiling=no
  3229. else
  3230. if test "$cross_compiling" = maybe; then
  3231. cross_compiling=yes
  3232. else
  3233. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3234. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3235. as_fn_error $? "cannot run C compiled programs.
  3236. If you meant to cross compile, use \`--host'.
  3237. See \`config.log' for more details" "$LINENO" 5; }
  3238. fi
  3239. fi
  3240. fi
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3242. $as_echo "$cross_compiling" >&6; }
  3243. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3244. ac_clean_files=$ac_clean_files_save
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3246. $as_echo_n "checking for suffix of object files... " >&6; }
  3247. if ${ac_cv_objext+:} false; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3251. /* end confdefs.h. */
  3252. int
  3253. main ()
  3254. {
  3255. ;
  3256. return 0;
  3257. }
  3258. _ACEOF
  3259. rm -f conftest.o conftest.obj
  3260. if { { ac_try="$ac_compile"
  3261. case "(($ac_try" in
  3262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3263. *) ac_try_echo=$ac_try;;
  3264. esac
  3265. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3266. $as_echo "$ac_try_echo"; } >&5
  3267. (eval "$ac_compile") 2>&5
  3268. ac_status=$?
  3269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3270. test $ac_status = 0; }; then :
  3271. for ac_file in conftest.o conftest.obj conftest.*; do
  3272. test -f "$ac_file" || continue;
  3273. case $ac_file in
  3274. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3275. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3276. break;;
  3277. esac
  3278. done
  3279. else
  3280. $as_echo "$as_me: failed program was:" >&5
  3281. sed 's/^/| /' conftest.$ac_ext >&5
  3282. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3283. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3284. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3285. See \`config.log' for more details" "$LINENO" 5; }
  3286. fi
  3287. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3288. fi
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3290. $as_echo "$ac_cv_objext" >&6; }
  3291. OBJEXT=$ac_cv_objext
  3292. ac_objext=$OBJEXT
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3294. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3295. if ${ac_cv_c_compiler_gnu+:} false; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3299. /* end confdefs.h. */
  3300. int
  3301. main ()
  3302. {
  3303. #ifndef __GNUC__
  3304. choke me
  3305. #endif
  3306. ;
  3307. return 0;
  3308. }
  3309. _ACEOF
  3310. if ac_fn_c_try_compile "$LINENO"; then :
  3311. ac_compiler_gnu=yes
  3312. else
  3313. ac_compiler_gnu=no
  3314. fi
  3315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3316. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3317. fi
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3319. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3320. if test $ac_compiler_gnu = yes; then
  3321. GCC=yes
  3322. else
  3323. GCC=
  3324. fi
  3325. ac_test_CFLAGS=${CFLAGS+set}
  3326. ac_save_CFLAGS=$CFLAGS
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3328. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3329. if ${ac_cv_prog_cc_g+:} false; then :
  3330. $as_echo_n "(cached) " >&6
  3331. else
  3332. ac_save_c_werror_flag=$ac_c_werror_flag
  3333. ac_c_werror_flag=yes
  3334. ac_cv_prog_cc_g=no
  3335. CFLAGS="-g"
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. int
  3339. main ()
  3340. {
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. if ac_fn_c_try_compile "$LINENO"; then :
  3346. ac_cv_prog_cc_g=yes
  3347. else
  3348. CFLAGS=""
  3349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3350. /* end confdefs.h. */
  3351. int
  3352. main ()
  3353. {
  3354. ;
  3355. return 0;
  3356. }
  3357. _ACEOF
  3358. if ac_fn_c_try_compile "$LINENO"; then :
  3359. else
  3360. ac_c_werror_flag=$ac_save_c_werror_flag
  3361. CFLAGS="-g"
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. int
  3365. main ()
  3366. {
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. if ac_fn_c_try_compile "$LINENO"; then :
  3372. ac_cv_prog_cc_g=yes
  3373. fi
  3374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3375. fi
  3376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379. ac_c_werror_flag=$ac_save_c_werror_flag
  3380. fi
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3382. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3383. if test "$ac_test_CFLAGS" = set; then
  3384. CFLAGS=$ac_save_CFLAGS
  3385. elif test $ac_cv_prog_cc_g = yes; then
  3386. if test "$GCC" = yes; then
  3387. CFLAGS="-g -O2"
  3388. else
  3389. CFLAGS="-g"
  3390. fi
  3391. else
  3392. if test "$GCC" = yes; then
  3393. CFLAGS="-O2"
  3394. else
  3395. CFLAGS=
  3396. fi
  3397. fi
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3399. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3400. if ${ac_cv_prog_cc_c89+:} false; then :
  3401. $as_echo_n "(cached) " >&6
  3402. else
  3403. ac_cv_prog_cc_c89=no
  3404. ac_save_CC=$CC
  3405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3406. /* end confdefs.h. */
  3407. #include <stdarg.h>
  3408. #include <stdio.h>
  3409. struct stat;
  3410. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3411. struct buf { int x; };
  3412. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3413. static char *e (p, i)
  3414. char **p;
  3415. int i;
  3416. {
  3417. return p[i];
  3418. }
  3419. static char *f (char * (*g) (char **, int), char **p, ...)
  3420. {
  3421. char *s;
  3422. va_list v;
  3423. va_start (v,p);
  3424. s = g (p, va_arg (v,int));
  3425. va_end (v);
  3426. return s;
  3427. }
  3428. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3429. function prototypes and stuff, but not '\xHH' hex character constants.
  3430. These don't provoke an error unfortunately, instead are silently treated
  3431. as 'x'. The following induces an error, until -std is added to get
  3432. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3433. array size at least. It's necessary to write '\x00'==0 to get something
  3434. that's true only with -std. */
  3435. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3436. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3437. inside strings and character constants. */
  3438. #define FOO(x) 'x'
  3439. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3440. int test (int i, double x);
  3441. struct s1 {int (*f) (int a);};
  3442. struct s2 {int (*f) (double a);};
  3443. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3444. int argc;
  3445. char **argv;
  3446. int
  3447. main ()
  3448. {
  3449. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3450. ;
  3451. return 0;
  3452. }
  3453. _ACEOF
  3454. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3455. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3456. do
  3457. CC="$ac_save_CC $ac_arg"
  3458. if ac_fn_c_try_compile "$LINENO"; then :
  3459. ac_cv_prog_cc_c89=$ac_arg
  3460. fi
  3461. rm -f core conftest.err conftest.$ac_objext
  3462. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3463. done
  3464. rm -f conftest.$ac_ext
  3465. CC=$ac_save_CC
  3466. fi
  3467. # AC_CACHE_VAL
  3468. case "x$ac_cv_prog_cc_c89" in
  3469. x)
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3471. $as_echo "none needed" >&6; } ;;
  3472. xno)
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3474. $as_echo "unsupported" >&6; } ;;
  3475. *)
  3476. CC="$CC $ac_cv_prog_cc_c89"
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3478. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3479. esac
  3480. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3481. fi
  3482. ac_ext=c
  3483. ac_cpp='$CPP $CPPFLAGS'
  3484. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3485. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3486. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3488. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3489. if ${ac_cv_path_SED+:} false; then :
  3490. $as_echo_n "(cached) " >&6
  3491. else
  3492. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3493. for ac_i in 1 2 3 4 5 6 7; do
  3494. ac_script="$ac_script$as_nl$ac_script"
  3495. done
  3496. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3497. { ac_script=; unset ac_script;}
  3498. if test -z "$SED"; then
  3499. ac_path_SED_found=false
  3500. # Loop through the user's path and test for each of PROGNAME-LIST
  3501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3502. for as_dir in $PATH
  3503. do
  3504. IFS=$as_save_IFS
  3505. test -z "$as_dir" && as_dir=.
  3506. for ac_prog in sed gsed; do
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3509. as_fn_executable_p "$ac_path_SED" || continue
  3510. # Check for GNU ac_path_SED and select it if it is found.
  3511. # Check for GNU $ac_path_SED
  3512. case `"$ac_path_SED" --version 2>&1` in
  3513. *GNU*)
  3514. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3515. *)
  3516. ac_count=0
  3517. $as_echo_n 0123456789 >"conftest.in"
  3518. while :
  3519. do
  3520. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3521. mv "conftest.tmp" "conftest.in"
  3522. cp "conftest.in" "conftest.nl"
  3523. $as_echo '' >> "conftest.nl"
  3524. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3525. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3526. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3527. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3528. # Best one so far, save it but keep looking for a better one
  3529. ac_cv_path_SED="$ac_path_SED"
  3530. ac_path_SED_max=$ac_count
  3531. fi
  3532. # 10*(2^10) chars as input seems more than enough
  3533. test $ac_count -gt 10 && break
  3534. done
  3535. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3536. esac
  3537. $ac_path_SED_found && break 3
  3538. done
  3539. done
  3540. done
  3541. IFS=$as_save_IFS
  3542. if test -z "$ac_cv_path_SED"; then
  3543. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3544. fi
  3545. else
  3546. ac_cv_path_SED=$SED
  3547. fi
  3548. fi
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3550. $as_echo "$ac_cv_path_SED" >&6; }
  3551. SED="$ac_cv_path_SED"
  3552. rm -f conftest.sed
  3553. test -z "$SED" && SED=sed
  3554. Xsed="$SED -e 1s/^X//"
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3556. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3557. if ${ac_cv_path_GREP+:} false; then :
  3558. $as_echo_n "(cached) " >&6
  3559. else
  3560. if test -z "$GREP"; then
  3561. ac_path_GREP_found=false
  3562. # Loop through the user's path and test for each of PROGNAME-LIST
  3563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3564. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3565. do
  3566. IFS=$as_save_IFS
  3567. test -z "$as_dir" && as_dir=.
  3568. for ac_prog in grep ggrep; do
  3569. for ac_exec_ext in '' $ac_executable_extensions; do
  3570. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3571. as_fn_executable_p "$ac_path_GREP" || continue
  3572. # Check for GNU ac_path_GREP and select it if it is found.
  3573. # Check for GNU $ac_path_GREP
  3574. case `"$ac_path_GREP" --version 2>&1` in
  3575. *GNU*)
  3576. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3577. *)
  3578. ac_count=0
  3579. $as_echo_n 0123456789 >"conftest.in"
  3580. while :
  3581. do
  3582. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3583. mv "conftest.tmp" "conftest.in"
  3584. cp "conftest.in" "conftest.nl"
  3585. $as_echo 'GREP' >> "conftest.nl"
  3586. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3587. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3588. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3589. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3590. # Best one so far, save it but keep looking for a better one
  3591. ac_cv_path_GREP="$ac_path_GREP"
  3592. ac_path_GREP_max=$ac_count
  3593. fi
  3594. # 10*(2^10) chars as input seems more than enough
  3595. test $ac_count -gt 10 && break
  3596. done
  3597. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3598. esac
  3599. $ac_path_GREP_found && break 3
  3600. done
  3601. done
  3602. done
  3603. IFS=$as_save_IFS
  3604. if test -z "$ac_cv_path_GREP"; then
  3605. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3606. fi
  3607. else
  3608. ac_cv_path_GREP=$GREP
  3609. fi
  3610. fi
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3612. $as_echo "$ac_cv_path_GREP" >&6; }
  3613. GREP="$ac_cv_path_GREP"
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3615. $as_echo_n "checking for egrep... " >&6; }
  3616. if ${ac_cv_path_EGREP+:} false; then :
  3617. $as_echo_n "(cached) " >&6
  3618. else
  3619. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3620. then ac_cv_path_EGREP="$GREP -E"
  3621. else
  3622. if test -z "$EGREP"; then
  3623. ac_path_EGREP_found=false
  3624. # Loop through the user's path and test for each of PROGNAME-LIST
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_prog in egrep; do
  3631. for ac_exec_ext in '' $ac_executable_extensions; do
  3632. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3633. as_fn_executable_p "$ac_path_EGREP" || continue
  3634. # Check for GNU ac_path_EGREP and select it if it is found.
  3635. # Check for GNU $ac_path_EGREP
  3636. case `"$ac_path_EGREP" --version 2>&1` in
  3637. *GNU*)
  3638. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3639. *)
  3640. ac_count=0
  3641. $as_echo_n 0123456789 >"conftest.in"
  3642. while :
  3643. do
  3644. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3645. mv "conftest.tmp" "conftest.in"
  3646. cp "conftest.in" "conftest.nl"
  3647. $as_echo 'EGREP' >> "conftest.nl"
  3648. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3649. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3650. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3651. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3652. # Best one so far, save it but keep looking for a better one
  3653. ac_cv_path_EGREP="$ac_path_EGREP"
  3654. ac_path_EGREP_max=$ac_count
  3655. fi
  3656. # 10*(2^10) chars as input seems more than enough
  3657. test $ac_count -gt 10 && break
  3658. done
  3659. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3660. esac
  3661. $ac_path_EGREP_found && break 3
  3662. done
  3663. done
  3664. done
  3665. IFS=$as_save_IFS
  3666. if test -z "$ac_cv_path_EGREP"; then
  3667. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3668. fi
  3669. else
  3670. ac_cv_path_EGREP=$EGREP
  3671. fi
  3672. fi
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3675. $as_echo "$ac_cv_path_EGREP" >&6; }
  3676. EGREP="$ac_cv_path_EGREP"
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3678. $as_echo_n "checking for fgrep... " >&6; }
  3679. if ${ac_cv_path_FGREP+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3683. then ac_cv_path_FGREP="$GREP -F"
  3684. else
  3685. if test -z "$FGREP"; then
  3686. ac_path_FGREP_found=false
  3687. # Loop through the user's path and test for each of PROGNAME-LIST
  3688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3689. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3690. do
  3691. IFS=$as_save_IFS
  3692. test -z "$as_dir" && as_dir=.
  3693. for ac_prog in fgrep; do
  3694. for ac_exec_ext in '' $ac_executable_extensions; do
  3695. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3696. as_fn_executable_p "$ac_path_FGREP" || continue
  3697. # Check for GNU ac_path_FGREP and select it if it is found.
  3698. # Check for GNU $ac_path_FGREP
  3699. case `"$ac_path_FGREP" --version 2>&1` in
  3700. *GNU*)
  3701. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3702. *)
  3703. ac_count=0
  3704. $as_echo_n 0123456789 >"conftest.in"
  3705. while :
  3706. do
  3707. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3708. mv "conftest.tmp" "conftest.in"
  3709. cp "conftest.in" "conftest.nl"
  3710. $as_echo 'FGREP' >> "conftest.nl"
  3711. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3712. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3713. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3714. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3715. # Best one so far, save it but keep looking for a better one
  3716. ac_cv_path_FGREP="$ac_path_FGREP"
  3717. ac_path_FGREP_max=$ac_count
  3718. fi
  3719. # 10*(2^10) chars as input seems more than enough
  3720. test $ac_count -gt 10 && break
  3721. done
  3722. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3723. esac
  3724. $ac_path_FGREP_found && break 3
  3725. done
  3726. done
  3727. done
  3728. IFS=$as_save_IFS
  3729. if test -z "$ac_cv_path_FGREP"; then
  3730. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3731. fi
  3732. else
  3733. ac_cv_path_FGREP=$FGREP
  3734. fi
  3735. fi
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3738. $as_echo "$ac_cv_path_FGREP" >&6; }
  3739. FGREP="$ac_cv_path_FGREP"
  3740. test -z "$GREP" && GREP=grep
  3741. # Check whether --with-gnu-ld was given.
  3742. if test "${with_gnu_ld+set}" = set; then :
  3743. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3744. else
  3745. with_gnu_ld=no
  3746. fi
  3747. ac_prog=ld
  3748. if test yes = "$GCC"; then
  3749. # Check if gcc -print-prog-name=ld gives a path.
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3751. $as_echo_n "checking for ld used by $CC... " >&6; }
  3752. case $host in
  3753. *-*-mingw*)
  3754. # gcc leaves a trailing carriage return, which upsets mingw
  3755. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3756. *)
  3757. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3758. esac
  3759. case $ac_prog in
  3760. # Accept absolute paths.
  3761. [\\/]* | ?:[\\/]*)
  3762. re_direlt='/[^/][^/]*/\.\./'
  3763. # Canonicalize the pathname of ld
  3764. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3765. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3766. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3767. done
  3768. test -z "$LD" && LD=$ac_prog
  3769. ;;
  3770. "")
  3771. # If it fails, then pretend we aren't using GCC.
  3772. ac_prog=ld
  3773. ;;
  3774. *)
  3775. # If it is relative, then search for the first ld in PATH.
  3776. with_gnu_ld=unknown
  3777. ;;
  3778. esac
  3779. elif test yes = "$with_gnu_ld"; then
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3781. $as_echo_n "checking for GNU ld... " >&6; }
  3782. else
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3784. $as_echo_n "checking for non-GNU ld... " >&6; }
  3785. fi
  3786. if ${lt_cv_path_LD+:} false; then :
  3787. $as_echo_n "(cached) " >&6
  3788. else
  3789. if test -z "$LD"; then
  3790. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3791. for ac_dir in $PATH; do
  3792. IFS=$lt_save_ifs
  3793. test -z "$ac_dir" && ac_dir=.
  3794. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3795. lt_cv_path_LD=$ac_dir/$ac_prog
  3796. # Check to see if the program is GNU ld. I'd rather use --version,
  3797. # but apparently some variants of GNU ld only accept -v.
  3798. # Break only if it was the GNU/non-GNU ld that we prefer.
  3799. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3800. *GNU* | *'with BFD'*)
  3801. test no != "$with_gnu_ld" && break
  3802. ;;
  3803. *)
  3804. test yes != "$with_gnu_ld" && break
  3805. ;;
  3806. esac
  3807. fi
  3808. done
  3809. IFS=$lt_save_ifs
  3810. else
  3811. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3812. fi
  3813. fi
  3814. LD=$lt_cv_path_LD
  3815. if test -n "$LD"; then
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3817. $as_echo "$LD" >&6; }
  3818. else
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3820. $as_echo "no" >&6; }
  3821. fi
  3822. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3824. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3825. if ${lt_cv_prog_gnu_ld+:} false; then :
  3826. $as_echo_n "(cached) " >&6
  3827. else
  3828. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3829. case `$LD -v 2>&1 </dev/null` in
  3830. *GNU* | *'with BFD'*)
  3831. lt_cv_prog_gnu_ld=yes
  3832. ;;
  3833. *)
  3834. lt_cv_prog_gnu_ld=no
  3835. ;;
  3836. esac
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3839. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3840. with_gnu_ld=$lt_cv_prog_gnu_ld
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3842. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3843. if ${lt_cv_path_NM+:} false; then :
  3844. $as_echo_n "(cached) " >&6
  3845. else
  3846. if test -n "$NM"; then
  3847. # Let the user override the test.
  3848. lt_cv_path_NM=$NM
  3849. else
  3850. lt_nm_to_check=${ac_tool_prefix}nm
  3851. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3852. lt_nm_to_check="$lt_nm_to_check nm"
  3853. fi
  3854. for lt_tmp_nm in $lt_nm_to_check; do
  3855. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3856. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3857. IFS=$lt_save_ifs
  3858. test -z "$ac_dir" && ac_dir=.
  3859. tmp_nm=$ac_dir/$lt_tmp_nm
  3860. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3861. # Check to see if the nm accepts a BSD-compat flag.
  3862. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3863. # nm: unknown option "B" ignored
  3864. # Tru64's nm complains that /dev/null is an invalid object file
  3865. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3866. case $build_os in
  3867. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3868. *) lt_bad_file=/dev/null ;;
  3869. esac
  3870. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3871. *$lt_bad_file* | *'Invalid file or object type'*)
  3872. lt_cv_path_NM="$tmp_nm -B"
  3873. break 2
  3874. ;;
  3875. *)
  3876. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3877. */dev/null*)
  3878. lt_cv_path_NM="$tmp_nm -p"
  3879. break 2
  3880. ;;
  3881. *)
  3882. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3883. continue # so that we can try to find one that supports BSD flags
  3884. ;;
  3885. esac
  3886. ;;
  3887. esac
  3888. fi
  3889. done
  3890. IFS=$lt_save_ifs
  3891. done
  3892. : ${lt_cv_path_NM=no}
  3893. fi
  3894. fi
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3896. $as_echo "$lt_cv_path_NM" >&6; }
  3897. if test no != "$lt_cv_path_NM"; then
  3898. NM=$lt_cv_path_NM
  3899. else
  3900. # Didn't find any BSD compatible name lister, look for dumpbin.
  3901. if test -n "$DUMPBIN"; then :
  3902. # Let the user override the test.
  3903. else
  3904. if test -n "$ac_tool_prefix"; then
  3905. for ac_prog in dumpbin "link -dump"
  3906. do
  3907. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3908. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3910. $as_echo_n "checking for $ac_word... " >&6; }
  3911. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. if test -n "$DUMPBIN"; then
  3915. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3916. else
  3917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3918. for as_dir in $PATH
  3919. do
  3920. IFS=$as_save_IFS
  3921. test -z "$as_dir" && as_dir=.
  3922. for ac_exec_ext in '' $ac_executable_extensions; do
  3923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3924. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3926. break 2
  3927. fi
  3928. done
  3929. done
  3930. IFS=$as_save_IFS
  3931. fi
  3932. fi
  3933. DUMPBIN=$ac_cv_prog_DUMPBIN
  3934. if test -n "$DUMPBIN"; then
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3936. $as_echo "$DUMPBIN" >&6; }
  3937. else
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3939. $as_echo "no" >&6; }
  3940. fi
  3941. test -n "$DUMPBIN" && break
  3942. done
  3943. fi
  3944. if test -z "$DUMPBIN"; then
  3945. ac_ct_DUMPBIN=$DUMPBIN
  3946. for ac_prog in dumpbin "link -dump"
  3947. do
  3948. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3949. set dummy $ac_prog; ac_word=$2
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3951. $as_echo_n "checking for $ac_word... " >&6; }
  3952. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3953. $as_echo_n "(cached) " >&6
  3954. else
  3955. if test -n "$ac_ct_DUMPBIN"; then
  3956. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3957. else
  3958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3959. for as_dir in $PATH
  3960. do
  3961. IFS=$as_save_IFS
  3962. test -z "$as_dir" && as_dir=.
  3963. for ac_exec_ext in '' $ac_executable_extensions; do
  3964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3965. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3967. break 2
  3968. fi
  3969. done
  3970. done
  3971. IFS=$as_save_IFS
  3972. fi
  3973. fi
  3974. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3975. if test -n "$ac_ct_DUMPBIN"; then
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3977. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3978. else
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3980. $as_echo "no" >&6; }
  3981. fi
  3982. test -n "$ac_ct_DUMPBIN" && break
  3983. done
  3984. if test "x$ac_ct_DUMPBIN" = x; then
  3985. DUMPBIN=":"
  3986. else
  3987. case $cross_compiling:$ac_tool_warned in
  3988. yes:)
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3991. ac_tool_warned=yes ;;
  3992. esac
  3993. DUMPBIN=$ac_ct_DUMPBIN
  3994. fi
  3995. fi
  3996. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3997. *COFF*)
  3998. DUMPBIN="$DUMPBIN -symbols -headers"
  3999. ;;
  4000. *)
  4001. DUMPBIN=:
  4002. ;;
  4003. esac
  4004. fi
  4005. if test : != "$DUMPBIN"; then
  4006. NM=$DUMPBIN
  4007. fi
  4008. fi
  4009. test -z "$NM" && NM=nm
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4011. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4012. if ${lt_cv_nm_interface+:} false; then :
  4013. $as_echo_n "(cached) " >&6
  4014. else
  4015. lt_cv_nm_interface="BSD nm"
  4016. echo "int some_variable = 0;" > conftest.$ac_ext
  4017. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4018. (eval "$ac_compile" 2>conftest.err)
  4019. cat conftest.err >&5
  4020. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4021. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4022. cat conftest.err >&5
  4023. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4024. cat conftest.out >&5
  4025. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4026. lt_cv_nm_interface="MS dumpbin"
  4027. fi
  4028. rm -f conftest*
  4029. fi
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4031. $as_echo "$lt_cv_nm_interface" >&6; }
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4033. $as_echo_n "checking whether ln -s works... " >&6; }
  4034. LN_S=$as_ln_s
  4035. if test "$LN_S" = "ln -s"; then
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4037. $as_echo "yes" >&6; }
  4038. else
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4040. $as_echo "no, using $LN_S" >&6; }
  4041. fi
  4042. # find the maximum length of command line arguments
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4044. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4045. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4046. $as_echo_n "(cached) " >&6
  4047. else
  4048. i=0
  4049. teststring=ABCD
  4050. case $build_os in
  4051. msdosdjgpp*)
  4052. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4053. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4054. # during glob expansion). Even if it were fixed, the result of this
  4055. # check would be larger than it should be.
  4056. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4057. ;;
  4058. gnu*)
  4059. # Under GNU Hurd, this test is not required because there is
  4060. # no limit to the length of command line arguments.
  4061. # Libtool will interpret -1 as no limit whatsoever
  4062. lt_cv_sys_max_cmd_len=-1;
  4063. ;;
  4064. cygwin* | mingw* | cegcc*)
  4065. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4066. # about 5 minutes as the teststring grows exponentially.
  4067. # Worse, since 9x/ME are not pre-emptively multitasking,
  4068. # you end up with a "frozen" computer, even though with patience
  4069. # the test eventually succeeds (with a max line length of 256k).
  4070. # Instead, let's just punt: use the minimum linelength reported by
  4071. # all of the supported platforms: 8192 (on NT/2K/XP).
  4072. lt_cv_sys_max_cmd_len=8192;
  4073. ;;
  4074. mint*)
  4075. # On MiNT this can take a long time and run out of memory.
  4076. lt_cv_sys_max_cmd_len=8192;
  4077. ;;
  4078. amigaos*)
  4079. # On AmigaOS with pdksh, this test takes hours, literally.
  4080. # So we just punt and use a minimum line length of 8192.
  4081. lt_cv_sys_max_cmd_len=8192;
  4082. ;;
  4083. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4084. # This has been around since 386BSD, at least. Likely further.
  4085. if test -x /sbin/sysctl; then
  4086. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4087. elif test -x /usr/sbin/sysctl; then
  4088. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4089. else
  4090. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4091. fi
  4092. # And add a safety zone
  4093. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4094. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4095. ;;
  4096. interix*)
  4097. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4098. lt_cv_sys_max_cmd_len=196608
  4099. ;;
  4100. os2*)
  4101. # The test takes a long time on OS/2.
  4102. lt_cv_sys_max_cmd_len=8192
  4103. ;;
  4104. osf*)
  4105. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4106. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4107. # nice to cause kernel panics so lets avoid the loop below.
  4108. # First set a reasonable default.
  4109. lt_cv_sys_max_cmd_len=16384
  4110. #
  4111. if test -x /sbin/sysconfig; then
  4112. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4113. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4114. esac
  4115. fi
  4116. ;;
  4117. sco3.2v5*)
  4118. lt_cv_sys_max_cmd_len=102400
  4119. ;;
  4120. sysv5* | sco5v6* | sysv4.2uw2*)
  4121. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4122. if test -n "$kargmax"; then
  4123. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4124. else
  4125. lt_cv_sys_max_cmd_len=32768
  4126. fi
  4127. ;;
  4128. *)
  4129. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4130. if test -n "$lt_cv_sys_max_cmd_len" && \
  4131. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4132. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4133. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4134. else
  4135. # Make teststring a little bigger before we do anything with it.
  4136. # a 1K string should be a reasonable start.
  4137. for i in 1 2 3 4 5 6 7 8; do
  4138. teststring=$teststring$teststring
  4139. done
  4140. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4141. # If test is not a shell built-in, we'll probably end up computing a
  4142. # maximum length that is only half of the actual maximum length, but
  4143. # we can't tell.
  4144. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4145. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4146. test 17 != "$i" # 1/2 MB should be enough
  4147. do
  4148. i=`expr $i + 1`
  4149. teststring=$teststring$teststring
  4150. done
  4151. # Only check the string length outside the loop.
  4152. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4153. teststring=
  4154. # Add a significant safety factor because C++ compilers can tack on
  4155. # massive amounts of additional arguments before passing them to the
  4156. # linker. It appears as though 1/2 is a usable value.
  4157. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4158. fi
  4159. ;;
  4160. esac
  4161. fi
  4162. if test -n "$lt_cv_sys_max_cmd_len"; then
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4164. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4165. else
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4167. $as_echo "none" >&6; }
  4168. fi
  4169. max_cmd_len=$lt_cv_sys_max_cmd_len
  4170. : ${CP="cp -f"}
  4171. : ${MV="mv -f"}
  4172. : ${RM="rm -f"}
  4173. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4174. lt_unset=unset
  4175. else
  4176. lt_unset=false
  4177. fi
  4178. # test EBCDIC or ASCII
  4179. case `echo X|tr X '\101'` in
  4180. A) # ASCII based system
  4181. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4182. lt_SP2NL='tr \040 \012'
  4183. lt_NL2SP='tr \015\012 \040\040'
  4184. ;;
  4185. *) # EBCDIC based system
  4186. lt_SP2NL='tr \100 \n'
  4187. lt_NL2SP='tr \r\n \100\100'
  4188. ;;
  4189. esac
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4191. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4192. if ${lt_cv_to_host_file_cmd+:} false; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. case $host in
  4196. *-*-mingw* )
  4197. case $build in
  4198. *-*-mingw* ) # actually msys
  4199. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4200. ;;
  4201. *-*-cygwin* )
  4202. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4203. ;;
  4204. * ) # otherwise, assume *nix
  4205. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4206. ;;
  4207. esac
  4208. ;;
  4209. *-*-cygwin* )
  4210. case $build in
  4211. *-*-mingw* ) # actually msys
  4212. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4213. ;;
  4214. *-*-cygwin* )
  4215. lt_cv_to_host_file_cmd=func_convert_file_noop
  4216. ;;
  4217. * ) # otherwise, assume *nix
  4218. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4219. ;;
  4220. esac
  4221. ;;
  4222. * ) # unhandled hosts (and "normal" native builds)
  4223. lt_cv_to_host_file_cmd=func_convert_file_noop
  4224. ;;
  4225. esac
  4226. fi
  4227. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4229. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4231. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4232. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. #assume ordinary cross tools, or native build.
  4236. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4237. case $host in
  4238. *-*-mingw* )
  4239. case $build in
  4240. *-*-mingw* ) # actually msys
  4241. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4242. ;;
  4243. esac
  4244. ;;
  4245. esac
  4246. fi
  4247. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4249. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4251. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4252. if ${lt_cv_ld_reload_flag+:} false; then :
  4253. $as_echo_n "(cached) " >&6
  4254. else
  4255. lt_cv_ld_reload_flag='-r'
  4256. fi
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4258. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4259. reload_flag=$lt_cv_ld_reload_flag
  4260. case $reload_flag in
  4261. "" | " "*) ;;
  4262. *) reload_flag=" $reload_flag" ;;
  4263. esac
  4264. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4265. case $host_os in
  4266. cygwin* | mingw* | pw32* | cegcc*)
  4267. if test yes != "$GCC"; then
  4268. reload_cmds=false
  4269. fi
  4270. ;;
  4271. darwin*)
  4272. if test yes = "$GCC"; then
  4273. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4274. else
  4275. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4276. fi
  4277. ;;
  4278. esac
  4279. if test -n "$ac_tool_prefix"; then
  4280. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4281. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4283. $as_echo_n "checking for $ac_word... " >&6; }
  4284. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4285. $as_echo_n "(cached) " >&6
  4286. else
  4287. if test -n "$OBJDUMP"; then
  4288. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4289. else
  4290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4291. for as_dir in $PATH
  4292. do
  4293. IFS=$as_save_IFS
  4294. test -z "$as_dir" && as_dir=.
  4295. for ac_exec_ext in '' $ac_executable_extensions; do
  4296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4297. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4299. break 2
  4300. fi
  4301. done
  4302. done
  4303. IFS=$as_save_IFS
  4304. fi
  4305. fi
  4306. OBJDUMP=$ac_cv_prog_OBJDUMP
  4307. if test -n "$OBJDUMP"; then
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4309. $as_echo "$OBJDUMP" >&6; }
  4310. else
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4312. $as_echo "no" >&6; }
  4313. fi
  4314. fi
  4315. if test -z "$ac_cv_prog_OBJDUMP"; then
  4316. ac_ct_OBJDUMP=$OBJDUMP
  4317. # Extract the first word of "objdump", so it can be a program name with args.
  4318. set dummy objdump; ac_word=$2
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4320. $as_echo_n "checking for $ac_word... " >&6; }
  4321. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4322. $as_echo_n "(cached) " >&6
  4323. else
  4324. if test -n "$ac_ct_OBJDUMP"; then
  4325. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4326. else
  4327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. for as_dir in $PATH
  4329. do
  4330. IFS=$as_save_IFS
  4331. test -z "$as_dir" && as_dir=.
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4334. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4336. break 2
  4337. fi
  4338. done
  4339. done
  4340. IFS=$as_save_IFS
  4341. fi
  4342. fi
  4343. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4344. if test -n "$ac_ct_OBJDUMP"; then
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4346. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4347. else
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4349. $as_echo "no" >&6; }
  4350. fi
  4351. if test "x$ac_ct_OBJDUMP" = x; then
  4352. OBJDUMP="false"
  4353. else
  4354. case $cross_compiling:$ac_tool_warned in
  4355. yes:)
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4358. ac_tool_warned=yes ;;
  4359. esac
  4360. OBJDUMP=$ac_ct_OBJDUMP
  4361. fi
  4362. else
  4363. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4364. fi
  4365. test -z "$OBJDUMP" && OBJDUMP=objdump
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4367. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4368. if ${lt_cv_deplibs_check_method+:} false; then :
  4369. $as_echo_n "(cached) " >&6
  4370. else
  4371. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4372. lt_cv_file_magic_test_file=
  4373. lt_cv_deplibs_check_method='unknown'
  4374. # Need to set the preceding variable on all platforms that support
  4375. # interlibrary dependencies.
  4376. # 'none' -- dependencies not supported.
  4377. # 'unknown' -- same as none, but documents that we really don't know.
  4378. # 'pass_all' -- all dependencies passed with no checks.
  4379. # 'test_compile' -- check by making test program.
  4380. # 'file_magic [[regex]]' -- check by looking for files in library path
  4381. # that responds to the $file_magic_cmd with a given extended regex.
  4382. # If you have 'file' or equivalent on your system and you're not sure
  4383. # whether 'pass_all' will *always* work, you probably want this one.
  4384. case $host_os in
  4385. aix[4-9]*)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. beos*)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. bsdi[45]*)
  4392. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4393. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4394. lt_cv_file_magic_test_file=/shlib/libc.so
  4395. ;;
  4396. cygwin*)
  4397. # func_win32_libid is a shell function defined in ltmain.sh
  4398. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4399. lt_cv_file_magic_cmd='func_win32_libid'
  4400. lt_cv_deplibs_check_method=pass_all # SDL customization
  4401. ;;
  4402. mingw* | pw32*)
  4403. # Base MSYS/MinGW do not provide the 'file' command needed by
  4404. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4405. # unless we find 'file', for example because we are cross-compiling.
  4406. if ( file / ) >/dev/null 2>&1; then
  4407. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4408. lt_cv_file_magic_cmd='func_win32_libid'
  4409. else
  4410. # Keep this pattern in sync with the one in func_win32_libid.
  4411. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4412. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4413. fi
  4414. lt_cv_deplibs_check_method=pass_all # SDL customization
  4415. ;;
  4416. cegcc*)
  4417. # use the weaker test based on 'objdump'. See mingw*.
  4418. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4419. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4420. ;;
  4421. darwin* | rhapsody*)
  4422. lt_cv_deplibs_check_method=pass_all
  4423. ;;
  4424. freebsd* | dragonfly* | midnightbsd*)
  4425. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4426. case $host_cpu in
  4427. i*86 )
  4428. # Not sure whether the presence of OpenBSD here was a mistake.
  4429. # Let's accept both of them until this is cleared up.
  4430. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4431. lt_cv_file_magic_cmd=/usr/bin/file
  4432. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4433. ;;
  4434. esac
  4435. else
  4436. lt_cv_deplibs_check_method=pass_all
  4437. fi
  4438. ;;
  4439. haiku*)
  4440. lt_cv_deplibs_check_method=pass_all
  4441. ;;
  4442. hpux10.20* | hpux11*)
  4443. lt_cv_file_magic_cmd=/usr/bin/file
  4444. case $host_cpu in
  4445. ia64*)
  4446. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4447. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4448. ;;
  4449. hppa*64*)
  4450. 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]'
  4451. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4452. ;;
  4453. *)
  4454. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4455. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4456. ;;
  4457. esac
  4458. ;;
  4459. interix[3-9]*)
  4460. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4461. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4462. ;;
  4463. irix5* | irix6* | nonstopux*)
  4464. case $LD in
  4465. *-32|*"-32 ") libmagic=32-bit;;
  4466. *-n32|*"-n32 ") libmagic=N32;;
  4467. *-64|*"-64 ") libmagic=64-bit;;
  4468. *) libmagic=never-match;;
  4469. esac
  4470. lt_cv_deplibs_check_method=pass_all
  4471. ;;
  4472. # This must be glibc/ELF.
  4473. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. netbsd*)
  4477. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4478. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4479. else
  4480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4481. fi
  4482. ;;
  4483. newos6*)
  4484. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4485. lt_cv_file_magic_cmd=/usr/bin/file
  4486. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4487. ;;
  4488. *nto* | *qnx*)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. openbsd* | bitrig*)
  4492. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4493. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4494. else
  4495. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4496. fi
  4497. ;;
  4498. osf3* | osf4* | osf5*)
  4499. lt_cv_deplibs_check_method=pass_all
  4500. ;;
  4501. rdos*)
  4502. lt_cv_deplibs_check_method=pass_all
  4503. ;;
  4504. solaris*)
  4505. lt_cv_deplibs_check_method=pass_all
  4506. ;;
  4507. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4508. lt_cv_deplibs_check_method=pass_all
  4509. ;;
  4510. sysv4 | sysv4.3*)
  4511. case $host_vendor in
  4512. motorola)
  4513. 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]'
  4514. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4515. ;;
  4516. ncr)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. sequent)
  4520. lt_cv_file_magic_cmd='/bin/file'
  4521. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4522. ;;
  4523. sni)
  4524. lt_cv_file_magic_cmd='/bin/file'
  4525. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4526. lt_cv_file_magic_test_file=/lib/libc.so
  4527. ;;
  4528. siemens)
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. pc)
  4532. lt_cv_deplibs_check_method=pass_all
  4533. ;;
  4534. esac
  4535. ;;
  4536. tpf*)
  4537. lt_cv_deplibs_check_method=pass_all
  4538. ;;
  4539. os2*)
  4540. lt_cv_deplibs_check_method=pass_all
  4541. ;;
  4542. esac
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4545. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4546. file_magic_glob=
  4547. want_nocaseglob=no
  4548. if test "$build" = "$host"; then
  4549. case $host_os in
  4550. mingw* | pw32*)
  4551. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4552. want_nocaseglob=yes
  4553. else
  4554. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4555. fi
  4556. ;;
  4557. esac
  4558. fi
  4559. file_magic_cmd=$lt_cv_file_magic_cmd
  4560. deplibs_check_method=$lt_cv_deplibs_check_method
  4561. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4562. if test -n "$ac_tool_prefix"; then
  4563. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4564. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4566. $as_echo_n "checking for $ac_word... " >&6; }
  4567. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. if test -n "$DLLTOOL"; then
  4571. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4572. else
  4573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4574. for as_dir in $PATH
  4575. do
  4576. IFS=$as_save_IFS
  4577. test -z "$as_dir" && as_dir=.
  4578. for ac_exec_ext in '' $ac_executable_extensions; do
  4579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4580. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4582. break 2
  4583. fi
  4584. done
  4585. done
  4586. IFS=$as_save_IFS
  4587. fi
  4588. fi
  4589. DLLTOOL=$ac_cv_prog_DLLTOOL
  4590. if test -n "$DLLTOOL"; then
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4592. $as_echo "$DLLTOOL" >&6; }
  4593. else
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4595. $as_echo "no" >&6; }
  4596. fi
  4597. fi
  4598. if test -z "$ac_cv_prog_DLLTOOL"; then
  4599. ac_ct_DLLTOOL=$DLLTOOL
  4600. # Extract the first word of "dlltool", so it can be a program name with args.
  4601. set dummy dlltool; ac_word=$2
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4603. $as_echo_n "checking for $ac_word... " >&6; }
  4604. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. if test -n "$ac_ct_DLLTOOL"; then
  4608. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4609. else
  4610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4611. for as_dir in $PATH
  4612. do
  4613. IFS=$as_save_IFS
  4614. test -z "$as_dir" && as_dir=.
  4615. for ac_exec_ext in '' $ac_executable_extensions; do
  4616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4617. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4619. break 2
  4620. fi
  4621. done
  4622. done
  4623. IFS=$as_save_IFS
  4624. fi
  4625. fi
  4626. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4627. if test -n "$ac_ct_DLLTOOL"; then
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4629. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4630. else
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4632. $as_echo "no" >&6; }
  4633. fi
  4634. if test "x$ac_ct_DLLTOOL" = x; then
  4635. DLLTOOL="false"
  4636. else
  4637. case $cross_compiling:$ac_tool_warned in
  4638. yes:)
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4641. ac_tool_warned=yes ;;
  4642. esac
  4643. DLLTOOL=$ac_ct_DLLTOOL
  4644. fi
  4645. else
  4646. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4647. fi
  4648. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4650. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4651. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4655. case $host_os in
  4656. cygwin* | mingw* | pw32* | cegcc*)
  4657. # two different shell functions defined in ltmain.sh;
  4658. # decide which one to use based on capabilities of $DLLTOOL
  4659. case `$DLLTOOL --help 2>&1` in
  4660. *--identify-strict*)
  4661. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4662. ;;
  4663. *)
  4664. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4665. ;;
  4666. esac
  4667. ;;
  4668. *)
  4669. # fallback: assume linklib IS sharedlib
  4670. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4671. ;;
  4672. esac
  4673. fi
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4675. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4676. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4677. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4678. if test -n "$ac_tool_prefix"; then
  4679. for ac_prog in ar
  4680. do
  4681. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4682. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4684. $as_echo_n "checking for $ac_word... " >&6; }
  4685. if ${ac_cv_prog_AR+:} false; then :
  4686. $as_echo_n "(cached) " >&6
  4687. else
  4688. if test -n "$AR"; then
  4689. ac_cv_prog_AR="$AR" # Let the user override the test.
  4690. else
  4691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4692. for as_dir in $PATH
  4693. do
  4694. IFS=$as_save_IFS
  4695. test -z "$as_dir" && as_dir=.
  4696. for ac_exec_ext in '' $ac_executable_extensions; do
  4697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4698. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4700. break 2
  4701. fi
  4702. done
  4703. done
  4704. IFS=$as_save_IFS
  4705. fi
  4706. fi
  4707. AR=$ac_cv_prog_AR
  4708. if test -n "$AR"; then
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4710. $as_echo "$AR" >&6; }
  4711. else
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4713. $as_echo "no" >&6; }
  4714. fi
  4715. test -n "$AR" && break
  4716. done
  4717. fi
  4718. if test -z "$AR"; then
  4719. ac_ct_AR=$AR
  4720. for ac_prog in ar
  4721. do
  4722. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4723. set dummy $ac_prog; ac_word=$2
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4725. $as_echo_n "checking for $ac_word... " >&6; }
  4726. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. if test -n "$ac_ct_AR"; then
  4730. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4731. else
  4732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4733. for as_dir in $PATH
  4734. do
  4735. IFS=$as_save_IFS
  4736. test -z "$as_dir" && as_dir=.
  4737. for ac_exec_ext in '' $ac_executable_extensions; do
  4738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4739. ac_cv_prog_ac_ct_AR="$ac_prog"
  4740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4741. break 2
  4742. fi
  4743. done
  4744. done
  4745. IFS=$as_save_IFS
  4746. fi
  4747. fi
  4748. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4749. if test -n "$ac_ct_AR"; then
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4751. $as_echo "$ac_ct_AR" >&6; }
  4752. else
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4754. $as_echo "no" >&6; }
  4755. fi
  4756. test -n "$ac_ct_AR" && break
  4757. done
  4758. if test "x$ac_ct_AR" = x; then
  4759. AR="false"
  4760. else
  4761. case $cross_compiling:$ac_tool_warned in
  4762. yes:)
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4765. ac_tool_warned=yes ;;
  4766. esac
  4767. AR=$ac_ct_AR
  4768. fi
  4769. fi
  4770. : ${AR=ar}
  4771. : ${AR_FLAGS=cru}
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4773. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4774. if ${lt_cv_ar_at_file+:} false; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. lt_cv_ar_at_file=no
  4778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4779. /* end confdefs.h. */
  4780. int
  4781. main ()
  4782. {
  4783. ;
  4784. return 0;
  4785. }
  4786. _ACEOF
  4787. if ac_fn_c_try_compile "$LINENO"; then :
  4788. echo conftest.$ac_objext > conftest.lst
  4789. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4790. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4791. (eval $lt_ar_try) 2>&5
  4792. ac_status=$?
  4793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4794. test $ac_status = 0; }
  4795. if test 0 -eq "$ac_status"; then
  4796. # Ensure the archiver fails upon bogus file names.
  4797. rm -f conftest.$ac_objext libconftest.a
  4798. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4799. (eval $lt_ar_try) 2>&5
  4800. ac_status=$?
  4801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4802. test $ac_status = 0; }
  4803. if test 0 -ne "$ac_status"; then
  4804. lt_cv_ar_at_file=@
  4805. fi
  4806. fi
  4807. rm -f conftest.* libconftest.a
  4808. fi
  4809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4810. fi
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4812. $as_echo "$lt_cv_ar_at_file" >&6; }
  4813. if test no = "$lt_cv_ar_at_file"; then
  4814. archiver_list_spec=
  4815. else
  4816. archiver_list_spec=$lt_cv_ar_at_file
  4817. fi
  4818. if test -n "$ac_tool_prefix"; then
  4819. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4820. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4822. $as_echo_n "checking for $ac_word... " >&6; }
  4823. if ${ac_cv_prog_STRIP+:} false; then :
  4824. $as_echo_n "(cached) " >&6
  4825. else
  4826. if test -n "$STRIP"; then
  4827. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4828. else
  4829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4830. for as_dir in $PATH
  4831. do
  4832. IFS=$as_save_IFS
  4833. test -z "$as_dir" && as_dir=.
  4834. for ac_exec_ext in '' $ac_executable_extensions; do
  4835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4836. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4838. break 2
  4839. fi
  4840. done
  4841. done
  4842. IFS=$as_save_IFS
  4843. fi
  4844. fi
  4845. STRIP=$ac_cv_prog_STRIP
  4846. if test -n "$STRIP"; then
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4848. $as_echo "$STRIP" >&6; }
  4849. else
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4851. $as_echo "no" >&6; }
  4852. fi
  4853. fi
  4854. if test -z "$ac_cv_prog_STRIP"; then
  4855. ac_ct_STRIP=$STRIP
  4856. # Extract the first word of "strip", so it can be a program name with args.
  4857. set dummy strip; ac_word=$2
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4859. $as_echo_n "checking for $ac_word... " >&6; }
  4860. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4861. $as_echo_n "(cached) " >&6
  4862. else
  4863. if test -n "$ac_ct_STRIP"; then
  4864. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4865. else
  4866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4867. for as_dir in $PATH
  4868. do
  4869. IFS=$as_save_IFS
  4870. test -z "$as_dir" && as_dir=.
  4871. for ac_exec_ext in '' $ac_executable_extensions; do
  4872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4873. ac_cv_prog_ac_ct_STRIP="strip"
  4874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4875. break 2
  4876. fi
  4877. done
  4878. done
  4879. IFS=$as_save_IFS
  4880. fi
  4881. fi
  4882. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4883. if test -n "$ac_ct_STRIP"; then
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4885. $as_echo "$ac_ct_STRIP" >&6; }
  4886. else
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4888. $as_echo "no" >&6; }
  4889. fi
  4890. if test "x$ac_ct_STRIP" = x; then
  4891. STRIP=":"
  4892. else
  4893. case $cross_compiling:$ac_tool_warned in
  4894. yes:)
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4897. ac_tool_warned=yes ;;
  4898. esac
  4899. STRIP=$ac_ct_STRIP
  4900. fi
  4901. else
  4902. STRIP="$ac_cv_prog_STRIP"
  4903. fi
  4904. test -z "$STRIP" && STRIP=:
  4905. if test -n "$ac_tool_prefix"; then
  4906. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4907. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4909. $as_echo_n "checking for $ac_word... " >&6; }
  4910. if ${ac_cv_prog_RANLIB+:} false; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. if test -n "$RANLIB"; then
  4914. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4915. else
  4916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4917. for as_dir in $PATH
  4918. do
  4919. IFS=$as_save_IFS
  4920. test -z "$as_dir" && as_dir=.
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4923. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4925. break 2
  4926. fi
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. fi
  4931. fi
  4932. RANLIB=$ac_cv_prog_RANLIB
  4933. if test -n "$RANLIB"; then
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4935. $as_echo "$RANLIB" >&6; }
  4936. else
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4938. $as_echo "no" >&6; }
  4939. fi
  4940. fi
  4941. if test -z "$ac_cv_prog_RANLIB"; then
  4942. ac_ct_RANLIB=$RANLIB
  4943. # Extract the first word of "ranlib", so it can be a program name with args.
  4944. set dummy ranlib; ac_word=$2
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4946. $as_echo_n "checking for $ac_word... " >&6; }
  4947. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. if test -n "$ac_ct_RANLIB"; then
  4951. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4952. else
  4953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4954. for as_dir in $PATH
  4955. do
  4956. IFS=$as_save_IFS
  4957. test -z "$as_dir" && as_dir=.
  4958. for ac_exec_ext in '' $ac_executable_extensions; do
  4959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4960. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4962. break 2
  4963. fi
  4964. done
  4965. done
  4966. IFS=$as_save_IFS
  4967. fi
  4968. fi
  4969. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4970. if test -n "$ac_ct_RANLIB"; then
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4972. $as_echo "$ac_ct_RANLIB" >&6; }
  4973. else
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4975. $as_echo "no" >&6; }
  4976. fi
  4977. if test "x$ac_ct_RANLIB" = x; then
  4978. RANLIB=":"
  4979. else
  4980. case $cross_compiling:$ac_tool_warned in
  4981. yes:)
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4983. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4984. ac_tool_warned=yes ;;
  4985. esac
  4986. RANLIB=$ac_ct_RANLIB
  4987. fi
  4988. else
  4989. RANLIB="$ac_cv_prog_RANLIB"
  4990. fi
  4991. test -z "$RANLIB" && RANLIB=:
  4992. # Determine commands to create old-style static archives.
  4993. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4994. old_postinstall_cmds='chmod 644 $oldlib'
  4995. old_postuninstall_cmds=
  4996. if test -n "$RANLIB"; then
  4997. case $host_os in
  4998. bitrig* | openbsd*)
  4999. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5000. ;;
  5001. *)
  5002. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5003. ;;
  5004. esac
  5005. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5006. fi
  5007. case $host_os in
  5008. darwin*)
  5009. lock_old_archive_extraction=yes ;;
  5010. *)
  5011. lock_old_archive_extraction=no ;;
  5012. esac
  5013. for ac_prog in gawk mawk nawk awk
  5014. do
  5015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5016. set dummy $ac_prog; ac_word=$2
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5018. $as_echo_n "checking for $ac_word... " >&6; }
  5019. if ${ac_cv_prog_AWK+:} false; then :
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. if test -n "$AWK"; then
  5023. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5024. else
  5025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5026. for as_dir in $PATH
  5027. do
  5028. IFS=$as_save_IFS
  5029. test -z "$as_dir" && as_dir=.
  5030. for ac_exec_ext in '' $ac_executable_extensions; do
  5031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5032. ac_cv_prog_AWK="$ac_prog"
  5033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5034. break 2
  5035. fi
  5036. done
  5037. done
  5038. IFS=$as_save_IFS
  5039. fi
  5040. fi
  5041. AWK=$ac_cv_prog_AWK
  5042. if test -n "$AWK"; then
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5044. $as_echo "$AWK" >&6; }
  5045. else
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5047. $as_echo "no" >&6; }
  5048. fi
  5049. test -n "$AWK" && break
  5050. done
  5051. # If no C compiler was specified, use CC.
  5052. LTCC=${LTCC-"$CC"}
  5053. # If no C compiler flags were specified, use CFLAGS.
  5054. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5055. # Allow CC to be a program name with arguments.
  5056. compiler=$CC
  5057. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5059. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5060. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. # These are sane defaults that work on at least a few old systems.
  5064. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5065. # Character class describing NM global symbol codes.
  5066. symcode='[BCDEGRST]'
  5067. # Regexp to match symbols that can be accessed directly from C.
  5068. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5069. # Define system-specific variables.
  5070. case $host_os in
  5071. aix*)
  5072. symcode='[BCDT]'
  5073. ;;
  5074. cygwin* | mingw* | pw32* | cegcc*)
  5075. symcode='[ABCDGISTW]'
  5076. ;;
  5077. hpux*)
  5078. if test ia64 = "$host_cpu"; then
  5079. symcode='[ABCDEGRST]'
  5080. fi
  5081. ;;
  5082. irix* | nonstopux*)
  5083. symcode='[BCDEGRST]'
  5084. ;;
  5085. osf*)
  5086. symcode='[BCDEGQRST]'
  5087. ;;
  5088. solaris*)
  5089. symcode='[BCDRT]'
  5090. ;;
  5091. sco3.2v5*)
  5092. symcode='[DT]'
  5093. ;;
  5094. sysv4.2uw2*)
  5095. symcode='[DT]'
  5096. ;;
  5097. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5098. symcode='[ABDT]'
  5099. ;;
  5100. sysv4)
  5101. symcode='[DFNSTU]'
  5102. ;;
  5103. esac
  5104. # If we're using GNU nm, then use its standard symbol codes.
  5105. case `$NM -V 2>&1` in
  5106. *GNU* | *'with BFD'*)
  5107. symcode='[ABCDGIRSTW]' ;;
  5108. esac
  5109. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5110. # Gets list of data symbols to import.
  5111. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5112. # Adjust the below global symbol transforms to fixup imported variables.
  5113. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5114. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5115. lt_c_name_lib_hook="\
  5116. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5117. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5118. else
  5119. # Disable hooks by default.
  5120. lt_cv_sys_global_symbol_to_import=
  5121. lt_cdecl_hook=
  5122. lt_c_name_hook=
  5123. lt_c_name_lib_hook=
  5124. fi
  5125. # Transform an extracted symbol line into a proper C declaration.
  5126. # Some systems (esp. on ia64) link data and code symbols differently,
  5127. # so use this general approach.
  5128. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5129. $lt_cdecl_hook\
  5130. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5131. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5132. # Transform an extracted symbol line into symbol name and symbol address
  5133. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5134. $lt_c_name_hook\
  5135. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5136. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5137. # Transform an extracted symbol line into symbol name with lib prefix and
  5138. # symbol address.
  5139. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5140. $lt_c_name_lib_hook\
  5141. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5142. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5143. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5144. # Handle CRLF in mingw tool chain
  5145. opt_cr=
  5146. case $build_os in
  5147. mingw*)
  5148. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5149. ;;
  5150. esac
  5151. # Try without a prefix underscore, then with it.
  5152. for ac_symprfx in "" "_"; do
  5153. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5154. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5155. # Write the raw and C identifiers.
  5156. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5157. # Fake it for dumpbin and say T for any non-static function,
  5158. # D for any global variable and I for any imported variable.
  5159. # Also find C++ and __fastcall symbols from MSVC++,
  5160. # which start with @ or ?.
  5161. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5162. " {last_section=section; section=\$ 3};"\
  5163. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5164. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5165. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5166. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5167. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5168. " \$ 0!~/External *\|/{next};"\
  5169. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5170. " {if(hide[section]) next};"\
  5171. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5172. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5173. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5174. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5175. " ' prfx=^$ac_symprfx"
  5176. else
  5177. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5178. fi
  5179. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5180. # Check to see that the pipe works correctly.
  5181. pipe_works=no
  5182. rm -f conftest*
  5183. cat > conftest.$ac_ext <<_LT_EOF
  5184. #ifdef __cplusplus
  5185. extern "C" {
  5186. #endif
  5187. char nm_test_var;
  5188. void nm_test_func(void);
  5189. void nm_test_func(void){}
  5190. #ifdef __cplusplus
  5191. }
  5192. #endif
  5193. int main(){nm_test_var='a';nm_test_func();return(0);}
  5194. _LT_EOF
  5195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5196. (eval $ac_compile) 2>&5
  5197. ac_status=$?
  5198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5199. test $ac_status = 0; }; then
  5200. # Now try to grab the symbols.
  5201. nlist=conftest.nm
  5202. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5203. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5204. ac_status=$?
  5205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5206. test $ac_status = 0; } && test -s "$nlist"; then
  5207. # Try sorting and uniquifying the output.
  5208. if sort "$nlist" | uniq > "$nlist"T; then
  5209. mv -f "$nlist"T "$nlist"
  5210. else
  5211. rm -f "$nlist"T
  5212. fi
  5213. # Make sure that we snagged all the symbols we need.
  5214. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5215. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5216. cat <<_LT_EOF > conftest.$ac_ext
  5217. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5218. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5219. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5220. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5221. # define LT_DLSYM_CONST
  5222. #elif defined __osf__
  5223. /* This system does not cope well with relocations in const data. */
  5224. # define LT_DLSYM_CONST
  5225. #else
  5226. # define LT_DLSYM_CONST const
  5227. #endif
  5228. #ifdef __cplusplus
  5229. extern "C" {
  5230. #endif
  5231. _LT_EOF
  5232. # Now generate the symbol file.
  5233. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5234. cat <<_LT_EOF >> conftest.$ac_ext
  5235. /* The mapping between symbol names and symbols. */
  5236. LT_DLSYM_CONST struct {
  5237. const char *name;
  5238. void *address;
  5239. }
  5240. lt__PROGRAM__LTX_preloaded_symbols[] =
  5241. {
  5242. { "@PROGRAM@", (void *) 0 },
  5243. _LT_EOF
  5244. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5245. cat <<\_LT_EOF >> conftest.$ac_ext
  5246. {0, (void *) 0}
  5247. };
  5248. /* This works around a problem in FreeBSD linker */
  5249. #ifdef FREEBSD_WORKAROUND
  5250. static const void *lt_preloaded_setup() {
  5251. return lt__PROGRAM__LTX_preloaded_symbols;
  5252. }
  5253. #endif
  5254. #ifdef __cplusplus
  5255. }
  5256. #endif
  5257. _LT_EOF
  5258. # Now try linking the two files.
  5259. mv conftest.$ac_objext conftstm.$ac_objext
  5260. lt_globsym_save_LIBS=$LIBS
  5261. lt_globsym_save_CFLAGS=$CFLAGS
  5262. LIBS=conftstm.$ac_objext
  5263. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5264. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5265. (eval $ac_link) 2>&5
  5266. ac_status=$?
  5267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5268. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5269. pipe_works=yes
  5270. fi
  5271. LIBS=$lt_globsym_save_LIBS
  5272. CFLAGS=$lt_globsym_save_CFLAGS
  5273. else
  5274. echo "cannot find nm_test_func in $nlist" >&5
  5275. fi
  5276. else
  5277. echo "cannot find nm_test_var in $nlist" >&5
  5278. fi
  5279. else
  5280. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5281. fi
  5282. else
  5283. echo "$progname: failed program was:" >&5
  5284. cat conftest.$ac_ext >&5
  5285. fi
  5286. rm -rf conftest* conftst*
  5287. # Do not use the global_symbol_pipe unless it works.
  5288. if test yes = "$pipe_works"; then
  5289. break
  5290. else
  5291. lt_cv_sys_global_symbol_pipe=
  5292. fi
  5293. done
  5294. fi
  5295. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5296. lt_cv_sys_global_symbol_to_cdecl=
  5297. fi
  5298. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5300. $as_echo "failed" >&6; }
  5301. else
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5303. $as_echo "ok" >&6; }
  5304. fi
  5305. # Response file support.
  5306. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5307. nm_file_list_spec='@'
  5308. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5309. nm_file_list_spec='@'
  5310. fi
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5312. $as_echo_n "checking for sysroot... " >&6; }
  5313. # Check whether --with-sysroot was given.
  5314. if test "${with_sysroot+set}" = set; then :
  5315. withval=$with_sysroot;
  5316. else
  5317. with_sysroot=no
  5318. fi
  5319. lt_sysroot=
  5320. case $with_sysroot in #(
  5321. yes)
  5322. if test yes = "$GCC"; then
  5323. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5324. fi
  5325. ;; #(
  5326. /*)
  5327. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5328. ;; #(
  5329. no|'')
  5330. ;; #(
  5331. *)
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5333. $as_echo "$with_sysroot" >&6; }
  5334. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5335. ;;
  5336. esac
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5338. $as_echo "${lt_sysroot:-no}" >&6; }
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5340. $as_echo_n "checking for a working dd... " >&6; }
  5341. if ${ac_cv_path_lt_DD+:} false; then :
  5342. $as_echo_n "(cached) " >&6
  5343. else
  5344. printf 0123456789abcdef0123456789abcdef >conftest.i
  5345. cat conftest.i conftest.i >conftest2.i
  5346. : ${lt_DD:=$DD}
  5347. if test -z "$lt_DD"; then
  5348. ac_path_lt_DD_found=false
  5349. # Loop through the user's path and test for each of PROGNAME-LIST
  5350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5351. for as_dir in $PATH
  5352. do
  5353. IFS=$as_save_IFS
  5354. test -z "$as_dir" && as_dir=.
  5355. for ac_prog in dd; do
  5356. for ac_exec_ext in '' $ac_executable_extensions; do
  5357. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5358. as_fn_executable_p "$ac_path_lt_DD" || continue
  5359. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5360. cmp -s conftest.i conftest.out \
  5361. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5362. fi
  5363. $ac_path_lt_DD_found && break 3
  5364. done
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. if test -z "$ac_cv_path_lt_DD"; then
  5369. :
  5370. fi
  5371. else
  5372. ac_cv_path_lt_DD=$lt_DD
  5373. fi
  5374. rm -f conftest.i conftest2.i conftest.out
  5375. fi
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5377. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5379. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5380. if ${lt_cv_truncate_bin+:} false; then :
  5381. $as_echo_n "(cached) " >&6
  5382. else
  5383. printf 0123456789abcdef0123456789abcdef >conftest.i
  5384. cat conftest.i conftest.i >conftest2.i
  5385. lt_cv_truncate_bin=
  5386. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5387. cmp -s conftest.i conftest.out \
  5388. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5389. fi
  5390. rm -f conftest.i conftest2.i conftest.out
  5391. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5392. fi
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5394. $as_echo "$lt_cv_truncate_bin" >&6; }
  5395. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5396. func_cc_basename ()
  5397. {
  5398. for cc_temp in $*""; do
  5399. case $cc_temp in
  5400. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5401. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5402. \-*) ;;
  5403. *) break;;
  5404. esac
  5405. done
  5406. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5407. }
  5408. # Check whether --enable-libtool-lock was given.
  5409. if test "${enable_libtool_lock+set}" = set; then :
  5410. enableval=$enable_libtool_lock;
  5411. fi
  5412. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5413. # Some flags need to be propagated to the compiler or linker for good
  5414. # libtool support.
  5415. case $host in
  5416. ia64-*-hpux*)
  5417. # Find out what ABI is being produced by ac_compile, and set mode
  5418. # options accordingly.
  5419. echo 'int i;' > conftest.$ac_ext
  5420. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5421. (eval $ac_compile) 2>&5
  5422. ac_status=$?
  5423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5424. test $ac_status = 0; }; then
  5425. case `/usr/bin/file conftest.$ac_objext` in
  5426. *ELF-32*)
  5427. HPUX_IA64_MODE=32
  5428. ;;
  5429. *ELF-64*)
  5430. HPUX_IA64_MODE=64
  5431. ;;
  5432. esac
  5433. fi
  5434. rm -rf conftest*
  5435. ;;
  5436. *-*-irix6*)
  5437. # Find out what ABI is being produced by ac_compile, and set linker
  5438. # options accordingly.
  5439. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5441. (eval $ac_compile) 2>&5
  5442. ac_status=$?
  5443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5444. test $ac_status = 0; }; then
  5445. if test yes = "$lt_cv_prog_gnu_ld"; then
  5446. case `/usr/bin/file conftest.$ac_objext` in
  5447. *32-bit*)
  5448. LD="${LD-ld} -melf32bsmip"
  5449. ;;
  5450. *N32*)
  5451. LD="${LD-ld} -melf32bmipn32"
  5452. ;;
  5453. *64-bit*)
  5454. LD="${LD-ld} -melf64bmip"
  5455. ;;
  5456. esac
  5457. else
  5458. case `/usr/bin/file conftest.$ac_objext` in
  5459. *32-bit*)
  5460. LD="${LD-ld} -32"
  5461. ;;
  5462. *N32*)
  5463. LD="${LD-ld} -n32"
  5464. ;;
  5465. *64-bit*)
  5466. LD="${LD-ld} -64"
  5467. ;;
  5468. esac
  5469. fi
  5470. fi
  5471. rm -rf conftest*
  5472. ;;
  5473. mips64*-*linux*)
  5474. # Find out what ABI is being produced by ac_compile, and set linker
  5475. # options accordingly.
  5476. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5478. (eval $ac_compile) 2>&5
  5479. ac_status=$?
  5480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5481. test $ac_status = 0; }; then
  5482. emul=elf
  5483. case `/usr/bin/file conftest.$ac_objext` in
  5484. *32-bit*)
  5485. emul="${emul}32"
  5486. ;;
  5487. *64-bit*)
  5488. emul="${emul}64"
  5489. ;;
  5490. esac
  5491. case `/usr/bin/file conftest.$ac_objext` in
  5492. *MSB*)
  5493. emul="${emul}btsmip"
  5494. ;;
  5495. *LSB*)
  5496. emul="${emul}ltsmip"
  5497. ;;
  5498. esac
  5499. case `/usr/bin/file conftest.$ac_objext` in
  5500. *N32*)
  5501. emul="${emul}n32"
  5502. ;;
  5503. esac
  5504. LD="${LD-ld} -m $emul"
  5505. fi
  5506. rm -rf conftest*
  5507. ;;
  5508. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5509. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5510. # Find out what ABI is being produced by ac_compile, and set linker
  5511. # options accordingly. Note that the listed cases only cover the
  5512. # situations where additional linker options are needed (such as when
  5513. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5514. # vice versa); the common cases where no linker options are needed do
  5515. # not appear in the list.
  5516. echo 'int i;' > conftest.$ac_ext
  5517. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5518. (eval $ac_compile) 2>&5
  5519. ac_status=$?
  5520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5521. test $ac_status = 0; }; then
  5522. case `/usr/bin/file conftest.o` in
  5523. *32-bit*)
  5524. case $host in
  5525. x86_64-*kfreebsd*-gnu)
  5526. LD="${LD-ld} -m elf_i386_fbsd"
  5527. ;;
  5528. x86_64-*linux*)
  5529. case `/usr/bin/file conftest.o` in
  5530. *x86-64*)
  5531. LD="${LD-ld} -m elf32_x86_64"
  5532. ;;
  5533. *)
  5534. LD="${LD-ld} -m elf_i386"
  5535. ;;
  5536. esac
  5537. ;;
  5538. powerpc64le-*linux*)
  5539. LD="${LD-ld} -m elf32lppclinux"
  5540. ;;
  5541. powerpc64-*linux*)
  5542. LD="${LD-ld} -m elf32ppclinux"
  5543. ;;
  5544. s390x-*linux*)
  5545. LD="${LD-ld} -m elf_s390"
  5546. ;;
  5547. sparc64-*linux*)
  5548. LD="${LD-ld} -m elf32_sparc"
  5549. ;;
  5550. esac
  5551. ;;
  5552. *64-bit*)
  5553. case $host in
  5554. x86_64-*kfreebsd*-gnu)
  5555. LD="${LD-ld} -m elf_x86_64_fbsd"
  5556. ;;
  5557. x86_64-*linux*)
  5558. LD="${LD-ld} -m elf_x86_64"
  5559. ;;
  5560. powerpcle-*linux*|powerpc64le-*linux*)
  5561. LD="${LD-ld} -m elf64lppc"
  5562. ;;
  5563. powerpc-*linux*|powerpc64-*linux*)
  5564. LD="${LD-ld} -m elf64ppc"
  5565. ;;
  5566. s390*-*linux*|s390*-*tpf*)
  5567. LD="${LD-ld} -m elf64_s390"
  5568. ;;
  5569. sparc*-*linux*)
  5570. LD="${LD-ld} -m elf64_sparc"
  5571. ;;
  5572. esac
  5573. ;;
  5574. esac
  5575. fi
  5576. rm -rf conftest*
  5577. ;;
  5578. *-*-sco3.2v5*)
  5579. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5580. SAVE_CFLAGS=$CFLAGS
  5581. CFLAGS="$CFLAGS -belf"
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5583. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5584. if ${lt_cv_cc_needs_belf+:} false; then :
  5585. $as_echo_n "(cached) " >&6
  5586. else
  5587. ac_ext=c
  5588. ac_cpp='$CPP $CPPFLAGS'
  5589. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5590. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5591. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5593. /* end confdefs.h. */
  5594. int
  5595. main ()
  5596. {
  5597. ;
  5598. return 0;
  5599. }
  5600. _ACEOF
  5601. if ac_fn_c_try_link "$LINENO"; then :
  5602. lt_cv_cc_needs_belf=yes
  5603. else
  5604. lt_cv_cc_needs_belf=no
  5605. fi
  5606. rm -f core conftest.err conftest.$ac_objext \
  5607. conftest$ac_exeext conftest.$ac_ext
  5608. ac_ext=c
  5609. ac_cpp='$CPP $CPPFLAGS'
  5610. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5611. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5612. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5613. fi
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5615. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5616. if test yes != "$lt_cv_cc_needs_belf"; then
  5617. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5618. CFLAGS=$SAVE_CFLAGS
  5619. fi
  5620. ;;
  5621. *-*solaris*)
  5622. # Find out what ABI is being produced by ac_compile, and set linker
  5623. # options accordingly.
  5624. echo 'int i;' > conftest.$ac_ext
  5625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5626. (eval $ac_compile) 2>&5
  5627. ac_status=$?
  5628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5629. test $ac_status = 0; }; then
  5630. case `/usr/bin/file conftest.o` in
  5631. *64-bit*)
  5632. case $lt_cv_prog_gnu_ld in
  5633. yes*)
  5634. case $host in
  5635. i?86-*-solaris*|x86_64-*-solaris*)
  5636. LD="${LD-ld} -m elf_x86_64"
  5637. ;;
  5638. sparc*-*-solaris*)
  5639. LD="${LD-ld} -m elf64_sparc"
  5640. ;;
  5641. esac
  5642. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5643. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5644. LD=${LD-ld}_sol2
  5645. fi
  5646. ;;
  5647. *)
  5648. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5649. LD="${LD-ld} -64"
  5650. fi
  5651. ;;
  5652. esac
  5653. ;;
  5654. esac
  5655. fi
  5656. rm -rf conftest*
  5657. ;;
  5658. esac
  5659. need_locks=$enable_libtool_lock
  5660. if test -n "$ac_tool_prefix"; then
  5661. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5662. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. $as_echo_n "checking for $ac_word... " >&6; }
  5665. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. if test -n "$MANIFEST_TOOL"; then
  5669. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. test -z "$as_dir" && as_dir=.
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5678. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5688. if test -n "$MANIFEST_TOOL"; then
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5690. $as_echo "$MANIFEST_TOOL" >&6; }
  5691. else
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5693. $as_echo "no" >&6; }
  5694. fi
  5695. fi
  5696. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5697. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5698. # Extract the first word of "mt", so it can be a program name with args.
  5699. set dummy mt; ac_word=$2
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5701. $as_echo_n "checking for $ac_word... " >&6; }
  5702. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5706. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5715. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. fi
  5723. fi
  5724. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5725. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5727. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5728. else
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5730. $as_echo "no" >&6; }
  5731. fi
  5732. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5733. MANIFEST_TOOL=":"
  5734. else
  5735. case $cross_compiling:$ac_tool_warned in
  5736. yes:)
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5739. ac_tool_warned=yes ;;
  5740. esac
  5741. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5742. fi
  5743. else
  5744. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5745. fi
  5746. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5748. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5749. if ${lt_cv_path_mainfest_tool+:} false; then :
  5750. $as_echo_n "(cached) " >&6
  5751. else
  5752. lt_cv_path_mainfest_tool=no
  5753. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5754. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5755. cat conftest.err >&5
  5756. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5757. lt_cv_path_mainfest_tool=yes
  5758. fi
  5759. rm -f conftest*
  5760. fi
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5762. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5763. if test yes != "$lt_cv_path_mainfest_tool"; then
  5764. MANIFEST_TOOL=:
  5765. fi
  5766. case $host_os in
  5767. rhapsody* | darwin*)
  5768. if test -n "$ac_tool_prefix"; then
  5769. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5770. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. if test -n "$DSYMUTIL"; then
  5777. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782. IFS=$as_save_IFS
  5783. test -z "$as_dir" && as_dir=.
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5786. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5796. if test -n "$DSYMUTIL"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5798. $as_echo "$DSYMUTIL" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. $as_echo "no" >&6; }
  5802. fi
  5803. fi
  5804. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5805. ac_ct_DSYMUTIL=$DSYMUTIL
  5806. # Extract the first word of "dsymutil", so it can be a program name with args.
  5807. set dummy dsymutil; ac_word=$2
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5809. $as_echo_n "checking for $ac_word... " >&6; }
  5810. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. if test -n "$ac_ct_DSYMUTIL"; then
  5814. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5815. else
  5816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5817. for as_dir in $PATH
  5818. do
  5819. IFS=$as_save_IFS
  5820. test -z "$as_dir" && as_dir=.
  5821. for ac_exec_ext in '' $ac_executable_extensions; do
  5822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5823. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5825. break 2
  5826. fi
  5827. done
  5828. done
  5829. IFS=$as_save_IFS
  5830. fi
  5831. fi
  5832. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5833. if test -n "$ac_ct_DSYMUTIL"; then
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5835. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5836. else
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5838. $as_echo "no" >&6; }
  5839. fi
  5840. if test "x$ac_ct_DSYMUTIL" = x; then
  5841. DSYMUTIL=":"
  5842. else
  5843. case $cross_compiling:$ac_tool_warned in
  5844. yes:)
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5847. ac_tool_warned=yes ;;
  5848. esac
  5849. DSYMUTIL=$ac_ct_DSYMUTIL
  5850. fi
  5851. else
  5852. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5853. fi
  5854. if test -n "$ac_tool_prefix"; then
  5855. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5856. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_NMEDIT+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$NMEDIT"; then
  5863. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. NMEDIT=$ac_cv_prog_NMEDIT
  5882. if test -n "$NMEDIT"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5884. $as_echo "$NMEDIT" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. fi
  5890. if test -z "$ac_cv_prog_NMEDIT"; then
  5891. ac_ct_NMEDIT=$NMEDIT
  5892. # Extract the first word of "nmedit", so it can be a program name with args.
  5893. set dummy nmedit; ac_word=$2
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5895. $as_echo_n "checking for $ac_word... " >&6; }
  5896. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. if test -n "$ac_ct_NMEDIT"; then
  5900. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5901. else
  5902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5903. for as_dir in $PATH
  5904. do
  5905. IFS=$as_save_IFS
  5906. test -z "$as_dir" && as_dir=.
  5907. for ac_exec_ext in '' $ac_executable_extensions; do
  5908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5909. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5911. break 2
  5912. fi
  5913. done
  5914. done
  5915. IFS=$as_save_IFS
  5916. fi
  5917. fi
  5918. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5919. if test -n "$ac_ct_NMEDIT"; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5921. $as_echo "$ac_ct_NMEDIT" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5924. $as_echo "no" >&6; }
  5925. fi
  5926. if test "x$ac_ct_NMEDIT" = x; then
  5927. NMEDIT=":"
  5928. else
  5929. case $cross_compiling:$ac_tool_warned in
  5930. yes:)
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5932. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5933. ac_tool_warned=yes ;;
  5934. esac
  5935. NMEDIT=$ac_ct_NMEDIT
  5936. fi
  5937. else
  5938. NMEDIT="$ac_cv_prog_NMEDIT"
  5939. fi
  5940. if test -n "$ac_tool_prefix"; then
  5941. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5942. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5944. $as_echo_n "checking for $ac_word... " >&6; }
  5945. if ${ac_cv_prog_LIPO+:} false; then :
  5946. $as_echo_n "(cached) " >&6
  5947. else
  5948. if test -n "$LIPO"; then
  5949. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5950. else
  5951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5952. for as_dir in $PATH
  5953. do
  5954. IFS=$as_save_IFS
  5955. test -z "$as_dir" && as_dir=.
  5956. for ac_exec_ext in '' $ac_executable_extensions; do
  5957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5958. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5960. break 2
  5961. fi
  5962. done
  5963. done
  5964. IFS=$as_save_IFS
  5965. fi
  5966. fi
  5967. LIPO=$ac_cv_prog_LIPO
  5968. if test -n "$LIPO"; then
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5970. $as_echo "$LIPO" >&6; }
  5971. else
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5973. $as_echo "no" >&6; }
  5974. fi
  5975. fi
  5976. if test -z "$ac_cv_prog_LIPO"; then
  5977. ac_ct_LIPO=$LIPO
  5978. # Extract the first word of "lipo", so it can be a program name with args.
  5979. set dummy lipo; ac_word=$2
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5981. $as_echo_n "checking for $ac_word... " >&6; }
  5982. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5983. $as_echo_n "(cached) " >&6
  5984. else
  5985. if test -n "$ac_ct_LIPO"; then
  5986. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5987. else
  5988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5989. for as_dir in $PATH
  5990. do
  5991. IFS=$as_save_IFS
  5992. test -z "$as_dir" && as_dir=.
  5993. for ac_exec_ext in '' $ac_executable_extensions; do
  5994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5995. ac_cv_prog_ac_ct_LIPO="lipo"
  5996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5997. break 2
  5998. fi
  5999. done
  6000. done
  6001. IFS=$as_save_IFS
  6002. fi
  6003. fi
  6004. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6005. if test -n "$ac_ct_LIPO"; then
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6007. $as_echo "$ac_ct_LIPO" >&6; }
  6008. else
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6010. $as_echo "no" >&6; }
  6011. fi
  6012. if test "x$ac_ct_LIPO" = x; then
  6013. LIPO=":"
  6014. else
  6015. case $cross_compiling:$ac_tool_warned in
  6016. yes:)
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6019. ac_tool_warned=yes ;;
  6020. esac
  6021. LIPO=$ac_ct_LIPO
  6022. fi
  6023. else
  6024. LIPO="$ac_cv_prog_LIPO"
  6025. fi
  6026. if test -n "$ac_tool_prefix"; then
  6027. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6028. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6030. $as_echo_n "checking for $ac_word... " >&6; }
  6031. if ${ac_cv_prog_OTOOL+:} false; then :
  6032. $as_echo_n "(cached) " >&6
  6033. else
  6034. if test -n "$OTOOL"; then
  6035. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6036. else
  6037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6038. for as_dir in $PATH
  6039. do
  6040. IFS=$as_save_IFS
  6041. test -z "$as_dir" && as_dir=.
  6042. for ac_exec_ext in '' $ac_executable_extensions; do
  6043. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6044. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6046. break 2
  6047. fi
  6048. done
  6049. done
  6050. IFS=$as_save_IFS
  6051. fi
  6052. fi
  6053. OTOOL=$ac_cv_prog_OTOOL
  6054. if test -n "$OTOOL"; then
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6056. $as_echo "$OTOOL" >&6; }
  6057. else
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6059. $as_echo "no" >&6; }
  6060. fi
  6061. fi
  6062. if test -z "$ac_cv_prog_OTOOL"; then
  6063. ac_ct_OTOOL=$OTOOL
  6064. # Extract the first word of "otool", so it can be a program name with args.
  6065. set dummy otool; ac_word=$2
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6067. $as_echo_n "checking for $ac_word... " >&6; }
  6068. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. if test -n "$ac_ct_OTOOL"; then
  6072. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6073. else
  6074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6075. for as_dir in $PATH
  6076. do
  6077. IFS=$as_save_IFS
  6078. test -z "$as_dir" && as_dir=.
  6079. for ac_exec_ext in '' $ac_executable_extensions; do
  6080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6081. ac_cv_prog_ac_ct_OTOOL="otool"
  6082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6083. break 2
  6084. fi
  6085. done
  6086. done
  6087. IFS=$as_save_IFS
  6088. fi
  6089. fi
  6090. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6091. if test -n "$ac_ct_OTOOL"; then
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6093. $as_echo "$ac_ct_OTOOL" >&6; }
  6094. else
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6096. $as_echo "no" >&6; }
  6097. fi
  6098. if test "x$ac_ct_OTOOL" = x; then
  6099. OTOOL=":"
  6100. else
  6101. case $cross_compiling:$ac_tool_warned in
  6102. yes:)
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6105. ac_tool_warned=yes ;;
  6106. esac
  6107. OTOOL=$ac_ct_OTOOL
  6108. fi
  6109. else
  6110. OTOOL="$ac_cv_prog_OTOOL"
  6111. fi
  6112. if test -n "$ac_tool_prefix"; then
  6113. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6114. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6116. $as_echo_n "checking for $ac_word... " >&6; }
  6117. if ${ac_cv_prog_OTOOL64+:} false; then :
  6118. $as_echo_n "(cached) " >&6
  6119. else
  6120. if test -n "$OTOOL64"; then
  6121. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6122. else
  6123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6124. for as_dir in $PATH
  6125. do
  6126. IFS=$as_save_IFS
  6127. test -z "$as_dir" && as_dir=.
  6128. for ac_exec_ext in '' $ac_executable_extensions; do
  6129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6130. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6132. break 2
  6133. fi
  6134. done
  6135. done
  6136. IFS=$as_save_IFS
  6137. fi
  6138. fi
  6139. OTOOL64=$ac_cv_prog_OTOOL64
  6140. if test -n "$OTOOL64"; then
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6142. $as_echo "$OTOOL64" >&6; }
  6143. else
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6145. $as_echo "no" >&6; }
  6146. fi
  6147. fi
  6148. if test -z "$ac_cv_prog_OTOOL64"; then
  6149. ac_ct_OTOOL64=$OTOOL64
  6150. # Extract the first word of "otool64", so it can be a program name with args.
  6151. set dummy otool64; ac_word=$2
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6153. $as_echo_n "checking for $ac_word... " >&6; }
  6154. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. if test -n "$ac_ct_OTOOL64"; then
  6158. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6159. else
  6160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6161. for as_dir in $PATH
  6162. do
  6163. IFS=$as_save_IFS
  6164. test -z "$as_dir" && as_dir=.
  6165. for ac_exec_ext in '' $ac_executable_extensions; do
  6166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6167. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6169. break 2
  6170. fi
  6171. done
  6172. done
  6173. IFS=$as_save_IFS
  6174. fi
  6175. fi
  6176. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6177. if test -n "$ac_ct_OTOOL64"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6179. $as_echo "$ac_ct_OTOOL64" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. if test "x$ac_ct_OTOOL64" = x; then
  6185. OTOOL64=":"
  6186. else
  6187. case $cross_compiling:$ac_tool_warned in
  6188. yes:)
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6191. ac_tool_warned=yes ;;
  6192. esac
  6193. OTOOL64=$ac_ct_OTOOL64
  6194. fi
  6195. else
  6196. OTOOL64="$ac_cv_prog_OTOOL64"
  6197. fi
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6199. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6200. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. lt_cv_apple_cc_single_mod=no
  6204. if test -z "$LT_MULTI_MODULE"; then
  6205. # By default we will add the -single_module flag. You can override
  6206. # by either setting the environment variable LT_MULTI_MODULE
  6207. # non-empty at configure time, or by adding -multi_module to the
  6208. # link flags.
  6209. rm -rf libconftest.dylib*
  6210. echo "int foo(void){return 1;}" > conftest.c
  6211. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6212. -dynamiclib -Wl,-single_module conftest.c" >&5
  6213. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6214. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6215. _lt_result=$?
  6216. # If there is a non-empty error log, and "single_module"
  6217. # appears in it, assume the flag caused a linker warning
  6218. if test -s conftest.err && $GREP single_module conftest.err; then
  6219. cat conftest.err >&5
  6220. # Otherwise, if the output was created with a 0 exit code from
  6221. # the compiler, it worked.
  6222. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6223. lt_cv_apple_cc_single_mod=yes
  6224. else
  6225. cat conftest.err >&5
  6226. fi
  6227. rm -rf libconftest.dylib*
  6228. rm -f conftest.*
  6229. fi
  6230. fi
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6232. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6234. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6235. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. lt_cv_ld_exported_symbols_list=no
  6239. save_LDFLAGS=$LDFLAGS
  6240. echo "_main" > conftest.sym
  6241. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6243. /* end confdefs.h. */
  6244. int
  6245. main ()
  6246. {
  6247. ;
  6248. return 0;
  6249. }
  6250. _ACEOF
  6251. if ac_fn_c_try_link "$LINENO"; then :
  6252. lt_cv_ld_exported_symbols_list=yes
  6253. else
  6254. lt_cv_ld_exported_symbols_list=no
  6255. fi
  6256. rm -f core conftest.err conftest.$ac_objext \
  6257. conftest$ac_exeext conftest.$ac_ext
  6258. LDFLAGS=$save_LDFLAGS
  6259. fi
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6261. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6263. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6264. if ${lt_cv_ld_force_load+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. lt_cv_ld_force_load=no
  6268. cat > conftest.c << _LT_EOF
  6269. int forced_loaded() { return 2;}
  6270. _LT_EOF
  6271. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6272. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6273. echo "$AR cru libconftest.a conftest.o" >&5
  6274. $AR cru libconftest.a conftest.o 2>&5
  6275. echo "$RANLIB libconftest.a" >&5
  6276. $RANLIB libconftest.a 2>&5
  6277. cat > conftest.c << _LT_EOF
  6278. int main() { return 0;}
  6279. _LT_EOF
  6280. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6281. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6282. _lt_result=$?
  6283. if test -s conftest.err && $GREP force_load conftest.err; then
  6284. cat conftest.err >&5
  6285. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6286. lt_cv_ld_force_load=yes
  6287. else
  6288. cat conftest.err >&5
  6289. fi
  6290. rm -f conftest.err libconftest.a conftest conftest.c
  6291. rm -rf conftest.dSYM
  6292. fi
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6294. $as_echo "$lt_cv_ld_force_load" >&6; }
  6295. case $host_os in
  6296. rhapsody* | darwin1.[012])
  6297. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6298. darwin1.*)
  6299. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6300. darwin*)
  6301. case ${MACOSX_DEPLOYMENT_TARGET},$host in
  6302. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6303. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6304. *)
  6305. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6306. esac
  6307. ;;
  6308. esac
  6309. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6310. _lt_dar_single_mod='$single_module'
  6311. fi
  6312. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6313. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6314. else
  6315. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6316. fi
  6317. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6318. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6319. else
  6320. _lt_dsymutil=
  6321. fi
  6322. ;;
  6323. esac
  6324. # func_munge_path_list VARIABLE PATH
  6325. # -----------------------------------
  6326. # VARIABLE is name of variable containing _space_ separated list of
  6327. # directories to be munged by the contents of PATH, which is string
  6328. # having a format:
  6329. # "DIR[:DIR]:"
  6330. # string "DIR[ DIR]" will be prepended to VARIABLE
  6331. # ":DIR[:DIR]"
  6332. # string "DIR[ DIR]" will be appended to VARIABLE
  6333. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6334. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6335. # "DIRA[ DIRA]" will be appended to VARIABLE
  6336. # "DIR[:DIR]"
  6337. # VARIABLE will be replaced by "DIR[ DIR]"
  6338. func_munge_path_list ()
  6339. {
  6340. case x$2 in
  6341. x)
  6342. ;;
  6343. *:)
  6344. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6345. ;;
  6346. x:*)
  6347. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6348. ;;
  6349. *::*)
  6350. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6351. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6352. ;;
  6353. *)
  6354. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6355. ;;
  6356. esac
  6357. }
  6358. ac_ext=c
  6359. ac_cpp='$CPP $CPPFLAGS'
  6360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6364. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6365. # On Suns, sometimes $CPP names a directory.
  6366. if test -n "$CPP" && test -d "$CPP"; then
  6367. CPP=
  6368. fi
  6369. if test -z "$CPP"; then
  6370. if ${ac_cv_prog_CPP+:} false; then :
  6371. $as_echo_n "(cached) " >&6
  6372. else
  6373. # Double quotes because CPP needs to be expanded
  6374. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6375. do
  6376. ac_preproc_ok=false
  6377. for ac_c_preproc_warn_flag in '' yes
  6378. do
  6379. # Use a header file that comes with gcc, so configuring glibc
  6380. # with a fresh cross-compiler works.
  6381. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6382. # <limits.h> exists even on freestanding compilers.
  6383. # On the NeXT, cc -E runs the code through the compiler's parser,
  6384. # not just through cpp. "Syntax error" is here to catch this case.
  6385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6386. /* end confdefs.h. */
  6387. #ifdef __STDC__
  6388. # include <limits.h>
  6389. #else
  6390. # include <assert.h>
  6391. #endif
  6392. Syntax error
  6393. _ACEOF
  6394. if ac_fn_c_try_cpp "$LINENO"; then :
  6395. else
  6396. # Broken: fails on valid input.
  6397. continue
  6398. fi
  6399. rm -f conftest.err conftest.i conftest.$ac_ext
  6400. # OK, works on sane cases. Now check whether nonexistent headers
  6401. # can be detected and how.
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. #include <ac_nonexistent.h>
  6405. _ACEOF
  6406. if ac_fn_c_try_cpp "$LINENO"; then :
  6407. # Broken: success on invalid input.
  6408. continue
  6409. else
  6410. # Passes both tests.
  6411. ac_preproc_ok=:
  6412. break
  6413. fi
  6414. rm -f conftest.err conftest.i conftest.$ac_ext
  6415. done
  6416. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6417. rm -f conftest.i conftest.err conftest.$ac_ext
  6418. if $ac_preproc_ok; then :
  6419. break
  6420. fi
  6421. done
  6422. ac_cv_prog_CPP=$CPP
  6423. fi
  6424. CPP=$ac_cv_prog_CPP
  6425. else
  6426. ac_cv_prog_CPP=$CPP
  6427. fi
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6429. $as_echo "$CPP" >&6; }
  6430. ac_preproc_ok=false
  6431. for ac_c_preproc_warn_flag in '' yes
  6432. do
  6433. # Use a header file that comes with gcc, so configuring glibc
  6434. # with a fresh cross-compiler works.
  6435. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6436. # <limits.h> exists even on freestanding compilers.
  6437. # On the NeXT, cc -E runs the code through the compiler's parser,
  6438. # not just through cpp. "Syntax error" is here to catch this case.
  6439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6440. /* end confdefs.h. */
  6441. #ifdef __STDC__
  6442. # include <limits.h>
  6443. #else
  6444. # include <assert.h>
  6445. #endif
  6446. Syntax error
  6447. _ACEOF
  6448. if ac_fn_c_try_cpp "$LINENO"; then :
  6449. else
  6450. # Broken: fails on valid input.
  6451. continue
  6452. fi
  6453. rm -f conftest.err conftest.i conftest.$ac_ext
  6454. # OK, works on sane cases. Now check whether nonexistent headers
  6455. # can be detected and how.
  6456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6457. /* end confdefs.h. */
  6458. #include <ac_nonexistent.h>
  6459. _ACEOF
  6460. if ac_fn_c_try_cpp "$LINENO"; then :
  6461. # Broken: success on invalid input.
  6462. continue
  6463. else
  6464. # Passes both tests.
  6465. ac_preproc_ok=:
  6466. break
  6467. fi
  6468. rm -f conftest.err conftest.i conftest.$ac_ext
  6469. done
  6470. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6471. rm -f conftest.i conftest.err conftest.$ac_ext
  6472. if $ac_preproc_ok; then :
  6473. else
  6474. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6475. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6476. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6477. See \`config.log' for more details" "$LINENO" 5; }
  6478. fi
  6479. ac_ext=c
  6480. ac_cpp='$CPP $CPPFLAGS'
  6481. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6482. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6483. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6485. $as_echo_n "checking for ANSI C header files... " >&6; }
  6486. if ${ac_cv_header_stdc+:} false; then :
  6487. $as_echo_n "(cached) " >&6
  6488. else
  6489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6490. /* end confdefs.h. */
  6491. #include <stdlib.h>
  6492. #include <stdarg.h>
  6493. #include <string.h>
  6494. #include <float.h>
  6495. int
  6496. main ()
  6497. {
  6498. ;
  6499. return 0;
  6500. }
  6501. _ACEOF
  6502. if ac_fn_c_try_compile "$LINENO"; then :
  6503. ac_cv_header_stdc=yes
  6504. else
  6505. ac_cv_header_stdc=no
  6506. fi
  6507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6508. if test $ac_cv_header_stdc = yes; then
  6509. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6511. /* end confdefs.h. */
  6512. #include <string.h>
  6513. _ACEOF
  6514. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6515. $EGREP "memchr" >/dev/null 2>&1; then :
  6516. else
  6517. ac_cv_header_stdc=no
  6518. fi
  6519. rm -f conftest*
  6520. fi
  6521. if test $ac_cv_header_stdc = yes; then
  6522. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6524. /* end confdefs.h. */
  6525. #include <stdlib.h>
  6526. _ACEOF
  6527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6528. $EGREP "free" >/dev/null 2>&1; then :
  6529. else
  6530. ac_cv_header_stdc=no
  6531. fi
  6532. rm -f conftest*
  6533. fi
  6534. if test $ac_cv_header_stdc = yes; then
  6535. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6536. if test "$cross_compiling" = yes; then :
  6537. :
  6538. else
  6539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6540. /* end confdefs.h. */
  6541. #include <ctype.h>
  6542. #include <stdlib.h>
  6543. #if ((' ' & 0x0FF) == 0x020)
  6544. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6545. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6546. #else
  6547. # define ISLOWER(c) \
  6548. (('a' <= (c) && (c) <= 'i') \
  6549. || ('j' <= (c) && (c) <= 'r') \
  6550. || ('s' <= (c) && (c) <= 'z'))
  6551. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6552. #endif
  6553. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6554. int
  6555. main ()
  6556. {
  6557. int i;
  6558. for (i = 0; i < 256; i++)
  6559. if (XOR (islower (i), ISLOWER (i))
  6560. || toupper (i) != TOUPPER (i))
  6561. return 2;
  6562. return 0;
  6563. }
  6564. _ACEOF
  6565. if ac_fn_c_try_run "$LINENO"; then :
  6566. else
  6567. ac_cv_header_stdc=no
  6568. fi
  6569. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6570. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6571. fi
  6572. fi
  6573. fi
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6575. $as_echo "$ac_cv_header_stdc" >&6; }
  6576. if test $ac_cv_header_stdc = yes; then
  6577. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6578. fi
  6579. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6580. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6581. inttypes.h stdint.h unistd.h
  6582. do :
  6583. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6584. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6585. "
  6586. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6587. cat >>confdefs.h <<_ACEOF
  6588. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6589. _ACEOF
  6590. fi
  6591. done
  6592. for ac_header in dlfcn.h
  6593. do :
  6594. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6595. "
  6596. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6597. cat >>confdefs.h <<_ACEOF
  6598. #define HAVE_DLFCN_H 1
  6599. _ACEOF
  6600. fi
  6601. done
  6602. # Set options
  6603. enable_win32_dll=yes
  6604. case $host in
  6605. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6606. if test -n "$ac_tool_prefix"; then
  6607. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6608. set dummy ${ac_tool_prefix}as; ac_word=$2
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6610. $as_echo_n "checking for $ac_word... " >&6; }
  6611. if ${ac_cv_prog_AS+:} false; then :
  6612. $as_echo_n "(cached) " >&6
  6613. else
  6614. if test -n "$AS"; then
  6615. ac_cv_prog_AS="$AS" # Let the user override the test.
  6616. else
  6617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6618. for as_dir in $PATH
  6619. do
  6620. IFS=$as_save_IFS
  6621. test -z "$as_dir" && as_dir=.
  6622. for ac_exec_ext in '' $ac_executable_extensions; do
  6623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6624. ac_cv_prog_AS="${ac_tool_prefix}as"
  6625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6626. break 2
  6627. fi
  6628. done
  6629. done
  6630. IFS=$as_save_IFS
  6631. fi
  6632. fi
  6633. AS=$ac_cv_prog_AS
  6634. if test -n "$AS"; then
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6636. $as_echo "$AS" >&6; }
  6637. else
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6639. $as_echo "no" >&6; }
  6640. fi
  6641. fi
  6642. if test -z "$ac_cv_prog_AS"; then
  6643. ac_ct_AS=$AS
  6644. # Extract the first word of "as", so it can be a program name with args.
  6645. set dummy as; ac_word=$2
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6647. $as_echo_n "checking for $ac_word... " >&6; }
  6648. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. if test -n "$ac_ct_AS"; then
  6652. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6653. else
  6654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6655. for as_dir in $PATH
  6656. do
  6657. IFS=$as_save_IFS
  6658. test -z "$as_dir" && as_dir=.
  6659. for ac_exec_ext in '' $ac_executable_extensions; do
  6660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6661. ac_cv_prog_ac_ct_AS="as"
  6662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6663. break 2
  6664. fi
  6665. done
  6666. done
  6667. IFS=$as_save_IFS
  6668. fi
  6669. fi
  6670. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6671. if test -n "$ac_ct_AS"; then
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6673. $as_echo "$ac_ct_AS" >&6; }
  6674. else
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6676. $as_echo "no" >&6; }
  6677. fi
  6678. if test "x$ac_ct_AS" = x; then
  6679. AS="false"
  6680. else
  6681. case $cross_compiling:$ac_tool_warned in
  6682. yes:)
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6685. ac_tool_warned=yes ;;
  6686. esac
  6687. AS=$ac_ct_AS
  6688. fi
  6689. else
  6690. AS="$ac_cv_prog_AS"
  6691. fi
  6692. if test -n "$ac_tool_prefix"; then
  6693. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6694. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6696. $as_echo_n "checking for $ac_word... " >&6; }
  6697. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. if test -n "$DLLTOOL"; then
  6701. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6702. else
  6703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6704. for as_dir in $PATH
  6705. do
  6706. IFS=$as_save_IFS
  6707. test -z "$as_dir" && as_dir=.
  6708. for ac_exec_ext in '' $ac_executable_extensions; do
  6709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6710. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6712. break 2
  6713. fi
  6714. done
  6715. done
  6716. IFS=$as_save_IFS
  6717. fi
  6718. fi
  6719. DLLTOOL=$ac_cv_prog_DLLTOOL
  6720. if test -n "$DLLTOOL"; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6722. $as_echo "$DLLTOOL" >&6; }
  6723. else
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6725. $as_echo "no" >&6; }
  6726. fi
  6727. fi
  6728. if test -z "$ac_cv_prog_DLLTOOL"; then
  6729. ac_ct_DLLTOOL=$DLLTOOL
  6730. # Extract the first word of "dlltool", so it can be a program name with args.
  6731. set dummy dlltool; ac_word=$2
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6733. $as_echo_n "checking for $ac_word... " >&6; }
  6734. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. if test -n "$ac_ct_DLLTOOL"; then
  6738. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6739. else
  6740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6741. for as_dir in $PATH
  6742. do
  6743. IFS=$as_save_IFS
  6744. test -z "$as_dir" && as_dir=.
  6745. for ac_exec_ext in '' $ac_executable_extensions; do
  6746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6747. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6749. break 2
  6750. fi
  6751. done
  6752. done
  6753. IFS=$as_save_IFS
  6754. fi
  6755. fi
  6756. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6757. if test -n "$ac_ct_DLLTOOL"; then
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6759. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6760. else
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6762. $as_echo "no" >&6; }
  6763. fi
  6764. if test "x$ac_ct_DLLTOOL" = x; then
  6765. DLLTOOL="false"
  6766. else
  6767. case $cross_compiling:$ac_tool_warned in
  6768. yes:)
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6771. ac_tool_warned=yes ;;
  6772. esac
  6773. DLLTOOL=$ac_ct_DLLTOOL
  6774. fi
  6775. else
  6776. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6777. fi
  6778. if test -n "$ac_tool_prefix"; then
  6779. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6780. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6782. $as_echo_n "checking for $ac_word... " >&6; }
  6783. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. if test -n "$OBJDUMP"; then
  6787. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6788. else
  6789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6790. for as_dir in $PATH
  6791. do
  6792. IFS=$as_save_IFS
  6793. test -z "$as_dir" && as_dir=.
  6794. for ac_exec_ext in '' $ac_executable_extensions; do
  6795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6796. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6798. break 2
  6799. fi
  6800. done
  6801. done
  6802. IFS=$as_save_IFS
  6803. fi
  6804. fi
  6805. OBJDUMP=$ac_cv_prog_OBJDUMP
  6806. if test -n "$OBJDUMP"; then
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6808. $as_echo "$OBJDUMP" >&6; }
  6809. else
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6811. $as_echo "no" >&6; }
  6812. fi
  6813. fi
  6814. if test -z "$ac_cv_prog_OBJDUMP"; then
  6815. ac_ct_OBJDUMP=$OBJDUMP
  6816. # Extract the first word of "objdump", so it can be a program name with args.
  6817. set dummy objdump; ac_word=$2
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6819. $as_echo_n "checking for $ac_word... " >&6; }
  6820. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6821. $as_echo_n "(cached) " >&6
  6822. else
  6823. if test -n "$ac_ct_OBJDUMP"; then
  6824. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6825. else
  6826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6827. for as_dir in $PATH
  6828. do
  6829. IFS=$as_save_IFS
  6830. test -z "$as_dir" && as_dir=.
  6831. for ac_exec_ext in '' $ac_executable_extensions; do
  6832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6833. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6835. break 2
  6836. fi
  6837. done
  6838. done
  6839. IFS=$as_save_IFS
  6840. fi
  6841. fi
  6842. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6843. if test -n "$ac_ct_OBJDUMP"; then
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6845. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6846. else
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6848. $as_echo "no" >&6; }
  6849. fi
  6850. if test "x$ac_ct_OBJDUMP" = x; then
  6851. OBJDUMP="false"
  6852. else
  6853. case $cross_compiling:$ac_tool_warned in
  6854. yes:)
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6857. ac_tool_warned=yes ;;
  6858. esac
  6859. OBJDUMP=$ac_ct_OBJDUMP
  6860. fi
  6861. else
  6862. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6863. fi
  6864. ;;
  6865. esac
  6866. test -z "$AS" && AS=as
  6867. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6868. test -z "$OBJDUMP" && OBJDUMP=objdump
  6869. enable_dlopen=no
  6870. # Check whether --enable-shared was given.
  6871. if test "${enable_shared+set}" = set; then :
  6872. enableval=$enable_shared; p=${PACKAGE-default}
  6873. case $enableval in
  6874. yes) enable_shared=yes ;;
  6875. no) enable_shared=no ;;
  6876. *)
  6877. enable_shared=no
  6878. # Look at the argument we got. We use all the common list separators.
  6879. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6880. for pkg in $enableval; do
  6881. IFS=$lt_save_ifs
  6882. if test "X$pkg" = "X$p"; then
  6883. enable_shared=yes
  6884. fi
  6885. done
  6886. IFS=$lt_save_ifs
  6887. ;;
  6888. esac
  6889. else
  6890. enable_shared=yes
  6891. fi
  6892. # Check whether --enable-static was given.
  6893. if test "${enable_static+set}" = set; then :
  6894. enableval=$enable_static; p=${PACKAGE-default}
  6895. case $enableval in
  6896. yes) enable_static=yes ;;
  6897. no) enable_static=no ;;
  6898. *)
  6899. enable_static=no
  6900. # Look at the argument we got. We use all the common list separators.
  6901. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6902. for pkg in $enableval; do
  6903. IFS=$lt_save_ifs
  6904. if test "X$pkg" = "X$p"; then
  6905. enable_static=yes
  6906. fi
  6907. done
  6908. IFS=$lt_save_ifs
  6909. ;;
  6910. esac
  6911. else
  6912. enable_static=yes
  6913. fi
  6914. # Check whether --with-pic was given.
  6915. if test "${with_pic+set}" = set; then :
  6916. withval=$with_pic; lt_p=${PACKAGE-default}
  6917. case $withval in
  6918. yes|no) pic_mode=$withval ;;
  6919. *)
  6920. pic_mode=default
  6921. # Look at the argument we got. We use all the common list separators.
  6922. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6923. for lt_pkg in $withval; do
  6924. IFS=$lt_save_ifs
  6925. if test "X$lt_pkg" = "X$lt_p"; then
  6926. pic_mode=yes
  6927. fi
  6928. done
  6929. IFS=$lt_save_ifs
  6930. ;;
  6931. esac
  6932. else
  6933. pic_mode=default
  6934. fi
  6935. # Check whether --enable-fast-install was given.
  6936. if test "${enable_fast_install+set}" = set; then :
  6937. enableval=$enable_fast_install; p=${PACKAGE-default}
  6938. case $enableval in
  6939. yes) enable_fast_install=yes ;;
  6940. no) enable_fast_install=no ;;
  6941. *)
  6942. enable_fast_install=no
  6943. # Look at the argument we got. We use all the common list separators.
  6944. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6945. for pkg in $enableval; do
  6946. IFS=$lt_save_ifs
  6947. if test "X$pkg" = "X$p"; then
  6948. enable_fast_install=yes
  6949. fi
  6950. done
  6951. IFS=$lt_save_ifs
  6952. ;;
  6953. esac
  6954. else
  6955. enable_fast_install=yes
  6956. fi
  6957. shared_archive_member_spec=
  6958. case $host,$enable_shared in
  6959. power*-*-aix[5-9]*,yes)
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6961. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6962. # Check whether --with-aix-soname was given.
  6963. if test "${with_aix_soname+set}" = set; then :
  6964. withval=$with_aix_soname; case $withval in
  6965. aix|svr4|both)
  6966. ;;
  6967. *)
  6968. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6969. ;;
  6970. esac
  6971. lt_cv_with_aix_soname=$with_aix_soname
  6972. else
  6973. if ${lt_cv_with_aix_soname+:} false; then :
  6974. $as_echo_n "(cached) " >&6
  6975. else
  6976. lt_cv_with_aix_soname=aix
  6977. fi
  6978. with_aix_soname=$lt_cv_with_aix_soname
  6979. fi
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6981. $as_echo "$with_aix_soname" >&6; }
  6982. if test aix != "$with_aix_soname"; then
  6983. # For the AIX way of multilib, we name the shared archive member
  6984. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6985. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6986. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6987. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6988. if test 64 = "${OBJECT_MODE-32}"; then
  6989. shared_archive_member_spec=shr_64
  6990. else
  6991. shared_archive_member_spec=shr
  6992. fi
  6993. fi
  6994. ;;
  6995. *)
  6996. with_aix_soname=aix
  6997. ;;
  6998. esac
  6999. # This can be used to rebuild libtool when needed
  7000. LIBTOOL_DEPS=$ltmain
  7001. # Always use our own libtool.
  7002. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7003. test -z "$LN_S" && LN_S="ln -s"
  7004. if test -n "${ZSH_VERSION+set}"; then
  7005. setopt NO_GLOB_SUBST
  7006. fi
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7008. $as_echo_n "checking for objdir... " >&6; }
  7009. if ${lt_cv_objdir+:} false; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. rm -f .libs 2>/dev/null
  7013. mkdir .libs 2>/dev/null
  7014. if test -d .libs; then
  7015. lt_cv_objdir=.libs
  7016. else
  7017. # MS-DOS does not allow filenames that begin with a dot.
  7018. lt_cv_objdir=_libs
  7019. fi
  7020. rmdir .libs 2>/dev/null
  7021. fi
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7023. $as_echo "$lt_cv_objdir" >&6; }
  7024. objdir=$lt_cv_objdir
  7025. cat >>confdefs.h <<_ACEOF
  7026. #define LT_OBJDIR "$lt_cv_objdir/"
  7027. _ACEOF
  7028. case $host_os in
  7029. aix3*)
  7030. # AIX sometimes has problems with the GCC collect2 program. For some
  7031. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7032. # vanish in a puff of smoke.
  7033. if test set != "${COLLECT_NAMES+set}"; then
  7034. COLLECT_NAMES=
  7035. export COLLECT_NAMES
  7036. fi
  7037. ;;
  7038. esac
  7039. # Global variables:
  7040. ofile=libtool
  7041. can_build_shared=yes
  7042. # All known linkers require a '.a' archive for static linking (except MSVC,
  7043. # which needs '.lib').
  7044. libext=a
  7045. with_gnu_ld=$lt_cv_prog_gnu_ld
  7046. old_CC=$CC
  7047. old_CFLAGS=$CFLAGS
  7048. # Set sane defaults for various variables
  7049. test -z "$CC" && CC=cc
  7050. test -z "$LTCC" && LTCC=$CC
  7051. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7052. test -z "$LD" && LD=ld
  7053. test -z "$ac_objext" && ac_objext=o
  7054. func_cc_basename $compiler
  7055. cc_basename=$func_cc_basename_result
  7056. # Only perform the check for file, if the check method requires it
  7057. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7058. case $deplibs_check_method in
  7059. file_magic*)
  7060. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7062. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7063. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7064. $as_echo_n "(cached) " >&6
  7065. else
  7066. case $MAGIC_CMD in
  7067. [\\/*] | ?:[\\/]*)
  7068. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7069. ;;
  7070. *)
  7071. lt_save_MAGIC_CMD=$MAGIC_CMD
  7072. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7073. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7074. for ac_dir in $ac_dummy; do
  7075. IFS=$lt_save_ifs
  7076. test -z "$ac_dir" && ac_dir=.
  7077. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7078. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7079. if test -n "$file_magic_test_file"; then
  7080. case $deplibs_check_method in
  7081. "file_magic "*)
  7082. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7083. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7084. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7085. $EGREP "$file_magic_regex" > /dev/null; then
  7086. :
  7087. else
  7088. cat <<_LT_EOF 1>&2
  7089. *** Warning: the command libtool uses to detect shared libraries,
  7090. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7091. *** The result is that libtool may fail to recognize shared libraries
  7092. *** as such. This will affect the creation of libtool libraries that
  7093. *** depend on shared libraries, but programs linked with such libtool
  7094. *** libraries will work regardless of this problem. Nevertheless, you
  7095. *** may want to report the problem to your system manager and/or to
  7096. *** bug-libtool@gnu.org
  7097. _LT_EOF
  7098. fi ;;
  7099. esac
  7100. fi
  7101. break
  7102. fi
  7103. done
  7104. IFS=$lt_save_ifs
  7105. MAGIC_CMD=$lt_save_MAGIC_CMD
  7106. ;;
  7107. esac
  7108. fi
  7109. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7110. if test -n "$MAGIC_CMD"; then
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7112. $as_echo "$MAGIC_CMD" >&6; }
  7113. else
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7115. $as_echo "no" >&6; }
  7116. fi
  7117. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7118. if test -n "$ac_tool_prefix"; then
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7120. $as_echo_n "checking for file... " >&6; }
  7121. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. case $MAGIC_CMD in
  7125. [\\/*] | ?:[\\/]*)
  7126. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7127. ;;
  7128. *)
  7129. lt_save_MAGIC_CMD=$MAGIC_CMD
  7130. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7131. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7132. for ac_dir in $ac_dummy; do
  7133. IFS=$lt_save_ifs
  7134. test -z "$ac_dir" && ac_dir=.
  7135. if test -f "$ac_dir/file"; then
  7136. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7137. if test -n "$file_magic_test_file"; then
  7138. case $deplibs_check_method in
  7139. "file_magic "*)
  7140. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7141. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7142. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7143. $EGREP "$file_magic_regex" > /dev/null; then
  7144. :
  7145. else
  7146. cat <<_LT_EOF 1>&2
  7147. *** Warning: the command libtool uses to detect shared libraries,
  7148. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7149. *** The result is that libtool may fail to recognize shared libraries
  7150. *** as such. This will affect the creation of libtool libraries that
  7151. *** depend on shared libraries, but programs linked with such libtool
  7152. *** libraries will work regardless of this problem. Nevertheless, you
  7153. *** may want to report the problem to your system manager and/or to
  7154. *** bug-libtool@gnu.org
  7155. _LT_EOF
  7156. fi ;;
  7157. esac
  7158. fi
  7159. break
  7160. fi
  7161. done
  7162. IFS=$lt_save_ifs
  7163. MAGIC_CMD=$lt_save_MAGIC_CMD
  7164. ;;
  7165. esac
  7166. fi
  7167. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7168. if test -n "$MAGIC_CMD"; then
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7170. $as_echo "$MAGIC_CMD" >&6; }
  7171. else
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7173. $as_echo "no" >&6; }
  7174. fi
  7175. else
  7176. MAGIC_CMD=:
  7177. fi
  7178. fi
  7179. fi
  7180. ;;
  7181. esac
  7182. # Use C for the default configuration in the libtool script
  7183. lt_save_CC=$CC
  7184. ac_ext=c
  7185. ac_cpp='$CPP $CPPFLAGS'
  7186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7189. # Source file extension for C test sources.
  7190. ac_ext=c
  7191. # Object file extension for compiled C test sources.
  7192. objext=o
  7193. objext=$objext
  7194. # Code to be used in simple compile tests
  7195. lt_simple_compile_test_code="int some_variable = 0;"
  7196. # Code to be used in simple link tests
  7197. lt_simple_link_test_code='int main(){return(0);}'
  7198. # If no C compiler was specified, use CC.
  7199. LTCC=${LTCC-"$CC"}
  7200. # If no C compiler flags were specified, use CFLAGS.
  7201. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7202. # Allow CC to be a program name with arguments.
  7203. compiler=$CC
  7204. # Save the default compiler, since it gets overwritten when the other
  7205. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7206. compiler_DEFAULT=$CC
  7207. # save warnings/boilerplate of simple test code
  7208. ac_outfile=conftest.$ac_objext
  7209. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7210. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7211. _lt_compiler_boilerplate=`cat conftest.err`
  7212. $RM conftest*
  7213. ac_outfile=conftest.$ac_objext
  7214. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7215. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7216. _lt_linker_boilerplate=`cat conftest.err`
  7217. $RM -r conftest*
  7218. ## CAVEAT EMPTOR:
  7219. ## There is no encapsulation within the following macros, do not change
  7220. ## the running order or otherwise move them around unless you know exactly
  7221. ## what you are doing...
  7222. if test -n "$compiler"; then
  7223. lt_prog_compiler_no_builtin_flag=
  7224. if test yes = "$GCC"; then
  7225. case $cc_basename in
  7226. nvcc*)
  7227. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7228. *)
  7229. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7230. esac
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7232. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7233. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7234. $as_echo_n "(cached) " >&6
  7235. else
  7236. lt_cv_prog_compiler_rtti_exceptions=no
  7237. ac_outfile=conftest.$ac_objext
  7238. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7239. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7240. # Insert the option either (1) after the last *FLAGS variable, or
  7241. # (2) before a word containing "conftest.", or (3) at the end.
  7242. # Note that $ac_compile itself does not contain backslashes and begins
  7243. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7244. # The option is referenced via a variable to avoid confusing sed.
  7245. lt_compile=`echo "$ac_compile" | $SED \
  7246. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7247. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7248. -e 's:$: $lt_compiler_flag:'`
  7249. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7250. (eval "$lt_compile" 2>conftest.err)
  7251. ac_status=$?
  7252. cat conftest.err >&5
  7253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7254. if (exit $ac_status) && test -s "$ac_outfile"; then
  7255. # The compiler can only warn and ignore the option if not recognized
  7256. # So say no if there are warnings other than the usual output.
  7257. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7258. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7259. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7260. lt_cv_prog_compiler_rtti_exceptions=yes
  7261. fi
  7262. fi
  7263. $RM conftest*
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7266. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7267. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7268. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7269. else
  7270. :
  7271. fi
  7272. fi
  7273. lt_prog_compiler_wl=
  7274. lt_prog_compiler_pic=
  7275. lt_prog_compiler_static=
  7276. if test yes = "$GCC"; then
  7277. lt_prog_compiler_wl='-Wl,'
  7278. lt_prog_compiler_static='-static'
  7279. case $host_os in
  7280. aix*)
  7281. # All AIX code is PIC.
  7282. if test ia64 = "$host_cpu"; then
  7283. # AIX 5 now supports IA64 processor
  7284. lt_prog_compiler_static='-Bstatic'
  7285. fi
  7286. lt_prog_compiler_pic='-fPIC'
  7287. ;;
  7288. amigaos*)
  7289. case $host_cpu in
  7290. powerpc)
  7291. # see comment about AmigaOS4 .so support
  7292. lt_prog_compiler_pic='-fPIC'
  7293. ;;
  7294. m68k)
  7295. # FIXME: we need at least 68020 code to build shared libraries, but
  7296. # adding the '-m68020' flag to GCC prevents building anything better,
  7297. # like '-m68040'.
  7298. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7299. ;;
  7300. esac
  7301. ;;
  7302. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7303. # PIC is the default for these OSes.
  7304. ;;
  7305. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7306. # This hack is so that the source file can tell whether it is being
  7307. # built for inclusion in a dll (and should export symbols for example).
  7308. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7309. # (--disable-auto-import) libraries
  7310. lt_prog_compiler_pic='-DDLL_EXPORT'
  7311. case $host_os in
  7312. os2*)
  7313. lt_prog_compiler_static='$wl-static'
  7314. ;;
  7315. esac
  7316. ;;
  7317. darwin* | rhapsody*)
  7318. # PIC is the default on this platform
  7319. # Common symbols not allowed in MH_DYLIB files
  7320. lt_prog_compiler_pic='-fno-common'
  7321. ;;
  7322. haiku*)
  7323. # PIC is the default for Haiku.
  7324. # The "-static" flag exists, but is broken.
  7325. lt_prog_compiler_static=
  7326. ;;
  7327. hpux*)
  7328. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7329. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7330. # sets the default TLS model and affects inlining.
  7331. case $host_cpu in
  7332. hppa*64*)
  7333. # +Z the default
  7334. ;;
  7335. *)
  7336. lt_prog_compiler_pic='-fPIC'
  7337. ;;
  7338. esac
  7339. ;;
  7340. interix[3-9]*)
  7341. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7342. # Instead, we relocate shared libraries at runtime.
  7343. ;;
  7344. msdosdjgpp*)
  7345. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7346. # on systems that don't support them.
  7347. lt_prog_compiler_can_build_shared=no
  7348. enable_shared=no
  7349. ;;
  7350. *nto* | *qnx*)
  7351. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7352. # it will coredump.
  7353. lt_prog_compiler_pic='-fPIC -shared'
  7354. ;;
  7355. sysv4*MP*)
  7356. if test -d /usr/nec; then
  7357. lt_prog_compiler_pic=-Kconform_pic
  7358. fi
  7359. ;;
  7360. *)
  7361. lt_prog_compiler_pic='-fPIC'
  7362. ;;
  7363. esac
  7364. case $cc_basename in
  7365. nvcc*) # Cuda Compiler Driver 2.2
  7366. lt_prog_compiler_wl='-Xlinker '
  7367. if test -n "$lt_prog_compiler_pic"; then
  7368. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7369. fi
  7370. ;;
  7371. esac
  7372. else
  7373. # PORTME Check for flag to pass linker flags through the system compiler.
  7374. case $host_os in
  7375. aix*)
  7376. lt_prog_compiler_wl='-Wl,'
  7377. if test ia64 = "$host_cpu"; then
  7378. # AIX 5 now supports IA64 processor
  7379. lt_prog_compiler_static='-Bstatic'
  7380. else
  7381. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7382. fi
  7383. ;;
  7384. darwin* | rhapsody*)
  7385. # PIC is the default on this platform
  7386. # Common symbols not allowed in MH_DYLIB files
  7387. lt_prog_compiler_pic='-fno-common'
  7388. case $cc_basename in
  7389. nagfor*)
  7390. # NAG Fortran compiler
  7391. lt_prog_compiler_wl='-Wl,-Wl,,'
  7392. lt_prog_compiler_pic='-PIC'
  7393. lt_prog_compiler_static='-Bstatic'
  7394. ;;
  7395. esac
  7396. ;;
  7397. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7398. # This hack is so that the source file can tell whether it is being
  7399. # built for inclusion in a dll (and should export symbols for example).
  7400. lt_prog_compiler_pic='-DDLL_EXPORT'
  7401. case $host_os in
  7402. os2*)
  7403. lt_prog_compiler_static='$wl-static'
  7404. ;;
  7405. esac
  7406. ;;
  7407. hpux9* | hpux10* | hpux11*)
  7408. lt_prog_compiler_wl='-Wl,'
  7409. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7410. # not for PA HP-UX.
  7411. case $host_cpu in
  7412. hppa*64*|ia64*)
  7413. # +Z the default
  7414. ;;
  7415. *)
  7416. lt_prog_compiler_pic='+Z'
  7417. ;;
  7418. esac
  7419. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7420. lt_prog_compiler_static='$wl-a ${wl}archive'
  7421. ;;
  7422. irix5* | irix6* | nonstopux*)
  7423. lt_prog_compiler_wl='-Wl,'
  7424. # PIC (with -KPIC) is the default.
  7425. lt_prog_compiler_static='-non_shared'
  7426. ;;
  7427. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7428. case $cc_basename in
  7429. # old Intel for x86_64, which still supported -KPIC.
  7430. ecc*)
  7431. lt_prog_compiler_wl='-Wl,'
  7432. lt_prog_compiler_pic='-KPIC'
  7433. lt_prog_compiler_static='-static'
  7434. ;;
  7435. # icc used to be incompatible with GCC.
  7436. # ICC 10 doesn't accept -KPIC any more.
  7437. icc* | ifort*)
  7438. lt_prog_compiler_wl='-Wl,'
  7439. lt_prog_compiler_pic='-fPIC'
  7440. lt_prog_compiler_static='-static'
  7441. ;;
  7442. # Lahey Fortran 8.1.
  7443. lf95*)
  7444. lt_prog_compiler_wl='-Wl,'
  7445. lt_prog_compiler_pic='--shared'
  7446. lt_prog_compiler_static='--static'
  7447. ;;
  7448. nagfor*)
  7449. # NAG Fortran compiler
  7450. lt_prog_compiler_wl='-Wl,-Wl,,'
  7451. lt_prog_compiler_pic='-PIC'
  7452. lt_prog_compiler_static='-Bstatic'
  7453. ;;
  7454. tcc*)
  7455. # Fabrice Bellard et al's Tiny C Compiler
  7456. lt_prog_compiler_wl='-Wl,'
  7457. lt_prog_compiler_pic='-fPIC'
  7458. lt_prog_compiler_static='-static'
  7459. ;;
  7460. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7461. # Portland Group compilers (*not* the Pentium gcc compiler,
  7462. # which looks to be a dead project)
  7463. lt_prog_compiler_wl='-Wl,'
  7464. lt_prog_compiler_pic='-fpic'
  7465. lt_prog_compiler_static='-Bstatic'
  7466. ;;
  7467. ccc*)
  7468. lt_prog_compiler_wl='-Wl,'
  7469. # All Alpha code is PIC.
  7470. lt_prog_compiler_static='-non_shared'
  7471. ;;
  7472. xl* | bgxl* | bgf* | mpixl*)
  7473. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7474. lt_prog_compiler_wl='-Wl,'
  7475. lt_prog_compiler_pic='-qpic'
  7476. lt_prog_compiler_static='-qstaticlink'
  7477. ;;
  7478. *)
  7479. case `$CC -V 2>&1 | sed 5q` in
  7480. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7481. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7482. lt_prog_compiler_pic='-KPIC'
  7483. lt_prog_compiler_static='-Bstatic'
  7484. lt_prog_compiler_wl=''
  7485. ;;
  7486. *Sun\ F* | *Sun*Fortran*)
  7487. lt_prog_compiler_pic='-KPIC'
  7488. lt_prog_compiler_static='-Bstatic'
  7489. lt_prog_compiler_wl='-Qoption ld '
  7490. ;;
  7491. *Sun\ C*)
  7492. # Sun C 5.9
  7493. lt_prog_compiler_pic='-KPIC'
  7494. lt_prog_compiler_static='-Bstatic'
  7495. lt_prog_compiler_wl='-Wl,'
  7496. ;;
  7497. *Intel*\ [CF]*Compiler*)
  7498. lt_prog_compiler_wl='-Wl,'
  7499. lt_prog_compiler_pic='-fPIC'
  7500. lt_prog_compiler_static='-static'
  7501. ;;
  7502. *Portland\ Group*)
  7503. lt_prog_compiler_wl='-Wl,'
  7504. lt_prog_compiler_pic='-fpic'
  7505. lt_prog_compiler_static='-Bstatic'
  7506. ;;
  7507. esac
  7508. ;;
  7509. esac
  7510. ;;
  7511. newsos6)
  7512. lt_prog_compiler_pic='-KPIC'
  7513. lt_prog_compiler_static='-Bstatic'
  7514. ;;
  7515. *nto* | *qnx*)
  7516. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7517. # it will coredump.
  7518. lt_prog_compiler_pic='-fPIC -shared'
  7519. ;;
  7520. osf3* | osf4* | osf5*)
  7521. lt_prog_compiler_wl='-Wl,'
  7522. # All OSF/1 code is PIC.
  7523. lt_prog_compiler_static='-non_shared'
  7524. ;;
  7525. rdos*)
  7526. lt_prog_compiler_static='-non_shared'
  7527. ;;
  7528. solaris*)
  7529. lt_prog_compiler_pic='-KPIC'
  7530. lt_prog_compiler_static='-Bstatic'
  7531. case $cc_basename in
  7532. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7533. lt_prog_compiler_wl='-Qoption ld ';;
  7534. *)
  7535. lt_prog_compiler_wl='-Wl,';;
  7536. esac
  7537. ;;
  7538. sunos4*)
  7539. lt_prog_compiler_wl='-Qoption ld '
  7540. lt_prog_compiler_pic='-PIC'
  7541. lt_prog_compiler_static='-Bstatic'
  7542. ;;
  7543. sysv4 | sysv4.2uw2* | sysv4.3*)
  7544. lt_prog_compiler_wl='-Wl,'
  7545. lt_prog_compiler_pic='-KPIC'
  7546. lt_prog_compiler_static='-Bstatic'
  7547. ;;
  7548. sysv4*MP*)
  7549. if test -d /usr/nec; then
  7550. lt_prog_compiler_pic='-Kconform_pic'
  7551. lt_prog_compiler_static='-Bstatic'
  7552. fi
  7553. ;;
  7554. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7555. lt_prog_compiler_wl='-Wl,'
  7556. lt_prog_compiler_pic='-KPIC'
  7557. lt_prog_compiler_static='-Bstatic'
  7558. ;;
  7559. unicos*)
  7560. lt_prog_compiler_wl='-Wl,'
  7561. lt_prog_compiler_can_build_shared=no
  7562. ;;
  7563. uts4*)
  7564. lt_prog_compiler_pic='-pic'
  7565. lt_prog_compiler_static='-Bstatic'
  7566. ;;
  7567. *)
  7568. lt_prog_compiler_can_build_shared=no
  7569. ;;
  7570. esac
  7571. fi
  7572. case $host_os in
  7573. # For platforms that do not support PIC, -DPIC is meaningless:
  7574. *djgpp*)
  7575. lt_prog_compiler_pic=
  7576. ;;
  7577. *)
  7578. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7579. ;;
  7580. esac
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7582. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7583. if ${lt_cv_prog_compiler_pic+:} false; then :
  7584. $as_echo_n "(cached) " >&6
  7585. else
  7586. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7587. fi
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7589. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7590. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7591. #
  7592. # Check to make sure the PIC flag actually works.
  7593. #
  7594. if test -n "$lt_prog_compiler_pic"; then
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7596. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7597. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7598. $as_echo_n "(cached) " >&6
  7599. else
  7600. lt_cv_prog_compiler_pic_works=no
  7601. ac_outfile=conftest.$ac_objext
  7602. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7603. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7604. # Insert the option either (1) after the last *FLAGS variable, or
  7605. # (2) before a word containing "conftest.", or (3) at the end.
  7606. # Note that $ac_compile itself does not contain backslashes and begins
  7607. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7608. # The option is referenced via a variable to avoid confusing sed.
  7609. lt_compile=`echo "$ac_compile" | $SED \
  7610. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7611. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7612. -e 's:$: $lt_compiler_flag:'`
  7613. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7614. (eval "$lt_compile" 2>conftest.err)
  7615. ac_status=$?
  7616. cat conftest.err >&5
  7617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7618. if (exit $ac_status) && test -s "$ac_outfile"; then
  7619. # The compiler can only warn and ignore the option if not recognized
  7620. # So say no if there are warnings other than the usual output.
  7621. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7622. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7623. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7624. lt_cv_prog_compiler_pic_works=yes
  7625. fi
  7626. fi
  7627. $RM conftest*
  7628. fi
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7630. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7631. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7632. case $lt_prog_compiler_pic in
  7633. "" | " "*) ;;
  7634. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7635. esac
  7636. else
  7637. lt_prog_compiler_pic=
  7638. lt_prog_compiler_can_build_shared=no
  7639. fi
  7640. fi
  7641. #
  7642. # Check to make sure the static flag actually works.
  7643. #
  7644. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7646. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7647. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7648. $as_echo_n "(cached) " >&6
  7649. else
  7650. lt_cv_prog_compiler_static_works=no
  7651. save_LDFLAGS=$LDFLAGS
  7652. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7653. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7654. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7655. # The linker can only warn and ignore the option if not recognized
  7656. # So say no if there are warnings
  7657. if test -s conftest.err; then
  7658. # Append any errors to the config.log.
  7659. cat conftest.err 1>&5
  7660. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7661. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7662. if diff conftest.exp conftest.er2 >/dev/null; then
  7663. lt_cv_prog_compiler_static_works=yes
  7664. fi
  7665. else
  7666. lt_cv_prog_compiler_static_works=yes
  7667. fi
  7668. fi
  7669. $RM -r conftest*
  7670. LDFLAGS=$save_LDFLAGS
  7671. fi
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7673. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7674. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7675. :
  7676. else
  7677. lt_prog_compiler_static=
  7678. fi
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7680. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7681. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7682. $as_echo_n "(cached) " >&6
  7683. else
  7684. lt_cv_prog_compiler_c_o=no
  7685. $RM -r conftest 2>/dev/null
  7686. mkdir conftest
  7687. cd conftest
  7688. mkdir out
  7689. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7690. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7691. # Insert the option either (1) after the last *FLAGS variable, or
  7692. # (2) before a word containing "conftest.", or (3) at the end.
  7693. # Note that $ac_compile itself does not contain backslashes and begins
  7694. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7695. lt_compile=`echo "$ac_compile" | $SED \
  7696. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7697. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7698. -e 's:$: $lt_compiler_flag:'`
  7699. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7700. (eval "$lt_compile" 2>out/conftest.err)
  7701. ac_status=$?
  7702. cat out/conftest.err >&5
  7703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7704. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7705. then
  7706. # The compiler can only warn and ignore the option if not recognized
  7707. # So say no if there are warnings
  7708. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7709. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7710. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7711. lt_cv_prog_compiler_c_o=yes
  7712. fi
  7713. fi
  7714. chmod u+w . 2>&5
  7715. $RM conftest*
  7716. # SGI C++ compiler will create directory out/ii_files/ for
  7717. # template instantiation
  7718. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7719. $RM out/* && rmdir out
  7720. cd ..
  7721. $RM -r conftest
  7722. $RM conftest*
  7723. fi
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7725. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7727. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7728. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7729. $as_echo_n "(cached) " >&6
  7730. else
  7731. lt_cv_prog_compiler_c_o=no
  7732. $RM -r conftest 2>/dev/null
  7733. mkdir conftest
  7734. cd conftest
  7735. mkdir out
  7736. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7737. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7738. # Insert the option either (1) after the last *FLAGS variable, or
  7739. # (2) before a word containing "conftest.", or (3) at the end.
  7740. # Note that $ac_compile itself does not contain backslashes and begins
  7741. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7742. lt_compile=`echo "$ac_compile" | $SED \
  7743. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7744. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7745. -e 's:$: $lt_compiler_flag:'`
  7746. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7747. (eval "$lt_compile" 2>out/conftest.err)
  7748. ac_status=$?
  7749. cat out/conftest.err >&5
  7750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7751. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7752. then
  7753. # The compiler can only warn and ignore the option if not recognized
  7754. # So say no if there are warnings
  7755. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7756. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7757. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7758. lt_cv_prog_compiler_c_o=yes
  7759. fi
  7760. fi
  7761. chmod u+w . 2>&5
  7762. $RM conftest*
  7763. # SGI C++ compiler will create directory out/ii_files/ for
  7764. # template instantiation
  7765. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7766. $RM out/* && rmdir out
  7767. cd ..
  7768. $RM -r conftest
  7769. $RM conftest*
  7770. fi
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7772. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7773. hard_links=nottested
  7774. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7775. # do not overwrite the value of need_locks provided by the user
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7777. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7778. hard_links=yes
  7779. $RM conftest*
  7780. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7781. touch conftest.a
  7782. ln conftest.a conftest.b 2>&5 || hard_links=no
  7783. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7785. $as_echo "$hard_links" >&6; }
  7786. if test no = "$hard_links"; then
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7788. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7789. need_locks=warn
  7790. fi
  7791. else
  7792. need_locks=no
  7793. fi
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7795. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7796. runpath_var=
  7797. allow_undefined_flag=
  7798. always_export_symbols=no
  7799. archive_cmds=
  7800. archive_expsym_cmds=
  7801. compiler_needs_object=no
  7802. enable_shared_with_static_runtimes=no
  7803. export_dynamic_flag_spec=
  7804. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7805. hardcode_automatic=no
  7806. hardcode_direct=no
  7807. hardcode_direct_absolute=no
  7808. hardcode_libdir_flag_spec=
  7809. hardcode_libdir_separator=
  7810. hardcode_minus_L=no
  7811. hardcode_shlibpath_var=unsupported
  7812. inherit_rpath=no
  7813. link_all_deplibs=unknown
  7814. module_cmds=
  7815. module_expsym_cmds=
  7816. old_archive_from_new_cmds=
  7817. old_archive_from_expsyms_cmds=
  7818. thread_safe_flag_spec=
  7819. whole_archive_flag_spec=
  7820. # include_expsyms should be a list of space-separated symbols to be *always*
  7821. # included in the symbol list
  7822. include_expsyms=
  7823. # exclude_expsyms can be an extended regexp of symbols to exclude
  7824. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7825. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7826. # as well as any symbol that contains 'd'.
  7827. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7828. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7829. # platforms (ab)use it in PIC code, but their linkers get confused if
  7830. # the symbol is explicitly referenced. Since portable code cannot
  7831. # rely on this symbol name, it's probably fine to never include it in
  7832. # preloaded symbol tables.
  7833. # Exclude shared library initialization/finalization symbols.
  7834. extract_expsyms_cmds=
  7835. case $host_os in
  7836. cygwin* | mingw* | pw32* | cegcc*)
  7837. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7838. # When not using gcc, we currently assume that we are using
  7839. # Microsoft Visual C++.
  7840. if test yes != "$GCC"; then
  7841. with_gnu_ld=no
  7842. fi
  7843. ;;
  7844. interix*)
  7845. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7846. with_gnu_ld=yes
  7847. ;;
  7848. openbsd* | bitrig*)
  7849. with_gnu_ld=no
  7850. ;;
  7851. esac
  7852. ld_shlibs=yes
  7853. # On some targets, GNU ld is compatible enough with the native linker
  7854. # that we're better off using the native interface for both.
  7855. lt_use_gnu_ld_interface=no
  7856. if test yes = "$with_gnu_ld"; then
  7857. case $host_os in
  7858. aix*)
  7859. # The AIX port of GNU ld has always aspired to compatibility
  7860. # with the native linker. However, as the warning in the GNU ld
  7861. # block says, versions before 2.19.5* couldn't really create working
  7862. # shared libraries, regardless of the interface used.
  7863. case `$LD -v 2>&1` in
  7864. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7865. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7866. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7867. *)
  7868. lt_use_gnu_ld_interface=yes
  7869. ;;
  7870. esac
  7871. ;;
  7872. *)
  7873. lt_use_gnu_ld_interface=yes
  7874. ;;
  7875. esac
  7876. fi
  7877. if test yes = "$lt_use_gnu_ld_interface"; then
  7878. # If archive_cmds runs LD, not CC, wlarc should be empty
  7879. wlarc='$wl'
  7880. # Set some defaults for GNU ld with shared library support. These
  7881. # are reset later if shared libraries are not supported. Putting them
  7882. # here allows them to be overridden if necessary.
  7883. runpath_var=LD_RUN_PATH
  7884. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7885. export_dynamic_flag_spec='$wl--export-dynamic'
  7886. # ancient GNU ld didn't support --whole-archive et. al.
  7887. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7888. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7889. else
  7890. whole_archive_flag_spec=
  7891. fi
  7892. supports_anon_versioning=no
  7893. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7894. *GNU\ gold*) supports_anon_versioning=yes ;;
  7895. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7896. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7897. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7898. *\ 2.11.*) ;; # other 2.11 versions
  7899. *) supports_anon_versioning=yes ;;
  7900. esac
  7901. # See if GNU ld supports shared libraries.
  7902. case $host_os in
  7903. aix[3-9]*)
  7904. # On AIX/PPC, the GNU linker is very broken
  7905. if test ia64 != "$host_cpu"; then
  7906. ld_shlibs=no
  7907. cat <<_LT_EOF 1>&2
  7908. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7909. *** to be unable to reliably create shared libraries on AIX.
  7910. *** Therefore, libtool is disabling shared libraries support. If you
  7911. *** really care for shared libraries, you may want to install binutils
  7912. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7913. *** You will then need to restart the configuration process.
  7914. _LT_EOF
  7915. fi
  7916. ;;
  7917. amigaos*)
  7918. case $host_cpu in
  7919. powerpc)
  7920. # see comment about AmigaOS4 .so support
  7921. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7922. archive_expsym_cmds=''
  7923. ;;
  7924. m68k)
  7925. 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)'
  7926. hardcode_libdir_flag_spec='-L$libdir'
  7927. hardcode_minus_L=yes
  7928. ;;
  7929. esac
  7930. ;;
  7931. beos*)
  7932. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7933. allow_undefined_flag=unsupported
  7934. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7935. # support --undefined. This deserves some investigation. FIXME
  7936. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7937. else
  7938. ld_shlibs=no
  7939. fi
  7940. ;;
  7941. cygwin* | mingw* | pw32* | cegcc*)
  7942. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7943. # as there is no search path for DLLs.
  7944. hardcode_libdir_flag_spec='-L$libdir'
  7945. export_dynamic_flag_spec='$wl--export-all-symbols'
  7946. allow_undefined_flag=unsupported
  7947. always_export_symbols=no
  7948. enable_shared_with_static_runtimes=yes
  7949. 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'
  7950. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7951. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7952. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7953. # If the export-symbols file already is a .def file, use it as
  7954. # is; otherwise, prepend EXPORTS...
  7955. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7956. cp $export_symbols $output_objdir/$soname.def;
  7957. else
  7958. echo EXPORTS > $output_objdir/$soname.def;
  7959. cat $export_symbols >> $output_objdir/$soname.def;
  7960. fi~
  7961. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7962. else
  7963. ld_shlibs=no
  7964. fi
  7965. ;;
  7966. haiku*)
  7967. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7968. link_all_deplibs=yes
  7969. ;;
  7970. os2*)
  7971. hardcode_libdir_flag_spec='-L$libdir'
  7972. hardcode_minus_L=yes
  7973. allow_undefined_flag=unsupported
  7974. shrext_cmds=.dll
  7975. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7976. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7977. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7978. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7979. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7980. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7981. emximp -o $lib $output_objdir/$libname.def'
  7982. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7983. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7984. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7985. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7986. prefix_cmds="$SED"~
  7987. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7988. prefix_cmds="$prefix_cmds -e 1d";
  7989. fi~
  7990. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7991. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7992. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7993. emximp -o $lib $output_objdir/$libname.def'
  7994. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7995. enable_shared_with_static_runtimes=yes
  7996. file_list_spec='@'
  7997. ;;
  7998. interix[3-9]*)
  7999. hardcode_direct=no
  8000. hardcode_shlibpath_var=no
  8001. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8002. export_dynamic_flag_spec='$wl-E'
  8003. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8004. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8005. # default) and relocated if they conflict, which is a slow very memory
  8006. # consuming and fragmenting process. To avoid this, we pick a random,
  8007. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8008. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8009. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8010. 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'
  8011. ;;
  8012. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8013. tmp_diet=no
  8014. if test linux-dietlibc = "$host_os"; then
  8015. case $cc_basename in
  8016. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8017. esac
  8018. fi
  8019. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8020. && test no = "$tmp_diet"
  8021. then
  8022. tmp_addflag=' $pic_flag'
  8023. tmp_sharedflag='-shared'
  8024. case $cc_basename,$host_cpu in
  8025. pgcc*) # Portland Group C compiler
  8026. 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'
  8027. tmp_addflag=' $pic_flag'
  8028. ;;
  8029. pgf77* | pgf90* | pgf95* | pgfortran*)
  8030. # Portland Group f77 and f90 compilers
  8031. 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'
  8032. tmp_addflag=' $pic_flag -Mnomain' ;;
  8033. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8034. tmp_addflag=' -i_dynamic' ;;
  8035. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8036. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8037. ifc* | ifort*) # Intel Fortran compiler
  8038. tmp_addflag=' -nofor_main' ;;
  8039. lf95*) # Lahey Fortran 8.1
  8040. whole_archive_flag_spec=
  8041. tmp_sharedflag='--shared' ;;
  8042. nagfor*) # NAGFOR 5.3
  8043. tmp_sharedflag='-Wl,-shared' ;;
  8044. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8045. tmp_sharedflag='-qmkshrobj'
  8046. tmp_addflag= ;;
  8047. nvcc*) # Cuda Compiler Driver 2.2
  8048. 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'
  8049. compiler_needs_object=yes
  8050. ;;
  8051. esac
  8052. case `$CC -V 2>&1 | sed 5q` in
  8053. *Sun\ C*) # Sun C 5.9
  8054. 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'
  8055. compiler_needs_object=yes
  8056. tmp_sharedflag='-G' ;;
  8057. *Sun\ F*) # Sun Fortran 8.3
  8058. tmp_sharedflag='-G' ;;
  8059. esac
  8060. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8061. if test yes = "$supports_anon_versioning"; then
  8062. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8063. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8064. echo "local: *; };" >> $output_objdir/$libname.ver~
  8065. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8066. fi
  8067. case $cc_basename in
  8068. tcc*)
  8069. export_dynamic_flag_spec='-rdynamic'
  8070. ;;
  8071. xlf* | bgf* | bgxlf* | mpixlf*)
  8072. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8073. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8074. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8075. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8076. if test yes = "$supports_anon_versioning"; then
  8077. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8078. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8079. echo "local: *; };" >> $output_objdir/$libname.ver~
  8080. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8081. fi
  8082. ;;
  8083. esac
  8084. else
  8085. ld_shlibs=no
  8086. fi
  8087. ;;
  8088. netbsd*)
  8089. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8090. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8091. wlarc=
  8092. else
  8093. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8094. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8095. fi
  8096. ;;
  8097. solaris*)
  8098. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8099. ld_shlibs=no
  8100. cat <<_LT_EOF 1>&2
  8101. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8102. *** create shared libraries on Solaris systems. Therefore, libtool
  8103. *** is disabling shared libraries support. We urge you to upgrade GNU
  8104. *** binutils to release 2.9.1 or newer. Another option is to modify
  8105. *** your PATH or compiler configuration so that the native linker is
  8106. *** used, and then restart.
  8107. _LT_EOF
  8108. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8109. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8110. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8111. else
  8112. ld_shlibs=no
  8113. fi
  8114. ;;
  8115. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8116. case `$LD -v 2>&1` in
  8117. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8118. ld_shlibs=no
  8119. cat <<_LT_EOF 1>&2
  8120. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8121. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8122. *** is disabling shared libraries support. We urge you to upgrade GNU
  8123. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8124. *** your PATH or compiler configuration so that the native linker is
  8125. *** used, and then restart.
  8126. _LT_EOF
  8127. ;;
  8128. *)
  8129. # For security reasons, it is highly recommended that you always
  8130. # use absolute paths for naming shared libraries, and exclude the
  8131. # DT_RUNPATH tag from executables and libraries. But doing so
  8132. # requires that you compile everything twice, which is a pain.
  8133. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8134. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8135. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8136. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8137. else
  8138. ld_shlibs=no
  8139. fi
  8140. ;;
  8141. esac
  8142. ;;
  8143. sunos4*)
  8144. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8145. wlarc=
  8146. hardcode_direct=yes
  8147. hardcode_shlibpath_var=no
  8148. ;;
  8149. *)
  8150. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8151. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8152. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8153. else
  8154. ld_shlibs=no
  8155. fi
  8156. ;;
  8157. esac
  8158. if test no = "$ld_shlibs"; then
  8159. runpath_var=
  8160. hardcode_libdir_flag_spec=
  8161. export_dynamic_flag_spec=
  8162. whole_archive_flag_spec=
  8163. fi
  8164. else
  8165. # PORTME fill in a description of your system's linker (not GNU ld)
  8166. case $host_os in
  8167. aix3*)
  8168. allow_undefined_flag=unsupported
  8169. always_export_symbols=yes
  8170. 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'
  8171. # Note: this linker hardcodes the directories in LIBPATH if there
  8172. # are no directories specified by -L.
  8173. hardcode_minus_L=yes
  8174. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8175. # Neither direct hardcoding nor static linking is supported with a
  8176. # broken collect2.
  8177. hardcode_direct=unsupported
  8178. fi
  8179. ;;
  8180. aix[4-9]*)
  8181. if test ia64 = "$host_cpu"; then
  8182. # On IA64, the linker does run time linking by default, so we don't
  8183. # have to do anything special.
  8184. aix_use_runtimelinking=no
  8185. exp_sym_flag='-Bexport'
  8186. no_entry_flag=
  8187. else
  8188. # If we're using GNU nm, then we don't want the "-C" option.
  8189. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8190. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8191. # weak defined symbols like other global defined symbols, whereas
  8192. # GNU nm marks them as "W".
  8193. # While the 'weak' keyword is ignored in the Export File, we need
  8194. # it in the Import File for the 'aix-soname' feature, so we have
  8195. # to replace the "-B" option with "-P" for AIX nm.
  8196. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8197. 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'
  8198. else
  8199. 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'
  8200. fi
  8201. aix_use_runtimelinking=no
  8202. # Test if we are trying to use run time linking or normal
  8203. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8204. # have runtime linking enabled, and use it for executables.
  8205. # For shared libraries, we enable/disable runtime linking
  8206. # depending on the kind of the shared library created -
  8207. # when "with_aix_soname,aix_use_runtimelinking" is:
  8208. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8209. # "aix,yes" lib.so shared, rtl:yes, for executables
  8210. # lib.a static archive
  8211. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8212. # lib.a(lib.so.V) shared, rtl:no, for executables
  8213. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8214. # lib.a(lib.so.V) shared, rtl:no
  8215. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8216. # lib.a static archive
  8217. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8218. for ld_flag in $LDFLAGS; do
  8219. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8220. aix_use_runtimelinking=yes
  8221. break
  8222. fi
  8223. done
  8224. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8225. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8226. # so we don't have lib.a shared libs to link our executables.
  8227. # We have to force runtime linking in this case.
  8228. aix_use_runtimelinking=yes
  8229. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8230. fi
  8231. ;;
  8232. esac
  8233. exp_sym_flag='-bexport'
  8234. no_entry_flag='-bnoentry'
  8235. fi
  8236. # When large executables or shared objects are built, AIX ld can
  8237. # have problems creating the table of contents. If linking a library
  8238. # or program results in "error TOC overflow" add -mminimal-toc to
  8239. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8240. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8241. archive_cmds=''
  8242. hardcode_direct=yes
  8243. hardcode_direct_absolute=yes
  8244. hardcode_libdir_separator=':'
  8245. link_all_deplibs=yes
  8246. file_list_spec='$wl-f,'
  8247. case $with_aix_soname,$aix_use_runtimelinking in
  8248. aix,*) ;; # traditional, no import file
  8249. svr4,* | *,yes) # use import file
  8250. # The Import File defines what to hardcode.
  8251. hardcode_direct=no
  8252. hardcode_direct_absolute=no
  8253. ;;
  8254. esac
  8255. if test yes = "$GCC"; then
  8256. case $host_os in aix4.[012]|aix4.[012].*)
  8257. # We only want to do this on AIX 4.2 and lower, the check
  8258. # below for broken collect2 doesn't work under 4.3+
  8259. collect2name=`$CC -print-prog-name=collect2`
  8260. if test -f "$collect2name" &&
  8261. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8262. then
  8263. # We have reworked collect2
  8264. :
  8265. else
  8266. # We have old collect2
  8267. hardcode_direct=unsupported
  8268. # It fails to find uninstalled libraries when the uninstalled
  8269. # path is not listed in the libpath. Setting hardcode_minus_L
  8270. # to unsupported forces relinking
  8271. hardcode_minus_L=yes
  8272. hardcode_libdir_flag_spec='-L$libdir'
  8273. hardcode_libdir_separator=
  8274. fi
  8275. ;;
  8276. esac
  8277. shared_flag='-shared'
  8278. if test yes = "$aix_use_runtimelinking"; then
  8279. shared_flag="$shared_flag "'$wl-G'
  8280. fi
  8281. # Need to ensure runtime linking is disabled for the traditional
  8282. # shared library, or the linker may eventually find shared libraries
  8283. # /with/ Import File - we do not want to mix them.
  8284. shared_flag_aix='-shared'
  8285. shared_flag_svr4='-shared $wl-G'
  8286. else
  8287. # not using gcc
  8288. if test ia64 = "$host_cpu"; then
  8289. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8290. # chokes on -Wl,-G. The following line is correct:
  8291. shared_flag='-G'
  8292. else
  8293. if test yes = "$aix_use_runtimelinking"; then
  8294. shared_flag='$wl-G'
  8295. else
  8296. shared_flag='$wl-bM:SRE'
  8297. fi
  8298. shared_flag_aix='$wl-bM:SRE'
  8299. shared_flag_svr4='$wl-G'
  8300. fi
  8301. fi
  8302. export_dynamic_flag_spec='$wl-bexpall'
  8303. # It seems that -bexpall does not export symbols beginning with
  8304. # underscore (_), so it is better to generate a list of symbols to export.
  8305. always_export_symbols=yes
  8306. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8307. # Warning - without using the other runtime loading flags (-brtl),
  8308. # -berok will link without error, but may produce a broken library.
  8309. allow_undefined_flag='-berok'
  8310. # Determine the default libpath from the value encoded in an
  8311. # empty executable.
  8312. if test set = "${lt_cv_aix_libpath+set}"; then
  8313. aix_libpath=$lt_cv_aix_libpath
  8314. else
  8315. if ${lt_cv_aix_libpath_+:} false; then :
  8316. $as_echo_n "(cached) " >&6
  8317. else
  8318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8319. /* end confdefs.h. */
  8320. int
  8321. main ()
  8322. {
  8323. ;
  8324. return 0;
  8325. }
  8326. _ACEOF
  8327. if ac_fn_c_try_link "$LINENO"; then :
  8328. lt_aix_libpath_sed='
  8329. /Import File Strings/,/^$/ {
  8330. /^0/ {
  8331. s/^0 *\([^ ]*\) *$/\1/
  8332. p
  8333. }
  8334. }'
  8335. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8336. # Check for a 64-bit object if we didn't find anything.
  8337. if test -z "$lt_cv_aix_libpath_"; then
  8338. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8339. fi
  8340. fi
  8341. rm -f core conftest.err conftest.$ac_objext \
  8342. conftest$ac_exeext conftest.$ac_ext
  8343. if test -z "$lt_cv_aix_libpath_"; then
  8344. lt_cv_aix_libpath_=/usr/lib:/lib
  8345. fi
  8346. fi
  8347. aix_libpath=$lt_cv_aix_libpath_
  8348. fi
  8349. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8350. 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
  8351. else
  8352. if test ia64 = "$host_cpu"; then
  8353. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8354. allow_undefined_flag="-z nodefs"
  8355. 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"
  8356. else
  8357. # Determine the default libpath from the value encoded in an
  8358. # empty executable.
  8359. if test set = "${lt_cv_aix_libpath+set}"; then
  8360. aix_libpath=$lt_cv_aix_libpath
  8361. else
  8362. if ${lt_cv_aix_libpath_+:} false; then :
  8363. $as_echo_n "(cached) " >&6
  8364. else
  8365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8366. /* end confdefs.h. */
  8367. int
  8368. main ()
  8369. {
  8370. ;
  8371. return 0;
  8372. }
  8373. _ACEOF
  8374. if ac_fn_c_try_link "$LINENO"; then :
  8375. lt_aix_libpath_sed='
  8376. /Import File Strings/,/^$/ {
  8377. /^0/ {
  8378. s/^0 *\([^ ]*\) *$/\1/
  8379. p
  8380. }
  8381. }'
  8382. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8383. # Check for a 64-bit object if we didn't find anything.
  8384. if test -z "$lt_cv_aix_libpath_"; then
  8385. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8386. fi
  8387. fi
  8388. rm -f core conftest.err conftest.$ac_objext \
  8389. conftest$ac_exeext conftest.$ac_ext
  8390. if test -z "$lt_cv_aix_libpath_"; then
  8391. lt_cv_aix_libpath_=/usr/lib:/lib
  8392. fi
  8393. fi
  8394. aix_libpath=$lt_cv_aix_libpath_
  8395. fi
  8396. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8397. # Warning - without using the other run time loading flags,
  8398. # -berok will link without error, but may produce a broken library.
  8399. no_undefined_flag=' $wl-bernotok'
  8400. allow_undefined_flag=' $wl-berok'
  8401. if test yes = "$with_gnu_ld"; then
  8402. # We only use this code for GNU lds that support --whole-archive.
  8403. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8404. else
  8405. # Exported symbols can be pulled into shared objects from archives
  8406. whole_archive_flag_spec='$convenience'
  8407. fi
  8408. archive_cmds_need_lc=yes
  8409. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8410. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8411. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8412. if test svr4 != "$with_aix_soname"; then
  8413. # This is similar to how AIX traditionally builds its shared libraries.
  8414. 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'
  8415. fi
  8416. if test aix != "$with_aix_soname"; then
  8417. 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'
  8418. else
  8419. # used by -dlpreopen to get the symbols
  8420. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8421. fi
  8422. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8423. fi
  8424. fi
  8425. ;;
  8426. amigaos*)
  8427. case $host_cpu in
  8428. powerpc)
  8429. # see comment about AmigaOS4 .so support
  8430. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8431. archive_expsym_cmds=''
  8432. ;;
  8433. m68k)
  8434. 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)'
  8435. hardcode_libdir_flag_spec='-L$libdir'
  8436. hardcode_minus_L=yes
  8437. ;;
  8438. esac
  8439. ;;
  8440. bsdi[45]*)
  8441. export_dynamic_flag_spec=-rdynamic
  8442. ;;
  8443. cygwin* | mingw* | pw32* | cegcc*)
  8444. # When not using gcc, we currently assume that we are using
  8445. # Microsoft Visual C++.
  8446. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8447. # no search path for DLLs.
  8448. case $cc_basename in
  8449. cl*)
  8450. # Native MSVC
  8451. hardcode_libdir_flag_spec=' '
  8452. allow_undefined_flag=unsupported
  8453. always_export_symbols=yes
  8454. file_list_spec='@'
  8455. # Tell ltmain to make .lib files, not .a files.
  8456. libext=lib
  8457. # Tell ltmain to make .dll files, not .so files.
  8458. shrext_cmds=.dll
  8459. # FIXME: Setting linknames here is a bad hack.
  8460. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8461. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8462. cp "$export_symbols" "$output_objdir/$soname.def";
  8463. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8464. else
  8465. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8466. fi~
  8467. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8468. linknames='
  8469. # The linker will not automatically build a static lib if we build a DLL.
  8470. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8471. enable_shared_with_static_runtimes=yes
  8472. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8473. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8474. # Don't use ranlib
  8475. old_postinstall_cmds='chmod 644 $oldlib'
  8476. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8477. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8478. case $lt_outputfile in
  8479. *.exe|*.EXE) ;;
  8480. *)
  8481. lt_outputfile=$lt_outputfile.exe
  8482. lt_tool_outputfile=$lt_tool_outputfile.exe
  8483. ;;
  8484. esac~
  8485. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8486. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8487. $RM "$lt_outputfile.manifest";
  8488. fi'
  8489. ;;
  8490. *)
  8491. # Assume MSVC wrapper
  8492. hardcode_libdir_flag_spec=' '
  8493. allow_undefined_flag=unsupported
  8494. # Tell ltmain to make .lib files, not .a files.
  8495. libext=lib
  8496. # Tell ltmain to make .dll files, not .so files.
  8497. shrext_cmds=.dll
  8498. # FIXME: Setting linknames here is a bad hack.
  8499. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8500. # The linker will automatically build a .lib file if we build a DLL.
  8501. old_archive_from_new_cmds='true'
  8502. # FIXME: Should let the user specify the lib program.
  8503. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8504. enable_shared_with_static_runtimes=yes
  8505. ;;
  8506. esac
  8507. ;;
  8508. darwin* | rhapsody*)
  8509. archive_cmds_need_lc=no
  8510. hardcode_direct=no
  8511. hardcode_automatic=yes
  8512. hardcode_shlibpath_var=unsupported
  8513. if test yes = "$lt_cv_ld_force_load"; then
  8514. 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\"`'
  8515. else
  8516. whole_archive_flag_spec=''
  8517. fi
  8518. link_all_deplibs=yes
  8519. allow_undefined_flag=$_lt_dar_allow_undefined
  8520. case $cc_basename in
  8521. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8522. *) _lt_dar_can_shared=$GCC ;;
  8523. esac
  8524. if test yes = "$_lt_dar_can_shared"; then
  8525. output_verbose_link_cmd=func_echo_all
  8526. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8527. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8528. 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"
  8529. 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"
  8530. else
  8531. ld_shlibs=no
  8532. fi
  8533. ;;
  8534. dgux*)
  8535. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8536. hardcode_libdir_flag_spec='-L$libdir'
  8537. hardcode_shlibpath_var=no
  8538. ;;
  8539. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8540. # support. Future versions do this automatically, but an explicit c++rt0.o
  8541. # does not break anything, and helps significantly (at the cost of a little
  8542. # extra space).
  8543. freebsd2.2*)
  8544. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8545. hardcode_libdir_flag_spec='-R$libdir'
  8546. hardcode_direct=yes
  8547. hardcode_shlibpath_var=no
  8548. ;;
  8549. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8550. freebsd2.*)
  8551. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8552. hardcode_direct=yes
  8553. hardcode_minus_L=yes
  8554. hardcode_shlibpath_var=no
  8555. ;;
  8556. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8557. freebsd* | dragonfly* | midnightbsd*)
  8558. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8559. hardcode_libdir_flag_spec='-R$libdir'
  8560. hardcode_direct=yes
  8561. hardcode_shlibpath_var=no
  8562. ;;
  8563. hpux9*)
  8564. if test yes = "$GCC"; then
  8565. 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'
  8566. else
  8567. 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'
  8568. fi
  8569. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8570. hardcode_libdir_separator=:
  8571. hardcode_direct=yes
  8572. # hardcode_minus_L: Not really in the search PATH,
  8573. # but as the default location of the library.
  8574. hardcode_minus_L=yes
  8575. export_dynamic_flag_spec='$wl-E'
  8576. ;;
  8577. hpux10*)
  8578. if test yes,no = "$GCC,$with_gnu_ld"; then
  8579. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8580. else
  8581. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8582. fi
  8583. if test no = "$with_gnu_ld"; then
  8584. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8585. hardcode_libdir_separator=:
  8586. hardcode_direct=yes
  8587. hardcode_direct_absolute=yes
  8588. export_dynamic_flag_spec='$wl-E'
  8589. # hardcode_minus_L: Not really in the search PATH,
  8590. # but as the default location of the library.
  8591. hardcode_minus_L=yes
  8592. fi
  8593. ;;
  8594. hpux11*)
  8595. if test yes,no = "$GCC,$with_gnu_ld"; then
  8596. case $host_cpu in
  8597. hppa*64*)
  8598. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8599. ;;
  8600. ia64*)
  8601. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8602. ;;
  8603. *)
  8604. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8605. ;;
  8606. esac
  8607. else
  8608. case $host_cpu in
  8609. hppa*64*)
  8610. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8611. ;;
  8612. ia64*)
  8613. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8614. ;;
  8615. *)
  8616. # Older versions of the 11.00 compiler do not understand -b yet
  8617. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8619. $as_echo_n "checking if $CC understands -b... " >&6; }
  8620. if ${lt_cv_prog_compiler__b+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. lt_cv_prog_compiler__b=no
  8624. save_LDFLAGS=$LDFLAGS
  8625. LDFLAGS="$LDFLAGS -b"
  8626. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8627. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8628. # The linker can only warn and ignore the option if not recognized
  8629. # So say no if there are warnings
  8630. if test -s conftest.err; then
  8631. # Append any errors to the config.log.
  8632. cat conftest.err 1>&5
  8633. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8634. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8635. if diff conftest.exp conftest.er2 >/dev/null; then
  8636. lt_cv_prog_compiler__b=yes
  8637. fi
  8638. else
  8639. lt_cv_prog_compiler__b=yes
  8640. fi
  8641. fi
  8642. $RM -r conftest*
  8643. LDFLAGS=$save_LDFLAGS
  8644. fi
  8645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8646. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8647. if test yes = "$lt_cv_prog_compiler__b"; then
  8648. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8649. else
  8650. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8651. fi
  8652. ;;
  8653. esac
  8654. fi
  8655. if test no = "$with_gnu_ld"; then
  8656. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8657. hardcode_libdir_separator=:
  8658. case $host_cpu in
  8659. hppa*64*|ia64*)
  8660. hardcode_direct=no
  8661. hardcode_shlibpath_var=no
  8662. ;;
  8663. *)
  8664. hardcode_direct=yes
  8665. hardcode_direct_absolute=yes
  8666. export_dynamic_flag_spec='$wl-E'
  8667. # hardcode_minus_L: Not really in the search PATH,
  8668. # but as the default location of the library.
  8669. hardcode_minus_L=yes
  8670. ;;
  8671. esac
  8672. fi
  8673. ;;
  8674. irix5* | irix6* | nonstopux*)
  8675. if test yes = "$GCC"; then
  8676. 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'
  8677. # Try to use the -exported_symbol ld option, if it does not
  8678. # work, assume that -exports_file does not work either and
  8679. # implicitly export all symbols.
  8680. # This should be the same for all languages, so no per-tag cache variable.
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8682. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8683. if ${lt_cv_irix_exported_symbol+:} false; then :
  8684. $as_echo_n "(cached) " >&6
  8685. else
  8686. save_LDFLAGS=$LDFLAGS
  8687. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8689. /* end confdefs.h. */
  8690. int foo (void) { return 0; }
  8691. _ACEOF
  8692. if ac_fn_c_try_link "$LINENO"; then :
  8693. lt_cv_irix_exported_symbol=yes
  8694. else
  8695. lt_cv_irix_exported_symbol=no
  8696. fi
  8697. rm -f core conftest.err conftest.$ac_objext \
  8698. conftest$ac_exeext conftest.$ac_ext
  8699. LDFLAGS=$save_LDFLAGS
  8700. fi
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8702. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8703. if test yes = "$lt_cv_irix_exported_symbol"; then
  8704. 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'
  8705. fi
  8706. else
  8707. 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'
  8708. 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'
  8709. fi
  8710. archive_cmds_need_lc='no'
  8711. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8712. hardcode_libdir_separator=:
  8713. inherit_rpath=yes
  8714. link_all_deplibs=yes
  8715. ;;
  8716. linux*)
  8717. case $cc_basename in
  8718. tcc*)
  8719. # Fabrice Bellard et al's Tiny C Compiler
  8720. ld_shlibs=yes
  8721. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8722. ;;
  8723. esac
  8724. ;;
  8725. netbsd*)
  8726. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8727. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8728. else
  8729. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8730. fi
  8731. hardcode_libdir_flag_spec='-R$libdir'
  8732. hardcode_direct=yes
  8733. hardcode_shlibpath_var=no
  8734. ;;
  8735. newsos6)
  8736. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8737. hardcode_direct=yes
  8738. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8739. hardcode_libdir_separator=:
  8740. hardcode_shlibpath_var=no
  8741. ;;
  8742. *nto* | *qnx*)
  8743. ;;
  8744. openbsd* | bitrig*)
  8745. if test -f /usr/libexec/ld.so; then
  8746. hardcode_direct=yes
  8747. hardcode_shlibpath_var=no
  8748. hardcode_direct_absolute=yes
  8749. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8750. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8751. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8752. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8753. export_dynamic_flag_spec='$wl-E'
  8754. else
  8755. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8756. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8757. fi
  8758. else
  8759. ld_shlibs=no
  8760. fi
  8761. ;;
  8762. os2*)
  8763. hardcode_libdir_flag_spec='-L$libdir'
  8764. hardcode_minus_L=yes
  8765. allow_undefined_flag=unsupported
  8766. shrext_cmds=.dll
  8767. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8768. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8769. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8770. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8771. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8772. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8773. emximp -o $lib $output_objdir/$libname.def'
  8774. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8775. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8776. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8777. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8778. prefix_cmds="$SED"~
  8779. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8780. prefix_cmds="$prefix_cmds -e 1d";
  8781. fi~
  8782. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8783. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8784. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8785. emximp -o $lib $output_objdir/$libname.def'
  8786. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8787. enable_shared_with_static_runtimes=yes
  8788. file_list_spec='@'
  8789. ;;
  8790. osf3*)
  8791. if test yes = "$GCC"; then
  8792. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8793. 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'
  8794. else
  8795. allow_undefined_flag=' -expect_unresolved \*'
  8796. 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'
  8797. fi
  8798. archive_cmds_need_lc='no'
  8799. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8800. hardcode_libdir_separator=:
  8801. ;;
  8802. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8803. if test yes = "$GCC"; then
  8804. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8805. 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'
  8806. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8807. else
  8808. allow_undefined_flag=' -expect_unresolved \*'
  8809. 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'
  8810. 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~
  8811. $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'
  8812. # Both c and cxx compiler support -rpath directly
  8813. hardcode_libdir_flag_spec='-rpath $libdir'
  8814. fi
  8815. archive_cmds_need_lc='no'
  8816. hardcode_libdir_separator=:
  8817. ;;
  8818. solaris*)
  8819. no_undefined_flag=' -z defs'
  8820. if test yes = "$GCC"; then
  8821. wlarc='$wl'
  8822. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8823. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8824. $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'
  8825. else
  8826. case `$CC -V 2>&1` in
  8827. *"Compilers 5.0"*)
  8828. wlarc=''
  8829. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8830. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8831. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8832. ;;
  8833. *)
  8834. wlarc='$wl'
  8835. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8836. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8837. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8838. ;;
  8839. esac
  8840. fi
  8841. hardcode_libdir_flag_spec='-R$libdir'
  8842. hardcode_shlibpath_var=no
  8843. case $host_os in
  8844. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8845. *)
  8846. # The compiler driver will combine and reorder linker options,
  8847. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8848. # but is careful enough not to reorder.
  8849. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8850. if test yes = "$GCC"; then
  8851. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8852. else
  8853. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8854. fi
  8855. ;;
  8856. esac
  8857. link_all_deplibs=yes
  8858. ;;
  8859. sunos4*)
  8860. if test sequent = "$host_vendor"; then
  8861. # Use $CC to link under sequent, because it throws in some extra .o
  8862. # files that make .init and .fini sections work.
  8863. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8864. else
  8865. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8866. fi
  8867. hardcode_libdir_flag_spec='-L$libdir'
  8868. hardcode_direct=yes
  8869. hardcode_minus_L=yes
  8870. hardcode_shlibpath_var=no
  8871. ;;
  8872. sysv4)
  8873. case $host_vendor in
  8874. sni)
  8875. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8876. hardcode_direct=yes # is this really true???
  8877. ;;
  8878. siemens)
  8879. ## LD is ld it makes a PLAMLIB
  8880. ## CC just makes a GrossModule.
  8881. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8882. reload_cmds='$CC -r -o $output$reload_objs'
  8883. hardcode_direct=no
  8884. ;;
  8885. motorola)
  8886. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8887. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8888. ;;
  8889. esac
  8890. runpath_var='LD_RUN_PATH'
  8891. hardcode_shlibpath_var=no
  8892. ;;
  8893. sysv4.3*)
  8894. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8895. hardcode_shlibpath_var=no
  8896. export_dynamic_flag_spec='-Bexport'
  8897. ;;
  8898. sysv4*MP*)
  8899. if test -d /usr/nec; then
  8900. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8901. hardcode_shlibpath_var=no
  8902. runpath_var=LD_RUN_PATH
  8903. hardcode_runpath_var=yes
  8904. ld_shlibs=yes
  8905. fi
  8906. ;;
  8907. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8908. no_undefined_flag='$wl-z,text'
  8909. archive_cmds_need_lc=no
  8910. hardcode_shlibpath_var=no
  8911. runpath_var='LD_RUN_PATH'
  8912. if test yes = "$GCC"; then
  8913. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8914. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8915. else
  8916. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8917. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8918. fi
  8919. ;;
  8920. sysv5* | sco3.2v5* | sco5v6*)
  8921. # Note: We CANNOT use -z defs as we might desire, because we do not
  8922. # link with -lc, and that would cause any symbols used from libc to
  8923. # always be unresolved, which means just about no library would
  8924. # ever link correctly. If we're not using GNU ld we use -z text
  8925. # though, which does catch some bad symbols but isn't as heavy-handed
  8926. # as -z defs.
  8927. no_undefined_flag='$wl-z,text'
  8928. allow_undefined_flag='$wl-z,nodefs'
  8929. archive_cmds_need_lc=no
  8930. hardcode_shlibpath_var=no
  8931. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8932. hardcode_libdir_separator=':'
  8933. link_all_deplibs=yes
  8934. export_dynamic_flag_spec='$wl-Bexport'
  8935. runpath_var='LD_RUN_PATH'
  8936. if test yes = "$GCC"; then
  8937. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8938. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8939. else
  8940. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8941. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. fi
  8943. ;;
  8944. uts4*)
  8945. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8946. hardcode_libdir_flag_spec='-L$libdir'
  8947. hardcode_shlibpath_var=no
  8948. ;;
  8949. *)
  8950. ld_shlibs=no
  8951. ;;
  8952. esac
  8953. if test sni = "$host_vendor"; then
  8954. case $host in
  8955. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8956. export_dynamic_flag_spec='$wl-Blargedynsym'
  8957. ;;
  8958. esac
  8959. fi
  8960. fi
  8961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8962. $as_echo "$ld_shlibs" >&6; }
  8963. test no = "$ld_shlibs" && can_build_shared=no
  8964. with_gnu_ld=$with_gnu_ld
  8965. #
  8966. # Do we need to explicitly link libc?
  8967. #
  8968. case "x$archive_cmds_need_lc" in
  8969. x|xyes)
  8970. # Assume -lc should be added
  8971. archive_cmds_need_lc=yes
  8972. if test yes,yes = "$GCC,$enable_shared"; then
  8973. case $archive_cmds in
  8974. *'~'*)
  8975. # FIXME: we may have to deal with multi-command sequences.
  8976. ;;
  8977. '$CC '*)
  8978. # Test whether the compiler implicitly links with -lc since on some
  8979. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8980. # to ld, don't add -lc before -lgcc.
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8982. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8983. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. $RM conftest*
  8987. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8988. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8989. (eval $ac_compile) 2>&5
  8990. ac_status=$?
  8991. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8992. test $ac_status = 0; } 2>conftest.err; then
  8993. soname=conftest
  8994. lib=conftest
  8995. libobjs=conftest.$ac_objext
  8996. deplibs=
  8997. wl=$lt_prog_compiler_wl
  8998. pic_flag=$lt_prog_compiler_pic
  8999. compiler_flags=-v
  9000. linker_flags=-v
  9001. verstring=
  9002. output_objdir=.
  9003. libname=conftest
  9004. lt_save_allow_undefined_flag=$allow_undefined_flag
  9005. allow_undefined_flag=
  9006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9007. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9008. ac_status=$?
  9009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9010. test $ac_status = 0; }
  9011. then
  9012. lt_cv_archive_cmds_need_lc=no
  9013. else
  9014. lt_cv_archive_cmds_need_lc=yes
  9015. fi
  9016. allow_undefined_flag=$lt_save_allow_undefined_flag
  9017. else
  9018. cat conftest.err 1>&5
  9019. fi
  9020. $RM conftest*
  9021. fi
  9022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9023. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9024. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9025. ;;
  9026. esac
  9027. fi
  9028. ;;
  9029. esac
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9031. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9032. if test yes = "$GCC"; then
  9033. case $host_os in
  9034. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9035. *) lt_awk_arg='/^libraries:/' ;;
  9036. esac
  9037. case $host_os in
  9038. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9039. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9040. esac
  9041. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9042. case $lt_search_path_spec in
  9043. *\;*)
  9044. # if the path contains ";" then we assume it to be the separator
  9045. # otherwise default to the standard path separator (i.e. ":") - it is
  9046. # assumed that no part of a normal pathname contains ";" but that should
  9047. # okay in the real world where ";" in dirpaths is itself problematic.
  9048. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9049. ;;
  9050. *)
  9051. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9052. ;;
  9053. esac
  9054. # Ok, now we have the path, separated by spaces, we can step through it
  9055. # and add multilib dir if necessary...
  9056. lt_tmp_lt_search_path_spec=
  9057. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9058. # ...but if some path component already ends with the multilib dir we assume
  9059. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9060. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9061. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9062. lt_multi_os_dir=
  9063. ;;
  9064. esac
  9065. for lt_sys_path in $lt_search_path_spec; do
  9066. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9067. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9068. elif test -n "$lt_multi_os_dir"; then
  9069. test -d "$lt_sys_path" && \
  9070. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9071. fi
  9072. done
  9073. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9074. BEGIN {RS = " "; FS = "/|\n";} {
  9075. lt_foo = "";
  9076. lt_count = 0;
  9077. for (lt_i = NF; lt_i > 0; lt_i--) {
  9078. if ($lt_i != "" && $lt_i != ".") {
  9079. if ($lt_i == "..") {
  9080. lt_count++;
  9081. } else {
  9082. if (lt_count == 0) {
  9083. lt_foo = "/" $lt_i lt_foo;
  9084. } else {
  9085. lt_count--;
  9086. }
  9087. }
  9088. }
  9089. }
  9090. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9091. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9092. }'`
  9093. # AWK program above erroneously prepends '/' to C:/dos/paths
  9094. # for these hosts.
  9095. case $host_os in
  9096. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9097. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9098. esac
  9099. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9100. else
  9101. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9102. fi
  9103. library_names_spec=
  9104. libname_spec='lib$name'
  9105. soname_spec=
  9106. shrext_cmds=.so
  9107. postinstall_cmds=
  9108. postuninstall_cmds=
  9109. finish_cmds=
  9110. finish_eval=
  9111. shlibpath_var=
  9112. shlibpath_overrides_runpath=unknown
  9113. version_type=none
  9114. dynamic_linker="$host_os ld.so"
  9115. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9116. need_lib_prefix=unknown
  9117. hardcode_into_libs=no
  9118. # when you set need_version to no, make sure it does not cause -set_version
  9119. # flags to be left without arguments
  9120. need_version=unknown
  9121. case $host_os in
  9122. aix3*)
  9123. version_type=linux # correct to gnu/linux during the next big refactor
  9124. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9125. shlibpath_var=LIBPATH
  9126. # AIX 3 has no versioning support, so we append a major version to the name.
  9127. soname_spec='$libname$release$shared_ext$major'
  9128. ;;
  9129. aix[4-9]*)
  9130. version_type=linux # correct to gnu/linux during the next big refactor
  9131. need_lib_prefix=no
  9132. need_version=no
  9133. hardcode_into_libs=yes
  9134. if test ia64 = "$host_cpu"; then
  9135. # AIX 5 supports IA64
  9136. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9137. shlibpath_var=LD_LIBRARY_PATH
  9138. else
  9139. # With GCC up to 2.95.x, collect2 would create an import file
  9140. # for dependence libraries. The import file would start with
  9141. # the line '#! .'. This would cause the generated library to
  9142. # depend on '.', always an invalid library. This was fixed in
  9143. # development snapshots of GCC prior to 3.0.
  9144. case $host_os in
  9145. aix4 | aix4.[01] | aix4.[01].*)
  9146. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9147. echo ' yes '
  9148. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9149. :
  9150. else
  9151. can_build_shared=no
  9152. fi
  9153. ;;
  9154. esac
  9155. # Using Import Files as archive members, it is possible to support
  9156. # filename-based versioning of shared library archives on AIX. While
  9157. # this would work for both with and without runtime linking, it will
  9158. # prevent static linking of such archives. So we do filename-based
  9159. # shared library versioning with .so extension only, which is used
  9160. # when both runtime linking and shared linking is enabled.
  9161. # Unfortunately, runtime linking may impact performance, so we do
  9162. # not want this to be the default eventually. Also, we use the
  9163. # versioned .so libs for executables only if there is the -brtl
  9164. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9165. # To allow for filename-based versioning support, we need to create
  9166. # libNAME.so.V as an archive file, containing:
  9167. # *) an Import File, referring to the versioned filename of the
  9168. # archive as well as the shared archive member, telling the
  9169. # bitwidth (32 or 64) of that shared object, and providing the
  9170. # list of exported symbols of that shared object, eventually
  9171. # decorated with the 'weak' keyword
  9172. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9173. # it being seen by the linker.
  9174. # At run time we better use the real file rather than another symlink,
  9175. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9176. case $with_aix_soname,$aix_use_runtimelinking in
  9177. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9178. # soname into executable. Probably we can add versioning support to
  9179. # collect2, so additional links can be useful in future.
  9180. aix,yes) # traditional libtool
  9181. dynamic_linker='AIX unversionable lib.so'
  9182. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9183. # instead of lib<name>.a to let people know that these are not
  9184. # typical AIX shared libraries.
  9185. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9186. ;;
  9187. aix,no) # traditional AIX only
  9188. dynamic_linker='AIX lib.a(lib.so.V)'
  9189. # We preserve .a as extension for shared libraries through AIX4.2
  9190. # and later when we are not doing run time linking.
  9191. library_names_spec='$libname$release.a $libname.a'
  9192. soname_spec='$libname$release$shared_ext$major'
  9193. ;;
  9194. svr4,*) # full svr4 only
  9195. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9196. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9197. # We do not specify a path in Import Files, so LIBPATH fires.
  9198. shlibpath_overrides_runpath=yes
  9199. ;;
  9200. *,yes) # both, prefer svr4
  9201. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9202. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9203. # unpreferred sharedlib libNAME.a needs extra handling
  9204. 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"'
  9205. 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"'
  9206. # We do not specify a path in Import Files, so LIBPATH fires.
  9207. shlibpath_overrides_runpath=yes
  9208. ;;
  9209. *,no) # both, prefer aix
  9210. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9211. library_names_spec='$libname$release.a $libname.a'
  9212. soname_spec='$libname$release$shared_ext$major'
  9213. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9214. 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)'
  9215. 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"'
  9216. ;;
  9217. esac
  9218. shlibpath_var=LIBPATH
  9219. fi
  9220. ;;
  9221. amigaos*)
  9222. case $host_cpu in
  9223. powerpc)
  9224. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9225. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9226. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9227. ;;
  9228. m68k)
  9229. library_names_spec='$libname.ixlibrary $libname.a'
  9230. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9231. 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'
  9232. ;;
  9233. esac
  9234. ;;
  9235. beos*)
  9236. library_names_spec='$libname$shared_ext'
  9237. dynamic_linker="$host_os ld.so"
  9238. shlibpath_var=LIBRARY_PATH
  9239. ;;
  9240. bsdi[45]*)
  9241. version_type=linux # correct to gnu/linux during the next big refactor
  9242. need_version=no
  9243. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9244. soname_spec='$libname$release$shared_ext$major'
  9245. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9248. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9249. # the default ld.so.conf also contains /usr/contrib/lib and
  9250. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9251. # libtool to hard-code these into programs
  9252. ;;
  9253. cygwin* | mingw* | pw32* | cegcc*)
  9254. version_type=windows
  9255. shrext_cmds=.dll
  9256. need_version=no
  9257. need_lib_prefix=no
  9258. case $GCC,$cc_basename in
  9259. yes,*)
  9260. # gcc
  9261. library_names_spec='$libname.dll.a'
  9262. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9263. postinstall_cmds='base_file=`basename \$file`~
  9264. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9265. dldir=$destdir/`dirname \$dlpath`~
  9266. test -d \$dldir || mkdir -p \$dldir~
  9267. $install_prog $dir/$dlname \$dldir/$dlname~
  9268. chmod a+x \$dldir/$dlname~
  9269. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9270. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9271. fi'
  9272. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9273. dlpath=$dir/\$dldll~
  9274. $RM \$dlpath'
  9275. shlibpath_overrides_runpath=yes
  9276. case $host_os in
  9277. cygwin*)
  9278. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9279. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9280. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9281. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9282. ;;
  9283. mingw* | cegcc*)
  9284. # MinGW DLLs use traditional 'lib' prefix
  9285. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9286. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9287. ;;
  9288. pw32*)
  9289. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9290. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9291. ;;
  9292. esac
  9293. dynamic_linker='Win32 ld.exe'
  9294. ;;
  9295. *,cl*)
  9296. # Native MSVC
  9297. libname_spec='$name'
  9298. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9299. library_names_spec='$libname.dll.lib'
  9300. case $build_os in
  9301. mingw*)
  9302. sys_lib_search_path_spec=
  9303. lt_save_ifs=$IFS
  9304. IFS=';'
  9305. for lt_path in $LIB
  9306. do
  9307. IFS=$lt_save_ifs
  9308. # Let DOS variable expansion print the short 8.3 style file name.
  9309. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9310. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9311. done
  9312. IFS=$lt_save_ifs
  9313. # Convert to MSYS style.
  9314. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9315. ;;
  9316. cygwin*)
  9317. # Convert to unix form, then to dos form, then back to unix form
  9318. # but this time dos style (no spaces!) so that the unix form looks
  9319. # like /cygdrive/c/PROGRA~1:/cygdr...
  9320. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9321. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9322. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9323. ;;
  9324. *)
  9325. sys_lib_search_path_spec=$LIB
  9326. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9327. # It is most probably a Windows format PATH.
  9328. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9329. else
  9330. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9331. fi
  9332. # FIXME: find the short name or the path components, as spaces are
  9333. # common. (e.g. "Program Files" -> "PROGRA~1")
  9334. ;;
  9335. esac
  9336. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9337. postinstall_cmds='base_file=`basename \$file`~
  9338. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9339. dldir=$destdir/`dirname \$dlpath`~
  9340. test -d \$dldir || mkdir -p \$dldir~
  9341. $install_prog $dir/$dlname \$dldir/$dlname'
  9342. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9343. dlpath=$dir/\$dldll~
  9344. $RM \$dlpath'
  9345. shlibpath_overrides_runpath=yes
  9346. dynamic_linker='Win32 link.exe'
  9347. ;;
  9348. *)
  9349. # Assume MSVC wrapper
  9350. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9351. dynamic_linker='Win32 ld.exe'
  9352. ;;
  9353. esac
  9354. # FIXME: first we should search . and the directory the executable is in
  9355. shlibpath_var=PATH
  9356. ;;
  9357. darwin* | rhapsody*)
  9358. dynamic_linker="$host_os dyld"
  9359. version_type=darwin
  9360. need_lib_prefix=no
  9361. need_version=no
  9362. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9363. soname_spec='$libname$release$major$shared_ext'
  9364. shlibpath_overrides_runpath=yes
  9365. shlibpath_var=DYLD_LIBRARY_PATH
  9366. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9367. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9368. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9369. ;;
  9370. dgux*)
  9371. version_type=linux # correct to gnu/linux during the next big refactor
  9372. need_lib_prefix=no
  9373. need_version=no
  9374. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9375. soname_spec='$libname$release$shared_ext$major'
  9376. shlibpath_var=LD_LIBRARY_PATH
  9377. ;;
  9378. freebsd* | dragonfly* | midnightbsd*)
  9379. # DragonFly does not have aout. When/if they implement a new
  9380. # versioning mechanism, adjust this.
  9381. if test -x /usr/bin/objformat; then
  9382. objformat=`/usr/bin/objformat`
  9383. else
  9384. case $host_os in
  9385. freebsd[23].*) objformat=aout ;;
  9386. *) objformat=elf ;;
  9387. esac
  9388. fi
  9389. version_type=freebsd-$objformat
  9390. case $version_type in
  9391. freebsd-elf*)
  9392. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9393. soname_spec='$libname$release$shared_ext$major'
  9394. need_version=no
  9395. need_lib_prefix=no
  9396. ;;
  9397. freebsd-*)
  9398. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9399. need_version=yes
  9400. ;;
  9401. esac
  9402. shlibpath_var=LD_LIBRARY_PATH
  9403. case $host_os in
  9404. freebsd2.*)
  9405. shlibpath_overrides_runpath=yes
  9406. ;;
  9407. freebsd3.[01]* | freebsdelf3.[01]*)
  9408. shlibpath_overrides_runpath=yes
  9409. hardcode_into_libs=yes
  9410. ;;
  9411. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9412. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9413. shlibpath_overrides_runpath=no
  9414. hardcode_into_libs=yes
  9415. ;;
  9416. *) # from 4.6 on, and DragonFly
  9417. shlibpath_overrides_runpath=yes
  9418. hardcode_into_libs=yes
  9419. ;;
  9420. esac
  9421. ;;
  9422. haiku*)
  9423. version_type=linux # correct to gnu/linux during the next big refactor
  9424. need_lib_prefix=no
  9425. need_version=no
  9426. dynamic_linker="$host_os runtime_loader"
  9427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9428. soname_spec='$libname$release$shared_ext$major'
  9429. shlibpath_var=LIBRARY_PATH
  9430. shlibpath_overrides_runpath=no
  9431. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9432. hardcode_into_libs=yes
  9433. ;;
  9434. hpux9* | hpux10* | hpux11*)
  9435. # Give a soname corresponding to the major version so that dld.sl refuses to
  9436. # link against other versions.
  9437. version_type=sunos
  9438. need_lib_prefix=no
  9439. need_version=no
  9440. case $host_cpu in
  9441. ia64*)
  9442. shrext_cmds='.so'
  9443. hardcode_into_libs=yes
  9444. dynamic_linker="$host_os dld.so"
  9445. shlibpath_var=LD_LIBRARY_PATH
  9446. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9447. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9448. soname_spec='$libname$release$shared_ext$major'
  9449. if test 32 = "$HPUX_IA64_MODE"; then
  9450. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9451. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9452. else
  9453. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9454. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9455. fi
  9456. ;;
  9457. hppa*64*)
  9458. shrext_cmds='.sl'
  9459. hardcode_into_libs=yes
  9460. dynamic_linker="$host_os dld.sl"
  9461. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9462. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9463. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9464. soname_spec='$libname$release$shared_ext$major'
  9465. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9466. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9467. ;;
  9468. *)
  9469. shrext_cmds='.sl'
  9470. dynamic_linker="$host_os dld.sl"
  9471. shlibpath_var=SHLIB_PATH
  9472. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9474. soname_spec='$libname$release$shared_ext$major'
  9475. ;;
  9476. esac
  9477. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9478. postinstall_cmds='chmod 555 $lib'
  9479. # or fails outright, so override atomically:
  9480. install_override_mode=555
  9481. ;;
  9482. interix[3-9]*)
  9483. version_type=linux # correct to gnu/linux during the next big refactor
  9484. need_lib_prefix=no
  9485. need_version=no
  9486. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9487. soname_spec='$libname$release$shared_ext$major'
  9488. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9489. shlibpath_var=LD_LIBRARY_PATH
  9490. shlibpath_overrides_runpath=no
  9491. hardcode_into_libs=yes
  9492. ;;
  9493. irix5* | irix6* | nonstopux*)
  9494. case $host_os in
  9495. nonstopux*) version_type=nonstopux ;;
  9496. *)
  9497. if test yes = "$lt_cv_prog_gnu_ld"; then
  9498. version_type=linux # correct to gnu/linux during the next big refactor
  9499. else
  9500. version_type=irix
  9501. fi ;;
  9502. esac
  9503. need_lib_prefix=no
  9504. need_version=no
  9505. soname_spec='$libname$release$shared_ext$major'
  9506. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9507. case $host_os in
  9508. irix5* | nonstopux*)
  9509. libsuff= shlibsuff=
  9510. ;;
  9511. *)
  9512. case $LD in # libtool.m4 will add one of these switches to LD
  9513. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9514. libsuff= shlibsuff= libmagic=32-bit;;
  9515. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9516. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9517. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9518. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9519. *) libsuff= shlibsuff= libmagic=never-match;;
  9520. esac
  9521. ;;
  9522. esac
  9523. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9524. shlibpath_overrides_runpath=no
  9525. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9526. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9527. hardcode_into_libs=yes
  9528. ;;
  9529. # No shared lib support for Linux oldld, aout, or coff.
  9530. linux*oldld* | linux*aout* | linux*coff*)
  9531. dynamic_linker=no
  9532. ;;
  9533. linux*android*)
  9534. version_type=none # Android doesn't support versioned libraries.
  9535. need_lib_prefix=no
  9536. need_version=no
  9537. library_names_spec='$libname$release$shared_ext'
  9538. soname_spec='$libname$release$shared_ext'
  9539. finish_cmds=
  9540. shlibpath_var=LD_LIBRARY_PATH
  9541. shlibpath_overrides_runpath=yes
  9542. # This implies no fast_install, which is unacceptable.
  9543. # Some rework will be needed to allow for fast_install
  9544. # before this can be enabled.
  9545. hardcode_into_libs=yes
  9546. dynamic_linker='Android linker'
  9547. # Don't embed -rpath directories since the linker doesn't support them.
  9548. hardcode_libdir_flag_spec='-L$libdir'
  9549. ;;
  9550. # This must be glibc/ELF.
  9551. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9552. version_type=linux # correct to gnu/linux during the next big refactor
  9553. need_lib_prefix=no
  9554. need_version=no
  9555. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9556. soname_spec='$libname$release$shared_ext$major'
  9557. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9558. shlibpath_var=LD_LIBRARY_PATH
  9559. shlibpath_overrides_runpath=no
  9560. # Some binutils ld are patched to set DT_RUNPATH
  9561. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9562. $as_echo_n "(cached) " >&6
  9563. else
  9564. lt_cv_shlibpath_overrides_runpath=no
  9565. save_LDFLAGS=$LDFLAGS
  9566. save_libdir=$libdir
  9567. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9568. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9570. /* end confdefs.h. */
  9571. int
  9572. main ()
  9573. {
  9574. ;
  9575. return 0;
  9576. }
  9577. _ACEOF
  9578. if ac_fn_c_try_link "$LINENO"; then :
  9579. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9580. lt_cv_shlibpath_overrides_runpath=yes
  9581. fi
  9582. fi
  9583. rm -f core conftest.err conftest.$ac_objext \
  9584. conftest$ac_exeext conftest.$ac_ext
  9585. LDFLAGS=$save_LDFLAGS
  9586. libdir=$save_libdir
  9587. fi
  9588. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9589. # This implies no fast_install, which is unacceptable.
  9590. # Some rework will be needed to allow for fast_install
  9591. # before this can be enabled.
  9592. hardcode_into_libs=yes
  9593. # Add ABI-specific directories to the system library path.
  9594. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9595. # Ideally, we could use ldconfig to report *all* directores which are
  9596. # searched for libraries, however this is still not possible. Aside from not
  9597. # being certain /sbin/ldconfig is available, command
  9598. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9599. # even though it is searched at run-time. Try to do the best guess by
  9600. # appending ld.so.conf contents (and includes) to the search path.
  9601. if test -f /etc/ld.so.conf; then
  9602. 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' ' '`
  9603. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9604. fi
  9605. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9606. # powerpc, because MkLinux only supported shared libraries with the
  9607. # GNU dynamic linker. Since this was broken with cross compilers,
  9608. # most powerpc-linux boxes support dynamic linking these days and
  9609. # people can always --disable-shared, the test was removed, and we
  9610. # assume the GNU/Linux dynamic linker is in use.
  9611. dynamic_linker='GNU/Linux ld.so'
  9612. ;;
  9613. netbsd*)
  9614. version_type=sunos
  9615. need_lib_prefix=no
  9616. need_version=no
  9617. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9618. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9619. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9620. dynamic_linker='NetBSD (a.out) ld.so'
  9621. else
  9622. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9623. soname_spec='$libname$release$shared_ext$major'
  9624. dynamic_linker='NetBSD ld.elf_so'
  9625. fi
  9626. shlibpath_var=LD_LIBRARY_PATH
  9627. shlibpath_overrides_runpath=yes
  9628. hardcode_into_libs=yes
  9629. ;;
  9630. newsos6)
  9631. version_type=linux # correct to gnu/linux during the next big refactor
  9632. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9633. shlibpath_var=LD_LIBRARY_PATH
  9634. shlibpath_overrides_runpath=yes
  9635. ;;
  9636. *nto* | *qnx*)
  9637. version_type=qnx
  9638. need_lib_prefix=no
  9639. need_version=no
  9640. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9641. soname_spec='$libname$release$shared_ext$major'
  9642. shlibpath_var=LD_LIBRARY_PATH
  9643. shlibpath_overrides_runpath=no
  9644. hardcode_into_libs=yes
  9645. dynamic_linker='ldqnx.so'
  9646. ;;
  9647. openbsd* | bitrig*)
  9648. version_type=sunos
  9649. sys_lib_dlsearch_path_spec=/usr/lib
  9650. need_lib_prefix=no
  9651. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9652. need_version=no
  9653. else
  9654. need_version=yes
  9655. fi
  9656. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9657. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9658. shlibpath_var=LD_LIBRARY_PATH
  9659. shlibpath_overrides_runpath=yes
  9660. ;;
  9661. os2*)
  9662. libname_spec='$name'
  9663. shrext_cmds=.dll
  9664. need_lib_prefix=no
  9665. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9666. # SDL customization: removed versioning support.
  9667. # version_type=windows
  9668. # need_version=no
  9669. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9670. # v=$($ECHO $release$versuffix | tr -d .-);
  9671. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9672. # $ECHO $n$v`$shared_ext'
  9673. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9674. library_names_spec='${libname}_dll.$libext'
  9675. dynamic_linker='OS/2 ld.exe'
  9676. shlibpath_var=BEGINLIBPATH
  9677. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9678. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9679. postinstall_cmds='base_file=`basename \$file`~
  9680. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9681. dldir=$destdir/`dirname \$dlpath`~
  9682. test -d \$dldir || mkdir -p \$dldir~
  9683. $install_prog $dir/$dlname \$dldir/$dlname~
  9684. chmod a+x \$dldir/$dlname~
  9685. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9686. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9687. fi'
  9688. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9689. dlpath=$dir/\$dldll~
  9690. $RM \$dlpath'
  9691. ;;
  9692. osf3* | osf4* | osf5*)
  9693. version_type=osf
  9694. need_lib_prefix=no
  9695. need_version=no
  9696. soname_spec='$libname$release$shared_ext$major'
  9697. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9698. shlibpath_var=LD_LIBRARY_PATH
  9699. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9700. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9701. ;;
  9702. rdos*)
  9703. dynamic_linker=no
  9704. ;;
  9705. solaris*)
  9706. version_type=linux # correct to gnu/linux during the next big refactor
  9707. need_lib_prefix=no
  9708. need_version=no
  9709. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9710. soname_spec='$libname$release$shared_ext$major'
  9711. shlibpath_var=LD_LIBRARY_PATH
  9712. shlibpath_overrides_runpath=yes
  9713. hardcode_into_libs=yes
  9714. # ldd complains unless libraries are executable
  9715. postinstall_cmds='chmod +x $lib'
  9716. ;;
  9717. sunos4*)
  9718. version_type=sunos
  9719. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9720. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9721. shlibpath_var=LD_LIBRARY_PATH
  9722. shlibpath_overrides_runpath=yes
  9723. if test yes = "$with_gnu_ld"; then
  9724. need_lib_prefix=no
  9725. fi
  9726. need_version=yes
  9727. ;;
  9728. sysv4 | sysv4.3*)
  9729. version_type=linux # correct to gnu/linux during the next big refactor
  9730. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9731. soname_spec='$libname$release$shared_ext$major'
  9732. shlibpath_var=LD_LIBRARY_PATH
  9733. case $host_vendor in
  9734. sni)
  9735. shlibpath_overrides_runpath=no
  9736. need_lib_prefix=no
  9737. runpath_var=LD_RUN_PATH
  9738. ;;
  9739. siemens)
  9740. need_lib_prefix=no
  9741. ;;
  9742. motorola)
  9743. need_lib_prefix=no
  9744. need_version=no
  9745. shlibpath_overrides_runpath=no
  9746. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9747. ;;
  9748. esac
  9749. ;;
  9750. sysv4*MP*)
  9751. if test -d /usr/nec; then
  9752. version_type=linux # correct to gnu/linux during the next big refactor
  9753. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9754. soname_spec='$libname$shared_ext.$major'
  9755. shlibpath_var=LD_LIBRARY_PATH
  9756. fi
  9757. ;;
  9758. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9759. version_type=sco
  9760. need_lib_prefix=no
  9761. need_version=no
  9762. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9763. soname_spec='$libname$release$shared_ext$major'
  9764. shlibpath_var=LD_LIBRARY_PATH
  9765. shlibpath_overrides_runpath=yes
  9766. hardcode_into_libs=yes
  9767. if test yes = "$with_gnu_ld"; then
  9768. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9769. else
  9770. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9771. case $host_os in
  9772. sco3.2v5*)
  9773. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9774. ;;
  9775. esac
  9776. fi
  9777. sys_lib_dlsearch_path_spec='/usr/lib'
  9778. ;;
  9779. tpf*)
  9780. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9781. version_type=linux # correct to gnu/linux during the next big refactor
  9782. need_lib_prefix=no
  9783. need_version=no
  9784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9785. shlibpath_var=LD_LIBRARY_PATH
  9786. shlibpath_overrides_runpath=no
  9787. hardcode_into_libs=yes
  9788. ;;
  9789. uts4*)
  9790. version_type=linux # correct to gnu/linux during the next big refactor
  9791. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9792. soname_spec='$libname$release$shared_ext$major'
  9793. shlibpath_var=LD_LIBRARY_PATH
  9794. ;;
  9795. *)
  9796. dynamic_linker=no
  9797. ;;
  9798. esac
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9800. $as_echo "$dynamic_linker" >&6; }
  9801. test no = "$dynamic_linker" && can_build_shared=no
  9802. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9803. if test yes = "$GCC"; then
  9804. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9805. fi
  9806. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9807. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9808. fi
  9809. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9810. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9811. fi
  9812. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9813. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9814. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9815. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9816. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9817. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9819. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9820. hardcode_action=
  9821. if test -n "$hardcode_libdir_flag_spec" ||
  9822. test -n "$runpath_var" ||
  9823. test yes = "$hardcode_automatic"; then
  9824. # We can hardcode non-existent directories.
  9825. if test no != "$hardcode_direct" &&
  9826. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9827. # have to relink, otherwise we might link with an installed library
  9828. # when we should be linking with a yet-to-be-installed one
  9829. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9830. test no != "$hardcode_minus_L"; then
  9831. # Linking always hardcodes the temporary library directory.
  9832. hardcode_action=relink
  9833. else
  9834. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9835. hardcode_action=immediate
  9836. fi
  9837. else
  9838. # We cannot hardcode anything, or else we can only hardcode existing
  9839. # directories.
  9840. hardcode_action=unsupported
  9841. fi
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9843. $as_echo "$hardcode_action" >&6; }
  9844. if test relink = "$hardcode_action" ||
  9845. test yes = "$inherit_rpath"; then
  9846. # Fast installation is not supported
  9847. enable_fast_install=no
  9848. elif test yes = "$shlibpath_overrides_runpath" ||
  9849. test no = "$enable_shared"; then
  9850. # Fast installation is not necessary
  9851. enable_fast_install=needless
  9852. fi
  9853. if test yes != "$enable_dlopen"; then
  9854. enable_dlopen=unknown
  9855. enable_dlopen_self=unknown
  9856. enable_dlopen_self_static=unknown
  9857. else
  9858. lt_cv_dlopen=no
  9859. lt_cv_dlopen_libs=
  9860. case $host_os in
  9861. beos*)
  9862. lt_cv_dlopen=load_add_on
  9863. lt_cv_dlopen_libs=
  9864. lt_cv_dlopen_self=yes
  9865. ;;
  9866. mingw* | pw32* | cegcc*)
  9867. lt_cv_dlopen=LoadLibrary
  9868. lt_cv_dlopen_libs=
  9869. ;;
  9870. cygwin*)
  9871. lt_cv_dlopen=dlopen
  9872. lt_cv_dlopen_libs=
  9873. ;;
  9874. darwin*)
  9875. # if libdl is installed we need to link against it
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9877. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9878. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9879. $as_echo_n "(cached) " >&6
  9880. else
  9881. ac_check_lib_save_LIBS=$LIBS
  9882. LIBS="-ldl $LIBS"
  9883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9884. /* end confdefs.h. */
  9885. /* Override any GCC internal prototype to avoid an error.
  9886. Use char because int might match the return type of a GCC
  9887. builtin and then its argument prototype would still apply. */
  9888. #ifdef __cplusplus
  9889. extern "C"
  9890. #endif
  9891. char dlopen ();
  9892. int
  9893. main ()
  9894. {
  9895. return dlopen ();
  9896. ;
  9897. return 0;
  9898. }
  9899. _ACEOF
  9900. if ac_fn_c_try_link "$LINENO"; then :
  9901. ac_cv_lib_dl_dlopen=yes
  9902. else
  9903. ac_cv_lib_dl_dlopen=no
  9904. fi
  9905. rm -f core conftest.err conftest.$ac_objext \
  9906. conftest$ac_exeext conftest.$ac_ext
  9907. LIBS=$ac_check_lib_save_LIBS
  9908. fi
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9910. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9911. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9912. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9913. else
  9914. lt_cv_dlopen=dyld
  9915. lt_cv_dlopen_libs=
  9916. lt_cv_dlopen_self=yes
  9917. fi
  9918. ;;
  9919. tpf*)
  9920. # Don't try to run any link tests for TPF. We know it's impossible
  9921. # because TPF is a cross-compiler, and we know how we open DSOs.
  9922. lt_cv_dlopen=dlopen
  9923. lt_cv_dlopen_libs=
  9924. lt_cv_dlopen_self=no
  9925. ;;
  9926. *)
  9927. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9928. if test "x$ac_cv_func_shl_load" = xyes; then :
  9929. lt_cv_dlopen=shl_load
  9930. else
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9932. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9933. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9934. $as_echo_n "(cached) " >&6
  9935. else
  9936. ac_check_lib_save_LIBS=$LIBS
  9937. LIBS="-ldld $LIBS"
  9938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9939. /* end confdefs.h. */
  9940. /* Override any GCC internal prototype to avoid an error.
  9941. Use char because int might match the return type of a GCC
  9942. builtin and then its argument prototype would still apply. */
  9943. #ifdef __cplusplus
  9944. extern "C"
  9945. #endif
  9946. char shl_load ();
  9947. int
  9948. main ()
  9949. {
  9950. return shl_load ();
  9951. ;
  9952. return 0;
  9953. }
  9954. _ACEOF
  9955. if ac_fn_c_try_link "$LINENO"; then :
  9956. ac_cv_lib_dld_shl_load=yes
  9957. else
  9958. ac_cv_lib_dld_shl_load=no
  9959. fi
  9960. rm -f core conftest.err conftest.$ac_objext \
  9961. conftest$ac_exeext conftest.$ac_ext
  9962. LIBS=$ac_check_lib_save_LIBS
  9963. fi
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9965. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9966. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9967. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9968. else
  9969. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9970. if test "x$ac_cv_func_dlopen" = xyes; then :
  9971. lt_cv_dlopen=dlopen
  9972. else
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9974. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9975. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9976. $as_echo_n "(cached) " >&6
  9977. else
  9978. ac_check_lib_save_LIBS=$LIBS
  9979. LIBS="-ldl $LIBS"
  9980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9981. /* end confdefs.h. */
  9982. /* Override any GCC internal prototype to avoid an error.
  9983. Use char because int might match the return type of a GCC
  9984. builtin and then its argument prototype would still apply. */
  9985. #ifdef __cplusplus
  9986. extern "C"
  9987. #endif
  9988. char dlopen ();
  9989. int
  9990. main ()
  9991. {
  9992. return dlopen ();
  9993. ;
  9994. return 0;
  9995. }
  9996. _ACEOF
  9997. if ac_fn_c_try_link "$LINENO"; then :
  9998. ac_cv_lib_dl_dlopen=yes
  9999. else
  10000. ac_cv_lib_dl_dlopen=no
  10001. fi
  10002. rm -f core conftest.err conftest.$ac_objext \
  10003. conftest$ac_exeext conftest.$ac_ext
  10004. LIBS=$ac_check_lib_save_LIBS
  10005. fi
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10007. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10008. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10009. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10010. else
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10012. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10013. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10014. $as_echo_n "(cached) " >&6
  10015. else
  10016. ac_check_lib_save_LIBS=$LIBS
  10017. LIBS="-lsvld $LIBS"
  10018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10019. /* end confdefs.h. */
  10020. /* Override any GCC internal prototype to avoid an error.
  10021. Use char because int might match the return type of a GCC
  10022. builtin and then its argument prototype would still apply. */
  10023. #ifdef __cplusplus
  10024. extern "C"
  10025. #endif
  10026. char dlopen ();
  10027. int
  10028. main ()
  10029. {
  10030. return dlopen ();
  10031. ;
  10032. return 0;
  10033. }
  10034. _ACEOF
  10035. if ac_fn_c_try_link "$LINENO"; then :
  10036. ac_cv_lib_svld_dlopen=yes
  10037. else
  10038. ac_cv_lib_svld_dlopen=no
  10039. fi
  10040. rm -f core conftest.err conftest.$ac_objext \
  10041. conftest$ac_exeext conftest.$ac_ext
  10042. LIBS=$ac_check_lib_save_LIBS
  10043. fi
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10045. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10046. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10047. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10048. else
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10050. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10051. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10052. $as_echo_n "(cached) " >&6
  10053. else
  10054. ac_check_lib_save_LIBS=$LIBS
  10055. LIBS="-ldld $LIBS"
  10056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10057. /* end confdefs.h. */
  10058. /* Override any GCC internal prototype to avoid an error.
  10059. Use char because int might match the return type of a GCC
  10060. builtin and then its argument prototype would still apply. */
  10061. #ifdef __cplusplus
  10062. extern "C"
  10063. #endif
  10064. char dld_link ();
  10065. int
  10066. main ()
  10067. {
  10068. return dld_link ();
  10069. ;
  10070. return 0;
  10071. }
  10072. _ACEOF
  10073. if ac_fn_c_try_link "$LINENO"; then :
  10074. ac_cv_lib_dld_dld_link=yes
  10075. else
  10076. ac_cv_lib_dld_dld_link=no
  10077. fi
  10078. rm -f core conftest.err conftest.$ac_objext \
  10079. conftest$ac_exeext conftest.$ac_ext
  10080. LIBS=$ac_check_lib_save_LIBS
  10081. fi
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10083. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10084. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10085. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10086. fi
  10087. fi
  10088. fi
  10089. fi
  10090. fi
  10091. fi
  10092. ;;
  10093. esac
  10094. if test no = "$lt_cv_dlopen"; then
  10095. enable_dlopen=no
  10096. else
  10097. enable_dlopen=yes
  10098. fi
  10099. case $lt_cv_dlopen in
  10100. dlopen)
  10101. save_CPPFLAGS=$CPPFLAGS
  10102. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10103. save_LDFLAGS=$LDFLAGS
  10104. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10105. save_LIBS=$LIBS
  10106. LIBS="$lt_cv_dlopen_libs $LIBS"
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10108. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10109. if ${lt_cv_dlopen_self+:} false; then :
  10110. $as_echo_n "(cached) " >&6
  10111. else
  10112. if test yes = "$cross_compiling"; then :
  10113. lt_cv_dlopen_self=cross
  10114. else
  10115. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10116. lt_status=$lt_dlunknown
  10117. cat > conftest.$ac_ext <<_LT_EOF
  10118. #line $LINENO "configure"
  10119. #include "confdefs.h"
  10120. #if HAVE_DLFCN_H
  10121. #include <dlfcn.h>
  10122. #endif
  10123. #include <stdio.h>
  10124. #ifdef RTLD_GLOBAL
  10125. # define LT_DLGLOBAL RTLD_GLOBAL
  10126. #else
  10127. # ifdef DL_GLOBAL
  10128. # define LT_DLGLOBAL DL_GLOBAL
  10129. # else
  10130. # define LT_DLGLOBAL 0
  10131. # endif
  10132. #endif
  10133. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10134. find out it does not work in some platform. */
  10135. #ifndef LT_DLLAZY_OR_NOW
  10136. # ifdef RTLD_LAZY
  10137. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10138. # else
  10139. # ifdef DL_LAZY
  10140. # define LT_DLLAZY_OR_NOW DL_LAZY
  10141. # else
  10142. # ifdef RTLD_NOW
  10143. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10144. # else
  10145. # ifdef DL_NOW
  10146. # define LT_DLLAZY_OR_NOW DL_NOW
  10147. # else
  10148. # define LT_DLLAZY_OR_NOW 0
  10149. # endif
  10150. # endif
  10151. # endif
  10152. # endif
  10153. #endif
  10154. /* When -fvisibility=hidden is used, assume the code has been annotated
  10155. correspondingly for the symbols needed. */
  10156. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10157. int fnord () __attribute__((visibility("default")));
  10158. #endif
  10159. int fnord () { return 42; }
  10160. int main ()
  10161. {
  10162. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10163. int status = $lt_dlunknown;
  10164. if (self)
  10165. {
  10166. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10167. else
  10168. {
  10169. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10170. else puts (dlerror ());
  10171. }
  10172. /* dlclose (self); */
  10173. }
  10174. else
  10175. puts (dlerror ());
  10176. return status;
  10177. }
  10178. _LT_EOF
  10179. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10180. (eval $ac_link) 2>&5
  10181. ac_status=$?
  10182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10183. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10184. (./conftest; exit; ) >&5 2>/dev/null
  10185. lt_status=$?
  10186. case x$lt_status in
  10187. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10188. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10189. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10190. esac
  10191. else :
  10192. # compilation failed
  10193. lt_cv_dlopen_self=no
  10194. fi
  10195. fi
  10196. rm -fr conftest*
  10197. fi
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10199. $as_echo "$lt_cv_dlopen_self" >&6; }
  10200. if test yes = "$lt_cv_dlopen_self"; then
  10201. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10203. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10204. if ${lt_cv_dlopen_self_static+:} false; then :
  10205. $as_echo_n "(cached) " >&6
  10206. else
  10207. if test yes = "$cross_compiling"; then :
  10208. lt_cv_dlopen_self_static=cross
  10209. else
  10210. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10211. lt_status=$lt_dlunknown
  10212. cat > conftest.$ac_ext <<_LT_EOF
  10213. #line $LINENO "configure"
  10214. #include "confdefs.h"
  10215. #if HAVE_DLFCN_H
  10216. #include <dlfcn.h>
  10217. #endif
  10218. #include <stdio.h>
  10219. #ifdef RTLD_GLOBAL
  10220. # define LT_DLGLOBAL RTLD_GLOBAL
  10221. #else
  10222. # ifdef DL_GLOBAL
  10223. # define LT_DLGLOBAL DL_GLOBAL
  10224. # else
  10225. # define LT_DLGLOBAL 0
  10226. # endif
  10227. #endif
  10228. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10229. find out it does not work in some platform. */
  10230. #ifndef LT_DLLAZY_OR_NOW
  10231. # ifdef RTLD_LAZY
  10232. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10233. # else
  10234. # ifdef DL_LAZY
  10235. # define LT_DLLAZY_OR_NOW DL_LAZY
  10236. # else
  10237. # ifdef RTLD_NOW
  10238. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10239. # else
  10240. # ifdef DL_NOW
  10241. # define LT_DLLAZY_OR_NOW DL_NOW
  10242. # else
  10243. # define LT_DLLAZY_OR_NOW 0
  10244. # endif
  10245. # endif
  10246. # endif
  10247. # endif
  10248. #endif
  10249. /* When -fvisibility=hidden is used, assume the code has been annotated
  10250. correspondingly for the symbols needed. */
  10251. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10252. int fnord () __attribute__((visibility("default")));
  10253. #endif
  10254. int fnord () { return 42; }
  10255. int main ()
  10256. {
  10257. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10258. int status = $lt_dlunknown;
  10259. if (self)
  10260. {
  10261. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10262. else
  10263. {
  10264. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10265. else puts (dlerror ());
  10266. }
  10267. /* dlclose (self); */
  10268. }
  10269. else
  10270. puts (dlerror ());
  10271. return status;
  10272. }
  10273. _LT_EOF
  10274. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10275. (eval $ac_link) 2>&5
  10276. ac_status=$?
  10277. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10278. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10279. (./conftest; exit; ) >&5 2>/dev/null
  10280. lt_status=$?
  10281. case x$lt_status in
  10282. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10283. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10284. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10285. esac
  10286. else :
  10287. # compilation failed
  10288. lt_cv_dlopen_self_static=no
  10289. fi
  10290. fi
  10291. rm -fr conftest*
  10292. fi
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10294. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10295. fi
  10296. CPPFLAGS=$save_CPPFLAGS
  10297. LDFLAGS=$save_LDFLAGS
  10298. LIBS=$save_LIBS
  10299. ;;
  10300. esac
  10301. case $lt_cv_dlopen_self in
  10302. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10303. *) enable_dlopen_self=unknown ;;
  10304. esac
  10305. case $lt_cv_dlopen_self_static in
  10306. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10307. *) enable_dlopen_self_static=unknown ;;
  10308. esac
  10309. fi
  10310. striplib=
  10311. old_striplib=
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10313. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10314. if test -z "$STRIP"; then
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10316. $as_echo "no" >&6; }
  10317. else
  10318. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10319. old_striplib="$STRIP --strip-debug"
  10320. striplib="$STRIP --strip-unneeded"
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10322. $as_echo "yes" >&6; }
  10323. else
  10324. case $host_os in
  10325. darwin*)
  10326. # FIXME - insert some real tests, host_os isn't really good enough
  10327. striplib="$STRIP -x"
  10328. old_striplib="$STRIP -S"
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10330. $as_echo "yes" >&6; }
  10331. ;;
  10332. freebsd*)
  10333. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10334. old_striplib="$STRIP --strip-debug"
  10335. striplib="$STRIP --strip-unneeded"
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10337. $as_echo "yes" >&6; }
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10340. $as_echo "no" >&6; }
  10341. fi
  10342. ;;
  10343. *)
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10345. $as_echo "no" >&6; }
  10346. ;;
  10347. esac
  10348. fi
  10349. fi
  10350. # Report what library types will actually be built
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10352. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10354. $as_echo "$can_build_shared" >&6; }
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10356. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10357. test no = "$can_build_shared" && enable_shared=no
  10358. # On AIX, shared libraries and static libraries use the same namespace, and
  10359. # are all built from PIC.
  10360. case $host_os in
  10361. aix3*)
  10362. test yes = "$enable_shared" && enable_static=no
  10363. if test -n "$RANLIB"; then
  10364. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10365. postinstall_cmds='$RANLIB $lib'
  10366. fi
  10367. ;;
  10368. aix[4-9]*)
  10369. if test ia64 != "$host_cpu"; then
  10370. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10371. yes,aix,yes) ;; # shared object as lib.so file only
  10372. yes,svr4,*) ;; # shared object as lib.so archive member only
  10373. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10374. esac
  10375. fi
  10376. ;;
  10377. esac
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10379. $as_echo "$enable_shared" >&6; }
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10381. $as_echo_n "checking whether to build static libraries... " >&6; }
  10382. # Make sure either enable_shared or enable_static is yes.
  10383. test yes = "$enable_shared" || enable_static=yes
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10385. $as_echo "$enable_static" >&6; }
  10386. fi
  10387. ac_ext=c
  10388. ac_cpp='$CPP $CPPFLAGS'
  10389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10392. CC=$lt_save_CC
  10393. ac_config_commands="$ac_config_commands libtool"
  10394. # Only expand once:
  10395. if test -n "$ac_tool_prefix"; then
  10396. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10397. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10399. $as_echo_n "checking for $ac_word... " >&6; }
  10400. if ${ac_cv_prog_RC+:} false; then :
  10401. $as_echo_n "(cached) " >&6
  10402. else
  10403. if test -n "$RC"; then
  10404. ac_cv_prog_RC="$RC" # Let the user override the test.
  10405. else
  10406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10407. for as_dir in $PATH
  10408. do
  10409. IFS=$as_save_IFS
  10410. test -z "$as_dir" && as_dir=.
  10411. for ac_exec_ext in '' $ac_executable_extensions; do
  10412. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10413. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10415. break 2
  10416. fi
  10417. done
  10418. done
  10419. IFS=$as_save_IFS
  10420. fi
  10421. fi
  10422. RC=$ac_cv_prog_RC
  10423. if test -n "$RC"; then
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10425. $as_echo "$RC" >&6; }
  10426. else
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10428. $as_echo "no" >&6; }
  10429. fi
  10430. fi
  10431. if test -z "$ac_cv_prog_RC"; then
  10432. ac_ct_RC=$RC
  10433. # Extract the first word of "windres", so it can be a program name with args.
  10434. set dummy windres; ac_word=$2
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10436. $as_echo_n "checking for $ac_word... " >&6; }
  10437. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. if test -n "$ac_ct_RC"; then
  10441. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10442. else
  10443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10444. for as_dir in $PATH
  10445. do
  10446. IFS=$as_save_IFS
  10447. test -z "$as_dir" && as_dir=.
  10448. for ac_exec_ext in '' $ac_executable_extensions; do
  10449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10450. ac_cv_prog_ac_ct_RC="windres"
  10451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10452. break 2
  10453. fi
  10454. done
  10455. done
  10456. IFS=$as_save_IFS
  10457. fi
  10458. fi
  10459. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10460. if test -n "$ac_ct_RC"; then
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10462. $as_echo "$ac_ct_RC" >&6; }
  10463. else
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10465. $as_echo "no" >&6; }
  10466. fi
  10467. if test "x$ac_ct_RC" = x; then
  10468. RC=""
  10469. else
  10470. case $cross_compiling:$ac_tool_warned in
  10471. yes:)
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10473. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10474. ac_tool_warned=yes ;;
  10475. esac
  10476. RC=$ac_ct_RC
  10477. fi
  10478. else
  10479. RC="$ac_cv_prog_RC"
  10480. fi
  10481. # Source file extension for RC test sources.
  10482. ac_ext=rc
  10483. # Object file extension for compiled RC test sources.
  10484. objext=o
  10485. objext_RC=$objext
  10486. # Code to be used in simple compile tests
  10487. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10488. # Code to be used in simple link tests
  10489. lt_simple_link_test_code=$lt_simple_compile_test_code
  10490. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10491. # If no C compiler was specified, use CC.
  10492. LTCC=${LTCC-"$CC"}
  10493. # If no C compiler flags were specified, use CFLAGS.
  10494. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10495. # Allow CC to be a program name with arguments.
  10496. compiler=$CC
  10497. # save warnings/boilerplate of simple test code
  10498. ac_outfile=conftest.$ac_objext
  10499. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10500. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10501. _lt_compiler_boilerplate=`cat conftest.err`
  10502. $RM conftest*
  10503. ac_outfile=conftest.$ac_objext
  10504. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10505. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10506. _lt_linker_boilerplate=`cat conftest.err`
  10507. $RM -r conftest*
  10508. # Allow CC to be a program name with arguments.
  10509. lt_save_CC=$CC
  10510. lt_save_CFLAGS=$CFLAGS
  10511. lt_save_GCC=$GCC
  10512. GCC=
  10513. CC=${RC-"windres"}
  10514. CFLAGS=
  10515. compiler=$CC
  10516. compiler_RC=$CC
  10517. func_cc_basename $compiler
  10518. cc_basename=$func_cc_basename_result
  10519. lt_cv_prog_compiler_c_o_RC=yes
  10520. if test -n "$compiler"; then
  10521. :
  10522. fi
  10523. GCC=$lt_save_GCC
  10524. ac_ext=c
  10525. ac_cpp='$CPP $CPPFLAGS'
  10526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10529. CC=$lt_save_CC
  10530. CFLAGS=$lt_save_CFLAGS
  10531. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10532. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10533. LT_REVISION=$SDL_INTERFACE_AGE
  10534. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10535. ac_ext=c
  10536. ac_cpp='$CPP $CPPFLAGS'
  10537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10540. if test -n "$ac_tool_prefix"; then
  10541. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10542. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10544. $as_echo_n "checking for $ac_word... " >&6; }
  10545. if ${ac_cv_prog_CC+:} false; then :
  10546. $as_echo_n "(cached) " >&6
  10547. else
  10548. if test -n "$CC"; then
  10549. ac_cv_prog_CC="$CC" # Let the user override the test.
  10550. else
  10551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10552. for as_dir in $PATH
  10553. do
  10554. IFS=$as_save_IFS
  10555. test -z "$as_dir" && as_dir=.
  10556. for ac_exec_ext in '' $ac_executable_extensions; do
  10557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10558. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10560. break 2
  10561. fi
  10562. done
  10563. done
  10564. IFS=$as_save_IFS
  10565. fi
  10566. fi
  10567. CC=$ac_cv_prog_CC
  10568. if test -n "$CC"; then
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10570. $as_echo "$CC" >&6; }
  10571. else
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10573. $as_echo "no" >&6; }
  10574. fi
  10575. fi
  10576. if test -z "$ac_cv_prog_CC"; then
  10577. ac_ct_CC=$CC
  10578. # Extract the first word of "gcc", so it can be a program name with args.
  10579. set dummy gcc; ac_word=$2
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10581. $as_echo_n "checking for $ac_word... " >&6; }
  10582. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10583. $as_echo_n "(cached) " >&6
  10584. else
  10585. if test -n "$ac_ct_CC"; then
  10586. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10587. else
  10588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10589. for as_dir in $PATH
  10590. do
  10591. IFS=$as_save_IFS
  10592. test -z "$as_dir" && as_dir=.
  10593. for ac_exec_ext in '' $ac_executable_extensions; do
  10594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10595. ac_cv_prog_ac_ct_CC="gcc"
  10596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10597. break 2
  10598. fi
  10599. done
  10600. done
  10601. IFS=$as_save_IFS
  10602. fi
  10603. fi
  10604. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10605. if test -n "$ac_ct_CC"; then
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10607. $as_echo "$ac_ct_CC" >&6; }
  10608. else
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10610. $as_echo "no" >&6; }
  10611. fi
  10612. if test "x$ac_ct_CC" = x; then
  10613. CC=""
  10614. else
  10615. case $cross_compiling:$ac_tool_warned in
  10616. yes:)
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10619. ac_tool_warned=yes ;;
  10620. esac
  10621. CC=$ac_ct_CC
  10622. fi
  10623. else
  10624. CC="$ac_cv_prog_CC"
  10625. fi
  10626. if test -z "$CC"; then
  10627. if test -n "$ac_tool_prefix"; then
  10628. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10629. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10631. $as_echo_n "checking for $ac_word... " >&6; }
  10632. if ${ac_cv_prog_CC+:} false; then :
  10633. $as_echo_n "(cached) " >&6
  10634. else
  10635. if test -n "$CC"; then
  10636. ac_cv_prog_CC="$CC" # Let the user override the test.
  10637. else
  10638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10639. for as_dir in $PATH
  10640. do
  10641. IFS=$as_save_IFS
  10642. test -z "$as_dir" && as_dir=.
  10643. for ac_exec_ext in '' $ac_executable_extensions; do
  10644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10645. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10647. break 2
  10648. fi
  10649. done
  10650. done
  10651. IFS=$as_save_IFS
  10652. fi
  10653. fi
  10654. CC=$ac_cv_prog_CC
  10655. if test -n "$CC"; then
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10657. $as_echo "$CC" >&6; }
  10658. else
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10660. $as_echo "no" >&6; }
  10661. fi
  10662. fi
  10663. fi
  10664. if test -z "$CC"; then
  10665. # Extract the first word of "cc", so it can be a program name with args.
  10666. set dummy cc; ac_word=$2
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10668. $as_echo_n "checking for $ac_word... " >&6; }
  10669. if ${ac_cv_prog_CC+:} false; then :
  10670. $as_echo_n "(cached) " >&6
  10671. else
  10672. if test -n "$CC"; then
  10673. ac_cv_prog_CC="$CC" # Let the user override the test.
  10674. else
  10675. ac_prog_rejected=no
  10676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10677. for as_dir in $PATH
  10678. do
  10679. IFS=$as_save_IFS
  10680. test -z "$as_dir" && as_dir=.
  10681. for ac_exec_ext in '' $ac_executable_extensions; do
  10682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10683. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10684. ac_prog_rejected=yes
  10685. continue
  10686. fi
  10687. ac_cv_prog_CC="cc"
  10688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10689. break 2
  10690. fi
  10691. done
  10692. done
  10693. IFS=$as_save_IFS
  10694. if test $ac_prog_rejected = yes; then
  10695. # We found a bogon in the path, so make sure we never use it.
  10696. set dummy $ac_cv_prog_CC
  10697. shift
  10698. if test $# != 0; then
  10699. # We chose a different compiler from the bogus one.
  10700. # However, it has the same basename, so the bogon will be chosen
  10701. # first if we set CC to just the basename; use the full file name.
  10702. shift
  10703. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10704. fi
  10705. fi
  10706. fi
  10707. fi
  10708. CC=$ac_cv_prog_CC
  10709. if test -n "$CC"; then
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10711. $as_echo "$CC" >&6; }
  10712. else
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10714. $as_echo "no" >&6; }
  10715. fi
  10716. fi
  10717. if test -z "$CC"; then
  10718. if test -n "$ac_tool_prefix"; then
  10719. for ac_prog in cl.exe
  10720. do
  10721. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10722. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10724. $as_echo_n "checking for $ac_word... " >&6; }
  10725. if ${ac_cv_prog_CC+:} false; then :
  10726. $as_echo_n "(cached) " >&6
  10727. else
  10728. if test -n "$CC"; then
  10729. ac_cv_prog_CC="$CC" # Let the user override the test.
  10730. else
  10731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10732. for as_dir in $PATH
  10733. do
  10734. IFS=$as_save_IFS
  10735. test -z "$as_dir" && as_dir=.
  10736. for ac_exec_ext in '' $ac_executable_extensions; do
  10737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10738. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10740. break 2
  10741. fi
  10742. done
  10743. done
  10744. IFS=$as_save_IFS
  10745. fi
  10746. fi
  10747. CC=$ac_cv_prog_CC
  10748. if test -n "$CC"; then
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10750. $as_echo "$CC" >&6; }
  10751. else
  10752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10753. $as_echo "no" >&6; }
  10754. fi
  10755. test -n "$CC" && break
  10756. done
  10757. fi
  10758. if test -z "$CC"; then
  10759. ac_ct_CC=$CC
  10760. for ac_prog in cl.exe
  10761. do
  10762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10763. set dummy $ac_prog; ac_word=$2
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10765. $as_echo_n "checking for $ac_word... " >&6; }
  10766. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10767. $as_echo_n "(cached) " >&6
  10768. else
  10769. if test -n "$ac_ct_CC"; then
  10770. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10771. else
  10772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10773. for as_dir in $PATH
  10774. do
  10775. IFS=$as_save_IFS
  10776. test -z "$as_dir" && as_dir=.
  10777. for ac_exec_ext in '' $ac_executable_extensions; do
  10778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10779. ac_cv_prog_ac_ct_CC="$ac_prog"
  10780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10781. break 2
  10782. fi
  10783. done
  10784. done
  10785. IFS=$as_save_IFS
  10786. fi
  10787. fi
  10788. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10789. if test -n "$ac_ct_CC"; then
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10791. $as_echo "$ac_ct_CC" >&6; }
  10792. else
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10794. $as_echo "no" >&6; }
  10795. fi
  10796. test -n "$ac_ct_CC" && break
  10797. done
  10798. if test "x$ac_ct_CC" = x; then
  10799. CC=""
  10800. else
  10801. case $cross_compiling:$ac_tool_warned in
  10802. yes:)
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10805. ac_tool_warned=yes ;;
  10806. esac
  10807. CC=$ac_ct_CC
  10808. fi
  10809. fi
  10810. fi
  10811. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10812. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10813. as_fn_error $? "no acceptable C compiler found in \$PATH
  10814. See \`config.log' for more details" "$LINENO" 5; }
  10815. # Provide some information about the compiler.
  10816. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10817. set X $ac_compile
  10818. ac_compiler=$2
  10819. for ac_option in --version -v -V -qversion; do
  10820. { { ac_try="$ac_compiler $ac_option >&5"
  10821. case "(($ac_try" in
  10822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10823. *) ac_try_echo=$ac_try;;
  10824. esac
  10825. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10826. $as_echo "$ac_try_echo"; } >&5
  10827. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10828. ac_status=$?
  10829. if test -s conftest.err; then
  10830. sed '10a\
  10831. ... rest of stderr output deleted ...
  10832. 10q' conftest.err >conftest.er1
  10833. cat conftest.er1 >&5
  10834. fi
  10835. rm -f conftest.er1 conftest.err
  10836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10837. test $ac_status = 0; }
  10838. done
  10839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10840. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10841. if ${ac_cv_c_compiler_gnu+:} false; then :
  10842. $as_echo_n "(cached) " >&6
  10843. else
  10844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10845. /* end confdefs.h. */
  10846. int
  10847. main ()
  10848. {
  10849. #ifndef __GNUC__
  10850. choke me
  10851. #endif
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. if ac_fn_c_try_compile "$LINENO"; then :
  10857. ac_compiler_gnu=yes
  10858. else
  10859. ac_compiler_gnu=no
  10860. fi
  10861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10862. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10863. fi
  10864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10865. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10866. if test $ac_compiler_gnu = yes; then
  10867. GCC=yes
  10868. else
  10869. GCC=
  10870. fi
  10871. ac_test_CFLAGS=${CFLAGS+set}
  10872. ac_save_CFLAGS=$CFLAGS
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10874. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10875. if ${ac_cv_prog_cc_g+:} false; then :
  10876. $as_echo_n "(cached) " >&6
  10877. else
  10878. ac_save_c_werror_flag=$ac_c_werror_flag
  10879. ac_c_werror_flag=yes
  10880. ac_cv_prog_cc_g=no
  10881. CFLAGS="-g"
  10882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10883. /* end confdefs.h. */
  10884. int
  10885. main ()
  10886. {
  10887. ;
  10888. return 0;
  10889. }
  10890. _ACEOF
  10891. if ac_fn_c_try_compile "$LINENO"; then :
  10892. ac_cv_prog_cc_g=yes
  10893. else
  10894. CFLAGS=""
  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. else
  10906. ac_c_werror_flag=$ac_save_c_werror_flag
  10907. CFLAGS="-g"
  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. ac_cv_prog_cc_g=yes
  10919. fi
  10920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10921. fi
  10922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10923. fi
  10924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10925. ac_c_werror_flag=$ac_save_c_werror_flag
  10926. fi
  10927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10928. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10929. if test "$ac_test_CFLAGS" = set; then
  10930. CFLAGS=$ac_save_CFLAGS
  10931. elif test $ac_cv_prog_cc_g = yes; then
  10932. if test "$GCC" = yes; then
  10933. CFLAGS="-g -O2"
  10934. else
  10935. CFLAGS="-g"
  10936. fi
  10937. else
  10938. if test "$GCC" = yes; then
  10939. CFLAGS="-O2"
  10940. else
  10941. CFLAGS=
  10942. fi
  10943. fi
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10945. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10946. if ${ac_cv_prog_cc_c89+:} false; then :
  10947. $as_echo_n "(cached) " >&6
  10948. else
  10949. ac_cv_prog_cc_c89=no
  10950. ac_save_CC=$CC
  10951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10952. /* end confdefs.h. */
  10953. #include <stdarg.h>
  10954. #include <stdio.h>
  10955. struct stat;
  10956. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10957. struct buf { int x; };
  10958. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10959. static char *e (p, i)
  10960. char **p;
  10961. int i;
  10962. {
  10963. return p[i];
  10964. }
  10965. static char *f (char * (*g) (char **, int), char **p, ...)
  10966. {
  10967. char *s;
  10968. va_list v;
  10969. va_start (v,p);
  10970. s = g (p, va_arg (v,int));
  10971. va_end (v);
  10972. return s;
  10973. }
  10974. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10975. function prototypes and stuff, but not '\xHH' hex character constants.
  10976. These don't provoke an error unfortunately, instead are silently treated
  10977. as 'x'. The following induces an error, until -std is added to get
  10978. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10979. array size at least. It's necessary to write '\x00'==0 to get something
  10980. that's true only with -std. */
  10981. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10982. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10983. inside strings and character constants. */
  10984. #define FOO(x) 'x'
  10985. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10986. int test (int i, double x);
  10987. struct s1 {int (*f) (int a);};
  10988. struct s2 {int (*f) (double a);};
  10989. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10990. int argc;
  10991. char **argv;
  10992. int
  10993. main ()
  10994. {
  10995. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10996. ;
  10997. return 0;
  10998. }
  10999. _ACEOF
  11000. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11001. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11002. do
  11003. CC="$ac_save_CC $ac_arg"
  11004. if ac_fn_c_try_compile "$LINENO"; then :
  11005. ac_cv_prog_cc_c89=$ac_arg
  11006. fi
  11007. rm -f core conftest.err conftest.$ac_objext
  11008. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11009. done
  11010. rm -f conftest.$ac_ext
  11011. CC=$ac_save_CC
  11012. fi
  11013. # AC_CACHE_VAL
  11014. case "x$ac_cv_prog_cc_c89" in
  11015. x)
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11017. $as_echo "none needed" >&6; } ;;
  11018. xno)
  11019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11020. $as_echo "unsupported" >&6; } ;;
  11021. *)
  11022. CC="$CC $ac_cv_prog_cc_c89"
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11024. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11025. esac
  11026. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11027. fi
  11028. ac_ext=c
  11029. ac_cpp='$CPP $CPPFLAGS'
  11030. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11031. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11032. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11033. ac_ext=cpp
  11034. ac_cpp='$CXXCPP $CPPFLAGS'
  11035. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11036. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11037. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11038. if test -z "$CXX"; then
  11039. if test -n "$CCC"; then
  11040. CXX=$CCC
  11041. else
  11042. if test -n "$ac_tool_prefix"; then
  11043. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11044. do
  11045. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11046. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11048. $as_echo_n "checking for $ac_word... " >&6; }
  11049. if ${ac_cv_prog_CXX+:} false; then :
  11050. $as_echo_n "(cached) " >&6
  11051. else
  11052. if test -n "$CXX"; then
  11053. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11054. else
  11055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11056. for as_dir in $PATH
  11057. do
  11058. IFS=$as_save_IFS
  11059. test -z "$as_dir" && as_dir=.
  11060. for ac_exec_ext in '' $ac_executable_extensions; do
  11061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11062. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11064. break 2
  11065. fi
  11066. done
  11067. done
  11068. IFS=$as_save_IFS
  11069. fi
  11070. fi
  11071. CXX=$ac_cv_prog_CXX
  11072. if test -n "$CXX"; then
  11073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11074. $as_echo "$CXX" >&6; }
  11075. else
  11076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11077. $as_echo "no" >&6; }
  11078. fi
  11079. test -n "$CXX" && break
  11080. done
  11081. fi
  11082. if test -z "$CXX"; then
  11083. ac_ct_CXX=$CXX
  11084. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11085. do
  11086. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11087. set dummy $ac_prog; ac_word=$2
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11089. $as_echo_n "checking for $ac_word... " >&6; }
  11090. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11091. $as_echo_n "(cached) " >&6
  11092. else
  11093. if test -n "$ac_ct_CXX"; then
  11094. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11095. else
  11096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11097. for as_dir in $PATH
  11098. do
  11099. IFS=$as_save_IFS
  11100. test -z "$as_dir" && as_dir=.
  11101. for ac_exec_ext in '' $ac_executable_extensions; do
  11102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11103. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11105. break 2
  11106. fi
  11107. done
  11108. done
  11109. IFS=$as_save_IFS
  11110. fi
  11111. fi
  11112. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11113. if test -n "$ac_ct_CXX"; then
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11115. $as_echo "$ac_ct_CXX" >&6; }
  11116. else
  11117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11118. $as_echo "no" >&6; }
  11119. fi
  11120. test -n "$ac_ct_CXX" && break
  11121. done
  11122. if test "x$ac_ct_CXX" = x; then
  11123. CXX="g++"
  11124. else
  11125. case $cross_compiling:$ac_tool_warned in
  11126. yes:)
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11129. ac_tool_warned=yes ;;
  11130. esac
  11131. CXX=$ac_ct_CXX
  11132. fi
  11133. fi
  11134. fi
  11135. fi
  11136. # Provide some information about the compiler.
  11137. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11138. set X $ac_compile
  11139. ac_compiler=$2
  11140. for ac_option in --version -v -V -qversion; do
  11141. { { ac_try="$ac_compiler $ac_option >&5"
  11142. case "(($ac_try" in
  11143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11144. *) ac_try_echo=$ac_try;;
  11145. esac
  11146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11147. $as_echo "$ac_try_echo"; } >&5
  11148. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11149. ac_status=$?
  11150. if test -s conftest.err; then
  11151. sed '10a\
  11152. ... rest of stderr output deleted ...
  11153. 10q' conftest.err >conftest.er1
  11154. cat conftest.er1 >&5
  11155. fi
  11156. rm -f conftest.er1 conftest.err
  11157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11158. test $ac_status = 0; }
  11159. done
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11161. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11162. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11163. $as_echo_n "(cached) " >&6
  11164. else
  11165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11166. /* end confdefs.h. */
  11167. int
  11168. main ()
  11169. {
  11170. #ifndef __GNUC__
  11171. choke me
  11172. #endif
  11173. ;
  11174. return 0;
  11175. }
  11176. _ACEOF
  11177. if ac_fn_cxx_try_compile "$LINENO"; then :
  11178. ac_compiler_gnu=yes
  11179. else
  11180. ac_compiler_gnu=no
  11181. fi
  11182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11183. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11184. fi
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11186. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11187. if test $ac_compiler_gnu = yes; then
  11188. GXX=yes
  11189. else
  11190. GXX=
  11191. fi
  11192. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11193. ac_save_CXXFLAGS=$CXXFLAGS
  11194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11195. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11196. if ${ac_cv_prog_cxx_g+:} false; then :
  11197. $as_echo_n "(cached) " >&6
  11198. else
  11199. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11200. ac_cxx_werror_flag=yes
  11201. ac_cv_prog_cxx_g=no
  11202. CXXFLAGS="-g"
  11203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11204. /* end confdefs.h. */
  11205. int
  11206. main ()
  11207. {
  11208. ;
  11209. return 0;
  11210. }
  11211. _ACEOF
  11212. if ac_fn_cxx_try_compile "$LINENO"; then :
  11213. ac_cv_prog_cxx_g=yes
  11214. else
  11215. CXXFLAGS=""
  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. else
  11227. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11228. CXXFLAGS="-g"
  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. ac_cv_prog_cxx_g=yes
  11240. fi
  11241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11242. fi
  11243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11244. fi
  11245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11246. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11247. fi
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11249. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11250. if test "$ac_test_CXXFLAGS" = set; then
  11251. CXXFLAGS=$ac_save_CXXFLAGS
  11252. elif test $ac_cv_prog_cxx_g = yes; then
  11253. if test "$GXX" = yes; then
  11254. CXXFLAGS="-g -O2"
  11255. else
  11256. CXXFLAGS="-g"
  11257. fi
  11258. else
  11259. if test "$GXX" = yes; then
  11260. CXXFLAGS="-O2"
  11261. else
  11262. CXXFLAGS=
  11263. fi
  11264. fi
  11265. ac_ext=c
  11266. ac_cpp='$CPP $CPPFLAGS'
  11267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11270. func_stripname_cnf ()
  11271. {
  11272. case $2 in
  11273. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11274. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11275. esac
  11276. } # func_stripname_cnf
  11277. if test -n "$CXX" && ( test no != "$CXX" &&
  11278. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11279. (test g++ != "$CXX"))); then
  11280. ac_ext=cpp
  11281. ac_cpp='$CXXCPP $CPPFLAGS'
  11282. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11283. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11284. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11286. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11287. if test -z "$CXXCPP"; then
  11288. if ${ac_cv_prog_CXXCPP+:} false; then :
  11289. $as_echo_n "(cached) " >&6
  11290. else
  11291. # Double quotes because CXXCPP needs to be expanded
  11292. for CXXCPP in "$CXX -E" "/lib/cpp"
  11293. do
  11294. ac_preproc_ok=false
  11295. for ac_cxx_preproc_warn_flag in '' yes
  11296. do
  11297. # Use a header file that comes with gcc, so configuring glibc
  11298. # with a fresh cross-compiler works.
  11299. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11300. # <limits.h> exists even on freestanding compilers.
  11301. # On the NeXT, cc -E runs the code through the compiler's parser,
  11302. # not just through cpp. "Syntax error" is here to catch this case.
  11303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11304. /* end confdefs.h. */
  11305. #ifdef __STDC__
  11306. # include <limits.h>
  11307. #else
  11308. # include <assert.h>
  11309. #endif
  11310. Syntax error
  11311. _ACEOF
  11312. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11313. else
  11314. # Broken: fails on valid input.
  11315. continue
  11316. fi
  11317. rm -f conftest.err conftest.i conftest.$ac_ext
  11318. # OK, works on sane cases. Now check whether nonexistent headers
  11319. # can be detected and how.
  11320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11321. /* end confdefs.h. */
  11322. #include <ac_nonexistent.h>
  11323. _ACEOF
  11324. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11325. # Broken: success on invalid input.
  11326. continue
  11327. else
  11328. # Passes both tests.
  11329. ac_preproc_ok=:
  11330. break
  11331. fi
  11332. rm -f conftest.err conftest.i conftest.$ac_ext
  11333. done
  11334. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11335. rm -f conftest.i conftest.err conftest.$ac_ext
  11336. if $ac_preproc_ok; then :
  11337. break
  11338. fi
  11339. done
  11340. ac_cv_prog_CXXCPP=$CXXCPP
  11341. fi
  11342. CXXCPP=$ac_cv_prog_CXXCPP
  11343. else
  11344. ac_cv_prog_CXXCPP=$CXXCPP
  11345. fi
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11347. $as_echo "$CXXCPP" >&6; }
  11348. ac_preproc_ok=false
  11349. for ac_cxx_preproc_warn_flag in '' yes
  11350. do
  11351. # Use a header file that comes with gcc, so configuring glibc
  11352. # with a fresh cross-compiler works.
  11353. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11354. # <limits.h> exists even on freestanding compilers.
  11355. # On the NeXT, cc -E runs the code through the compiler's parser,
  11356. # not just through cpp. "Syntax error" is here to catch this case.
  11357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11358. /* end confdefs.h. */
  11359. #ifdef __STDC__
  11360. # include <limits.h>
  11361. #else
  11362. # include <assert.h>
  11363. #endif
  11364. Syntax error
  11365. _ACEOF
  11366. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11367. else
  11368. # Broken: fails on valid input.
  11369. continue
  11370. fi
  11371. rm -f conftest.err conftest.i conftest.$ac_ext
  11372. # OK, works on sane cases. Now check whether nonexistent headers
  11373. # can be detected and how.
  11374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11375. /* end confdefs.h. */
  11376. #include <ac_nonexistent.h>
  11377. _ACEOF
  11378. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11379. # Broken: success on invalid input.
  11380. continue
  11381. else
  11382. # Passes both tests.
  11383. ac_preproc_ok=:
  11384. break
  11385. fi
  11386. rm -f conftest.err conftest.i conftest.$ac_ext
  11387. done
  11388. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11389. rm -f conftest.i conftest.err conftest.$ac_ext
  11390. if $ac_preproc_ok; then :
  11391. else
  11392. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11394. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11395. See \`config.log' for more details" "$LINENO" 5; }
  11396. fi
  11397. ac_ext=c
  11398. ac_cpp='$CPP $CPPFLAGS'
  11399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11402. else
  11403. _lt_caught_CXX_error=yes
  11404. fi
  11405. ac_ext=cpp
  11406. ac_cpp='$CXXCPP $CPPFLAGS'
  11407. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11408. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11409. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11410. archive_cmds_need_lc_CXX=no
  11411. allow_undefined_flag_CXX=
  11412. always_export_symbols_CXX=no
  11413. archive_expsym_cmds_CXX=
  11414. compiler_needs_object_CXX=no
  11415. export_dynamic_flag_spec_CXX=
  11416. hardcode_direct_CXX=no
  11417. hardcode_direct_absolute_CXX=no
  11418. hardcode_libdir_flag_spec_CXX=
  11419. hardcode_libdir_separator_CXX=
  11420. hardcode_minus_L_CXX=no
  11421. hardcode_shlibpath_var_CXX=unsupported
  11422. hardcode_automatic_CXX=no
  11423. inherit_rpath_CXX=no
  11424. module_cmds_CXX=
  11425. module_expsym_cmds_CXX=
  11426. link_all_deplibs_CXX=unknown
  11427. old_archive_cmds_CXX=$old_archive_cmds
  11428. reload_flag_CXX=$reload_flag
  11429. reload_cmds_CXX=$reload_cmds
  11430. no_undefined_flag_CXX=
  11431. whole_archive_flag_spec_CXX=
  11432. enable_shared_with_static_runtimes_CXX=no
  11433. # Source file extension for C++ test sources.
  11434. ac_ext=cpp
  11435. # Object file extension for compiled C++ test sources.
  11436. objext=o
  11437. objext_CXX=$objext
  11438. # No sense in running all these tests if we already determined that
  11439. # the CXX compiler isn't working. Some variables (like enable_shared)
  11440. # are currently assumed to apply to all compilers on this platform,
  11441. # and will be corrupted by setting them based on a non-working compiler.
  11442. if test yes != "$_lt_caught_CXX_error"; then
  11443. # Code to be used in simple compile tests
  11444. lt_simple_compile_test_code="int some_variable = 0;"
  11445. # Code to be used in simple link tests
  11446. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11447. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11448. # If no C compiler was specified, use CC.
  11449. LTCC=${LTCC-"$CC"}
  11450. # If no C compiler flags were specified, use CFLAGS.
  11451. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11452. # Allow CC to be a program name with arguments.
  11453. compiler=$CC
  11454. # save warnings/boilerplate of simple test code
  11455. ac_outfile=conftest.$ac_objext
  11456. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11457. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11458. _lt_compiler_boilerplate=`cat conftest.err`
  11459. $RM conftest*
  11460. ac_outfile=conftest.$ac_objext
  11461. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11462. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11463. _lt_linker_boilerplate=`cat conftest.err`
  11464. $RM -r conftest*
  11465. # Allow CC to be a program name with arguments.
  11466. lt_save_CC=$CC
  11467. lt_save_CFLAGS=$CFLAGS
  11468. lt_save_LD=$LD
  11469. lt_save_GCC=$GCC
  11470. GCC=$GXX
  11471. lt_save_with_gnu_ld=$with_gnu_ld
  11472. lt_save_path_LD=$lt_cv_path_LD
  11473. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11474. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11475. else
  11476. $as_unset lt_cv_prog_gnu_ld
  11477. fi
  11478. if test -n "${lt_cv_path_LDCXX+set}"; then
  11479. lt_cv_path_LD=$lt_cv_path_LDCXX
  11480. else
  11481. $as_unset lt_cv_path_LD
  11482. fi
  11483. test -z "${LDCXX+set}" || LD=$LDCXX
  11484. CC=${CXX-"c++"}
  11485. CFLAGS=$CXXFLAGS
  11486. compiler=$CC
  11487. compiler_CXX=$CC
  11488. func_cc_basename $compiler
  11489. cc_basename=$func_cc_basename_result
  11490. if test -n "$compiler"; then
  11491. # We don't want -fno-exception when compiling C++ code, so set the
  11492. # no_builtin_flag separately
  11493. if test yes = "$GXX"; then
  11494. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11495. else
  11496. lt_prog_compiler_no_builtin_flag_CXX=
  11497. fi
  11498. if test yes = "$GXX"; then
  11499. # Set up default GNU C++ configuration
  11500. # Check whether --with-gnu-ld was given.
  11501. if test "${with_gnu_ld+set}" = set; then :
  11502. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11503. else
  11504. with_gnu_ld=no
  11505. fi
  11506. ac_prog=ld
  11507. if test yes = "$GCC"; then
  11508. # Check if gcc -print-prog-name=ld gives a path.
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11510. $as_echo_n "checking for ld used by $CC... " >&6; }
  11511. case $host in
  11512. *-*-mingw*)
  11513. # gcc leaves a trailing carriage return, which upsets mingw
  11514. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11515. *)
  11516. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11517. esac
  11518. case $ac_prog in
  11519. # Accept absolute paths.
  11520. [\\/]* | ?:[\\/]*)
  11521. re_direlt='/[^/][^/]*/\.\./'
  11522. # Canonicalize the pathname of ld
  11523. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11524. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11525. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11526. done
  11527. test -z "$LD" && LD=$ac_prog
  11528. ;;
  11529. "")
  11530. # If it fails, then pretend we aren't using GCC.
  11531. ac_prog=ld
  11532. ;;
  11533. *)
  11534. # If it is relative, then search for the first ld in PATH.
  11535. with_gnu_ld=unknown
  11536. ;;
  11537. esac
  11538. elif test yes = "$with_gnu_ld"; then
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11540. $as_echo_n "checking for GNU ld... " >&6; }
  11541. else
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11543. $as_echo_n "checking for non-GNU ld... " >&6; }
  11544. fi
  11545. if ${lt_cv_path_LD+:} false; then :
  11546. $as_echo_n "(cached) " >&6
  11547. else
  11548. if test -z "$LD"; then
  11549. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11550. for ac_dir in $PATH; do
  11551. IFS=$lt_save_ifs
  11552. test -z "$ac_dir" && ac_dir=.
  11553. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11554. lt_cv_path_LD=$ac_dir/$ac_prog
  11555. # Check to see if the program is GNU ld. I'd rather use --version,
  11556. # but apparently some variants of GNU ld only accept -v.
  11557. # Break only if it was the GNU/non-GNU ld that we prefer.
  11558. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11559. *GNU* | *'with BFD'*)
  11560. test no != "$with_gnu_ld" && break
  11561. ;;
  11562. *)
  11563. test yes != "$with_gnu_ld" && break
  11564. ;;
  11565. esac
  11566. fi
  11567. done
  11568. IFS=$lt_save_ifs
  11569. else
  11570. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11571. fi
  11572. fi
  11573. LD=$lt_cv_path_LD
  11574. if test -n "$LD"; then
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11576. $as_echo "$LD" >&6; }
  11577. else
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11579. $as_echo "no" >&6; }
  11580. fi
  11581. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11583. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11584. if ${lt_cv_prog_gnu_ld+:} false; then :
  11585. $as_echo_n "(cached) " >&6
  11586. else
  11587. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11588. case `$LD -v 2>&1 </dev/null` in
  11589. *GNU* | *'with BFD'*)
  11590. lt_cv_prog_gnu_ld=yes
  11591. ;;
  11592. *)
  11593. lt_cv_prog_gnu_ld=no
  11594. ;;
  11595. esac
  11596. fi
  11597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11598. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11599. with_gnu_ld=$lt_cv_prog_gnu_ld
  11600. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11601. # archiving commands below assume that GNU ld is being used.
  11602. if test yes = "$with_gnu_ld"; then
  11603. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11604. 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'
  11605. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11606. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11607. # If archive_cmds runs LD, not CC, wlarc should be empty
  11608. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11609. # investigate it a little bit more. (MM)
  11610. wlarc='$wl'
  11611. # ancient GNU ld didn't support --whole-archive et. al.
  11612. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11613. $GREP 'no-whole-archive' > /dev/null; then
  11614. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11615. else
  11616. whole_archive_flag_spec_CXX=
  11617. fi
  11618. else
  11619. with_gnu_ld=no
  11620. wlarc=
  11621. # A generic and very simple default shared library creation
  11622. # command for GNU C++ for the case where it uses the native
  11623. # linker, instead of GNU ld. If possible, this setting should
  11624. # overridden to take advantage of the native linker features on
  11625. # the platform it is being used on.
  11626. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11627. fi
  11628. # Commands to make compiler produce verbose output that lists
  11629. # what "hidden" libraries, object files and flags are used when
  11630. # linking a shared library.
  11631. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11632. else
  11633. GXX=no
  11634. with_gnu_ld=no
  11635. wlarc=
  11636. fi
  11637. # PORTME: fill in a description of your system's C++ link characteristics
  11638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11639. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11640. ld_shlibs_CXX=yes
  11641. case $host_os in
  11642. aix3*)
  11643. # FIXME: insert proper C++ library support
  11644. ld_shlibs_CXX=no
  11645. ;;
  11646. aix[4-9]*)
  11647. if test ia64 = "$host_cpu"; then
  11648. # On IA64, the linker does run time linking by default, so we don't
  11649. # have to do anything special.
  11650. aix_use_runtimelinking=no
  11651. exp_sym_flag='-Bexport'
  11652. no_entry_flag=
  11653. else
  11654. aix_use_runtimelinking=no
  11655. # Test if we are trying to use run time linking or normal
  11656. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11657. # have runtime linking enabled, and use it for executables.
  11658. # For shared libraries, we enable/disable runtime linking
  11659. # depending on the kind of the shared library created -
  11660. # when "with_aix_soname,aix_use_runtimelinking" is:
  11661. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11662. # "aix,yes" lib.so shared, rtl:yes, for executables
  11663. # lib.a static archive
  11664. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11665. # lib.a(lib.so.V) shared, rtl:no, for executables
  11666. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11667. # lib.a(lib.so.V) shared, rtl:no
  11668. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11669. # lib.a static archive
  11670. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11671. for ld_flag in $LDFLAGS; do
  11672. case $ld_flag in
  11673. *-brtl*)
  11674. aix_use_runtimelinking=yes
  11675. break
  11676. ;;
  11677. esac
  11678. done
  11679. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11680. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11681. # so we don't have lib.a shared libs to link our executables.
  11682. # We have to force runtime linking in this case.
  11683. aix_use_runtimelinking=yes
  11684. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11685. fi
  11686. ;;
  11687. esac
  11688. exp_sym_flag='-bexport'
  11689. no_entry_flag='-bnoentry'
  11690. fi
  11691. # When large executables or shared objects are built, AIX ld can
  11692. # have problems creating the table of contents. If linking a library
  11693. # or program results in "error TOC overflow" add -mminimal-toc to
  11694. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11695. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11696. archive_cmds_CXX=''
  11697. hardcode_direct_CXX=yes
  11698. hardcode_direct_absolute_CXX=yes
  11699. hardcode_libdir_separator_CXX=':'
  11700. link_all_deplibs_CXX=yes
  11701. file_list_spec_CXX='$wl-f,'
  11702. case $with_aix_soname,$aix_use_runtimelinking in
  11703. aix,*) ;; # no import file
  11704. svr4,* | *,yes) # use import file
  11705. # The Import File defines what to hardcode.
  11706. hardcode_direct_CXX=no
  11707. hardcode_direct_absolute_CXX=no
  11708. ;;
  11709. esac
  11710. if test yes = "$GXX"; then
  11711. case $host_os in aix4.[012]|aix4.[012].*)
  11712. # We only want to do this on AIX 4.2 and lower, the check
  11713. # below for broken collect2 doesn't work under 4.3+
  11714. collect2name=`$CC -print-prog-name=collect2`
  11715. if test -f "$collect2name" &&
  11716. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11717. then
  11718. # We have reworked collect2
  11719. :
  11720. else
  11721. # We have old collect2
  11722. hardcode_direct_CXX=unsupported
  11723. # It fails to find uninstalled libraries when the uninstalled
  11724. # path is not listed in the libpath. Setting hardcode_minus_L
  11725. # to unsupported forces relinking
  11726. hardcode_minus_L_CXX=yes
  11727. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11728. hardcode_libdir_separator_CXX=
  11729. fi
  11730. esac
  11731. shared_flag='-shared'
  11732. if test yes = "$aix_use_runtimelinking"; then
  11733. shared_flag=$shared_flag' $wl-G'
  11734. fi
  11735. # Need to ensure runtime linking is disabled for the traditional
  11736. # shared library, or the linker may eventually find shared libraries
  11737. # /with/ Import File - we do not want to mix them.
  11738. shared_flag_aix='-shared'
  11739. shared_flag_svr4='-shared $wl-G'
  11740. else
  11741. # not using gcc
  11742. if test ia64 = "$host_cpu"; then
  11743. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11744. # chokes on -Wl,-G. The following line is correct:
  11745. shared_flag='-G'
  11746. else
  11747. if test yes = "$aix_use_runtimelinking"; then
  11748. shared_flag='$wl-G'
  11749. else
  11750. shared_flag='$wl-bM:SRE'
  11751. fi
  11752. shared_flag_aix='$wl-bM:SRE'
  11753. shared_flag_svr4='$wl-G'
  11754. fi
  11755. fi
  11756. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11757. # It seems that -bexpall does not export symbols beginning with
  11758. # underscore (_), so it is better to generate a list of symbols to
  11759. # export.
  11760. always_export_symbols_CXX=yes
  11761. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11762. # Warning - without using the other runtime loading flags (-brtl),
  11763. # -berok will link without error, but may produce a broken library.
  11764. # The "-G" linker flag allows undefined symbols.
  11765. no_undefined_flag_CXX='-bernotok'
  11766. # Determine the default libpath from the value encoded in an empty
  11767. # executable.
  11768. if test set = "${lt_cv_aix_libpath+set}"; then
  11769. aix_libpath=$lt_cv_aix_libpath
  11770. else
  11771. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11772. $as_echo_n "(cached) " >&6
  11773. else
  11774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11775. /* end confdefs.h. */
  11776. int
  11777. main ()
  11778. {
  11779. ;
  11780. return 0;
  11781. }
  11782. _ACEOF
  11783. if ac_fn_cxx_try_link "$LINENO"; then :
  11784. lt_aix_libpath_sed='
  11785. /Import File Strings/,/^$/ {
  11786. /^0/ {
  11787. s/^0 *\([^ ]*\) *$/\1/
  11788. p
  11789. }
  11790. }'
  11791. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11792. # Check for a 64-bit object if we didn't find anything.
  11793. if test -z "$lt_cv_aix_libpath__CXX"; then
  11794. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11795. fi
  11796. fi
  11797. rm -f core conftest.err conftest.$ac_objext \
  11798. conftest$ac_exeext conftest.$ac_ext
  11799. if test -z "$lt_cv_aix_libpath__CXX"; then
  11800. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11801. fi
  11802. fi
  11803. aix_libpath=$lt_cv_aix_libpath__CXX
  11804. fi
  11805. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11806. 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
  11807. else
  11808. if test ia64 = "$host_cpu"; then
  11809. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11810. allow_undefined_flag_CXX="-z nodefs"
  11811. 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"
  11812. else
  11813. # Determine the default libpath from the value encoded in an
  11814. # empty executable.
  11815. if test set = "${lt_cv_aix_libpath+set}"; then
  11816. aix_libpath=$lt_cv_aix_libpath
  11817. else
  11818. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11819. $as_echo_n "(cached) " >&6
  11820. else
  11821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11822. /* end confdefs.h. */
  11823. int
  11824. main ()
  11825. {
  11826. ;
  11827. return 0;
  11828. }
  11829. _ACEOF
  11830. if ac_fn_cxx_try_link "$LINENO"; then :
  11831. lt_aix_libpath_sed='
  11832. /Import File Strings/,/^$/ {
  11833. /^0/ {
  11834. s/^0 *\([^ ]*\) *$/\1/
  11835. p
  11836. }
  11837. }'
  11838. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11839. # Check for a 64-bit object if we didn't find anything.
  11840. if test -z "$lt_cv_aix_libpath__CXX"; then
  11841. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11842. fi
  11843. fi
  11844. rm -f core conftest.err conftest.$ac_objext \
  11845. conftest$ac_exeext conftest.$ac_ext
  11846. if test -z "$lt_cv_aix_libpath__CXX"; then
  11847. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11848. fi
  11849. fi
  11850. aix_libpath=$lt_cv_aix_libpath__CXX
  11851. fi
  11852. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11853. # Warning - without using the other run time loading flags,
  11854. # -berok will link without error, but may produce a broken library.
  11855. no_undefined_flag_CXX=' $wl-bernotok'
  11856. allow_undefined_flag_CXX=' $wl-berok'
  11857. if test yes = "$with_gnu_ld"; then
  11858. # We only use this code for GNU lds that support --whole-archive.
  11859. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11860. else
  11861. # Exported symbols can be pulled into shared objects from archives
  11862. whole_archive_flag_spec_CXX='$convenience'
  11863. fi
  11864. archive_cmds_need_lc_CXX=yes
  11865. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11866. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11867. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11868. if test svr4 != "$with_aix_soname"; then
  11869. # This is similar to how AIX traditionally builds its shared
  11870. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11871. 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'
  11872. fi
  11873. if test aix != "$with_aix_soname"; then
  11874. 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'
  11875. else
  11876. # used by -dlpreopen to get the symbols
  11877. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11878. fi
  11879. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11880. fi
  11881. fi
  11882. ;;
  11883. beos*)
  11884. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11885. allow_undefined_flag_CXX=unsupported
  11886. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11887. # support --undefined. This deserves some investigation. FIXME
  11888. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11889. else
  11890. ld_shlibs_CXX=no
  11891. fi
  11892. ;;
  11893. chorus*)
  11894. case $cc_basename in
  11895. *)
  11896. # FIXME: insert proper C++ library support
  11897. ld_shlibs_CXX=no
  11898. ;;
  11899. esac
  11900. ;;
  11901. cygwin* | mingw* | pw32* | cegcc*)
  11902. case $GXX,$cc_basename in
  11903. ,cl* | no,cl*)
  11904. # Native MSVC
  11905. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11906. # no search path for DLLs.
  11907. hardcode_libdir_flag_spec_CXX=' '
  11908. allow_undefined_flag_CXX=unsupported
  11909. always_export_symbols_CXX=yes
  11910. file_list_spec_CXX='@'
  11911. # Tell ltmain to make .lib files, not .a files.
  11912. libext=lib
  11913. # Tell ltmain to make .dll files, not .so files.
  11914. shrext_cmds=.dll
  11915. # FIXME: Setting linknames here is a bad hack.
  11916. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11917. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11918. cp "$export_symbols" "$output_objdir/$soname.def";
  11919. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11920. else
  11921. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11922. fi~
  11923. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11924. linknames='
  11925. # The linker will not automatically build a static lib if we build a DLL.
  11926. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11927. enable_shared_with_static_runtimes_CXX=yes
  11928. # Don't use ranlib
  11929. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11930. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11931. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11932. case $lt_outputfile in
  11933. *.exe|*.EXE) ;;
  11934. *)
  11935. lt_outputfile=$lt_outputfile.exe
  11936. lt_tool_outputfile=$lt_tool_outputfile.exe
  11937. ;;
  11938. esac~
  11939. func_to_tool_file "$lt_outputfile"~
  11940. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11941. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11942. $RM "$lt_outputfile.manifest";
  11943. fi'
  11944. ;;
  11945. *)
  11946. # g++
  11947. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11948. # as there is no search path for DLLs.
  11949. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11950. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11951. allow_undefined_flag_CXX=unsupported
  11952. always_export_symbols_CXX=no
  11953. enable_shared_with_static_runtimes_CXX=yes
  11954. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11955. 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'
  11956. # If the export-symbols file already is a .def file, use it as
  11957. # is; otherwise, prepend EXPORTS...
  11958. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11959. cp $export_symbols $output_objdir/$soname.def;
  11960. else
  11961. echo EXPORTS > $output_objdir/$soname.def;
  11962. cat $export_symbols >> $output_objdir/$soname.def;
  11963. fi~
  11964. $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'
  11965. else
  11966. ld_shlibs_CXX=no
  11967. fi
  11968. ;;
  11969. esac
  11970. ;;
  11971. darwin* | rhapsody*)
  11972. archive_cmds_need_lc_CXX=no
  11973. hardcode_direct_CXX=no
  11974. hardcode_automatic_CXX=yes
  11975. hardcode_shlibpath_var_CXX=unsupported
  11976. if test yes = "$lt_cv_ld_force_load"; then
  11977. 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\"`'
  11978. else
  11979. whole_archive_flag_spec_CXX=''
  11980. fi
  11981. link_all_deplibs_CXX=yes
  11982. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11983. case $cc_basename in
  11984. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11985. *) _lt_dar_can_shared=$GCC ;;
  11986. esac
  11987. if test yes = "$_lt_dar_can_shared"; then
  11988. output_verbose_link_cmd=func_echo_all
  11989. 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"
  11990. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11991. 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"
  11992. 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"
  11993. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11994. 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"
  11995. 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"
  11996. fi
  11997. else
  11998. ld_shlibs_CXX=no
  11999. fi
  12000. ;;
  12001. os2*)
  12002. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12003. hardcode_minus_L_CXX=yes
  12004. allow_undefined_flag_CXX=unsupported
  12005. shrext_cmds=.dll
  12006. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12007. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12008. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12009. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12010. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12011. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12012. emximp -o $lib $output_objdir/$libname.def'
  12013. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12014. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12015. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12016. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12017. prefix_cmds="$SED"~
  12018. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12019. prefix_cmds="$prefix_cmds -e 1d";
  12020. fi~
  12021. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12022. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12023. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12024. emximp -o $lib $output_objdir/$libname.def'
  12025. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12026. enable_shared_with_static_runtimes_CXX=yes
  12027. file_list_spec_CXX='@'
  12028. ;;
  12029. dgux*)
  12030. case $cc_basename in
  12031. ec++*)
  12032. # FIXME: insert proper C++ library support
  12033. ld_shlibs_CXX=no
  12034. ;;
  12035. ghcx*)
  12036. # Green Hills C++ Compiler
  12037. # FIXME: insert proper C++ library support
  12038. ld_shlibs_CXX=no
  12039. ;;
  12040. *)
  12041. # FIXME: insert proper C++ library support
  12042. ld_shlibs_CXX=no
  12043. ;;
  12044. esac
  12045. ;;
  12046. freebsd2.*)
  12047. # C++ shared libraries reported to be fairly broken before
  12048. # switch to ELF
  12049. ld_shlibs_CXX=no
  12050. ;;
  12051. freebsd-elf*)
  12052. archive_cmds_need_lc_CXX=no
  12053. ;;
  12054. freebsd* | dragonfly* | midnightbsd*)
  12055. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12056. # conventions
  12057. ld_shlibs_CXX=yes
  12058. ;;
  12059. haiku*)
  12060. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12061. link_all_deplibs_CXX=yes
  12062. ;;
  12063. hpux9*)
  12064. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12065. hardcode_libdir_separator_CXX=:
  12066. export_dynamic_flag_spec_CXX='$wl-E'
  12067. hardcode_direct_CXX=yes
  12068. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12069. # but as the default
  12070. # location of the library.
  12071. case $cc_basename in
  12072. CC*)
  12073. # FIXME: insert proper C++ library support
  12074. ld_shlibs_CXX=no
  12075. ;;
  12076. aCC*)
  12077. 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'
  12078. # Commands to make compiler produce verbose output that lists
  12079. # what "hidden" libraries, object files and flags are used when
  12080. # linking a shared library.
  12081. #
  12082. # There doesn't appear to be a way to prevent this compiler from
  12083. # explicitly linking system object files so we need to strip them
  12084. # from the output so that they don't get included in the library
  12085. # dependencies.
  12086. 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"'
  12087. ;;
  12088. *)
  12089. if test yes = "$GXX"; then
  12090. 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'
  12091. else
  12092. # FIXME: insert proper C++ library support
  12093. ld_shlibs_CXX=no
  12094. fi
  12095. ;;
  12096. esac
  12097. ;;
  12098. hpux10*|hpux11*)
  12099. if test no = "$with_gnu_ld"; then
  12100. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12101. hardcode_libdir_separator_CXX=:
  12102. case $host_cpu in
  12103. hppa*64*|ia64*)
  12104. ;;
  12105. *)
  12106. export_dynamic_flag_spec_CXX='$wl-E'
  12107. ;;
  12108. esac
  12109. fi
  12110. case $host_cpu in
  12111. hppa*64*|ia64*)
  12112. hardcode_direct_CXX=no
  12113. hardcode_shlibpath_var_CXX=no
  12114. ;;
  12115. *)
  12116. hardcode_direct_CXX=yes
  12117. hardcode_direct_absolute_CXX=yes
  12118. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12119. # but as the default
  12120. # location of the library.
  12121. ;;
  12122. esac
  12123. case $cc_basename in
  12124. CC*)
  12125. # FIXME: insert proper C++ library support
  12126. ld_shlibs_CXX=no
  12127. ;;
  12128. aCC*)
  12129. case $host_cpu in
  12130. hppa*64*)
  12131. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12132. ;;
  12133. ia64*)
  12134. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12135. ;;
  12136. *)
  12137. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12138. ;;
  12139. esac
  12140. # Commands to make compiler produce verbose output that lists
  12141. # what "hidden" libraries, object files and flags are used when
  12142. # linking a shared library.
  12143. #
  12144. # There doesn't appear to be a way to prevent this compiler from
  12145. # explicitly linking system object files so we need to strip them
  12146. # from the output so that they don't get included in the library
  12147. # dependencies.
  12148. 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"'
  12149. ;;
  12150. *)
  12151. if test yes = "$GXX"; then
  12152. if test no = "$with_gnu_ld"; then
  12153. case $host_cpu in
  12154. hppa*64*)
  12155. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12156. ;;
  12157. ia64*)
  12158. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12159. ;;
  12160. *)
  12161. 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'
  12162. ;;
  12163. esac
  12164. fi
  12165. else
  12166. # FIXME: insert proper C++ library support
  12167. ld_shlibs_CXX=no
  12168. fi
  12169. ;;
  12170. esac
  12171. ;;
  12172. interix[3-9]*)
  12173. hardcode_direct_CXX=no
  12174. hardcode_shlibpath_var_CXX=no
  12175. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12176. export_dynamic_flag_spec_CXX='$wl-E'
  12177. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12178. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12179. # default) and relocated if they conflict, which is a slow very memory
  12180. # consuming and fragmenting process. To avoid this, we pick a random,
  12181. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12182. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12183. 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'
  12184. 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'
  12185. ;;
  12186. irix5* | irix6*)
  12187. case $cc_basename in
  12188. CC*)
  12189. # SGI C++
  12190. 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'
  12191. # Archives containing C++ object files must be created using
  12192. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12193. # necessary to make sure instantiated templates are included
  12194. # in the archive.
  12195. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12196. ;;
  12197. *)
  12198. if test yes = "$GXX"; then
  12199. if test no = "$with_gnu_ld"; then
  12200. 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'
  12201. else
  12202. 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'
  12203. fi
  12204. fi
  12205. link_all_deplibs_CXX=yes
  12206. ;;
  12207. esac
  12208. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12209. hardcode_libdir_separator_CXX=:
  12210. inherit_rpath_CXX=yes
  12211. ;;
  12212. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12213. case $cc_basename in
  12214. KCC*)
  12215. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12216. # KCC will only create a shared library if the output file
  12217. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12218. # to its proper name (with version) after linking.
  12219. 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'
  12220. 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'
  12221. # Commands to make compiler produce verbose output that lists
  12222. # what "hidden" libraries, object files and flags are used when
  12223. # linking a shared library.
  12224. #
  12225. # There doesn't appear to be a way to prevent this compiler from
  12226. # explicitly linking system object files so we need to strip them
  12227. # from the output so that they don't get included in the library
  12228. # dependencies.
  12229. 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"'
  12230. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12231. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12232. # Archives containing C++ object files must be created using
  12233. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12234. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12235. ;;
  12236. icpc* | ecpc* )
  12237. # Intel C++
  12238. with_gnu_ld=yes
  12239. # version 8.0 and above of icpc choke on multiply defined symbols
  12240. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12241. # earlier do not add the objects themselves.
  12242. case `$CC -V 2>&1` in
  12243. *"Version 7."*)
  12244. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12245. 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'
  12246. ;;
  12247. *) # Version 8.0 or newer
  12248. tmp_idyn=
  12249. case $host_cpu in
  12250. ia64*) tmp_idyn=' -i_dynamic';;
  12251. esac
  12252. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12253. 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'
  12254. ;;
  12255. esac
  12256. archive_cmds_need_lc_CXX=no
  12257. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12258. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12259. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12260. ;;
  12261. pgCC* | pgcpp*)
  12262. # Portland Group C++ compiler
  12263. case `$CC -V` in
  12264. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12265. prelink_cmds_CXX='tpldir=Template.dir~
  12266. rm -rf $tpldir~
  12267. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12268. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12269. old_archive_cmds_CXX='tpldir=Template.dir~
  12270. rm -rf $tpldir~
  12271. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12272. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12273. $RANLIB $oldlib'
  12274. archive_cmds_CXX='tpldir=Template.dir~
  12275. rm -rf $tpldir~
  12276. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12277. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12278. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12279. rm -rf $tpldir~
  12280. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12281. $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'
  12282. ;;
  12283. *) # Version 6 and above use weak symbols
  12284. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12285. 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'
  12286. ;;
  12287. esac
  12288. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12289. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12290. 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'
  12291. ;;
  12292. cxx*)
  12293. # Compaq C++
  12294. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12295. 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'
  12296. runpath_var=LD_RUN_PATH
  12297. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12298. hardcode_libdir_separator_CXX=:
  12299. # Commands to make compiler produce verbose output that lists
  12300. # what "hidden" libraries, object files and flags are used when
  12301. # linking a shared library.
  12302. #
  12303. # There doesn't appear to be a way to prevent this compiler from
  12304. # explicitly linking system object files so we need to strip them
  12305. # from the output so that they don't get included in the library
  12306. # dependencies.
  12307. 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'
  12308. ;;
  12309. xl* | mpixl* | bgxl*)
  12310. # IBM XL 8.0 on PPC, with GNU ld
  12311. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12312. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12313. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12314. if test yes = "$supports_anon_versioning"; then
  12315. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12316. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12317. echo "local: *; };" >> $output_objdir/$libname.ver~
  12318. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12319. fi
  12320. ;;
  12321. *)
  12322. case `$CC -V 2>&1 | sed 5q` in
  12323. *Sun\ C*)
  12324. # Sun C++ 5.9
  12325. no_undefined_flag_CXX=' -zdefs'
  12326. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12327. 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'
  12328. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12329. 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'
  12330. compiler_needs_object_CXX=yes
  12331. # Not sure whether something based on
  12332. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12333. # would be better.
  12334. output_verbose_link_cmd='func_echo_all'
  12335. # Archives containing C++ object files must be created using
  12336. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12337. # necessary to make sure instantiated templates are included
  12338. # in the archive.
  12339. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12340. ;;
  12341. esac
  12342. ;;
  12343. esac
  12344. ;;
  12345. lynxos*)
  12346. # FIXME: insert proper C++ library support
  12347. ld_shlibs_CXX=no
  12348. ;;
  12349. m88k*)
  12350. # FIXME: insert proper C++ library support
  12351. ld_shlibs_CXX=no
  12352. ;;
  12353. mvs*)
  12354. case $cc_basename in
  12355. cxx*)
  12356. # FIXME: insert proper C++ library support
  12357. ld_shlibs_CXX=no
  12358. ;;
  12359. *)
  12360. # FIXME: insert proper C++ library support
  12361. ld_shlibs_CXX=no
  12362. ;;
  12363. esac
  12364. ;;
  12365. netbsd*)
  12366. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12367. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12368. wlarc=
  12369. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12370. hardcode_direct_CXX=yes
  12371. hardcode_shlibpath_var_CXX=no
  12372. fi
  12373. # Workaround some broken pre-1.5 toolchains
  12374. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12375. ;;
  12376. *nto* | *qnx*)
  12377. ld_shlibs_CXX=yes
  12378. ;;
  12379. openbsd* | bitrig*)
  12380. if test -f /usr/libexec/ld.so; then
  12381. hardcode_direct_CXX=yes
  12382. hardcode_shlibpath_var_CXX=no
  12383. hardcode_direct_absolute_CXX=yes
  12384. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12385. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12386. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12387. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12388. export_dynamic_flag_spec_CXX='$wl-E'
  12389. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12390. fi
  12391. output_verbose_link_cmd=func_echo_all
  12392. else
  12393. ld_shlibs_CXX=no
  12394. fi
  12395. ;;
  12396. osf3* | osf4* | osf5*)
  12397. case $cc_basename in
  12398. KCC*)
  12399. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12400. # KCC will only create a shared library if the output file
  12401. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12402. # to its proper name (with version) after linking.
  12403. 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'
  12404. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12405. hardcode_libdir_separator_CXX=:
  12406. # Archives containing C++ object files must be created using
  12407. # the KAI C++ compiler.
  12408. case $host in
  12409. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12410. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12411. esac
  12412. ;;
  12413. RCC*)
  12414. # Rational C++ 2.4.1
  12415. # FIXME: insert proper C++ library support
  12416. ld_shlibs_CXX=no
  12417. ;;
  12418. cxx*)
  12419. case $host in
  12420. osf3*)
  12421. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12422. 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'
  12423. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12424. ;;
  12425. *)
  12426. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12427. 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'
  12428. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12429. echo "-hidden">> $lib.exp~
  12430. $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~
  12431. $RM $lib.exp'
  12432. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12433. ;;
  12434. esac
  12435. hardcode_libdir_separator_CXX=:
  12436. # Commands to make compiler produce verbose output that lists
  12437. # what "hidden" libraries, object files and flags are used when
  12438. # linking a shared library.
  12439. #
  12440. # There doesn't appear to be a way to prevent this compiler from
  12441. # explicitly linking system object files so we need to strip them
  12442. # from the output so that they don't get included in the library
  12443. # dependencies.
  12444. 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"'
  12445. ;;
  12446. *)
  12447. if test yes,no = "$GXX,$with_gnu_ld"; then
  12448. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12449. case $host in
  12450. osf3*)
  12451. 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'
  12452. ;;
  12453. *)
  12454. 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'
  12455. ;;
  12456. esac
  12457. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12458. hardcode_libdir_separator_CXX=:
  12459. # Commands to make compiler produce verbose output that lists
  12460. # what "hidden" libraries, object files and flags are used when
  12461. # linking a shared library.
  12462. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12463. else
  12464. # FIXME: insert proper C++ library support
  12465. ld_shlibs_CXX=no
  12466. fi
  12467. ;;
  12468. esac
  12469. ;;
  12470. psos*)
  12471. # FIXME: insert proper C++ library support
  12472. ld_shlibs_CXX=no
  12473. ;;
  12474. sunos4*)
  12475. case $cc_basename in
  12476. CC*)
  12477. # Sun C++ 4.x
  12478. # FIXME: insert proper C++ library support
  12479. ld_shlibs_CXX=no
  12480. ;;
  12481. lcc*)
  12482. # Lucid
  12483. # FIXME: insert proper C++ library support
  12484. ld_shlibs_CXX=no
  12485. ;;
  12486. *)
  12487. # FIXME: insert proper C++ library support
  12488. ld_shlibs_CXX=no
  12489. ;;
  12490. esac
  12491. ;;
  12492. solaris*)
  12493. case $cc_basename in
  12494. CC* | sunCC*)
  12495. # Sun C++ 4.2, 5.x and Centerline C++
  12496. archive_cmds_need_lc_CXX=yes
  12497. no_undefined_flag_CXX=' -zdefs'
  12498. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12499. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12500. $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'
  12501. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12502. hardcode_shlibpath_var_CXX=no
  12503. case $host_os in
  12504. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12505. *)
  12506. # The compiler driver will combine and reorder linker options,
  12507. # but understands '-z linker_flag'.
  12508. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12509. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12510. ;;
  12511. esac
  12512. link_all_deplibs_CXX=yes
  12513. output_verbose_link_cmd='func_echo_all'
  12514. # Archives containing C++ object files must be created using
  12515. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12516. # necessary to make sure instantiated templates are included
  12517. # in the archive.
  12518. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12519. ;;
  12520. gcx*)
  12521. # Green Hills C++ Compiler
  12522. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12523. # The C++ compiler must be used to create the archive.
  12524. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12525. ;;
  12526. *)
  12527. # GNU C++ compiler with Solaris linker
  12528. if test yes,no = "$GXX,$with_gnu_ld"; then
  12529. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12530. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12531. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12532. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12533. $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'
  12534. # Commands to make compiler produce verbose output that lists
  12535. # what "hidden" libraries, object files and flags are used when
  12536. # linking a shared library.
  12537. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12538. else
  12539. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12540. # platform.
  12541. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12542. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12543. $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'
  12544. # Commands to make compiler produce verbose output that lists
  12545. # what "hidden" libraries, object files and flags are used when
  12546. # linking a shared library.
  12547. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12548. fi
  12549. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12550. case $host_os in
  12551. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12552. *)
  12553. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12554. ;;
  12555. esac
  12556. fi
  12557. ;;
  12558. esac
  12559. ;;
  12560. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12561. no_undefined_flag_CXX='$wl-z,text'
  12562. archive_cmds_need_lc_CXX=no
  12563. hardcode_shlibpath_var_CXX=no
  12564. runpath_var='LD_RUN_PATH'
  12565. case $cc_basename in
  12566. CC*)
  12567. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12568. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12569. ;;
  12570. *)
  12571. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12572. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12573. ;;
  12574. esac
  12575. ;;
  12576. sysv5* | sco3.2v5* | sco5v6*)
  12577. # Note: We CANNOT use -z defs as we might desire, because we do not
  12578. # link with -lc, and that would cause any symbols used from libc to
  12579. # always be unresolved, which means just about no library would
  12580. # ever link correctly. If we're not using GNU ld we use -z text
  12581. # though, which does catch some bad symbols but isn't as heavy-handed
  12582. # as -z defs.
  12583. no_undefined_flag_CXX='$wl-z,text'
  12584. allow_undefined_flag_CXX='$wl-z,nodefs'
  12585. archive_cmds_need_lc_CXX=no
  12586. hardcode_shlibpath_var_CXX=no
  12587. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12588. hardcode_libdir_separator_CXX=':'
  12589. link_all_deplibs_CXX=yes
  12590. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12591. runpath_var='LD_RUN_PATH'
  12592. case $cc_basename in
  12593. CC*)
  12594. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12595. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12596. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12597. '"$old_archive_cmds_CXX"
  12598. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12599. '"$reload_cmds_CXX"
  12600. ;;
  12601. *)
  12602. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12603. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12604. ;;
  12605. esac
  12606. ;;
  12607. tandem*)
  12608. case $cc_basename in
  12609. NCC*)
  12610. # NonStop-UX NCC 3.20
  12611. # FIXME: insert proper C++ library support
  12612. ld_shlibs_CXX=no
  12613. ;;
  12614. *)
  12615. # FIXME: insert proper C++ library support
  12616. ld_shlibs_CXX=no
  12617. ;;
  12618. esac
  12619. ;;
  12620. vxworks*)
  12621. # FIXME: insert proper C++ library support
  12622. ld_shlibs_CXX=no
  12623. ;;
  12624. *)
  12625. # FIXME: insert proper C++ library support
  12626. ld_shlibs_CXX=no
  12627. ;;
  12628. esac
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12630. $as_echo "$ld_shlibs_CXX" >&6; }
  12631. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12632. GCC_CXX=$GXX
  12633. LD_CXX=$LD
  12634. ## CAVEAT EMPTOR:
  12635. ## There is no encapsulation within the following macros, do not change
  12636. ## the running order or otherwise move them around unless you know exactly
  12637. ## what you are doing...
  12638. # Dependencies to place before and after the object being linked:
  12639. predep_objects_CXX=
  12640. postdep_objects_CXX=
  12641. predeps_CXX=
  12642. postdeps_CXX=
  12643. compiler_lib_search_path_CXX=
  12644. cat > conftest.$ac_ext <<_LT_EOF
  12645. class Foo
  12646. {
  12647. public:
  12648. Foo (void) { a = 0; }
  12649. private:
  12650. int a;
  12651. };
  12652. _LT_EOF
  12653. _lt_libdeps_save_CFLAGS=$CFLAGS
  12654. case "$CC $CFLAGS " in #(
  12655. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12656. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12657. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12658. esac
  12659. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12660. (eval $ac_compile) 2>&5
  12661. ac_status=$?
  12662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12663. test $ac_status = 0; }; then
  12664. # Parse the compiler output and extract the necessary
  12665. # objects, libraries and library flags.
  12666. # Sentinel used to keep track of whether or not we are before
  12667. # the conftest object file.
  12668. pre_test_object_deps_done=no
  12669. for p in `eval "$output_verbose_link_cmd"`; do
  12670. case $prev$p in
  12671. -L* | -R* | -l*)
  12672. # Some compilers place space between "-{L,R}" and the path.
  12673. # Remove the space.
  12674. if test x-L = "x$p" ||
  12675. test x-R = "x$p" ||
  12676. test x-l = "x$p"; then
  12677. prev=$p
  12678. continue
  12679. fi
  12680. # Expand the sysroot to ease extracting the directories later.
  12681. if test -z "$prev"; then
  12682. case $p in
  12683. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12684. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12685. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12686. esac
  12687. fi
  12688. case $p in
  12689. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12690. esac
  12691. if test no = "$pre_test_object_deps_done"; then
  12692. case $prev in
  12693. -L | -R)
  12694. # Internal compiler library paths should come after those
  12695. # provided the user. The postdeps already come after the
  12696. # user supplied libs so there is no need to process them.
  12697. if test -z "$compiler_lib_search_path_CXX"; then
  12698. compiler_lib_search_path_CXX=$prev$p
  12699. else
  12700. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12701. fi
  12702. ;;
  12703. # The "-l" case would never come before the object being
  12704. # linked, so don't bother handling this case.
  12705. esac
  12706. else
  12707. if test -z "$postdeps_CXX"; then
  12708. postdeps_CXX=$prev$p
  12709. else
  12710. postdeps_CXX="${postdeps_CXX} $prev$p"
  12711. fi
  12712. fi
  12713. prev=
  12714. ;;
  12715. *.lto.$objext) ;; # Ignore GCC LTO objects
  12716. *.$objext)
  12717. # This assumes that the test object file only shows up
  12718. # once in the compiler output.
  12719. if test "$p" = "conftest.$objext"; then
  12720. pre_test_object_deps_done=yes
  12721. continue
  12722. fi
  12723. if test no = "$pre_test_object_deps_done"; then
  12724. if test -z "$predep_objects_CXX"; then
  12725. predep_objects_CXX=$p
  12726. else
  12727. predep_objects_CXX="$predep_objects_CXX $p"
  12728. fi
  12729. else
  12730. if test -z "$postdep_objects_CXX"; then
  12731. postdep_objects_CXX=$p
  12732. else
  12733. postdep_objects_CXX="$postdep_objects_CXX $p"
  12734. fi
  12735. fi
  12736. ;;
  12737. *) ;; # Ignore the rest.
  12738. esac
  12739. done
  12740. # Clean up.
  12741. rm -f a.out a.exe
  12742. else
  12743. echo "libtool.m4: error: problem compiling CXX test program"
  12744. fi
  12745. $RM -f confest.$objext
  12746. CFLAGS=$_lt_libdeps_save_CFLAGS
  12747. # PORTME: override above test on systems where it is broken
  12748. case $host_os in
  12749. interix[3-9]*)
  12750. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12751. # hack all around it, let's just trust "g++" to DTRT.
  12752. predep_objects_CXX=
  12753. postdep_objects_CXX=
  12754. postdeps_CXX=
  12755. ;;
  12756. esac
  12757. case " $postdeps_CXX " in
  12758. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12759. esac
  12760. compiler_lib_search_dirs_CXX=
  12761. if test -n "${compiler_lib_search_path_CXX}"; then
  12762. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12763. fi
  12764. lt_prog_compiler_wl_CXX=
  12765. lt_prog_compiler_pic_CXX=
  12766. lt_prog_compiler_static_CXX=
  12767. # C++ specific cases for pic, static, wl, etc.
  12768. if test yes = "$GXX"; then
  12769. lt_prog_compiler_wl_CXX='-Wl,'
  12770. lt_prog_compiler_static_CXX='-static'
  12771. case $host_os in
  12772. aix*)
  12773. # All AIX code is PIC.
  12774. if test ia64 = "$host_cpu"; then
  12775. # AIX 5 now supports IA64 processor
  12776. lt_prog_compiler_static_CXX='-Bstatic'
  12777. fi
  12778. lt_prog_compiler_pic_CXX='-fPIC'
  12779. ;;
  12780. amigaos*)
  12781. case $host_cpu in
  12782. powerpc)
  12783. # see comment about AmigaOS4 .so support
  12784. lt_prog_compiler_pic_CXX='-fPIC'
  12785. ;;
  12786. m68k)
  12787. # FIXME: we need at least 68020 code to build shared libraries, but
  12788. # adding the '-m68020' flag to GCC prevents building anything better,
  12789. # like '-m68040'.
  12790. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12791. ;;
  12792. esac
  12793. ;;
  12794. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12795. # PIC is the default for these OSes.
  12796. ;;
  12797. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12798. # This hack is so that the source file can tell whether it is being
  12799. # built for inclusion in a dll (and should export symbols for example).
  12800. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12801. # (--disable-auto-import) libraries
  12802. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12803. case $host_os in
  12804. os2*)
  12805. lt_prog_compiler_static_CXX='$wl-static'
  12806. ;;
  12807. esac
  12808. ;;
  12809. darwin* | rhapsody*)
  12810. # PIC is the default on this platform
  12811. # Common symbols not allowed in MH_DYLIB files
  12812. lt_prog_compiler_pic_CXX='-fno-common'
  12813. ;;
  12814. *djgpp*)
  12815. # DJGPP does not support shared libraries at all
  12816. lt_prog_compiler_pic_CXX=
  12817. ;;
  12818. haiku*)
  12819. # PIC is the default for Haiku.
  12820. # The "-static" flag exists, but is broken.
  12821. lt_prog_compiler_static_CXX=
  12822. ;;
  12823. interix[3-9]*)
  12824. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12825. # Instead, we relocate shared libraries at runtime.
  12826. ;;
  12827. sysv4*MP*)
  12828. if test -d /usr/nec; then
  12829. lt_prog_compiler_pic_CXX=-Kconform_pic
  12830. fi
  12831. ;;
  12832. hpux*)
  12833. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12834. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12835. # sets the default TLS model and affects inlining.
  12836. case $host_cpu in
  12837. hppa*64*)
  12838. ;;
  12839. *)
  12840. lt_prog_compiler_pic_CXX='-fPIC'
  12841. ;;
  12842. esac
  12843. ;;
  12844. *qnx* | *nto*)
  12845. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12846. # it will coredump.
  12847. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12848. ;;
  12849. *)
  12850. lt_prog_compiler_pic_CXX='-fPIC'
  12851. ;;
  12852. esac
  12853. else
  12854. case $host_os in
  12855. aix[4-9]*)
  12856. # All AIX code is PIC.
  12857. if test ia64 = "$host_cpu"; then
  12858. # AIX 5 now supports IA64 processor
  12859. lt_prog_compiler_static_CXX='-Bstatic'
  12860. else
  12861. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12862. fi
  12863. ;;
  12864. chorus*)
  12865. case $cc_basename in
  12866. cxch68*)
  12867. # Green Hills C++ Compiler
  12868. # _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"
  12869. ;;
  12870. esac
  12871. ;;
  12872. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12873. # This hack is so that the source file can tell whether it is being
  12874. # built for inclusion in a dll (and should export symbols for example).
  12875. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12876. ;;
  12877. dgux*)
  12878. case $cc_basename in
  12879. ec++*)
  12880. lt_prog_compiler_pic_CXX='-KPIC'
  12881. ;;
  12882. ghcx*)
  12883. # Green Hills C++ Compiler
  12884. lt_prog_compiler_pic_CXX='-pic'
  12885. ;;
  12886. *)
  12887. ;;
  12888. esac
  12889. ;;
  12890. freebsd* | dragonfly* | midnightbsd*)
  12891. # FreeBSD uses GNU C++
  12892. ;;
  12893. hpux9* | hpux10* | hpux11*)
  12894. case $cc_basename in
  12895. CC*)
  12896. lt_prog_compiler_wl_CXX='-Wl,'
  12897. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12898. if test ia64 != "$host_cpu"; then
  12899. lt_prog_compiler_pic_CXX='+Z'
  12900. fi
  12901. ;;
  12902. aCC*)
  12903. lt_prog_compiler_wl_CXX='-Wl,'
  12904. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12905. case $host_cpu in
  12906. hppa*64*|ia64*)
  12907. # +Z the default
  12908. ;;
  12909. *)
  12910. lt_prog_compiler_pic_CXX='+Z'
  12911. ;;
  12912. esac
  12913. ;;
  12914. *)
  12915. ;;
  12916. esac
  12917. ;;
  12918. interix*)
  12919. # This is c89, which is MS Visual C++ (no shared libs)
  12920. # Anyone wants to do a port?
  12921. ;;
  12922. irix5* | irix6* | nonstopux*)
  12923. case $cc_basename in
  12924. CC*)
  12925. lt_prog_compiler_wl_CXX='-Wl,'
  12926. lt_prog_compiler_static_CXX='-non_shared'
  12927. # CC pic flag -KPIC is the default.
  12928. ;;
  12929. *)
  12930. ;;
  12931. esac
  12932. ;;
  12933. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12934. case $cc_basename in
  12935. KCC*)
  12936. # KAI C++ Compiler
  12937. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12938. lt_prog_compiler_pic_CXX='-fPIC'
  12939. ;;
  12940. ecpc* )
  12941. # old Intel C++ for x86_64, which still supported -KPIC.
  12942. lt_prog_compiler_wl_CXX='-Wl,'
  12943. lt_prog_compiler_pic_CXX='-KPIC'
  12944. lt_prog_compiler_static_CXX='-static'
  12945. ;;
  12946. icpc* )
  12947. # Intel C++, used to be incompatible with GCC.
  12948. # ICC 10 doesn't accept -KPIC any more.
  12949. lt_prog_compiler_wl_CXX='-Wl,'
  12950. lt_prog_compiler_pic_CXX='-fPIC'
  12951. lt_prog_compiler_static_CXX='-static'
  12952. ;;
  12953. pgCC* | pgcpp*)
  12954. # Portland Group C++ compiler
  12955. lt_prog_compiler_wl_CXX='-Wl,'
  12956. lt_prog_compiler_pic_CXX='-fpic'
  12957. lt_prog_compiler_static_CXX='-Bstatic'
  12958. ;;
  12959. cxx*)
  12960. # Compaq C++
  12961. # Make sure the PIC flag is empty. It appears that all Alpha
  12962. # Linux and Compaq Tru64 Unix objects are PIC.
  12963. lt_prog_compiler_pic_CXX=
  12964. lt_prog_compiler_static_CXX='-non_shared'
  12965. ;;
  12966. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12967. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12968. lt_prog_compiler_wl_CXX='-Wl,'
  12969. lt_prog_compiler_pic_CXX='-qpic'
  12970. lt_prog_compiler_static_CXX='-qstaticlink'
  12971. ;;
  12972. *)
  12973. case `$CC -V 2>&1 | sed 5q` in
  12974. *Sun\ C*)
  12975. # Sun C++ 5.9
  12976. lt_prog_compiler_pic_CXX='-KPIC'
  12977. lt_prog_compiler_static_CXX='-Bstatic'
  12978. lt_prog_compiler_wl_CXX='-Qoption ld '
  12979. ;;
  12980. esac
  12981. ;;
  12982. esac
  12983. ;;
  12984. lynxos*)
  12985. ;;
  12986. m88k*)
  12987. ;;
  12988. mvs*)
  12989. case $cc_basename in
  12990. cxx*)
  12991. lt_prog_compiler_pic_CXX='-W c,exportall'
  12992. ;;
  12993. *)
  12994. ;;
  12995. esac
  12996. ;;
  12997. netbsd*)
  12998. ;;
  12999. *qnx* | *nto*)
  13000. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13001. # it will coredump.
  13002. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13003. ;;
  13004. osf3* | osf4* | osf5*)
  13005. case $cc_basename in
  13006. KCC*)
  13007. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13008. ;;
  13009. RCC*)
  13010. # Rational C++ 2.4.1
  13011. lt_prog_compiler_pic_CXX='-pic'
  13012. ;;
  13013. cxx*)
  13014. # Digital/Compaq C++
  13015. lt_prog_compiler_wl_CXX='-Wl,'
  13016. # Make sure the PIC flag is empty. It appears that all Alpha
  13017. # Linux and Compaq Tru64 Unix objects are PIC.
  13018. lt_prog_compiler_pic_CXX=
  13019. lt_prog_compiler_static_CXX='-non_shared'
  13020. ;;
  13021. *)
  13022. ;;
  13023. esac
  13024. ;;
  13025. psos*)
  13026. ;;
  13027. solaris*)
  13028. case $cc_basename in
  13029. CC* | sunCC*)
  13030. # Sun C++ 4.2, 5.x and Centerline C++
  13031. lt_prog_compiler_pic_CXX='-KPIC'
  13032. lt_prog_compiler_static_CXX='-Bstatic'
  13033. lt_prog_compiler_wl_CXX='-Qoption ld '
  13034. ;;
  13035. gcx*)
  13036. # Green Hills C++ Compiler
  13037. lt_prog_compiler_pic_CXX='-PIC'
  13038. ;;
  13039. *)
  13040. ;;
  13041. esac
  13042. ;;
  13043. sunos4*)
  13044. case $cc_basename in
  13045. CC*)
  13046. # Sun C++ 4.x
  13047. lt_prog_compiler_pic_CXX='-pic'
  13048. lt_prog_compiler_static_CXX='-Bstatic'
  13049. ;;
  13050. lcc*)
  13051. # Lucid
  13052. lt_prog_compiler_pic_CXX='-pic'
  13053. ;;
  13054. *)
  13055. ;;
  13056. esac
  13057. ;;
  13058. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13059. case $cc_basename in
  13060. CC*)
  13061. lt_prog_compiler_wl_CXX='-Wl,'
  13062. lt_prog_compiler_pic_CXX='-KPIC'
  13063. lt_prog_compiler_static_CXX='-Bstatic'
  13064. ;;
  13065. esac
  13066. ;;
  13067. tandem*)
  13068. case $cc_basename in
  13069. NCC*)
  13070. # NonStop-UX NCC 3.20
  13071. lt_prog_compiler_pic_CXX='-KPIC'
  13072. ;;
  13073. *)
  13074. ;;
  13075. esac
  13076. ;;
  13077. vxworks*)
  13078. ;;
  13079. *)
  13080. lt_prog_compiler_can_build_shared_CXX=no
  13081. ;;
  13082. esac
  13083. fi
  13084. case $host_os in
  13085. # For platforms that do not support PIC, -DPIC is meaningless:
  13086. *djgpp*)
  13087. lt_prog_compiler_pic_CXX=
  13088. ;;
  13089. *)
  13090. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13091. ;;
  13092. esac
  13093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13094. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13095. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13096. $as_echo_n "(cached) " >&6
  13097. else
  13098. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13099. fi
  13100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13101. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13102. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13103. #
  13104. # Check to make sure the PIC flag actually works.
  13105. #
  13106. if test -n "$lt_prog_compiler_pic_CXX"; then
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13108. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13109. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13110. $as_echo_n "(cached) " >&6
  13111. else
  13112. lt_cv_prog_compiler_pic_works_CXX=no
  13113. ac_outfile=conftest.$ac_objext
  13114. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13115. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13116. # Insert the option either (1) after the last *FLAGS variable, or
  13117. # (2) before a word containing "conftest.", or (3) at the end.
  13118. # Note that $ac_compile itself does not contain backslashes and begins
  13119. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13120. # The option is referenced via a variable to avoid confusing sed.
  13121. lt_compile=`echo "$ac_compile" | $SED \
  13122. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13123. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13124. -e 's:$: $lt_compiler_flag:'`
  13125. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13126. (eval "$lt_compile" 2>conftest.err)
  13127. ac_status=$?
  13128. cat conftest.err >&5
  13129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13130. if (exit $ac_status) && test -s "$ac_outfile"; then
  13131. # The compiler can only warn and ignore the option if not recognized
  13132. # So say no if there are warnings other than the usual output.
  13133. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13134. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13135. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13136. lt_cv_prog_compiler_pic_works_CXX=yes
  13137. fi
  13138. fi
  13139. $RM conftest*
  13140. fi
  13141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13142. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13143. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13144. case $lt_prog_compiler_pic_CXX in
  13145. "" | " "*) ;;
  13146. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13147. esac
  13148. else
  13149. lt_prog_compiler_pic_CXX=
  13150. lt_prog_compiler_can_build_shared_CXX=no
  13151. fi
  13152. fi
  13153. #
  13154. # Check to make sure the static flag actually works.
  13155. #
  13156. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13158. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13159. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13160. $as_echo_n "(cached) " >&6
  13161. else
  13162. lt_cv_prog_compiler_static_works_CXX=no
  13163. save_LDFLAGS=$LDFLAGS
  13164. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13165. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13166. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13167. # The linker can only warn and ignore the option if not recognized
  13168. # So say no if there are warnings
  13169. if test -s conftest.err; then
  13170. # Append any errors to the config.log.
  13171. cat conftest.err 1>&5
  13172. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13173. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13174. if diff conftest.exp conftest.er2 >/dev/null; then
  13175. lt_cv_prog_compiler_static_works_CXX=yes
  13176. fi
  13177. else
  13178. lt_cv_prog_compiler_static_works_CXX=yes
  13179. fi
  13180. fi
  13181. $RM -r conftest*
  13182. LDFLAGS=$save_LDFLAGS
  13183. fi
  13184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13185. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13186. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13187. :
  13188. else
  13189. lt_prog_compiler_static_CXX=
  13190. fi
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13192. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13193. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13194. $as_echo_n "(cached) " >&6
  13195. else
  13196. lt_cv_prog_compiler_c_o_CXX=no
  13197. $RM -r conftest 2>/dev/null
  13198. mkdir conftest
  13199. cd conftest
  13200. mkdir out
  13201. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13202. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13203. # Insert the option either (1) after the last *FLAGS variable, or
  13204. # (2) before a word containing "conftest.", or (3) at the end.
  13205. # Note that $ac_compile itself does not contain backslashes and begins
  13206. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13207. lt_compile=`echo "$ac_compile" | $SED \
  13208. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13209. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13210. -e 's:$: $lt_compiler_flag:'`
  13211. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13212. (eval "$lt_compile" 2>out/conftest.err)
  13213. ac_status=$?
  13214. cat out/conftest.err >&5
  13215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13216. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13217. then
  13218. # The compiler can only warn and ignore the option if not recognized
  13219. # So say no if there are warnings
  13220. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13221. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13222. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13223. lt_cv_prog_compiler_c_o_CXX=yes
  13224. fi
  13225. fi
  13226. chmod u+w . 2>&5
  13227. $RM conftest*
  13228. # SGI C++ compiler will create directory out/ii_files/ for
  13229. # template instantiation
  13230. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13231. $RM out/* && rmdir out
  13232. cd ..
  13233. $RM -r conftest
  13234. $RM conftest*
  13235. fi
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13237. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13239. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13240. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13241. $as_echo_n "(cached) " >&6
  13242. else
  13243. lt_cv_prog_compiler_c_o_CXX=no
  13244. $RM -r conftest 2>/dev/null
  13245. mkdir conftest
  13246. cd conftest
  13247. mkdir out
  13248. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13249. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13250. # Insert the option either (1) after the last *FLAGS variable, or
  13251. # (2) before a word containing "conftest.", or (3) at the end.
  13252. # Note that $ac_compile itself does not contain backslashes and begins
  13253. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13254. lt_compile=`echo "$ac_compile" | $SED \
  13255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13257. -e 's:$: $lt_compiler_flag:'`
  13258. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13259. (eval "$lt_compile" 2>out/conftest.err)
  13260. ac_status=$?
  13261. cat out/conftest.err >&5
  13262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13263. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13264. then
  13265. # The compiler can only warn and ignore the option if not recognized
  13266. # So say no if there are warnings
  13267. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13268. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13269. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13270. lt_cv_prog_compiler_c_o_CXX=yes
  13271. fi
  13272. fi
  13273. chmod u+w . 2>&5
  13274. $RM conftest*
  13275. # SGI C++ compiler will create directory out/ii_files/ for
  13276. # template instantiation
  13277. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13278. $RM out/* && rmdir out
  13279. cd ..
  13280. $RM -r conftest
  13281. $RM conftest*
  13282. fi
  13283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13284. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13285. hard_links=nottested
  13286. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13287. # do not overwrite the value of need_locks provided by the user
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13289. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13290. hard_links=yes
  13291. $RM conftest*
  13292. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13293. touch conftest.a
  13294. ln conftest.a conftest.b 2>&5 || hard_links=no
  13295. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13297. $as_echo "$hard_links" >&6; }
  13298. if test no = "$hard_links"; then
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13300. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13301. need_locks=warn
  13302. fi
  13303. else
  13304. need_locks=no
  13305. fi
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13307. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13308. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13309. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13310. case $host_os in
  13311. aix[4-9]*)
  13312. # If we're using GNU nm, then we don't want the "-C" option.
  13313. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13314. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13315. # weak defined symbols like other global defined symbols, whereas
  13316. # GNU nm marks them as "W".
  13317. # While the 'weak' keyword is ignored in the Export File, we need
  13318. # it in the Import File for the 'aix-soname' feature, so we have
  13319. # to replace the "-B" option with "-P" for AIX nm.
  13320. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13321. 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'
  13322. else
  13323. 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'
  13324. fi
  13325. ;;
  13326. pw32*)
  13327. export_symbols_cmds_CXX=$ltdll_cmds
  13328. ;;
  13329. cygwin* | mingw* | cegcc*)
  13330. case $cc_basename in
  13331. cl*)
  13332. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13333. ;;
  13334. *)
  13335. 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'
  13336. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13337. ;;
  13338. esac
  13339. ;;
  13340. *)
  13341. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13342. ;;
  13343. esac
  13344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13345. $as_echo "$ld_shlibs_CXX" >&6; }
  13346. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13347. with_gnu_ld_CXX=$with_gnu_ld
  13348. #
  13349. # Do we need to explicitly link libc?
  13350. #
  13351. case "x$archive_cmds_need_lc_CXX" in
  13352. x|xyes)
  13353. # Assume -lc should be added
  13354. archive_cmds_need_lc_CXX=yes
  13355. if test yes,yes = "$GCC,$enable_shared"; then
  13356. case $archive_cmds_CXX in
  13357. *'~'*)
  13358. # FIXME: we may have to deal with multi-command sequences.
  13359. ;;
  13360. '$CC '*)
  13361. # Test whether the compiler implicitly links with -lc since on some
  13362. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13363. # to ld, don't add -lc before -lgcc.
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13365. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13366. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13367. $as_echo_n "(cached) " >&6
  13368. else
  13369. $RM conftest*
  13370. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13371. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13372. (eval $ac_compile) 2>&5
  13373. ac_status=$?
  13374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13375. test $ac_status = 0; } 2>conftest.err; then
  13376. soname=conftest
  13377. lib=conftest
  13378. libobjs=conftest.$ac_objext
  13379. deplibs=
  13380. wl=$lt_prog_compiler_wl_CXX
  13381. pic_flag=$lt_prog_compiler_pic_CXX
  13382. compiler_flags=-v
  13383. linker_flags=-v
  13384. verstring=
  13385. output_objdir=.
  13386. libname=conftest
  13387. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13388. allow_undefined_flag_CXX=
  13389. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13390. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13391. ac_status=$?
  13392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13393. test $ac_status = 0; }
  13394. then
  13395. lt_cv_archive_cmds_need_lc_CXX=no
  13396. else
  13397. lt_cv_archive_cmds_need_lc_CXX=yes
  13398. fi
  13399. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13400. else
  13401. cat conftest.err 1>&5
  13402. fi
  13403. $RM conftest*
  13404. fi
  13405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13406. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13407. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13408. ;;
  13409. esac
  13410. fi
  13411. ;;
  13412. esac
  13413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13414. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13415. library_names_spec=
  13416. libname_spec='lib$name'
  13417. soname_spec=
  13418. shrext_cmds=.so
  13419. postinstall_cmds=
  13420. postuninstall_cmds=
  13421. finish_cmds=
  13422. finish_eval=
  13423. shlibpath_var=
  13424. shlibpath_overrides_runpath=unknown
  13425. version_type=none
  13426. dynamic_linker="$host_os ld.so"
  13427. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13428. need_lib_prefix=unknown
  13429. hardcode_into_libs=no
  13430. # when you set need_version to no, make sure it does not cause -set_version
  13431. # flags to be left without arguments
  13432. need_version=unknown
  13433. case $host_os in
  13434. aix3*)
  13435. version_type=linux # correct to gnu/linux during the next big refactor
  13436. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13437. shlibpath_var=LIBPATH
  13438. # AIX 3 has no versioning support, so we append a major version to the name.
  13439. soname_spec='$libname$release$shared_ext$major'
  13440. ;;
  13441. aix[4-9]*)
  13442. version_type=linux # correct to gnu/linux during the next big refactor
  13443. need_lib_prefix=no
  13444. need_version=no
  13445. hardcode_into_libs=yes
  13446. if test ia64 = "$host_cpu"; then
  13447. # AIX 5 supports IA64
  13448. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13449. shlibpath_var=LD_LIBRARY_PATH
  13450. else
  13451. # With GCC up to 2.95.x, collect2 would create an import file
  13452. # for dependence libraries. The import file would start with
  13453. # the line '#! .'. This would cause the generated library to
  13454. # depend on '.', always an invalid library. This was fixed in
  13455. # development snapshots of GCC prior to 3.0.
  13456. case $host_os in
  13457. aix4 | aix4.[01] | aix4.[01].*)
  13458. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13459. echo ' yes '
  13460. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13461. :
  13462. else
  13463. can_build_shared=no
  13464. fi
  13465. ;;
  13466. esac
  13467. # Using Import Files as archive members, it is possible to support
  13468. # filename-based versioning of shared library archives on AIX. While
  13469. # this would work for both with and without runtime linking, it will
  13470. # prevent static linking of such archives. So we do filename-based
  13471. # shared library versioning with .so extension only, which is used
  13472. # when both runtime linking and shared linking is enabled.
  13473. # Unfortunately, runtime linking may impact performance, so we do
  13474. # not want this to be the default eventually. Also, we use the
  13475. # versioned .so libs for executables only if there is the -brtl
  13476. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13477. # To allow for filename-based versioning support, we need to create
  13478. # libNAME.so.V as an archive file, containing:
  13479. # *) an Import File, referring to the versioned filename of the
  13480. # archive as well as the shared archive member, telling the
  13481. # bitwidth (32 or 64) of that shared object, and providing the
  13482. # list of exported symbols of that shared object, eventually
  13483. # decorated with the 'weak' keyword
  13484. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13485. # it being seen by the linker.
  13486. # At run time we better use the real file rather than another symlink,
  13487. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13488. case $with_aix_soname,$aix_use_runtimelinking in
  13489. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13490. # soname into executable. Probably we can add versioning support to
  13491. # collect2, so additional links can be useful in future.
  13492. aix,yes) # traditional libtool
  13493. dynamic_linker='AIX unversionable lib.so'
  13494. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13495. # instead of lib<name>.a to let people know that these are not
  13496. # typical AIX shared libraries.
  13497. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13498. ;;
  13499. aix,no) # traditional AIX only
  13500. dynamic_linker='AIX lib.a(lib.so.V)'
  13501. # We preserve .a as extension for shared libraries through AIX4.2
  13502. # and later when we are not doing run time linking.
  13503. library_names_spec='$libname$release.a $libname.a'
  13504. soname_spec='$libname$release$shared_ext$major'
  13505. ;;
  13506. svr4,*) # full svr4 only
  13507. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13508. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13509. # We do not specify a path in Import Files, so LIBPATH fires.
  13510. shlibpath_overrides_runpath=yes
  13511. ;;
  13512. *,yes) # both, prefer svr4
  13513. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13514. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13515. # unpreferred sharedlib libNAME.a needs extra handling
  13516. 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"'
  13517. 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"'
  13518. # We do not specify a path in Import Files, so LIBPATH fires.
  13519. shlibpath_overrides_runpath=yes
  13520. ;;
  13521. *,no) # both, prefer aix
  13522. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13523. library_names_spec='$libname$release.a $libname.a'
  13524. soname_spec='$libname$release$shared_ext$major'
  13525. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13526. 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)'
  13527. 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"'
  13528. ;;
  13529. esac
  13530. shlibpath_var=LIBPATH
  13531. fi
  13532. ;;
  13533. amigaos*)
  13534. case $host_cpu in
  13535. powerpc)
  13536. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13537. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13538. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13539. ;;
  13540. m68k)
  13541. library_names_spec='$libname.ixlibrary $libname.a'
  13542. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13543. 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'
  13544. ;;
  13545. esac
  13546. ;;
  13547. beos*)
  13548. library_names_spec='$libname$shared_ext'
  13549. dynamic_linker="$host_os ld.so"
  13550. shlibpath_var=LIBRARY_PATH
  13551. ;;
  13552. bsdi[45]*)
  13553. version_type=linux # correct to gnu/linux during the next big refactor
  13554. need_version=no
  13555. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13556. soname_spec='$libname$release$shared_ext$major'
  13557. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13558. shlibpath_var=LD_LIBRARY_PATH
  13559. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13560. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13561. # the default ld.so.conf also contains /usr/contrib/lib and
  13562. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13563. # libtool to hard-code these into programs
  13564. ;;
  13565. cygwin* | mingw* | pw32* | cegcc*)
  13566. version_type=windows
  13567. shrext_cmds=.dll
  13568. need_version=no
  13569. need_lib_prefix=no
  13570. case $GCC,$cc_basename in
  13571. yes,*)
  13572. # gcc
  13573. library_names_spec='$libname.dll.a'
  13574. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13575. postinstall_cmds='base_file=`basename \$file`~
  13576. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13577. dldir=$destdir/`dirname \$dlpath`~
  13578. test -d \$dldir || mkdir -p \$dldir~
  13579. $install_prog $dir/$dlname \$dldir/$dlname~
  13580. chmod a+x \$dldir/$dlname~
  13581. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13582. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13583. fi'
  13584. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13585. dlpath=$dir/\$dldll~
  13586. $RM \$dlpath'
  13587. shlibpath_overrides_runpath=yes
  13588. case $host_os in
  13589. cygwin*)
  13590. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13591. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13592. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13593. ;;
  13594. mingw* | cegcc*)
  13595. # MinGW DLLs use traditional 'lib' prefix
  13596. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13597. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13598. ;;
  13599. pw32*)
  13600. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13601. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13602. ;;
  13603. esac
  13604. dynamic_linker='Win32 ld.exe'
  13605. ;;
  13606. *,cl*)
  13607. # Native MSVC
  13608. libname_spec='$name'
  13609. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13610. library_names_spec='$libname.dll.lib'
  13611. case $build_os in
  13612. mingw*)
  13613. sys_lib_search_path_spec=
  13614. lt_save_ifs=$IFS
  13615. IFS=';'
  13616. for lt_path in $LIB
  13617. do
  13618. IFS=$lt_save_ifs
  13619. # Let DOS variable expansion print the short 8.3 style file name.
  13620. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13621. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13622. done
  13623. IFS=$lt_save_ifs
  13624. # Convert to MSYS style.
  13625. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13626. ;;
  13627. cygwin*)
  13628. # Convert to unix form, then to dos form, then back to unix form
  13629. # but this time dos style (no spaces!) so that the unix form looks
  13630. # like /cygdrive/c/PROGRA~1:/cygdr...
  13631. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13632. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13633. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13634. ;;
  13635. *)
  13636. sys_lib_search_path_spec=$LIB
  13637. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13638. # It is most probably a Windows format PATH.
  13639. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13640. else
  13641. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13642. fi
  13643. # FIXME: find the short name or the path components, as spaces are
  13644. # common. (e.g. "Program Files" -> "PROGRA~1")
  13645. ;;
  13646. esac
  13647. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13648. postinstall_cmds='base_file=`basename \$file`~
  13649. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13650. dldir=$destdir/`dirname \$dlpath`~
  13651. test -d \$dldir || mkdir -p \$dldir~
  13652. $install_prog $dir/$dlname \$dldir/$dlname'
  13653. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13654. dlpath=$dir/\$dldll~
  13655. $RM \$dlpath'
  13656. shlibpath_overrides_runpath=yes
  13657. dynamic_linker='Win32 link.exe'
  13658. ;;
  13659. *)
  13660. # Assume MSVC wrapper
  13661. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13662. dynamic_linker='Win32 ld.exe'
  13663. ;;
  13664. esac
  13665. # FIXME: first we should search . and the directory the executable is in
  13666. shlibpath_var=PATH
  13667. ;;
  13668. darwin* | rhapsody*)
  13669. dynamic_linker="$host_os dyld"
  13670. version_type=darwin
  13671. need_lib_prefix=no
  13672. need_version=no
  13673. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13674. soname_spec='$libname$release$major$shared_ext'
  13675. shlibpath_overrides_runpath=yes
  13676. shlibpath_var=DYLD_LIBRARY_PATH
  13677. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13678. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13679. ;;
  13680. dgux*)
  13681. version_type=linux # correct to gnu/linux during the next big refactor
  13682. need_lib_prefix=no
  13683. need_version=no
  13684. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13685. soname_spec='$libname$release$shared_ext$major'
  13686. shlibpath_var=LD_LIBRARY_PATH
  13687. ;;
  13688. freebsd* | dragonfly* | midnightbsd*)
  13689. # DragonFly does not have aout. When/if they implement a new
  13690. # versioning mechanism, adjust this.
  13691. if test -x /usr/bin/objformat; then
  13692. objformat=`/usr/bin/objformat`
  13693. else
  13694. case $host_os in
  13695. freebsd[23].*) objformat=aout ;;
  13696. *) objformat=elf ;;
  13697. esac
  13698. fi
  13699. version_type=freebsd-$objformat
  13700. case $version_type in
  13701. freebsd-elf*)
  13702. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13703. soname_spec='$libname$release$shared_ext$major'
  13704. need_version=no
  13705. need_lib_prefix=no
  13706. ;;
  13707. freebsd-*)
  13708. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13709. need_version=yes
  13710. ;;
  13711. esac
  13712. shlibpath_var=LD_LIBRARY_PATH
  13713. case $host_os in
  13714. freebsd2.*)
  13715. shlibpath_overrides_runpath=yes
  13716. ;;
  13717. freebsd3.[01]* | freebsdelf3.[01]*)
  13718. shlibpath_overrides_runpath=yes
  13719. hardcode_into_libs=yes
  13720. ;;
  13721. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13722. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13723. shlibpath_overrides_runpath=no
  13724. hardcode_into_libs=yes
  13725. ;;
  13726. *) # from 4.6 on, and DragonFly
  13727. shlibpath_overrides_runpath=yes
  13728. hardcode_into_libs=yes
  13729. ;;
  13730. esac
  13731. ;;
  13732. haiku*)
  13733. version_type=linux # correct to gnu/linux during the next big refactor
  13734. need_lib_prefix=no
  13735. need_version=no
  13736. dynamic_linker="$host_os runtime_loader"
  13737. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13738. soname_spec='$libname$release$shared_ext$major'
  13739. shlibpath_var=LIBRARY_PATH
  13740. shlibpath_overrides_runpath=no
  13741. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13742. hardcode_into_libs=yes
  13743. ;;
  13744. hpux9* | hpux10* | hpux11*)
  13745. # Give a soname corresponding to the major version so that dld.sl refuses to
  13746. # link against other versions.
  13747. version_type=sunos
  13748. need_lib_prefix=no
  13749. need_version=no
  13750. case $host_cpu in
  13751. ia64*)
  13752. shrext_cmds='.so'
  13753. hardcode_into_libs=yes
  13754. dynamic_linker="$host_os dld.so"
  13755. shlibpath_var=LD_LIBRARY_PATH
  13756. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13757. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13758. soname_spec='$libname$release$shared_ext$major'
  13759. if test 32 = "$HPUX_IA64_MODE"; then
  13760. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13761. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13762. else
  13763. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13764. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13765. fi
  13766. ;;
  13767. hppa*64*)
  13768. shrext_cmds='.sl'
  13769. hardcode_into_libs=yes
  13770. dynamic_linker="$host_os dld.sl"
  13771. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13772. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13773. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13774. soname_spec='$libname$release$shared_ext$major'
  13775. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13776. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13777. ;;
  13778. *)
  13779. shrext_cmds='.sl'
  13780. dynamic_linker="$host_os dld.sl"
  13781. shlibpath_var=SHLIB_PATH
  13782. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13783. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13784. soname_spec='$libname$release$shared_ext$major'
  13785. ;;
  13786. esac
  13787. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13788. postinstall_cmds='chmod 555 $lib'
  13789. # or fails outright, so override atomically:
  13790. install_override_mode=555
  13791. ;;
  13792. interix[3-9]*)
  13793. version_type=linux # correct to gnu/linux during the next big refactor
  13794. need_lib_prefix=no
  13795. need_version=no
  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. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13799. shlibpath_var=LD_LIBRARY_PATH
  13800. shlibpath_overrides_runpath=no
  13801. hardcode_into_libs=yes
  13802. ;;
  13803. irix5* | irix6* | nonstopux*)
  13804. case $host_os in
  13805. nonstopux*) version_type=nonstopux ;;
  13806. *)
  13807. if test yes = "$lt_cv_prog_gnu_ld"; then
  13808. version_type=linux # correct to gnu/linux during the next big refactor
  13809. else
  13810. version_type=irix
  13811. fi ;;
  13812. esac
  13813. need_lib_prefix=no
  13814. need_version=no
  13815. soname_spec='$libname$release$shared_ext$major'
  13816. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13817. case $host_os in
  13818. irix5* | nonstopux*)
  13819. libsuff= shlibsuff=
  13820. ;;
  13821. *)
  13822. case $LD in # libtool.m4 will add one of these switches to LD
  13823. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13824. libsuff= shlibsuff= libmagic=32-bit;;
  13825. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13826. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13827. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13828. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13829. *) libsuff= shlibsuff= libmagic=never-match;;
  13830. esac
  13831. ;;
  13832. esac
  13833. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13834. shlibpath_overrides_runpath=no
  13835. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13836. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13837. hardcode_into_libs=yes
  13838. ;;
  13839. # No shared lib support for Linux oldld, aout, or coff.
  13840. linux*oldld* | linux*aout* | linux*coff*)
  13841. dynamic_linker=no
  13842. ;;
  13843. linux*android*)
  13844. version_type=none # Android doesn't support versioned libraries.
  13845. need_lib_prefix=no
  13846. need_version=no
  13847. library_names_spec='$libname$release$shared_ext'
  13848. soname_spec='$libname$release$shared_ext'
  13849. finish_cmds=
  13850. shlibpath_var=LD_LIBRARY_PATH
  13851. shlibpath_overrides_runpath=yes
  13852. # This implies no fast_install, which is unacceptable.
  13853. # Some rework will be needed to allow for fast_install
  13854. # before this can be enabled.
  13855. hardcode_into_libs=yes
  13856. dynamic_linker='Android linker'
  13857. # Don't embed -rpath directories since the linker doesn't support them.
  13858. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13859. ;;
  13860. # This must be glibc/ELF.
  13861. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13862. version_type=linux # correct to gnu/linux during the next big refactor
  13863. need_lib_prefix=no
  13864. need_version=no
  13865. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13866. soname_spec='$libname$release$shared_ext$major'
  13867. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13868. shlibpath_var=LD_LIBRARY_PATH
  13869. shlibpath_overrides_runpath=no
  13870. # Some binutils ld are patched to set DT_RUNPATH
  13871. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13872. $as_echo_n "(cached) " >&6
  13873. else
  13874. lt_cv_shlibpath_overrides_runpath=no
  13875. save_LDFLAGS=$LDFLAGS
  13876. save_libdir=$libdir
  13877. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13878. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13880. /* end confdefs.h. */
  13881. int
  13882. main ()
  13883. {
  13884. ;
  13885. return 0;
  13886. }
  13887. _ACEOF
  13888. if ac_fn_cxx_try_link "$LINENO"; then :
  13889. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13890. lt_cv_shlibpath_overrides_runpath=yes
  13891. fi
  13892. fi
  13893. rm -f core conftest.err conftest.$ac_objext \
  13894. conftest$ac_exeext conftest.$ac_ext
  13895. LDFLAGS=$save_LDFLAGS
  13896. libdir=$save_libdir
  13897. fi
  13898. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13899. # This implies no fast_install, which is unacceptable.
  13900. # Some rework will be needed to allow for fast_install
  13901. # before this can be enabled.
  13902. hardcode_into_libs=yes
  13903. # Add ABI-specific directories to the system library path.
  13904. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13905. # Ideally, we could use ldconfig to report *all* directores which are
  13906. # searched for libraries, however this is still not possible. Aside from not
  13907. # being certain /sbin/ldconfig is available, command
  13908. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13909. # even though it is searched at run-time. Try to do the best guess by
  13910. # appending ld.so.conf contents (and includes) to the search path.
  13911. if test -f /etc/ld.so.conf; then
  13912. 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' ' '`
  13913. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13914. fi
  13915. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13916. # powerpc, because MkLinux only supported shared libraries with the
  13917. # GNU dynamic linker. Since this was broken with cross compilers,
  13918. # most powerpc-linux boxes support dynamic linking these days and
  13919. # people can always --disable-shared, the test was removed, and we
  13920. # assume the GNU/Linux dynamic linker is in use.
  13921. dynamic_linker='GNU/Linux ld.so'
  13922. ;;
  13923. netbsd*)
  13924. version_type=sunos
  13925. need_lib_prefix=no
  13926. need_version=no
  13927. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13928. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13929. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13930. dynamic_linker='NetBSD (a.out) ld.so'
  13931. else
  13932. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13933. soname_spec='$libname$release$shared_ext$major'
  13934. dynamic_linker='NetBSD ld.elf_so'
  13935. fi
  13936. shlibpath_var=LD_LIBRARY_PATH
  13937. shlibpath_overrides_runpath=yes
  13938. hardcode_into_libs=yes
  13939. ;;
  13940. newsos6)
  13941. version_type=linux # correct to gnu/linux during the next big refactor
  13942. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13943. shlibpath_var=LD_LIBRARY_PATH
  13944. shlibpath_overrides_runpath=yes
  13945. ;;
  13946. *nto* | *qnx*)
  13947. version_type=qnx
  13948. need_lib_prefix=no
  13949. need_version=no
  13950. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13951. soname_spec='$libname$release$shared_ext$major'
  13952. shlibpath_var=LD_LIBRARY_PATH
  13953. shlibpath_overrides_runpath=no
  13954. hardcode_into_libs=yes
  13955. dynamic_linker='ldqnx.so'
  13956. ;;
  13957. openbsd* | bitrig*)
  13958. version_type=sunos
  13959. sys_lib_dlsearch_path_spec=/usr/lib
  13960. need_lib_prefix=no
  13961. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13962. need_version=no
  13963. else
  13964. need_version=yes
  13965. fi
  13966. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13967. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13968. shlibpath_var=LD_LIBRARY_PATH
  13969. shlibpath_overrides_runpath=yes
  13970. ;;
  13971. os2*)
  13972. libname_spec='$name'
  13973. shrext_cmds=.dll
  13974. need_lib_prefix=no
  13975. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13976. # SDL customization: removed versioning support.
  13977. # version_type=windows
  13978. # need_version=no
  13979. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13980. # v=$($ECHO $release$versuffix | tr -d .-);
  13981. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13982. # $ECHO $n$v`$shared_ext'
  13983. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13984. library_names_spec='${libname}_dll.$libext'
  13985. dynamic_linker='OS/2 ld.exe'
  13986. shlibpath_var=BEGINLIBPATH
  13987. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13988. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13989. postinstall_cmds='base_file=`basename \$file`~
  13990. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13991. dldir=$destdir/`dirname \$dlpath`~
  13992. test -d \$dldir || mkdir -p \$dldir~
  13993. $install_prog $dir/$dlname \$dldir/$dlname~
  13994. chmod a+x \$dldir/$dlname~
  13995. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13996. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13997. fi'
  13998. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13999. dlpath=$dir/\$dldll~
  14000. $RM \$dlpath'
  14001. ;;
  14002. osf3* | osf4* | osf5*)
  14003. version_type=osf
  14004. need_lib_prefix=no
  14005. need_version=no
  14006. soname_spec='$libname$release$shared_ext$major'
  14007. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14008. shlibpath_var=LD_LIBRARY_PATH
  14009. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14010. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14011. ;;
  14012. rdos*)
  14013. dynamic_linker=no
  14014. ;;
  14015. solaris*)
  14016. version_type=linux # correct to gnu/linux during the next big refactor
  14017. need_lib_prefix=no
  14018. need_version=no
  14019. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14020. soname_spec='$libname$release$shared_ext$major'
  14021. shlibpath_var=LD_LIBRARY_PATH
  14022. shlibpath_overrides_runpath=yes
  14023. hardcode_into_libs=yes
  14024. # ldd complains unless libraries are executable
  14025. postinstall_cmds='chmod +x $lib'
  14026. ;;
  14027. sunos4*)
  14028. version_type=sunos
  14029. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14030. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14031. shlibpath_var=LD_LIBRARY_PATH
  14032. shlibpath_overrides_runpath=yes
  14033. if test yes = "$with_gnu_ld"; then
  14034. need_lib_prefix=no
  14035. fi
  14036. need_version=yes
  14037. ;;
  14038. sysv4 | sysv4.3*)
  14039. version_type=linux # correct to gnu/linux during the next big refactor
  14040. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14041. soname_spec='$libname$release$shared_ext$major'
  14042. shlibpath_var=LD_LIBRARY_PATH
  14043. case $host_vendor in
  14044. sni)
  14045. shlibpath_overrides_runpath=no
  14046. need_lib_prefix=no
  14047. runpath_var=LD_RUN_PATH
  14048. ;;
  14049. siemens)
  14050. need_lib_prefix=no
  14051. ;;
  14052. motorola)
  14053. need_lib_prefix=no
  14054. need_version=no
  14055. shlibpath_overrides_runpath=no
  14056. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14057. ;;
  14058. esac
  14059. ;;
  14060. sysv4*MP*)
  14061. if test -d /usr/nec; then
  14062. version_type=linux # correct to gnu/linux during the next big refactor
  14063. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14064. soname_spec='$libname$shared_ext.$major'
  14065. shlibpath_var=LD_LIBRARY_PATH
  14066. fi
  14067. ;;
  14068. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14069. version_type=sco
  14070. need_lib_prefix=no
  14071. need_version=no
  14072. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14073. soname_spec='$libname$release$shared_ext$major'
  14074. shlibpath_var=LD_LIBRARY_PATH
  14075. shlibpath_overrides_runpath=yes
  14076. hardcode_into_libs=yes
  14077. if test yes = "$with_gnu_ld"; then
  14078. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14079. else
  14080. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14081. case $host_os in
  14082. sco3.2v5*)
  14083. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14084. ;;
  14085. esac
  14086. fi
  14087. sys_lib_dlsearch_path_spec='/usr/lib'
  14088. ;;
  14089. tpf*)
  14090. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14091. version_type=linux # correct to gnu/linux during the next big refactor
  14092. need_lib_prefix=no
  14093. need_version=no
  14094. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14095. shlibpath_var=LD_LIBRARY_PATH
  14096. shlibpath_overrides_runpath=no
  14097. hardcode_into_libs=yes
  14098. ;;
  14099. uts4*)
  14100. version_type=linux # correct to gnu/linux during the next big refactor
  14101. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14102. soname_spec='$libname$release$shared_ext$major'
  14103. shlibpath_var=LD_LIBRARY_PATH
  14104. ;;
  14105. *)
  14106. dynamic_linker=no
  14107. ;;
  14108. esac
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14110. $as_echo "$dynamic_linker" >&6; }
  14111. test no = "$dynamic_linker" && can_build_shared=no
  14112. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14113. if test yes = "$GCC"; then
  14114. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14115. fi
  14116. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14117. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14118. fi
  14119. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14120. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14121. fi
  14122. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14123. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14124. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14125. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14126. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14127. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14129. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14130. hardcode_action_CXX=
  14131. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14132. test -n "$runpath_var_CXX" ||
  14133. test yes = "$hardcode_automatic_CXX"; then
  14134. # We can hardcode non-existent directories.
  14135. if test no != "$hardcode_direct_CXX" &&
  14136. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14137. # have to relink, otherwise we might link with an installed library
  14138. # when we should be linking with a yet-to-be-installed one
  14139. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14140. test no != "$hardcode_minus_L_CXX"; then
  14141. # Linking always hardcodes the temporary library directory.
  14142. hardcode_action_CXX=relink
  14143. else
  14144. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14145. hardcode_action_CXX=immediate
  14146. fi
  14147. else
  14148. # We cannot hardcode anything, or else we can only hardcode existing
  14149. # directories.
  14150. hardcode_action_CXX=unsupported
  14151. fi
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14153. $as_echo "$hardcode_action_CXX" >&6; }
  14154. if test relink = "$hardcode_action_CXX" ||
  14155. test yes = "$inherit_rpath_CXX"; then
  14156. # Fast installation is not supported
  14157. enable_fast_install=no
  14158. elif test yes = "$shlibpath_overrides_runpath" ||
  14159. test no = "$enable_shared"; then
  14160. # Fast installation is not necessary
  14161. enable_fast_install=needless
  14162. fi
  14163. fi # test -n "$compiler"
  14164. CC=$lt_save_CC
  14165. CFLAGS=$lt_save_CFLAGS
  14166. LDCXX=$LD
  14167. LD=$lt_save_LD
  14168. GCC=$lt_save_GCC
  14169. with_gnu_ld=$lt_save_with_gnu_ld
  14170. lt_cv_path_LDCXX=$lt_cv_path_LD
  14171. lt_cv_path_LD=$lt_save_path_LD
  14172. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14173. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14174. fi # test yes != "$_lt_caught_CXX_error"
  14175. ac_ext=c
  14176. ac_cpp='$CPP $CPPFLAGS'
  14177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14180. # Find a good install program. We prefer a C program (faster),
  14181. # so one script is as good as another. But avoid the broken or
  14182. # incompatible versions:
  14183. # SysV /etc/install, /usr/sbin/install
  14184. # SunOS /usr/etc/install
  14185. # IRIX /sbin/install
  14186. # AIX /bin/install
  14187. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14188. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14189. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14190. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14191. # OS/2's system install, which has a completely different semantic
  14192. # ./install, which can be erroneously created by make from ./install.sh.
  14193. # Reject install programs that cannot install multiple files.
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14195. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14196. if test -z "$INSTALL"; then
  14197. if ${ac_cv_path_install+:} false; then :
  14198. $as_echo_n "(cached) " >&6
  14199. else
  14200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14201. for as_dir in $PATH
  14202. do
  14203. IFS=$as_save_IFS
  14204. test -z "$as_dir" && as_dir=.
  14205. # Account for people who put trailing slashes in PATH elements.
  14206. case $as_dir/ in #((
  14207. ./ | .// | /[cC]/* | \
  14208. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14209. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14210. /usr/ucb/* ) ;;
  14211. *)
  14212. # OSF1 and SCO ODT 3.0 have their own names for install.
  14213. # Don't use installbsd from OSF since it installs stuff as root
  14214. # by default.
  14215. for ac_prog in ginstall scoinst install; do
  14216. for ac_exec_ext in '' $ac_executable_extensions; do
  14217. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14218. if test $ac_prog = install &&
  14219. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14220. # AIX install. It has an incompatible calling convention.
  14221. :
  14222. elif test $ac_prog = install &&
  14223. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14224. # program-specific install script used by HP pwplus--don't use.
  14225. :
  14226. else
  14227. rm -rf conftest.one conftest.two conftest.dir
  14228. echo one > conftest.one
  14229. echo two > conftest.two
  14230. mkdir conftest.dir
  14231. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14232. test -s conftest.one && test -s conftest.two &&
  14233. test -s conftest.dir/conftest.one &&
  14234. test -s conftest.dir/conftest.two
  14235. then
  14236. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14237. break 3
  14238. fi
  14239. fi
  14240. fi
  14241. done
  14242. done
  14243. ;;
  14244. esac
  14245. done
  14246. IFS=$as_save_IFS
  14247. rm -rf conftest.one conftest.two conftest.dir
  14248. fi
  14249. if test "${ac_cv_path_install+set}" = set; then
  14250. INSTALL=$ac_cv_path_install
  14251. else
  14252. # As a last resort, use the slow shell script. Don't cache a
  14253. # value for INSTALL within a source directory, because that will
  14254. # break other packages using the cache if that directory is
  14255. # removed, or if the value is a relative name.
  14256. INSTALL=$ac_install_sh
  14257. fi
  14258. fi
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14260. $as_echo "$INSTALL" >&6; }
  14261. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14262. # It thinks the first close brace ends the variable substitution.
  14263. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14264. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14265. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14267. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14268. set x ${MAKE-make}
  14269. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14270. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14271. $as_echo_n "(cached) " >&6
  14272. else
  14273. cat >conftest.make <<\_ACEOF
  14274. SHELL = /bin/sh
  14275. all:
  14276. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14277. _ACEOF
  14278. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14279. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14280. *@@@%%%=?*=@@@%%%*)
  14281. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14282. *)
  14283. eval ac_cv_prog_make_${ac_make}_set=no;;
  14284. esac
  14285. rm -f conftest.make
  14286. fi
  14287. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14289. $as_echo "yes" >&6; }
  14290. SET_MAKE=
  14291. else
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14293. $as_echo "no" >&6; }
  14294. SET_MAKE="MAKE=${MAKE-make}"
  14295. fi
  14296. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14297. if test -n "$ac_tool_prefix"; then
  14298. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14299. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14301. $as_echo_n "checking for $ac_word... " >&6; }
  14302. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14303. $as_echo_n "(cached) " >&6
  14304. else
  14305. case $PKG_CONFIG in
  14306. [\\/]* | ?:[\\/]*)
  14307. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14308. ;;
  14309. *)
  14310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14311. for as_dir in $PATH
  14312. do
  14313. IFS=$as_save_IFS
  14314. test -z "$as_dir" && as_dir=.
  14315. for ac_exec_ext in '' $ac_executable_extensions; do
  14316. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14317. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14319. break 2
  14320. fi
  14321. done
  14322. done
  14323. IFS=$as_save_IFS
  14324. ;;
  14325. esac
  14326. fi
  14327. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14328. if test -n "$PKG_CONFIG"; then
  14329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14330. $as_echo "$PKG_CONFIG" >&6; }
  14331. else
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14333. $as_echo "no" >&6; }
  14334. fi
  14335. fi
  14336. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14337. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14338. # Extract the first word of "pkg-config", so it can be a program name with args.
  14339. set dummy pkg-config; ac_word=$2
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14341. $as_echo_n "checking for $ac_word... " >&6; }
  14342. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14343. $as_echo_n "(cached) " >&6
  14344. else
  14345. case $ac_pt_PKG_CONFIG in
  14346. [\\/]* | ?:[\\/]*)
  14347. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14348. ;;
  14349. *)
  14350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14351. for as_dir in $PATH
  14352. do
  14353. IFS=$as_save_IFS
  14354. test -z "$as_dir" && as_dir=.
  14355. for ac_exec_ext in '' $ac_executable_extensions; do
  14356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14357. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14359. break 2
  14360. fi
  14361. done
  14362. done
  14363. IFS=$as_save_IFS
  14364. ;;
  14365. esac
  14366. fi
  14367. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14368. if test -n "$ac_pt_PKG_CONFIG"; then
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14370. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14371. else
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14373. $as_echo "no" >&6; }
  14374. fi
  14375. if test "x$ac_pt_PKG_CONFIG" = x; then
  14376. PKG_CONFIG=""
  14377. else
  14378. case $cross_compiling:$ac_tool_warned in
  14379. yes:)
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14382. ac_tool_warned=yes ;;
  14383. esac
  14384. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14385. fi
  14386. else
  14387. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14388. fi
  14389. fi
  14390. if test -n "$PKG_CONFIG"; then
  14391. _pkg_min_version=0.9.0
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14393. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14394. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14396. $as_echo "yes" >&6; }
  14397. else
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14399. $as_echo "no" >&6; }
  14400. PKG_CONFIG=""
  14401. fi
  14402. fi
  14403. case "$host" in
  14404. *-*-mingw*)
  14405. # Except on msys, where make can't handle full pathnames (bug 1972)
  14406. ;;
  14407. *)
  14408. srcdir=`cd $srcdir && pwd`
  14409. ;;
  14410. esac
  14411. INCLUDE="-I$srcdir/include"
  14412. case "$host" in
  14413. *-*-nto-qnx*)
  14414. ;;
  14415. *)
  14416. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14417. ;;
  14418. esac
  14419. case "$host" in
  14420. *-*-haiku*)
  14421. LINKER='$(CXX)'
  14422. LIBTOOLLINKERTAG='CXX'
  14423. ;;
  14424. *)
  14425. LINKER='$(CC)'
  14426. LIBTOOLLINKERTAG='CC'
  14427. ;;
  14428. esac
  14429. if test x$srcdir != x.; then
  14430. INCLUDE="-Iinclude $INCLUDE"
  14431. elif test -d .git; then
  14432. as_fn_error $? "
  14433. *** When building from a git clone you should configure and build in a
  14434. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14435. " "$LINENO" 5
  14436. fi
  14437. BASE_CFLAGS=""
  14438. BASE_LDFLAGS=""
  14439. case "$host" in
  14440. *-*-cygwin*)
  14441. # We build SDL on cygwin without the UNIX emulation layer
  14442. save_CFLAGS="$CFLAGS"
  14443. have_no_cygwin=no
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14445. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14446. CFLAGS="$save_CFLAGS -mno-cygwin"
  14447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14448. /* end confdefs.h. */
  14449. int
  14450. main ()
  14451. {
  14452. ;
  14453. return 0;
  14454. }
  14455. _ACEOF
  14456. if ac_fn_c_try_compile "$LINENO"; then :
  14457. have_no_cygwin=yes
  14458. fi
  14459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14461. $as_echo "$have_no_cygwin" >&6; }
  14462. CFLAGS="$save_CFLAGS"
  14463. if test x$have_no_cygwin = xyes; then
  14464. BASE_CFLAGS="-mno-cygwin"
  14465. BASE_LDFLAGS="-mno-cygwin"
  14466. fi
  14467. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14468. ;;
  14469. esac
  14470. # Uncomment the following line if you want to force SDL and applications
  14471. # built with it to be compiled for a particular architecture.
  14472. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14473. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14474. # The default optimization for SDL is -O3 (Bug #31)
  14475. if test "x$orig_CFLAGS" = x; then
  14476. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14477. fi
  14478. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14479. BUILD_LDFLAGS="$LDFLAGS"
  14480. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14481. ## These are common directories to find software packages
  14482. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14483. # if test -d $path/include; then
  14484. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14485. # fi
  14486. # if test -d $path/lib; then
  14487. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14488. # fi
  14489. #done
  14490. SDL_CFLAGS="$BASE_CFLAGS"
  14491. SDL_LIBS="-lSDL2"
  14492. if test "x$BASE_LDFLAGS" != x; then
  14493. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14494. fi
  14495. if test "x$EXTRA_CFLAGS" != x; then
  14496. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14497. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14498. fi
  14499. if test "x$EXTRA_LDFLAGS" != x; then
  14500. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14501. fi
  14502. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14503. find_lib()
  14504. {
  14505. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14506. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14507. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14508. if test "$cross_compiling" = yes; then
  14509. host_lib_path=""
  14510. else
  14511. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14512. fi
  14513. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14514. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14515. if test x$lib != x; then
  14516. echo $lib
  14517. return
  14518. fi
  14519. done
  14520. # Try again, this time allowing more than one version digit after the .so
  14521. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14522. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14523. if test x$lib != x; then
  14524. echo $lib
  14525. return
  14526. fi
  14527. done
  14528. }
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14530. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14531. if ${ac_cv_c_const+:} false; then :
  14532. $as_echo_n "(cached) " >&6
  14533. else
  14534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14535. /* end confdefs.h. */
  14536. int
  14537. main ()
  14538. {
  14539. #ifndef __cplusplus
  14540. /* Ultrix mips cc rejects this sort of thing. */
  14541. typedef int charset[2];
  14542. const charset cs = { 0, 0 };
  14543. /* SunOS 4.1.1 cc rejects this. */
  14544. char const *const *pcpcc;
  14545. char **ppc;
  14546. /* NEC SVR4.0.2 mips cc rejects this. */
  14547. struct point {int x, y;};
  14548. static struct point const zero = {0,0};
  14549. /* AIX XL C 1.02.0.0 rejects this.
  14550. It does not let you subtract one const X* pointer from another in
  14551. an arm of an if-expression whose if-part is not a constant
  14552. expression */
  14553. const char *g = "string";
  14554. pcpcc = &g + (g ? g-g : 0);
  14555. /* HPUX 7.0 cc rejects these. */
  14556. ++pcpcc;
  14557. ppc = (char**) pcpcc;
  14558. pcpcc = (char const *const *) ppc;
  14559. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14560. char tx;
  14561. char *t = &tx;
  14562. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14563. *t++ = 0;
  14564. if (s) return 0;
  14565. }
  14566. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14567. int x[] = {25, 17};
  14568. const int *foo = &x[0];
  14569. ++foo;
  14570. }
  14571. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14572. typedef const int *iptr;
  14573. iptr p = 0;
  14574. ++p;
  14575. }
  14576. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14577. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14578. struct s { int j; const int *ap[3]; } bx;
  14579. struct s *b = &bx; b->j = 5;
  14580. }
  14581. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14582. const int foo = 10;
  14583. if (!foo) return 0;
  14584. }
  14585. return !cs[0] && !zero.x;
  14586. #endif
  14587. ;
  14588. return 0;
  14589. }
  14590. _ACEOF
  14591. if ac_fn_c_try_compile "$LINENO"; then :
  14592. ac_cv_c_const=yes
  14593. else
  14594. ac_cv_c_const=no
  14595. fi
  14596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14597. fi
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14599. $as_echo "$ac_cv_c_const" >&6; }
  14600. if test $ac_cv_c_const = no; then
  14601. $as_echo "#define const /**/" >>confdefs.h
  14602. fi
  14603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14604. $as_echo_n "checking for inline... " >&6; }
  14605. if ${ac_cv_c_inline+:} false; then :
  14606. $as_echo_n "(cached) " >&6
  14607. else
  14608. ac_cv_c_inline=no
  14609. for ac_kw in inline __inline__ __inline; do
  14610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14611. /* end confdefs.h. */
  14612. #ifndef __cplusplus
  14613. typedef int foo_t;
  14614. static $ac_kw foo_t static_foo () {return 0; }
  14615. $ac_kw foo_t foo () {return 0; }
  14616. #endif
  14617. _ACEOF
  14618. if ac_fn_c_try_compile "$LINENO"; then :
  14619. ac_cv_c_inline=$ac_kw
  14620. fi
  14621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14622. test "$ac_cv_c_inline" != no && break
  14623. done
  14624. fi
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14626. $as_echo "$ac_cv_c_inline" >&6; }
  14627. case $ac_cv_c_inline in
  14628. inline | yes) ;;
  14629. *)
  14630. case $ac_cv_c_inline in
  14631. no) ac_val=;;
  14632. *) ac_val=$ac_cv_c_inline;;
  14633. esac
  14634. cat >>confdefs.h <<_ACEOF
  14635. #ifndef __cplusplus
  14636. #define inline $ac_val
  14637. #endif
  14638. _ACEOF
  14639. ;;
  14640. esac
  14641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14642. $as_echo_n "checking for working volatile... " >&6; }
  14643. if ${ac_cv_c_volatile+:} false; then :
  14644. $as_echo_n "(cached) " >&6
  14645. else
  14646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14647. /* end confdefs.h. */
  14648. int
  14649. main ()
  14650. {
  14651. volatile int x;
  14652. int * volatile y = (int *) 0;
  14653. return !x && !y;
  14654. ;
  14655. return 0;
  14656. }
  14657. _ACEOF
  14658. if ac_fn_c_try_compile "$LINENO"; then :
  14659. ac_cv_c_volatile=yes
  14660. else
  14661. ac_cv_c_volatile=no
  14662. fi
  14663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14664. fi
  14665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14666. $as_echo "$ac_cv_c_volatile" >&6; }
  14667. if test $ac_cv_c_volatile = no; then
  14668. $as_echo "#define volatile /**/" >>confdefs.h
  14669. fi
  14670. # Check whether --enable-assertions was given.
  14671. if test "${enable_assertions+set}" = set; then :
  14672. enableval=$enable_assertions;
  14673. else
  14674. enable_assertions=auto
  14675. fi
  14676. case "$enable_assertions" in
  14677. auto) # Use optimization settings to determine assertion level
  14678. ;;
  14679. disabled)
  14680. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14681. ;;
  14682. release)
  14683. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14684. ;;
  14685. enabled)
  14686. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14687. ;;
  14688. paranoid)
  14689. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14690. ;;
  14691. *)
  14692. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14693. ;;
  14694. esac
  14695. # Check whether --enable-dependency-tracking was given.
  14696. if test "${enable_dependency_tracking+set}" = set; then :
  14697. enableval=$enable_dependency_tracking;
  14698. else
  14699. enable_dependency_tracking=yes
  14700. fi
  14701. if test x$enable_dependency_tracking = xyes; then
  14702. have_gcc_mmd_mt=no
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14704. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14706. /* end confdefs.h. */
  14707. #if !defined(__GNUC__) || __GNUC__ < 3
  14708. #error Dependency tracking requires GCC 3.0 or newer
  14709. #endif
  14710. int
  14711. main ()
  14712. {
  14713. ;
  14714. return 0;
  14715. }
  14716. _ACEOF
  14717. if ac_fn_c_try_compile "$LINENO"; then :
  14718. have_gcc_mmd_mt=yes
  14719. fi
  14720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14722. $as_echo "$have_gcc_mmd_mt" >&6; }
  14723. if test x$have_gcc_mmd_mt = xyes; then
  14724. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14725. fi
  14726. fi
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14728. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14729. have_no_undefined=no
  14730. case "$host" in
  14731. *-*-openbsd*)
  14732. ;;
  14733. *)
  14734. save_LDFLAGS="$LDFLAGS"
  14735. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14737. /* end confdefs.h. */
  14738. int
  14739. main ()
  14740. {
  14741. ;
  14742. return 0;
  14743. }
  14744. _ACEOF
  14745. if ac_fn_c_try_link "$LINENO"; then :
  14746. have_no_undefined=yes
  14747. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14748. fi
  14749. rm -f core conftest.err conftest.$ac_objext \
  14750. conftest$ac_exeext conftest.$ac_ext
  14751. LDFLAGS="$save_LDFLAGS"
  14752. ;;
  14753. esac
  14754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14755. $as_echo "$have_no_undefined" >&6; }
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14757. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14758. have_dynamicbase=no
  14759. case "$host" in
  14760. *)
  14761. save_LDFLAGS="$LDFLAGS"
  14762. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14764. /* end confdefs.h. */
  14765. int
  14766. main ()
  14767. {
  14768. ;
  14769. return 0;
  14770. }
  14771. _ACEOF
  14772. if ac_fn_c_try_link "$LINENO"; then :
  14773. have_dynamicbase=yes
  14774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14775. fi
  14776. rm -f core conftest.err conftest.$ac_objext \
  14777. conftest$ac_exeext conftest.$ac_ext
  14778. LDFLAGS="$save_LDFLAGS"
  14779. ;;
  14780. esac
  14781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14782. $as_echo "$have_dynamicbase" >&6; }
  14783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14784. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14785. have_nxcompat=no
  14786. case "$host" in
  14787. *)
  14788. save_LDFLAGS="$LDFLAGS"
  14789. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14791. /* end confdefs.h. */
  14792. int
  14793. main ()
  14794. {
  14795. ;
  14796. return 0;
  14797. }
  14798. _ACEOF
  14799. if ac_fn_c_try_link "$LINENO"; then :
  14800. have_nxcompat=yes
  14801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14802. fi
  14803. rm -f core conftest.err conftest.$ac_objext \
  14804. conftest$ac_exeext conftest.$ac_ext
  14805. LDFLAGS="$save_LDFLAGS"
  14806. ;;
  14807. esac
  14808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14809. $as_echo "$have_nxcompat" >&6; }
  14810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14811. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14812. have_high_entropy_va=no
  14813. case "$host" in
  14814. *)
  14815. save_LDFLAGS="$LDFLAGS"
  14816. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14818. /* end confdefs.h. */
  14819. int
  14820. main ()
  14821. {
  14822. ;
  14823. return 0;
  14824. }
  14825. _ACEOF
  14826. if ac_fn_c_try_link "$LINENO"; then :
  14827. have_high_entropy_va=yes
  14828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14829. fi
  14830. rm -f core conftest.err conftest.$ac_objext \
  14831. conftest$ac_exeext conftest.$ac_ext
  14832. LDFLAGS="$save_LDFLAGS"
  14833. ;;
  14834. esac
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14836. $as_echo "$have_high_entropy_va" >&6; }
  14837. # Check whether --enable-libc was given.
  14838. if test "${enable_libc+set}" = set; then :
  14839. enableval=$enable_libc;
  14840. else
  14841. enable_libc=yes
  14842. fi
  14843. if test x$enable_libc = xyes; then
  14844. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14846. $as_echo_n "checking for ANSI C header files... " >&6; }
  14847. if ${ac_cv_header_stdc+:} false; then :
  14848. $as_echo_n "(cached) " >&6
  14849. else
  14850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14851. /* end confdefs.h. */
  14852. #include <stdlib.h>
  14853. #include <stdarg.h>
  14854. #include <string.h>
  14855. #include <float.h>
  14856. int
  14857. main ()
  14858. {
  14859. ;
  14860. return 0;
  14861. }
  14862. _ACEOF
  14863. if ac_fn_c_try_compile "$LINENO"; then :
  14864. ac_cv_header_stdc=yes
  14865. else
  14866. ac_cv_header_stdc=no
  14867. fi
  14868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14869. if test $ac_cv_header_stdc = yes; then
  14870. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14872. /* end confdefs.h. */
  14873. #include <string.h>
  14874. _ACEOF
  14875. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14876. $EGREP "memchr" >/dev/null 2>&1; then :
  14877. else
  14878. ac_cv_header_stdc=no
  14879. fi
  14880. rm -f conftest*
  14881. fi
  14882. if test $ac_cv_header_stdc = yes; then
  14883. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14885. /* end confdefs.h. */
  14886. #include <stdlib.h>
  14887. _ACEOF
  14888. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14889. $EGREP "free" >/dev/null 2>&1; then :
  14890. else
  14891. ac_cv_header_stdc=no
  14892. fi
  14893. rm -f conftest*
  14894. fi
  14895. if test $ac_cv_header_stdc = yes; then
  14896. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14897. if test "$cross_compiling" = yes; then :
  14898. :
  14899. else
  14900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14901. /* end confdefs.h. */
  14902. #include <ctype.h>
  14903. #include <stdlib.h>
  14904. #if ((' ' & 0x0FF) == 0x020)
  14905. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14906. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14907. #else
  14908. # define ISLOWER(c) \
  14909. (('a' <= (c) && (c) <= 'i') \
  14910. || ('j' <= (c) && (c) <= 'r') \
  14911. || ('s' <= (c) && (c) <= 'z'))
  14912. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14913. #endif
  14914. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14915. int
  14916. main ()
  14917. {
  14918. int i;
  14919. for (i = 0; i < 256; i++)
  14920. if (XOR (islower (i), ISLOWER (i))
  14921. || toupper (i) != TOUPPER (i))
  14922. return 2;
  14923. return 0;
  14924. }
  14925. _ACEOF
  14926. if ac_fn_c_try_run "$LINENO"; then :
  14927. else
  14928. ac_cv_header_stdc=no
  14929. fi
  14930. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14931. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14932. fi
  14933. fi
  14934. fi
  14935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14936. $as_echo "$ac_cv_header_stdc" >&6; }
  14937. if test $ac_cv_header_stdc = yes; then
  14938. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14939. fi
  14940. 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
  14941. do :
  14942. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14943. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14944. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14945. cat >>confdefs.h <<_ACEOF
  14946. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14947. _ACEOF
  14948. fi
  14949. done
  14950. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14951. if test "x$ac_cv_type_size_t" = xyes; then :
  14952. else
  14953. cat >>confdefs.h <<_ACEOF
  14954. #define size_t unsigned int
  14955. _ACEOF
  14956. fi
  14957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14958. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14959. if ${ac_cv_define_M_PI+:} false; then :
  14960. $as_echo_n "(cached) " >&6
  14961. else
  14962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14963. /* end confdefs.h. */
  14964. #include <math.h>
  14965. #ifdef M_PI
  14966. YES_IS_DEFINED
  14967. #endif
  14968. _ACEOF
  14969. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14970. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14971. ac_cv_define_M_PI=yes
  14972. else
  14973. ac_cv_define_M_PI=no
  14974. fi
  14975. rm -f conftest*
  14976. fi
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14978. $as_echo "$ac_cv_define_M_PI" >&6; }
  14979. if test "$ac_cv_define_M_PI" = "yes" ; then
  14980. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14981. fi
  14982. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14983. # for constant arguments. Useless!
  14984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14985. $as_echo_n "checking for working alloca.h... " >&6; }
  14986. if ${ac_cv_working_alloca_h+:} false; then :
  14987. $as_echo_n "(cached) " >&6
  14988. else
  14989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14990. /* end confdefs.h. */
  14991. #include <alloca.h>
  14992. int
  14993. main ()
  14994. {
  14995. char *p = (char *) alloca (2 * sizeof (int));
  14996. if (p) return 0;
  14997. ;
  14998. return 0;
  14999. }
  15000. _ACEOF
  15001. if ac_fn_c_try_link "$LINENO"; then :
  15002. ac_cv_working_alloca_h=yes
  15003. else
  15004. ac_cv_working_alloca_h=no
  15005. fi
  15006. rm -f core conftest.err conftest.$ac_objext \
  15007. conftest$ac_exeext conftest.$ac_ext
  15008. fi
  15009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15010. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15011. if test $ac_cv_working_alloca_h = yes; then
  15012. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15013. fi
  15014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15015. $as_echo_n "checking for alloca... " >&6; }
  15016. if ${ac_cv_func_alloca_works+:} false; then :
  15017. $as_echo_n "(cached) " >&6
  15018. else
  15019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15020. /* end confdefs.h. */
  15021. #ifdef __GNUC__
  15022. # define alloca __builtin_alloca
  15023. #else
  15024. # ifdef _MSC_VER
  15025. # include <malloc.h>
  15026. # define alloca _alloca
  15027. # else
  15028. # ifdef HAVE_ALLOCA_H
  15029. # include <alloca.h>
  15030. # else
  15031. # ifdef _AIX
  15032. #pragma alloca
  15033. # else
  15034. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15035. void *alloca (size_t);
  15036. # endif
  15037. # endif
  15038. # endif
  15039. # endif
  15040. #endif
  15041. int
  15042. main ()
  15043. {
  15044. char *p = (char *) alloca (1);
  15045. if (p) return 0;
  15046. ;
  15047. return 0;
  15048. }
  15049. _ACEOF
  15050. if ac_fn_c_try_link "$LINENO"; then :
  15051. ac_cv_func_alloca_works=yes
  15052. else
  15053. ac_cv_func_alloca_works=no
  15054. fi
  15055. rm -f core conftest.err conftest.$ac_objext \
  15056. conftest$ac_exeext conftest.$ac_ext
  15057. fi
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15059. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15060. if test $ac_cv_func_alloca_works = yes; then
  15061. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15062. else
  15063. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15064. # that cause trouble. Some versions do not even contain alloca or
  15065. # contain a buggy version. If you still want to use their alloca,
  15066. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15067. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15068. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15070. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15071. if ${ac_cv_os_cray+:} false; then :
  15072. $as_echo_n "(cached) " >&6
  15073. else
  15074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15075. /* end confdefs.h. */
  15076. #if defined CRAY && ! defined CRAY2
  15077. webecray
  15078. #else
  15079. wenotbecray
  15080. #endif
  15081. _ACEOF
  15082. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15083. $EGREP "webecray" >/dev/null 2>&1; then :
  15084. ac_cv_os_cray=yes
  15085. else
  15086. ac_cv_os_cray=no
  15087. fi
  15088. rm -f conftest*
  15089. fi
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15091. $as_echo "$ac_cv_os_cray" >&6; }
  15092. if test $ac_cv_os_cray = yes; then
  15093. for ac_func in _getb67 GETB67 getb67; do
  15094. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15095. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15096. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15097. cat >>confdefs.h <<_ACEOF
  15098. #define CRAY_STACKSEG_END $ac_func
  15099. _ACEOF
  15100. break
  15101. fi
  15102. done
  15103. fi
  15104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15105. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15106. if ${ac_cv_c_stack_direction+:} false; then :
  15107. $as_echo_n "(cached) " >&6
  15108. else
  15109. if test "$cross_compiling" = yes; then :
  15110. ac_cv_c_stack_direction=0
  15111. else
  15112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15113. /* end confdefs.h. */
  15114. $ac_includes_default
  15115. int
  15116. find_stack_direction (int *addr, int depth)
  15117. {
  15118. int dir, dummy = 0;
  15119. if (! addr)
  15120. addr = &dummy;
  15121. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15122. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15123. return dir + dummy;
  15124. }
  15125. int
  15126. main (int argc, char **argv)
  15127. {
  15128. return find_stack_direction (0, argc + !argv + 20) < 0;
  15129. }
  15130. _ACEOF
  15131. if ac_fn_c_try_run "$LINENO"; then :
  15132. ac_cv_c_stack_direction=1
  15133. else
  15134. ac_cv_c_stack_direction=-1
  15135. fi
  15136. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15137. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15138. fi
  15139. fi
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15141. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15142. cat >>confdefs.h <<_ACEOF
  15143. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15144. _ACEOF
  15145. fi
  15146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15147. $as_echo_n "checking for working memcmp... " >&6; }
  15148. if ${ac_cv_func_memcmp_working+:} false; then :
  15149. $as_echo_n "(cached) " >&6
  15150. else
  15151. if test "$cross_compiling" = yes; then :
  15152. ac_cv_func_memcmp_working=no
  15153. else
  15154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15155. /* end confdefs.h. */
  15156. $ac_includes_default
  15157. int
  15158. main ()
  15159. {
  15160. /* Some versions of memcmp are not 8-bit clean. */
  15161. char c0 = '\100', c1 = '\200', c2 = '\201';
  15162. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15163. return 1;
  15164. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15165. or more and with at least one buffer not starting on a 4-byte boundary.
  15166. William Lewis provided this test program. */
  15167. {
  15168. char foo[21];
  15169. char bar[21];
  15170. int i;
  15171. for (i = 0; i < 4; i++)
  15172. {
  15173. char *a = foo + i;
  15174. char *b = bar + i;
  15175. strcpy (a, "--------01111111");
  15176. strcpy (b, "--------10000000");
  15177. if (memcmp (a, b, 16) >= 0)
  15178. return 1;
  15179. }
  15180. return 0;
  15181. }
  15182. ;
  15183. return 0;
  15184. }
  15185. _ACEOF
  15186. if ac_fn_c_try_run "$LINENO"; then :
  15187. ac_cv_func_memcmp_working=yes
  15188. else
  15189. ac_cv_func_memcmp_working=no
  15190. fi
  15191. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15192. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15193. fi
  15194. fi
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15196. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15197. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15198. *" memcmp.$ac_objext "* ) ;;
  15199. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15200. ;;
  15201. esac
  15202. if test x$ac_cv_func_memcmp_working = xyes; then
  15203. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15204. fi
  15205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15206. $as_echo_n "checking for working strtod... " >&6; }
  15207. if ${ac_cv_func_strtod+:} false; then :
  15208. $as_echo_n "(cached) " >&6
  15209. else
  15210. if test "$cross_compiling" = yes; then :
  15211. ac_cv_func_strtod=no
  15212. else
  15213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15214. /* end confdefs.h. */
  15215. $ac_includes_default
  15216. #ifndef strtod
  15217. double strtod ();
  15218. #endif
  15219. int
  15220. main()
  15221. {
  15222. {
  15223. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15224. char *string = " +69";
  15225. char *term;
  15226. double value;
  15227. value = strtod (string, &term);
  15228. if (value != 69 || term != (string + 4))
  15229. return 1;
  15230. }
  15231. {
  15232. /* Under Solaris 2.4, strtod returns the wrong value for the
  15233. terminating character under some conditions. */
  15234. char *string = "NaN";
  15235. char *term;
  15236. strtod (string, &term);
  15237. if (term != string && *(term - 1) == 0)
  15238. return 1;
  15239. }
  15240. return 0;
  15241. }
  15242. _ACEOF
  15243. if ac_fn_c_try_run "$LINENO"; then :
  15244. ac_cv_func_strtod=yes
  15245. else
  15246. ac_cv_func_strtod=no
  15247. fi
  15248. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15249. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15250. fi
  15251. fi
  15252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15253. $as_echo "$ac_cv_func_strtod" >&6; }
  15254. if test $ac_cv_func_strtod = no; then
  15255. case " $LIBOBJS " in
  15256. *" strtod.$ac_objext "* ) ;;
  15257. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15258. ;;
  15259. esac
  15260. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15261. if test "x$ac_cv_func_pow" = xyes; then :
  15262. fi
  15263. if test $ac_cv_func_pow = no; then
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15265. $as_echo_n "checking for pow in -lm... " >&6; }
  15266. if ${ac_cv_lib_m_pow+:} false; then :
  15267. $as_echo_n "(cached) " >&6
  15268. else
  15269. ac_check_lib_save_LIBS=$LIBS
  15270. LIBS="-lm $LIBS"
  15271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15272. /* end confdefs.h. */
  15273. /* Override any GCC internal prototype to avoid an error.
  15274. Use char because int might match the return type of a GCC
  15275. builtin and then its argument prototype would still apply. */
  15276. #ifdef __cplusplus
  15277. extern "C"
  15278. #endif
  15279. char pow ();
  15280. int
  15281. main ()
  15282. {
  15283. return pow ();
  15284. ;
  15285. return 0;
  15286. }
  15287. _ACEOF
  15288. if ac_fn_c_try_link "$LINENO"; then :
  15289. ac_cv_lib_m_pow=yes
  15290. else
  15291. ac_cv_lib_m_pow=no
  15292. fi
  15293. rm -f core conftest.err conftest.$ac_objext \
  15294. conftest$ac_exeext conftest.$ac_ext
  15295. LIBS=$ac_check_lib_save_LIBS
  15296. fi
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15298. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15299. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15300. POW_LIB=-lm
  15301. else
  15302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15303. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15304. fi
  15305. fi
  15306. fi
  15307. if test x$ac_cv_func_strtod = xyes; then
  15308. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15309. fi
  15310. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15311. if test "x$ac_cv_func_mprotect" = xyes; then :
  15312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15313. /* end confdefs.h. */
  15314. #include <sys/types.h>
  15315. #include <sys/mman.h>
  15316. int
  15317. main ()
  15318. {
  15319. ;
  15320. return 0;
  15321. }
  15322. _ACEOF
  15323. if ac_fn_c_try_compile "$LINENO"; then :
  15324. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15325. fi
  15326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15327. fi
  15328. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv 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
  15329. do :
  15330. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15331. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15332. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15333. cat >>confdefs.h <<_ACEOF
  15334. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15335. _ACEOF
  15336. fi
  15337. done
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15339. $as_echo_n "checking for pow in -lm... " >&6; }
  15340. if ${ac_cv_lib_m_pow+:} false; then :
  15341. $as_echo_n "(cached) " >&6
  15342. else
  15343. ac_check_lib_save_LIBS=$LIBS
  15344. LIBS="-lm $LIBS"
  15345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15346. /* end confdefs.h. */
  15347. /* Override any GCC internal prototype to avoid an error.
  15348. Use char because int might match the return type of a GCC
  15349. builtin and then its argument prototype would still apply. */
  15350. #ifdef __cplusplus
  15351. extern "C"
  15352. #endif
  15353. char pow ();
  15354. int
  15355. main ()
  15356. {
  15357. return pow ();
  15358. ;
  15359. return 0;
  15360. }
  15361. _ACEOF
  15362. if ac_fn_c_try_link "$LINENO"; then :
  15363. ac_cv_lib_m_pow=yes
  15364. else
  15365. ac_cv_lib_m_pow=no
  15366. fi
  15367. rm -f core conftest.err conftest.$ac_objext \
  15368. conftest$ac_exeext conftest.$ac_ext
  15369. LIBS=$ac_check_lib_save_LIBS
  15370. fi
  15371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15372. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15373. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15374. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15375. fi
  15376. 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
  15377. do :
  15378. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15379. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15380. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15381. cat >>confdefs.h <<_ACEOF
  15382. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15383. _ACEOF
  15384. fi
  15385. done
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15387. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15388. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15389. $as_echo_n "(cached) " >&6
  15390. else
  15391. ac_check_lib_save_LIBS=$LIBS
  15392. LIBS="-liconv $LIBS"
  15393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15394. /* end confdefs.h. */
  15395. /* Override any GCC internal prototype to avoid an error.
  15396. Use char because int might match the return type of a GCC
  15397. builtin and then its argument prototype would still apply. */
  15398. #ifdef __cplusplus
  15399. extern "C"
  15400. #endif
  15401. char iconv_open ();
  15402. int
  15403. main ()
  15404. {
  15405. return iconv_open ();
  15406. ;
  15407. return 0;
  15408. }
  15409. _ACEOF
  15410. if ac_fn_c_try_link "$LINENO"; then :
  15411. ac_cv_lib_iconv_iconv_open=yes
  15412. else
  15413. ac_cv_lib_iconv_iconv_open=no
  15414. fi
  15415. rm -f core conftest.err conftest.$ac_objext \
  15416. conftest$ac_exeext conftest.$ac_ext
  15417. LIBS=$ac_check_lib_save_LIBS
  15418. fi
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15420. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15421. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15422. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15423. fi
  15424. for ac_func in iconv
  15425. do :
  15426. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15427. if test "x$ac_cv_func_iconv" = xyes; then :
  15428. cat >>confdefs.h <<_ACEOF
  15429. #define HAVE_ICONV 1
  15430. _ACEOF
  15431. fi
  15432. done
  15433. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15434. "
  15435. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15436. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15437. fi
  15438. for ac_header in libunwind.h
  15439. do :
  15440. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15441. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15442. cat >>confdefs.h <<_ACEOF
  15443. #define HAVE_LIBUNWIND_H 1
  15444. _ACEOF
  15445. fi
  15446. done
  15447. fi
  15448. # Check whether --enable-gcc-atomics was given.
  15449. if test "${enable_gcc_atomics+set}" = set; then :
  15450. enableval=$enable_gcc_atomics;
  15451. else
  15452. enable_gcc_atomics=yes
  15453. fi
  15454. if test x$enable_gcc_atomics = xyes; then
  15455. have_gcc_atomics=no
  15456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15457. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15459. /* end confdefs.h. */
  15460. int
  15461. main ()
  15462. {
  15463. int a;
  15464. void *x, *y, *z;
  15465. __sync_lock_test_and_set(&a, 4);
  15466. __sync_lock_test_and_set(&x, y);
  15467. __sync_fetch_and_add(&a, 1);
  15468. __sync_bool_compare_and_swap(&a, 5, 10);
  15469. __sync_bool_compare_and_swap(&x, y, z);
  15470. ;
  15471. return 0;
  15472. }
  15473. _ACEOF
  15474. if ac_fn_c_try_link "$LINENO"; then :
  15475. have_gcc_atomics=yes
  15476. fi
  15477. rm -f core conftest.err conftest.$ac_objext \
  15478. conftest$ac_exeext conftest.$ac_ext
  15479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15480. $as_echo "$have_gcc_atomics" >&6; }
  15481. if test x$have_gcc_atomics = xyes; then
  15482. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15483. else
  15484. # See if we have the minimum operation needed for GCC atomics
  15485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15486. /* end confdefs.h. */
  15487. int
  15488. main ()
  15489. {
  15490. int a;
  15491. __sync_lock_test_and_set(&a, 1);
  15492. __sync_lock_release(&a);
  15493. ;
  15494. return 0;
  15495. }
  15496. _ACEOF
  15497. if ac_fn_c_try_link "$LINENO"; then :
  15498. have_gcc_sync_lock_test_and_set=yes
  15499. fi
  15500. rm -f core conftest.err conftest.$ac_objext \
  15501. conftest$ac_exeext conftest.$ac_ext
  15502. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15503. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15504. fi
  15505. fi
  15506. fi
  15507. # Standard C sources
  15508. SOURCES="$SOURCES $srcdir/src/*.c"
  15509. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15510. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15511. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15512. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15513. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15514. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15515. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15516. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15517. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15518. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15519. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15520. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15521. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15522. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15523. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15524. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15525. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15526. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15527. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15528. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15531. # Check whether --enable-atomic was given.
  15532. if test "${enable_atomic+set}" = set; then :
  15533. enableval=$enable_atomic;
  15534. else
  15535. enable_atomic=yes
  15536. fi
  15537. if test x$enable_atomic != xyes; then
  15538. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15539. else
  15540. SUMMARY_modules="${SUMMARY_modules} atomic"
  15541. fi
  15542. # Check whether --enable-audio was given.
  15543. if test "${enable_audio+set}" = set; then :
  15544. enableval=$enable_audio;
  15545. else
  15546. enable_audio=yes
  15547. fi
  15548. if test x$enable_audio != xyes; then
  15549. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15550. else
  15551. SUMMARY_modules="${SUMMARY_modules} audio"
  15552. fi
  15553. # Check whether --enable-video was given.
  15554. if test "${enable_video+set}" = set; then :
  15555. enableval=$enable_video;
  15556. else
  15557. enable_video=yes
  15558. fi
  15559. if test x$enable_video != xyes; then
  15560. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15561. else
  15562. SUMMARY_modules="${SUMMARY_modules} video"
  15563. fi
  15564. # Check whether --enable-render was given.
  15565. if test "${enable_render+set}" = set; then :
  15566. enableval=$enable_render;
  15567. else
  15568. enable_render=yes
  15569. fi
  15570. if test x$enable_render != xyes; then
  15571. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15572. else
  15573. SUMMARY_modules="${SUMMARY_modules} render"
  15574. fi
  15575. # Check whether --enable-events was given.
  15576. if test "${enable_events+set}" = set; then :
  15577. enableval=$enable_events;
  15578. else
  15579. enable_events=yes
  15580. fi
  15581. if test x$enable_events != xyes; then
  15582. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15583. else
  15584. SUMMARY_modules="${SUMMARY_modules} events"
  15585. fi
  15586. # Check whether --enable-joystick was given.
  15587. if test "${enable_joystick+set}" = set; then :
  15588. enableval=$enable_joystick;
  15589. else
  15590. enable_joystick=yes
  15591. fi
  15592. if test x$enable_joystick != xyes; then
  15593. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15594. else
  15595. SUMMARY_modules="${SUMMARY_modules} joystick"
  15596. fi
  15597. # Check whether --enable-haptic was given.
  15598. if test "${enable_haptic+set}" = set; then :
  15599. enableval=$enable_haptic;
  15600. else
  15601. enable_haptic=yes
  15602. fi
  15603. if test x$enable_haptic != xyes; then
  15604. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15605. else
  15606. SUMMARY_modules="${SUMMARY_modules} haptic"
  15607. fi
  15608. # Check whether --enable-hidapi was given.
  15609. if test "${enable_hidapi+set}" = set; then :
  15610. enableval=$enable_hidapi;
  15611. else
  15612. enable_hidapi=yes
  15613. fi
  15614. if test x$enable_hidapi != xyes; then
  15615. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15616. else
  15617. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15618. fi
  15619. # Check whether --enable-sensor was given.
  15620. if test "${enable_sensor+set}" = set; then :
  15621. enableval=$enable_sensor;
  15622. else
  15623. enable_sensor=yes
  15624. fi
  15625. if test x$enable_sensor != xyes; then
  15626. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15627. else
  15628. SUMMARY_modules="${SUMMARY_modules} sensor"
  15629. fi
  15630. # Check whether --enable-power was given.
  15631. if test "${enable_power+set}" = set; then :
  15632. enableval=$enable_power;
  15633. else
  15634. enable_power=yes
  15635. fi
  15636. if test x$enable_power != xyes; then
  15637. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15638. else
  15639. SUMMARY_modules="${SUMMARY_modules} power"
  15640. fi
  15641. # Check whether --enable-filesystem was given.
  15642. if test "${enable_filesystem+set}" = set; then :
  15643. enableval=$enable_filesystem;
  15644. else
  15645. enable_filesystem=yes
  15646. fi
  15647. if test x$enable_filesystem != xyes; then
  15648. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15649. else
  15650. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15651. fi
  15652. # Check whether --enable-threads was given.
  15653. if test "${enable_threads+set}" = set; then :
  15654. enableval=$enable_threads;
  15655. else
  15656. enable_threads=yes
  15657. fi
  15658. if test x$enable_threads != xyes; then
  15659. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15660. else
  15661. SUMMARY_modules="${SUMMARY_modules} threads"
  15662. fi
  15663. # Check whether --enable-timers was given.
  15664. if test "${enable_timers+set}" = set; then :
  15665. enableval=$enable_timers;
  15666. else
  15667. enable_timers=yes
  15668. fi
  15669. if test x$enable_timers != xyes; then
  15670. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15671. else
  15672. SUMMARY_modules="${SUMMARY_modules} timers"
  15673. fi
  15674. # Check whether --enable-file was given.
  15675. if test "${enable_file+set}" = set; then :
  15676. enableval=$enable_file;
  15677. else
  15678. enable_file=yes
  15679. fi
  15680. if test x$enable_file != xyes; then
  15681. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15682. else
  15683. SUMMARY_modules="${SUMMARY_modules} file"
  15684. fi
  15685. # Check whether --enable-loadso was given.
  15686. if test "${enable_loadso+set}" = set; then :
  15687. enableval=$enable_loadso;
  15688. else
  15689. enable_loadso=yes
  15690. fi
  15691. if test x$enable_loadso != xyes; then
  15692. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15693. else
  15694. SUMMARY_modules="${SUMMARY_modules} loadso"
  15695. fi
  15696. # Check whether --enable-cpuinfo was given.
  15697. if test "${enable_cpuinfo+set}" = set; then :
  15698. enableval=$enable_cpuinfo;
  15699. else
  15700. enable_cpuinfo=yes
  15701. fi
  15702. if test x$enable_cpuinfo != xyes; then
  15703. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15704. else
  15705. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15706. fi
  15707. # Check whether --enable-assembly was given.
  15708. if test "${enable_assembly+set}" = set; then :
  15709. enableval=$enable_assembly;
  15710. else
  15711. enable_assembly=yes
  15712. fi
  15713. if test x$enable_assembly = xyes; then
  15714. SUMMARY_modules="${SUMMARY_modules} assembly"
  15715. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15716. # Make sure that we don't generate floating point code that would
  15717. # cause illegal instruction exceptions on older processors
  15718. case "$host" in
  15719. *-*-darwin*)
  15720. # Don't need to worry about Apple hardware, it's all SSE capable
  15721. default_ssemath=yes
  15722. ;;
  15723. *64-*-*)
  15724. # x86 64-bit architectures all have SSE instructions
  15725. default_ssemath=yes
  15726. ;;
  15727. *)
  15728. default_ssemath=no
  15729. ;;
  15730. esac
  15731. # Check whether --enable-ssemath was given.
  15732. if test "${enable_ssemath+set}" = set; then :
  15733. enableval=$enable_ssemath;
  15734. else
  15735. enable_ssemath=$default_ssemath
  15736. fi
  15737. if test x$enable_ssemath = xno; then
  15738. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15739. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15740. fi
  15741. fi
  15742. # Check whether --enable-mmx was given.
  15743. if test "${enable_mmx+set}" = set; then :
  15744. enableval=$enable_mmx;
  15745. else
  15746. enable_mmx=yes
  15747. fi
  15748. if test x$enable_mmx = xyes; then
  15749. save_CFLAGS="$CFLAGS"
  15750. have_gcc_mmx=no
  15751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15752. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15753. mmx_CFLAGS="-mmmx"
  15754. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15756. /* end confdefs.h. */
  15757. #ifdef __MINGW32__
  15758. #include <_mingw.h>
  15759. #ifdef __MINGW64_VERSION_MAJOR
  15760. #include <intrin.h>
  15761. #else
  15762. #include <mmintrin.h>
  15763. #endif
  15764. #else
  15765. #include <mmintrin.h>
  15766. #endif
  15767. #ifndef __MMX__
  15768. #error Assembler CPP flag not enabled
  15769. #endif
  15770. int
  15771. main ()
  15772. {
  15773. ;
  15774. return 0;
  15775. }
  15776. _ACEOF
  15777. if ac_fn_c_try_compile "$LINENO"; then :
  15778. have_gcc_mmx=yes
  15779. fi
  15780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15782. $as_echo "$have_gcc_mmx" >&6; }
  15783. CFLAGS="$save_CFLAGS"
  15784. if test x$have_gcc_mmx = xyes; then
  15785. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15786. SUMMARY_math="${SUMMARY_math} mmx"
  15787. fi
  15788. fi
  15789. # Check whether --enable-3dnow was given.
  15790. if test "${enable_3dnow+set}" = set; then :
  15791. enableval=$enable_3dnow;
  15792. else
  15793. enable_3dnow=yes
  15794. fi
  15795. if test x$enable_3dnow = xyes; then
  15796. save_CFLAGS="$CFLAGS"
  15797. have_gcc_3dnow=no
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15799. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15800. amd3dnow_CFLAGS="-m3dnow"
  15801. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15803. /* end confdefs.h. */
  15804. #include <mm3dnow.h>
  15805. #ifndef __3dNOW__
  15806. #error Assembler CPP flag not enabled
  15807. #endif
  15808. int
  15809. main ()
  15810. {
  15811. void *p = 0;
  15812. _m_prefetch(p);
  15813. ;
  15814. return 0;
  15815. }
  15816. _ACEOF
  15817. if ac_fn_c_try_link "$LINENO"; then :
  15818. have_gcc_3dnow=yes
  15819. fi
  15820. rm -f core conftest.err conftest.$ac_objext \
  15821. conftest$ac_exeext conftest.$ac_ext
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15823. $as_echo "$have_gcc_3dnow" >&6; }
  15824. CFLAGS="$save_CFLAGS"
  15825. if test x$have_gcc_3dnow = xyes; then
  15826. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15827. SUMMARY_math="${SUMMARY_math} 3dnow"
  15828. fi
  15829. fi
  15830. # Check whether --enable-sse was given.
  15831. if test "${enable_sse+set}" = set; then :
  15832. enableval=$enable_sse;
  15833. else
  15834. enable_sse=yes
  15835. fi
  15836. if test x$enable_sse = xyes; then
  15837. save_CFLAGS="$CFLAGS"
  15838. have_gcc_sse=no
  15839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15840. $as_echo_n "checking for GCC -msse option... " >&6; }
  15841. sse_CFLAGS="-msse"
  15842. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15844. /* end confdefs.h. */
  15845. #ifdef __MINGW32__
  15846. #include <_mingw.h>
  15847. #ifdef __MINGW64_VERSION_MAJOR
  15848. #include <intrin.h>
  15849. #else
  15850. #include <xmmintrin.h>
  15851. #endif
  15852. #else
  15853. #include <xmmintrin.h>
  15854. #endif
  15855. #ifndef __SSE__
  15856. #error Assembler CPP flag not enabled
  15857. #endif
  15858. int
  15859. main ()
  15860. {
  15861. ;
  15862. return 0;
  15863. }
  15864. _ACEOF
  15865. if ac_fn_c_try_compile "$LINENO"; then :
  15866. have_gcc_sse=yes
  15867. fi
  15868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15870. $as_echo "$have_gcc_sse" >&6; }
  15871. CFLAGS="$save_CFLAGS"
  15872. if test x$have_gcc_sse = xyes; then
  15873. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15874. SUMMARY_math="${SUMMARY_math} sse"
  15875. fi
  15876. fi
  15877. # Check whether --enable-sse2 was given.
  15878. if test "${enable_sse2+set}" = set; then :
  15879. enableval=$enable_sse2;
  15880. else
  15881. enable_sse2=$default_ssemath
  15882. fi
  15883. if test x$enable_sse2 = xyes; then
  15884. save_CFLAGS="$CFLAGS"
  15885. have_gcc_sse2=no
  15886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15887. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15888. sse2_CFLAGS="-msse2"
  15889. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15891. /* end confdefs.h. */
  15892. #ifdef __MINGW32__
  15893. #include <_mingw.h>
  15894. #ifdef __MINGW64_VERSION_MAJOR
  15895. #include <intrin.h>
  15896. #else
  15897. #include <emmintrin.h>
  15898. #endif
  15899. #else
  15900. #include <emmintrin.h>
  15901. #endif
  15902. #ifndef __SSE2__
  15903. #error Assembler CPP flag not enabled
  15904. #endif
  15905. int
  15906. main ()
  15907. {
  15908. ;
  15909. return 0;
  15910. }
  15911. _ACEOF
  15912. if ac_fn_c_try_compile "$LINENO"; then :
  15913. have_gcc_sse2=yes
  15914. fi
  15915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15917. $as_echo "$have_gcc_sse2" >&6; }
  15918. CFLAGS="$save_CFLAGS"
  15919. if test x$have_gcc_sse2 = xyes; then
  15920. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15921. SUMMARY_math="${SUMMARY_math} sse2"
  15922. fi
  15923. fi
  15924. # Check whether --enable-sse3 was given.
  15925. if test "${enable_sse3+set}" = set; then :
  15926. enableval=$enable_sse3;
  15927. else
  15928. enable_sse3=$default_ssemath
  15929. fi
  15930. if test x$enable_sse3 = xyes; then
  15931. save_CFLAGS="$CFLAGS"
  15932. have_gcc_sse3=no
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15934. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15935. sse3_CFLAGS="-msse3"
  15936. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15938. /* end confdefs.h. */
  15939. #ifdef __MINGW32__
  15940. #include <_mingw.h>
  15941. #ifdef __MINGW64_VERSION_MAJOR
  15942. #include <intrin.h>
  15943. #else
  15944. #include <pmmintrin.h>
  15945. #endif
  15946. #else
  15947. #include <pmmintrin.h>
  15948. #endif
  15949. #ifndef __SSE2__
  15950. #error Assembler CPP flag not enabled
  15951. #endif
  15952. int
  15953. main ()
  15954. {
  15955. ;
  15956. return 0;
  15957. }
  15958. _ACEOF
  15959. if ac_fn_c_try_compile "$LINENO"; then :
  15960. have_gcc_sse3=yes
  15961. fi
  15962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15964. $as_echo "$have_gcc_sse3" >&6; }
  15965. CFLAGS="$save_CFLAGS"
  15966. if test x$have_gcc_sse3 = xyes; then
  15967. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15968. SUMMARY_math="${SUMMARY_math} sse3"
  15969. fi
  15970. fi
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15972. $as_echo_n "checking for immintrin.h... " >&6; }
  15973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15974. /* end confdefs.h. */
  15975. #include <immintrin.h>
  15976. int
  15977. main ()
  15978. {
  15979. ;
  15980. return 0;
  15981. }
  15982. _ACEOF
  15983. if ac_fn_c_try_compile "$LINENO"; then :
  15984. have_immintrin_h_hdr=yes
  15985. else
  15986. have_immintrin_h_hdr=no
  15987. fi
  15988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  15990. $as_echo "$have_immintrin_h_hdr" >&6; }
  15991. if test x$have_immintrin_h_hdr = xyes; then
  15992. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15993. fi
  15994. # Check whether --enable-altivec was given.
  15995. if test "${enable_altivec+set}" = set; then :
  15996. enableval=$enable_altivec;
  15997. else
  15998. enable_altivec=yes
  15999. fi
  16000. if test x$enable_altivec = xyes; then
  16001. save_CFLAGS="$CFLAGS"
  16002. have_gcc_altivec=no
  16003. have_altivec_h_hdr=no
  16004. altivec_CFLAGS="-maltivec"
  16005. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16007. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16009. /* end confdefs.h. */
  16010. #include <altivec.h>
  16011. vector unsigned int vzero() {
  16012. return vec_splat_u32(0);
  16013. }
  16014. int
  16015. main ()
  16016. {
  16017. ;
  16018. return 0;
  16019. }
  16020. _ACEOF
  16021. if ac_fn_c_try_compile "$LINENO"; then :
  16022. have_gcc_altivec=yes
  16023. have_altivec_h_hdr=yes
  16024. fi
  16025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16027. $as_echo "$have_gcc_altivec" >&6; }
  16028. if test x$have_gcc_altivec = xno; then
  16029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16030. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16032. /* end confdefs.h. */
  16033. vector unsigned int vzero() {
  16034. return vec_splat_u32(0);
  16035. }
  16036. int
  16037. main ()
  16038. {
  16039. ;
  16040. return 0;
  16041. }
  16042. _ACEOF
  16043. if ac_fn_c_try_compile "$LINENO"; then :
  16044. have_gcc_altivec=yes
  16045. fi
  16046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16048. $as_echo "$have_gcc_altivec" >&6; }
  16049. fi
  16050. if test x$have_gcc_altivec = xno; then
  16051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16052. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16053. altivec_CFLAGS="-faltivec"
  16054. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16056. /* end confdefs.h. */
  16057. #include <altivec.h>
  16058. vector unsigned int vzero() {
  16059. return vec_splat_u32(0);
  16060. }
  16061. int
  16062. main ()
  16063. {
  16064. ;
  16065. return 0;
  16066. }
  16067. _ACEOF
  16068. if ac_fn_c_try_compile "$LINENO"; then :
  16069. have_gcc_altivec=yes
  16070. have_altivec_h_hdr=yes
  16071. fi
  16072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16074. $as_echo "$have_gcc_altivec" >&6; }
  16075. fi
  16076. if test x$have_gcc_altivec = xno; then
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16078. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16080. /* end confdefs.h. */
  16081. vector unsigned int vzero() {
  16082. return vec_splat_u32(0);
  16083. }
  16084. int
  16085. main ()
  16086. {
  16087. ;
  16088. return 0;
  16089. }
  16090. _ACEOF
  16091. if ac_fn_c_try_compile "$LINENO"; then :
  16092. have_gcc_altivec=yes
  16093. fi
  16094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16096. $as_echo "$have_gcc_altivec" >&6; }
  16097. fi
  16098. CFLAGS="$save_CFLAGS"
  16099. if test x$have_gcc_altivec = xyes; then
  16100. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16101. if test x$have_altivec_h_hdr = xyes; then
  16102. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16103. fi
  16104. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16105. SUMMARY_math="${SUMMARY_math} altivec"
  16106. fi
  16107. fi
  16108. fi
  16109. CheckOSS()
  16110. {
  16111. # Check whether --enable-oss was given.
  16112. if test "${enable_oss+set}" = set; then :
  16113. enableval=$enable_oss;
  16114. else
  16115. enable_oss=maybe
  16116. fi
  16117. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16118. # use sndio instead. So on there, we default to disabled. You can force
  16119. # it on if you really want, though.
  16120. if test x$enable_oss = xmaybe; then
  16121. enable_oss=yes
  16122. case "$host" in
  16123. *-*-openbsd*)
  16124. enable_oss=no;;
  16125. esac
  16126. fi
  16127. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16129. $as_echo_n "checking for OSS audio support... " >&6; }
  16130. have_oss=no
  16131. if test x$have_oss != xyes; then
  16132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16133. /* end confdefs.h. */
  16134. #include <sys/soundcard.h>
  16135. int
  16136. main ()
  16137. {
  16138. int arg = SNDCTL_DSP_SETFRAGMENT;
  16139. ;
  16140. return 0;
  16141. }
  16142. _ACEOF
  16143. if ac_fn_c_try_compile "$LINENO"; then :
  16144. have_oss=yes
  16145. fi
  16146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16147. fi
  16148. if test x$have_oss != xyes; then
  16149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16150. /* end confdefs.h. */
  16151. #include <soundcard.h>
  16152. int
  16153. main ()
  16154. {
  16155. int arg = SNDCTL_DSP_SETFRAGMENT;
  16156. ;
  16157. return 0;
  16158. }
  16159. _ACEOF
  16160. if ac_fn_c_try_compile "$LINENO"; then :
  16161. have_oss=yes
  16162. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16163. fi
  16164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16165. fi
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16167. $as_echo "$have_oss" >&6; }
  16168. if test x$have_oss = xyes; then
  16169. SUMMARY_audio="${SUMMARY_audio} oss"
  16170. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16171. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16172. have_audio=yes
  16173. # We may need to link with ossaudio emulation library
  16174. case "$host" in
  16175. *-*-openbsd*|*-*-netbsd*)
  16176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16177. esac
  16178. fi
  16179. fi
  16180. }
  16181. CheckALSA()
  16182. {
  16183. # Check whether --enable-alsa was given.
  16184. if test "${enable_alsa+set}" = set; then :
  16185. enableval=$enable_alsa;
  16186. else
  16187. enable_alsa=yes
  16188. fi
  16189. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16190. alsa_save_CFLAGS="$CFLAGS"
  16191. alsa_save_LDFLAGS="$LDFLAGS"
  16192. alsa_save_LIBS="$LIBS"
  16193. alsa_found=yes
  16194. # Check whether --with-alsa-prefix was given.
  16195. if test "${with_alsa_prefix+set}" = set; then :
  16196. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16197. else
  16198. alsa_prefix=""
  16199. fi
  16200. # Check whether --with-alsa-inc-prefix was given.
  16201. if test "${with_alsa_inc_prefix+set}" = set; then :
  16202. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16203. else
  16204. alsa_inc_prefix=""
  16205. fi
  16206. # Check whether --enable-alsatest was given.
  16207. if test "${enable_alsatest+set}" = set; then :
  16208. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16209. else
  16210. enable_alsatest=yes
  16211. fi
  16212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16213. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16214. if test "$alsa_inc_prefix" != "" ; then
  16215. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16216. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16217. fi
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16219. $as_echo "$ALSA_CFLAGS" >&6; }
  16220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16221. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16222. if test "$alsa_prefix" != "" ; then
  16223. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16224. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16225. fi
  16226. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16227. LIBS=`echo $LIBS | sed 's/-lm//'`
  16228. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16229. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16230. LIBS=`echo $LIBS | sed 's/ //'`
  16231. LIBS="$ALSA_LIBS $LIBS"
  16232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16233. $as_echo "$ALSA_LIBS" >&6; }
  16234. min_alsa_version=1.0.11
  16235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16236. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16237. no_alsa=""
  16238. alsa_min_major_version=`echo $min_alsa_version | \
  16239. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16240. alsa_min_minor_version=`echo $min_alsa_version | \
  16241. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16242. alsa_min_micro_version=`echo $min_alsa_version | \
  16243. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16244. ac_ext=c
  16245. ac_cpp='$CPP $CPPFLAGS'
  16246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16250. /* end confdefs.h. */
  16251. #include <alsa/asoundlib.h>
  16252. int
  16253. main ()
  16254. {
  16255. /* ensure backward compatibility */
  16256. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16257. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16258. #endif
  16259. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16260. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16261. #endif
  16262. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16263. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16264. #endif
  16265. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16266. exit(0);
  16267. # else
  16268. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16269. # error not present
  16270. # endif
  16271. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16272. exit(0);
  16273. # else
  16274. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16275. # error not present
  16276. # endif
  16277. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16278. # error not present
  16279. # endif
  16280. # endif
  16281. # endif
  16282. exit(0);
  16283. ;
  16284. return 0;
  16285. }
  16286. _ACEOF
  16287. if ac_fn_c_try_compile "$LINENO"; then :
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16289. $as_echo "found." >&6; }
  16290. else
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16292. $as_echo "not present." >&6; }
  16293. alsa_found=no
  16294. fi
  16295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16296. ac_ext=c
  16297. ac_cpp='$CPP $CPPFLAGS'
  16298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16301. if test "x$enable_alsatest" = "xyes"; then
  16302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16303. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16304. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16305. $as_echo_n "(cached) " >&6
  16306. else
  16307. ac_check_lib_save_LIBS=$LIBS
  16308. LIBS="-lasound $LIBS"
  16309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16310. /* end confdefs.h. */
  16311. /* Override any GCC internal prototype to avoid an error.
  16312. Use char because int might match the return type of a GCC
  16313. builtin and then its argument prototype would still apply. */
  16314. #ifdef __cplusplus
  16315. extern "C"
  16316. #endif
  16317. char snd_ctl_open ();
  16318. int
  16319. main ()
  16320. {
  16321. return snd_ctl_open ();
  16322. ;
  16323. return 0;
  16324. }
  16325. _ACEOF
  16326. if ac_fn_c_try_link "$LINENO"; then :
  16327. ac_cv_lib_asound_snd_ctl_open=yes
  16328. else
  16329. ac_cv_lib_asound_snd_ctl_open=no
  16330. fi
  16331. rm -f core conftest.err conftest.$ac_objext \
  16332. conftest$ac_exeext conftest.$ac_ext
  16333. LIBS=$ac_check_lib_save_LIBS
  16334. fi
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16336. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16337. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16338. cat >>confdefs.h <<_ACEOF
  16339. #define HAVE_LIBASOUND 1
  16340. _ACEOF
  16341. LIBS="-lasound $LIBS"
  16342. else
  16343. alsa_found=no
  16344. fi
  16345. fi
  16346. if test "x$alsa_found" = "xyes" ; then
  16347. have_alsa=yes
  16348. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16349. LIBS=`echo $LIBS | sed 's/ //'`
  16350. LIBS="-lasound $LIBS"
  16351. fi
  16352. if test "x$alsa_found" = "xno" ; then
  16353. have_alsa=no
  16354. CFLAGS="$alsa_save_CFLAGS"
  16355. LDFLAGS="$alsa_save_LDFLAGS"
  16356. LIBS="$alsa_save_LIBS"
  16357. ALSA_CFLAGS=""
  16358. ALSA_LIBS=""
  16359. fi
  16360. # Restore all flags from before the ALSA detection runs
  16361. CFLAGS="$alsa_save_CFLAGS"
  16362. LDFLAGS="$alsa_save_LDFLAGS"
  16363. LIBS="$alsa_save_LIBS"
  16364. if test x$have_alsa = xyes; then
  16365. # Check whether --enable-alsa-shared was given.
  16366. if test "${enable_alsa_shared+set}" = set; then :
  16367. enableval=$enable_alsa_shared;
  16368. else
  16369. enable_alsa_shared=yes
  16370. fi
  16371. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16372. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16373. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16374. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16375. if test x$have_loadso != xyes && \
  16376. test x$enable_alsa_shared = xyes; then
  16377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16378. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16379. fi
  16380. if test x$have_loadso = xyes && \
  16381. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16382. echo "-- dynamic libasound -> $alsa_lib"
  16383. cat >>confdefs.h <<_ACEOF
  16384. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16385. _ACEOF
  16386. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16387. else
  16388. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16389. SUMMARY_audio="${SUMMARY_audio} alsa"
  16390. fi
  16391. have_audio=yes
  16392. fi
  16393. fi
  16394. }
  16395. CheckJACK()
  16396. {
  16397. # Check whether --enable-jack was given.
  16398. if test "${enable_jack+set}" = set; then :
  16399. enableval=$enable_jack;
  16400. else
  16401. enable_jack=yes
  16402. fi
  16403. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16404. pkg_failed=no
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16406. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16407. if test -n "$JACK_CFLAGS"; then
  16408. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16409. elif test -n "$PKG_CONFIG"; then
  16410. if test -n "$PKG_CONFIG" && \
  16411. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16412. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16413. ac_status=$?
  16414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16415. test $ac_status = 0; }; then
  16416. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16417. test "x$?" != "x0" && pkg_failed=yes
  16418. else
  16419. pkg_failed=yes
  16420. fi
  16421. else
  16422. pkg_failed=untried
  16423. fi
  16424. if test -n "$JACK_LIBS"; then
  16425. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16426. elif test -n "$PKG_CONFIG"; then
  16427. if test -n "$PKG_CONFIG" && \
  16428. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16429. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16430. ac_status=$?
  16431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16432. test $ac_status = 0; }; then
  16433. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16434. test "x$?" != "x0" && pkg_failed=yes
  16435. else
  16436. pkg_failed=yes
  16437. fi
  16438. else
  16439. pkg_failed=untried
  16440. fi
  16441. if test $pkg_failed = yes; then
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16443. $as_echo "no" >&6; }
  16444. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16445. _pkg_short_errors_supported=yes
  16446. else
  16447. _pkg_short_errors_supported=no
  16448. fi
  16449. if test $_pkg_short_errors_supported = yes; then
  16450. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16451. else
  16452. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16453. fi
  16454. # Put the nasty error message in config.log where it belongs
  16455. echo "$JACK_PKG_ERRORS" >&5
  16456. audio_jack=no
  16457. elif test $pkg_failed = untried; then
  16458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16459. $as_echo "no" >&6; }
  16460. audio_jack=no
  16461. else
  16462. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16463. JACK_LIBS=$pkg_cv_JACK_LIBS
  16464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16465. $as_echo "yes" >&6; }
  16466. audio_jack=yes
  16467. fi
  16468. if test x$audio_jack = xyes; then
  16469. # Check whether --enable-jack-shared was given.
  16470. if test "${enable_jack_shared+set}" = set; then :
  16471. enableval=$enable_jack_shared;
  16472. else
  16473. enable_jack_shared=yes
  16474. fi
  16475. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16476. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16477. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16478. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16479. if test x$have_loadso != xyes && \
  16480. test x$enable_jack_shared = xyes; then
  16481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16482. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16483. fi
  16484. if test x$have_loadso = xyes && \
  16485. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16486. echo "-- dynamic libjack -> $jack_lib"
  16487. cat >>confdefs.h <<_ACEOF
  16488. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16489. _ACEOF
  16490. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16491. case "$host" in
  16492. # On Solaris, jack must be linked deferred explicitly
  16493. # to prevent undefined symbol failures.
  16494. *-*-solaris*)
  16495. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16497. esac
  16498. else
  16499. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16500. SUMMARY_audio="${SUMMARY_audio} jack"
  16501. fi
  16502. have_audio=yes
  16503. fi
  16504. fi
  16505. }
  16506. CheckESD()
  16507. {
  16508. # Check whether --enable-esd was given.
  16509. if test "${enable_esd+set}" = set; then :
  16510. enableval=$enable_esd;
  16511. else
  16512. enable_esd=yes
  16513. fi
  16514. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16515. # Check whether --with-esd-prefix was given.
  16516. if test "${with_esd_prefix+set}" = set; then :
  16517. withval=$with_esd_prefix; esd_prefix="$withval"
  16518. else
  16519. esd_prefix=""
  16520. fi
  16521. # Check whether --with-esd-exec-prefix was given.
  16522. if test "${with_esd_exec_prefix+set}" = set; then :
  16523. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16524. else
  16525. esd_exec_prefix=""
  16526. fi
  16527. # Check whether --enable-esdtest was given.
  16528. if test "${enable_esdtest+set}" = set; then :
  16529. enableval=$enable_esdtest;
  16530. else
  16531. enable_esdtest=yes
  16532. fi
  16533. if test x$esd_exec_prefix != x ; then
  16534. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16535. if test x${ESD_CONFIG+set} != xset ; then
  16536. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16537. fi
  16538. fi
  16539. if test x$esd_prefix != x ; then
  16540. esd_args="$esd_args --prefix=$esd_prefix"
  16541. if test x${ESD_CONFIG+set} != xset ; then
  16542. ESD_CONFIG=$esd_prefix/bin/esd-config
  16543. fi
  16544. fi
  16545. # Extract the first word of "esd-config", so it can be a program name with args.
  16546. set dummy esd-config; ac_word=$2
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16548. $as_echo_n "checking for $ac_word... " >&6; }
  16549. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16550. $as_echo_n "(cached) " >&6
  16551. else
  16552. case $ESD_CONFIG in
  16553. [\\/]* | ?:[\\/]*)
  16554. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16555. ;;
  16556. *)
  16557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16558. for as_dir in $PATH
  16559. do
  16560. IFS=$as_save_IFS
  16561. test -z "$as_dir" && as_dir=.
  16562. for ac_exec_ext in '' $ac_executable_extensions; do
  16563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16564. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16566. break 2
  16567. fi
  16568. done
  16569. done
  16570. IFS=$as_save_IFS
  16571. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16572. ;;
  16573. esac
  16574. fi
  16575. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16576. if test -n "$ESD_CONFIG"; then
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16578. $as_echo "$ESD_CONFIG" >&6; }
  16579. else
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16581. $as_echo "no" >&6; }
  16582. fi
  16583. min_esd_version=0.2.8
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16585. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16586. no_esd=""
  16587. if test "$ESD_CONFIG" = "no" ; then
  16588. no_esd=yes
  16589. else
  16590. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16591. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16592. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16593. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16594. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16595. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16596. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16597. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16598. if test "x$enable_esdtest" = "xyes" ; then
  16599. ac_ext=c
  16600. ac_cpp='$CPP $CPPFLAGS'
  16601. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16602. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16603. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16604. ac_save_CFLAGS="$CFLAGS"
  16605. ac_save_LIBS="$LIBS"
  16606. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16607. LIBS="$LIBS $ESD_LIBS"
  16608. rm -f conf.esdtest
  16609. if test "$cross_compiling" = yes; then :
  16610. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16611. else
  16612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16613. /* end confdefs.h. */
  16614. #include <stdio.h>
  16615. #include <stdlib.h>
  16616. #include <esd.h>
  16617. int main (void)
  16618. {
  16619. int major, minor, micro;
  16620. FILE *fp = fopen("conf.esdtest", "w");
  16621. if (fp) fclose(fp);
  16622. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16623. printf("%s, bad version string\n", "$min_esd_version");
  16624. exit(1);
  16625. }
  16626. if (($esd_major_version > major) ||
  16627. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16628. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16629. {
  16630. return 0;
  16631. }
  16632. else
  16633. {
  16634. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16635. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16636. printf("*** best to upgrade to the required version.\n");
  16637. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16638. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16639. printf("*** config.cache before re-running configure\n");
  16640. return 1;
  16641. }
  16642. }
  16643. _ACEOF
  16644. if ac_fn_c_try_run "$LINENO"; then :
  16645. else
  16646. no_esd=yes
  16647. fi
  16648. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16649. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16650. fi
  16651. CFLAGS="$ac_save_CFLAGS"
  16652. LIBS="$ac_save_LIBS"
  16653. ac_ext=c
  16654. ac_cpp='$CPP $CPPFLAGS'
  16655. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16656. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16657. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16658. fi
  16659. fi
  16660. if test "x$no_esd" = x ; then
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16662. $as_echo "yes" >&6; }
  16663. have_esd=yes
  16664. else
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16666. $as_echo "no" >&6; }
  16667. if test "$ESD_CONFIG" = "no" ; then
  16668. echo "*** The esd-config script installed by ESD could not be found"
  16669. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16670. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16671. echo "*** full path to esd-config."
  16672. else
  16673. if test -f conf.esdtest ; then
  16674. :
  16675. else
  16676. echo "*** Could not run ESD test program, checking why..."
  16677. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16678. LIBS="$LIBS $ESD_LIBS"
  16679. ac_ext=c
  16680. ac_cpp='$CPP $CPPFLAGS'
  16681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16685. /* end confdefs.h. */
  16686. #include <stdio.h>
  16687. #include <esd.h>
  16688. int
  16689. main ()
  16690. {
  16691. return 0;
  16692. ;
  16693. return 0;
  16694. }
  16695. _ACEOF
  16696. if ac_fn_c_try_link "$LINENO"; then :
  16697. echo "*** The test program compiled, but did not run. This usually means"
  16698. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16699. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16700. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16701. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16702. echo "*** is required on your system"
  16703. echo "***"
  16704. echo "*** If you have an old version installed, it is best to remove it, although"
  16705. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16706. else
  16707. echo "*** The test program failed to compile or link. See the file config.log for the"
  16708. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16709. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16710. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16711. fi
  16712. rm -f core conftest.err conftest.$ac_objext \
  16713. conftest$ac_exeext conftest.$ac_ext
  16714. CFLAGS="$ac_save_CFLAGS"
  16715. LIBS="$ac_save_LIBS"
  16716. ac_ext=c
  16717. ac_cpp='$CPP $CPPFLAGS'
  16718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16721. fi
  16722. fi
  16723. ESD_CFLAGS=""
  16724. ESD_LIBS=""
  16725. have_esd=no
  16726. fi
  16727. rm -f conf.esdtest
  16728. if test x$have_esd = xyes; then
  16729. # Check whether --enable-esd-shared was given.
  16730. if test "${enable_esd_shared+set}" = set; then :
  16731. enableval=$enable_esd_shared;
  16732. else
  16733. enable_esd_shared=yes
  16734. fi
  16735. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16736. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16737. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16738. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16739. if test x$have_loadso != xyes && \
  16740. test x$enable_esd_shared = xyes; then
  16741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16742. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16743. fi
  16744. if test x$have_loadso = xyes && \
  16745. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16746. echo "-- dynamic libesd -> $esd_lib"
  16747. cat >>confdefs.h <<_ACEOF
  16748. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16749. _ACEOF
  16750. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16751. else
  16752. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16753. SUMMARY_audio="${SUMMARY_audio} esd"
  16754. fi
  16755. have_audio=yes
  16756. fi
  16757. fi
  16758. }
  16759. CheckPipewire()
  16760. {
  16761. # Check whether --enable-pipewire was given.
  16762. if test "${enable_pipewire+set}" = set; then :
  16763. enableval=$enable_pipewire;
  16764. else
  16765. enable_pipewire=yes
  16766. fi
  16767. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16768. pkg_failed=no
  16769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16770. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16771. if test -n "$PIPEWIRE_CFLAGS"; then
  16772. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16773. elif test -n "$PKG_CONFIG"; then
  16774. if test -n "$PKG_CONFIG" && \
  16775. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16776. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16777. ac_status=$?
  16778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16779. test $ac_status = 0; }; then
  16780. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16781. test "x$?" != "x0" && pkg_failed=yes
  16782. else
  16783. pkg_failed=yes
  16784. fi
  16785. else
  16786. pkg_failed=untried
  16787. fi
  16788. if test -n "$PIPEWIRE_LIBS"; then
  16789. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16790. elif test -n "$PKG_CONFIG"; then
  16791. if test -n "$PKG_CONFIG" && \
  16792. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16793. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16794. ac_status=$?
  16795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16796. test $ac_status = 0; }; then
  16797. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16798. test "x$?" != "x0" && pkg_failed=yes
  16799. else
  16800. pkg_failed=yes
  16801. fi
  16802. else
  16803. pkg_failed=untried
  16804. fi
  16805. if test $pkg_failed = yes; then
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16807. $as_echo "no" >&6; }
  16808. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16809. _pkg_short_errors_supported=yes
  16810. else
  16811. _pkg_short_errors_supported=no
  16812. fi
  16813. if test $_pkg_short_errors_supported = yes; then
  16814. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16815. else
  16816. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16817. fi
  16818. # Put the nasty error message in config.log where it belongs
  16819. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16820. audio_pipewire=no
  16821. elif test $pkg_failed = untried; then
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16823. $as_echo "no" >&6; }
  16824. audio_pipewire=no
  16825. else
  16826. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16827. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16829. $as_echo "yes" >&6; }
  16830. audio_pipewire=yes
  16831. fi
  16832. if test x$audio_pipewire = xyes; then
  16833. # Check whether --enable-pipewire-shared was given.
  16834. if test "${enable_pipewire_shared+set}" = set; then :
  16835. enableval=$enable_pipewire_shared;
  16836. else
  16837. enable_pipewire_shared=yes
  16838. fi
  16839. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16840. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16841. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16842. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16843. if test x$have_loadso != xyes && \
  16844. test x$enable_pipewire_shared = xyes; then
  16845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16846. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16847. fi
  16848. if test x$have_loadso = xyes && \
  16849. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16850. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16851. cat >>confdefs.h <<_ACEOF
  16852. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16853. _ACEOF
  16854. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16855. else
  16856. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16857. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16858. fi
  16859. have_audio=yes
  16860. fi
  16861. fi
  16862. }
  16863. CheckPulseAudio()
  16864. {
  16865. # Check whether --enable-pulseaudio was given.
  16866. if test "${enable_pulseaudio+set}" = set; then :
  16867. enableval=$enable_pulseaudio;
  16868. else
  16869. enable_pulseaudio=yes
  16870. fi
  16871. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16872. pkg_failed=no
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16874. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16875. if test -n "$PULSEAUDIO_CFLAGS"; then
  16876. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16877. elif test -n "$PKG_CONFIG"; then
  16878. if test -n "$PKG_CONFIG" && \
  16879. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16880. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16881. ac_status=$?
  16882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16883. test $ac_status = 0; }; then
  16884. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16885. test "x$?" != "x0" && pkg_failed=yes
  16886. else
  16887. pkg_failed=yes
  16888. fi
  16889. else
  16890. pkg_failed=untried
  16891. fi
  16892. if test -n "$PULSEAUDIO_LIBS"; then
  16893. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16894. elif test -n "$PKG_CONFIG"; then
  16895. if test -n "$PKG_CONFIG" && \
  16896. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16897. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16898. ac_status=$?
  16899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16900. test $ac_status = 0; }; then
  16901. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16902. test "x$?" != "x0" && pkg_failed=yes
  16903. else
  16904. pkg_failed=yes
  16905. fi
  16906. else
  16907. pkg_failed=untried
  16908. fi
  16909. if test $pkg_failed = yes; then
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16911. $as_echo "no" >&6; }
  16912. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16913. _pkg_short_errors_supported=yes
  16914. else
  16915. _pkg_short_errors_supported=no
  16916. fi
  16917. if test $_pkg_short_errors_supported = yes; then
  16918. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16919. else
  16920. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16921. fi
  16922. # Put the nasty error message in config.log where it belongs
  16923. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16924. audio_pulseaudio=no
  16925. elif test $pkg_failed = untried; then
  16926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16927. $as_echo "no" >&6; }
  16928. audio_pulseaudio=no
  16929. else
  16930. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16931. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16933. $as_echo "yes" >&6; }
  16934. audio_pulseaudio=yes
  16935. fi
  16936. if test x$audio_pulseaudio = xyes; then
  16937. # Check whether --enable-pulseaudio-shared was given.
  16938. if test "${enable_pulseaudio_shared+set}" = set; then :
  16939. enableval=$enable_pulseaudio_shared;
  16940. else
  16941. enable_pulseaudio_shared=yes
  16942. fi
  16943. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16944. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16945. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16946. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16947. if test x$have_loadso != xyes && \
  16948. test x$enable_pulseaudio_shared = xyes; then
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16950. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16951. fi
  16952. if test x$have_loadso = xyes && \
  16953. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16954. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16955. cat >>confdefs.h <<_ACEOF
  16956. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16957. _ACEOF
  16958. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16959. case "$host" in
  16960. # On Solaris, pulseaudio must be linked deferred explicitly
  16961. # to prevent undefined symbol failures.
  16962. *-*-solaris*)
  16963. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16965. esac
  16966. else
  16967. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16968. SUMMARY_audio="${SUMMARY_audio} pulse"
  16969. fi
  16970. have_audio=yes
  16971. fi
  16972. fi
  16973. }
  16974. CheckARTSC()
  16975. {
  16976. # Check whether --enable-arts was given.
  16977. if test "${enable_arts+set}" = set; then :
  16978. enableval=$enable_arts;
  16979. else
  16980. enable_arts=yes
  16981. fi
  16982. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16983. # Extract the first word of "artsc-config", so it can be a program name with args.
  16984. set dummy artsc-config; ac_word=$2
  16985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16986. $as_echo_n "checking for $ac_word... " >&6; }
  16987. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16988. $as_echo_n "(cached) " >&6
  16989. else
  16990. case $ARTSCONFIG in
  16991. [\\/]* | ?:[\\/]*)
  16992. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16993. ;;
  16994. *)
  16995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16996. for as_dir in $PATH
  16997. do
  16998. IFS=$as_save_IFS
  16999. test -z "$as_dir" && as_dir=.
  17000. for ac_exec_ext in '' $ac_executable_extensions; do
  17001. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17002. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17004. break 2
  17005. fi
  17006. done
  17007. done
  17008. IFS=$as_save_IFS
  17009. ;;
  17010. esac
  17011. fi
  17012. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17013. if test -n "$ARTSCONFIG"; then
  17014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17015. $as_echo "$ARTSCONFIG" >&6; }
  17016. else
  17017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17018. $as_echo "no" >&6; }
  17019. fi
  17020. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17021. : # arts isn't installed
  17022. else
  17023. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17024. ARTS_LIBS=`$ARTSCONFIG --libs`
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17026. $as_echo_n "checking for aRts development environment... " >&6; }
  17027. audio_arts=no
  17028. save_CFLAGS="$CFLAGS"
  17029. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17031. /* end confdefs.h. */
  17032. #include <artsc.h>
  17033. int
  17034. main ()
  17035. {
  17036. arts_stream_t stream;
  17037. ;
  17038. return 0;
  17039. }
  17040. _ACEOF
  17041. if ac_fn_c_try_compile "$LINENO"; then :
  17042. audio_arts=yes
  17043. fi
  17044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17045. CFLAGS="$save_CFLAGS"
  17046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17047. $as_echo "$audio_arts" >&6; }
  17048. if test x$audio_arts = xyes; then
  17049. # Check whether --enable-arts-shared was given.
  17050. if test "${enable_arts_shared+set}" = set; then :
  17051. enableval=$enable_arts_shared;
  17052. else
  17053. enable_arts_shared=yes
  17054. fi
  17055. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17056. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17057. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17058. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17059. if test x$have_loadso != xyes && \
  17060. test x$enable_arts_shared = xyes; then
  17061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17062. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17063. fi
  17064. if test x$have_loadso = xyes && \
  17065. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17066. echo "-- dynamic libartsc -> $arts_lib"
  17067. cat >>confdefs.h <<_ACEOF
  17068. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17069. _ACEOF
  17070. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17071. else
  17072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17073. SUMMARY_audio="${SUMMARY_audio} arts"
  17074. fi
  17075. have_audio=yes
  17076. fi
  17077. fi
  17078. fi
  17079. }
  17080. CheckNAS()
  17081. {
  17082. # Check whether --enable-nas was given.
  17083. if test "${enable_nas+set}" = set; then :
  17084. enableval=$enable_nas;
  17085. else
  17086. enable_nas=yes
  17087. fi
  17088. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17089. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17090. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17091. have_nas_hdr=yes
  17092. fi
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17094. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17095. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17096. $as_echo_n "(cached) " >&6
  17097. else
  17098. ac_check_lib_save_LIBS=$LIBS
  17099. LIBS="-laudio $LIBS"
  17100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17101. /* end confdefs.h. */
  17102. /* Override any GCC internal prototype to avoid an error.
  17103. Use char because int might match the return type of a GCC
  17104. builtin and then its argument prototype would still apply. */
  17105. #ifdef __cplusplus
  17106. extern "C"
  17107. #endif
  17108. char AuOpenServer ();
  17109. int
  17110. main ()
  17111. {
  17112. return AuOpenServer ();
  17113. ;
  17114. return 0;
  17115. }
  17116. _ACEOF
  17117. if ac_fn_c_try_link "$LINENO"; then :
  17118. ac_cv_lib_audio_AuOpenServer=yes
  17119. else
  17120. ac_cv_lib_audio_AuOpenServer=no
  17121. fi
  17122. rm -f core conftest.err conftest.$ac_objext \
  17123. conftest$ac_exeext conftest.$ac_ext
  17124. LIBS=$ac_check_lib_save_LIBS
  17125. fi
  17126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17127. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17128. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17129. have_nas_lib=yes
  17130. fi
  17131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17132. $as_echo_n "checking for NAS audio support... " >&6; }
  17133. have_nas=no
  17134. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17135. have_nas=yes
  17136. NAS_LIBS="-laudio"
  17137. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17138. have_nas=yes
  17139. NAS_CFLAGS="-I/usr/X11R6/include/"
  17140. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17141. fi
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17143. $as_echo "$have_nas" >&6; }
  17144. if test x$have_nas = xyes; then
  17145. # Check whether --enable-nas-shared was given.
  17146. if test "${enable_nas_shared+set}" = set; then :
  17147. enableval=$enable_nas_shared;
  17148. else
  17149. enable_nas_shared=yes
  17150. fi
  17151. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17152. if test x$have_loadso != xyes && \
  17153. test x$enable_nas_shared = xyes; then
  17154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17155. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17156. fi
  17157. if test x$have_loadso = xyes && \
  17158. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17159. echo "-- dynamic libaudio -> $nas_lib"
  17160. cat >>confdefs.h <<_ACEOF
  17161. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17162. _ACEOF
  17163. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17164. else
  17165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17166. SUMMARY_audio="${SUMMARY_audio} nas"
  17167. fi
  17168. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17169. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17170. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17171. have_audio=yes
  17172. fi
  17173. fi
  17174. }
  17175. CheckSNDIO()
  17176. {
  17177. # Check whether --enable-sndio was given.
  17178. if test "${enable_sndio+set}" = set; then :
  17179. enableval=$enable_sndio;
  17180. else
  17181. enable_sndio=yes
  17182. fi
  17183. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17184. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17185. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17186. have_sndio_hdr=yes
  17187. fi
  17188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17189. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17190. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17191. $as_echo_n "(cached) " >&6
  17192. else
  17193. ac_check_lib_save_LIBS=$LIBS
  17194. LIBS="-lsndio $LIBS"
  17195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17196. /* end confdefs.h. */
  17197. /* Override any GCC internal prototype to avoid an error.
  17198. Use char because int might match the return type of a GCC
  17199. builtin and then its argument prototype would still apply. */
  17200. #ifdef __cplusplus
  17201. extern "C"
  17202. #endif
  17203. char sio_open ();
  17204. int
  17205. main ()
  17206. {
  17207. return sio_open ();
  17208. ;
  17209. return 0;
  17210. }
  17211. _ACEOF
  17212. if ac_fn_c_try_link "$LINENO"; then :
  17213. ac_cv_lib_sndio_sio_open=yes
  17214. else
  17215. ac_cv_lib_sndio_sio_open=no
  17216. fi
  17217. rm -f core conftest.err conftest.$ac_objext \
  17218. conftest$ac_exeext conftest.$ac_ext
  17219. LIBS=$ac_check_lib_save_LIBS
  17220. fi
  17221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17222. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17223. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17224. have_sndio_lib=yes
  17225. fi
  17226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17227. $as_echo_n "checking for sndio audio support... " >&6; }
  17228. have_sndio=no
  17229. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17230. have_sndio=yes
  17231. SNDIO_LIBS="-lsndio"
  17232. fi
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17234. $as_echo "$have_sndio" >&6; }
  17235. if test x$have_sndio = xyes; then
  17236. # Check whether --enable-sndio-shared was given.
  17237. if test "${enable_sndio_shared+set}" = set; then :
  17238. enableval=$enable_sndio_shared;
  17239. else
  17240. enable_sndio_shared=yes
  17241. fi
  17242. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17243. if test x$have_loadso != xyes && \
  17244. test x$enable_sndio_shared = xyes; then
  17245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17246. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17247. fi
  17248. if test x$have_loadso = xyes && \
  17249. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17250. echo "-- dynamic libsndio -> $sndio_lib"
  17251. cat >>confdefs.h <<_ACEOF
  17252. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17253. _ACEOF
  17254. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17255. else
  17256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17257. SUMMARY_audio="${SUMMARY_audio} sndio"
  17258. fi
  17259. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17260. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17261. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17262. have_audio=yes
  17263. fi
  17264. fi
  17265. }
  17266. CheckFusionSound()
  17267. {
  17268. # Check whether --enable-fusionsound was given.
  17269. if test "${enable_fusionsound+set}" = set; then :
  17270. enableval=$enable_fusionsound;
  17271. else
  17272. enable_fusionsound=no
  17273. fi
  17274. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17275. pkg_failed=no
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17277. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17278. if test -n "$FUSIONSOUND_CFLAGS"; then
  17279. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17280. elif test -n "$PKG_CONFIG"; then
  17281. if test -n "$PKG_CONFIG" && \
  17282. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17283. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17284. ac_status=$?
  17285. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17286. test $ac_status = 0; }; then
  17287. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17288. test "x$?" != "x0" && pkg_failed=yes
  17289. else
  17290. pkg_failed=yes
  17291. fi
  17292. else
  17293. pkg_failed=untried
  17294. fi
  17295. if test -n "$FUSIONSOUND_LIBS"; then
  17296. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17297. elif test -n "$PKG_CONFIG"; then
  17298. if test -n "$PKG_CONFIG" && \
  17299. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17300. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17301. ac_status=$?
  17302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17303. test $ac_status = 0; }; then
  17304. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17305. test "x$?" != "x0" && pkg_failed=yes
  17306. else
  17307. pkg_failed=yes
  17308. fi
  17309. else
  17310. pkg_failed=untried
  17311. fi
  17312. if test $pkg_failed = yes; then
  17313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17314. $as_echo "no" >&6; }
  17315. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17316. _pkg_short_errors_supported=yes
  17317. else
  17318. _pkg_short_errors_supported=no
  17319. fi
  17320. if test $_pkg_short_errors_supported = yes; then
  17321. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17322. else
  17323. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17324. fi
  17325. # Put the nasty error message in config.log where it belongs
  17326. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17327. fusionsound=no
  17328. elif test $pkg_failed = untried; then
  17329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17330. $as_echo "no" >&6; }
  17331. fusionsound=no
  17332. else
  17333. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17334. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17336. $as_echo "yes" >&6; }
  17337. fusionsound=yes
  17338. fi
  17339. if test x$fusionsound = xyes; then
  17340. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17341. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17342. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17343. # Check whether --enable-fusionsound-shared was given.
  17344. if test "${enable_fusionsound_shared+set}" = set; then :
  17345. enableval=$enable_fusionsound_shared;
  17346. else
  17347. enable_fusionsound_shared=yes
  17348. fi
  17349. fusionsound_shared=no
  17350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17351. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17352. if test x$have_loadso != xyes && \
  17353. test x$enable_fusionsound_shared = xyes; then
  17354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17355. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17356. fi
  17357. if test x$have_loadso = xyes && \
  17358. test x$enable_fusionsound_shared = xyes; then
  17359. cat >>confdefs.h <<_ACEOF
  17360. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17361. _ACEOF
  17362. fusionsound_shared=yes
  17363. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17364. else
  17365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17366. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17367. fi
  17368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17369. $as_echo "$fusionsound_shared" >&6; }
  17370. have_audio=yes
  17371. fi
  17372. fi
  17373. }
  17374. CheckDiskAudio()
  17375. {
  17376. # Check whether --enable-diskaudio was given.
  17377. if test "${enable_diskaudio+set}" = set; then :
  17378. enableval=$enable_diskaudio;
  17379. else
  17380. enable_diskaudio=yes
  17381. fi
  17382. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17383. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17384. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17385. SUMMARY_audio="${SUMMARY_audio} disk"
  17386. fi
  17387. }
  17388. CheckDummyAudio()
  17389. {
  17390. # Check whether --enable-dummyaudio was given.
  17391. if test "${enable_dummyaudio+set}" = set; then :
  17392. enableval=$enable_dummyaudio;
  17393. else
  17394. enable_dummyaudio=yes
  17395. fi
  17396. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17397. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17398. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17399. SUMMARY_audio="${SUMMARY_audio} dummy"
  17400. fi
  17401. }
  17402. CheckLibSampleRate()
  17403. {
  17404. # Check whether --enable-libsamplerate was given.
  17405. if test "${enable_libsamplerate+set}" = set; then :
  17406. enableval=$enable_libsamplerate;
  17407. else
  17408. enable_libsamplerate=yes
  17409. fi
  17410. if test x$enable_libsamplerate = xyes; then
  17411. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17412. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17413. have_samplerate_h_hdr=yes
  17414. else
  17415. have_samplerate_h_hdr=no
  17416. fi
  17417. if test x$have_samplerate_h_hdr = xyes; then
  17418. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17419. # Check whether --enable-libsamplerate-shared was given.
  17420. if test "${enable_libsamplerate_shared+set}" = set; then :
  17421. enableval=$enable_libsamplerate_shared;
  17422. else
  17423. enable_libsamplerate_shared=yes
  17424. fi
  17425. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17426. if test x$have_loadso != xyes && \
  17427. test x$enable_libsamplerate_shared = xyes; then
  17428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17429. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17430. fi
  17431. if test x$have_loadso = xyes && \
  17432. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17433. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17434. cat >>confdefs.h <<_ACEOF
  17435. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17436. _ACEOF
  17437. else
  17438. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17439. fi
  17440. fi
  17441. fi
  17442. }
  17443. CheckARM()
  17444. {
  17445. # Check whether --enable-arm-simd was given.
  17446. if test "${enable_arm_simd+set}" = set; then :
  17447. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17448. else
  17449. enable_arm_simd=no
  17450. fi
  17451. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17452. save_CFLAGS="$CFLAGS"
  17453. have_arm_simd=no
  17454. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17456. $as_echo_n "checking for ARM SIMD... " >&6; }
  17457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17458. /* end confdefs.h. */
  17459. .text
  17460. .arch armv6
  17461. .object_arch armv4
  17462. .arm
  17463. .altmacro
  17464. #ifndef __ARM_EABI__
  17465. #error EABI is required (to be sure that calling conventions are compatible)
  17466. #endif
  17467. pld [r0]
  17468. uqadd8 r0, r0, r0
  17469. _ACEOF
  17470. if ac_fn_c_try_compile "$LINENO"; then :
  17471. have_arm_simd=yes
  17472. fi
  17473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17475. $as_echo "$have_arm_simd" >&6; }
  17476. CFLAGS="$save_CFLAGS"
  17477. if test x$have_arm_simd = xyes; then
  17478. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17479. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17480. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17481. fi
  17482. fi
  17483. }
  17484. CheckNEON()
  17485. {
  17486. # Check whether --enable-arm-neon was given.
  17487. if test "${enable_arm_neon+set}" = set; then :
  17488. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17489. else
  17490. enable_arm_neon=no
  17491. fi
  17492. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17493. save_CFLAGS="$CFLAGS"
  17494. have_arm_neon=no
  17495. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17497. $as_echo_n "checking for ARM NEON... " >&6; }
  17498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17499. /* end confdefs.h. */
  17500. .text
  17501. .fpu neon
  17502. .arch armv7a
  17503. .object_arch armv4
  17504. .eabi_attribute 10, 0
  17505. .arm
  17506. .altmacro
  17507. #ifndef __ARM_EABI__
  17508. #error EABI is required (to be sure that calling conventions are compatible)
  17509. #endif
  17510. pld [r0]
  17511. vmovn.u16 d0, q0
  17512. _ACEOF
  17513. if ac_fn_c_try_compile "$LINENO"; then :
  17514. have_arm_neon=yes
  17515. fi
  17516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17518. $as_echo "$have_arm_neon" >&6; }
  17519. CFLAGS="$save_CFLAGS"
  17520. if test x$have_arm_neon = xyes; then
  17521. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17522. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17523. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17524. fi
  17525. fi
  17526. }
  17527. CheckVisibilityHidden()
  17528. {
  17529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17530. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17531. have_gcc_fvisibility=no
  17532. visibility_CFLAGS="-fvisibility=hidden"
  17533. save_CFLAGS="$CFLAGS"
  17534. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17536. /* end confdefs.h. */
  17537. #if !defined(__GNUC__) || __GNUC__ < 4
  17538. #error SDL only uses visibility attributes in GCC 4 or newer
  17539. #endif
  17540. int
  17541. main ()
  17542. {
  17543. ;
  17544. return 0;
  17545. }
  17546. _ACEOF
  17547. if ac_fn_c_try_compile "$LINENO"; then :
  17548. have_gcc_fvisibility=yes
  17549. fi
  17550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17552. $as_echo "$have_gcc_fvisibility" >&6; }
  17553. CFLAGS="$save_CFLAGS"
  17554. if test x$have_gcc_fvisibility = xyes; then
  17555. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17556. fi
  17557. }
  17558. CheckNoStrictAliasing()
  17559. {
  17560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17561. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17562. have_gcc_no_strict_aliasing=no
  17563. save_CFLAGS="$CFLAGS"
  17564. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17566. /* end confdefs.h. */
  17567. int x = 0;
  17568. int
  17569. main ()
  17570. {
  17571. ;
  17572. return 0;
  17573. }
  17574. _ACEOF
  17575. if ac_fn_c_try_compile "$LINENO"; then :
  17576. have_gcc_no_strict_aliasing=yes
  17577. fi
  17578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17580. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17581. CFLAGS="$save_CFLAGS"
  17582. if test x$have_gcc_no_strict_aliasing = xyes; then
  17583. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17584. fi
  17585. }
  17586. CheckStackBoundary()
  17587. {
  17588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17589. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17590. have_gcc_preferred_stack_boundary=no
  17591. save_CFLAGS="$CFLAGS"
  17592. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17594. /* end confdefs.h. */
  17595. int x = 0;
  17596. int
  17597. main ()
  17598. {
  17599. ;
  17600. return 0;
  17601. }
  17602. _ACEOF
  17603. if ac_fn_c_try_compile "$LINENO"; then :
  17604. have_gcc_preferred_stack_boundary=yes
  17605. fi
  17606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17608. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17609. CFLAGS="$save_CFLAGS"
  17610. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17611. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17612. fi
  17613. }
  17614. CheckDeclarationAfterStatement()
  17615. {
  17616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17617. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17618. have_gcc_declaration_after_statement=no
  17619. save_CFLAGS="$CFLAGS"
  17620. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17622. /* end confdefs.h. */
  17623. int x = 0;
  17624. int
  17625. main ()
  17626. {
  17627. ;
  17628. return 0;
  17629. }
  17630. _ACEOF
  17631. if ac_fn_c_try_compile "$LINENO"; then :
  17632. have_gcc_declaration_after_statement=yes
  17633. fi
  17634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17636. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17637. CFLAGS="$save_CFLAGS"
  17638. if test x$have_gcc_declaration_after_statement = xyes; then
  17639. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17640. fi
  17641. }
  17642. CheckWarnAll()
  17643. {
  17644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17645. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17646. have_gcc_Wall=no
  17647. save_CFLAGS="$CFLAGS"
  17648. CFLAGS="$save_CFLAGS -Wall"
  17649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17650. /* end confdefs.h. */
  17651. int x = 0;
  17652. int
  17653. main ()
  17654. {
  17655. ;
  17656. return 0;
  17657. }
  17658. _ACEOF
  17659. if ac_fn_c_try_compile "$LINENO"; then :
  17660. have_gcc_Wall=yes
  17661. fi
  17662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17664. $as_echo "$have_gcc_Wall" >&6; }
  17665. CFLAGS="$save_CFLAGS"
  17666. if test x$have_gcc_Wall = xyes; then
  17667. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17669. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17670. need_gcc_Wno_multichar=no
  17671. case "$host" in
  17672. *-*-haiku*)
  17673. need_gcc_Wno_multichar=yes
  17674. ;;
  17675. esac
  17676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17677. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17678. if test x$need_gcc_Wno_multichar = xyes; then
  17679. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17680. fi
  17681. fi
  17682. }
  17683. CheckWayland()
  17684. {
  17685. # Check whether --enable-video-wayland was given.
  17686. if test "${enable_video_wayland+set}" = set; then :
  17687. enableval=$enable_video_wayland;
  17688. else
  17689. enable_video_wayland=yes
  17690. fi
  17691. # Check whether --enable-video-wayland-qt-touch was given.
  17692. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17693. enableval=$enable_video_wayland_qt_touch;
  17694. else
  17695. enable_video_wayland_qt_touch=yes
  17696. fi
  17697. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17699. $as_echo_n "checking for Wayland support... " >&6; }
  17700. video_wayland=no
  17701. if test x$video_opengl_egl = xyes && \
  17702. test x$video_opengles_v2 = xyes; then
  17703. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17704. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17705. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17706. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17707. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17708. WAYLAND_SCANNER_CODE_MODE=private-code
  17709. else
  17710. WAYLAND_SCANNER_CODE_MODE=code
  17711. fi
  17712. video_wayland=yes
  17713. fi
  17714. fi
  17715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17716. $as_echo "$video_wayland" >&6; }
  17717. if test x$video_wayland = xyes; then
  17718. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17719. if test x$enable_video_wayland_qt_touch = xyes; then
  17720. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17721. fi
  17722. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17723. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17724. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17725. # Check whether --enable-wayland-shared was given.
  17726. if test "${enable_wayland_shared+set}" = set; then :
  17727. enableval=$enable_wayland_shared;
  17728. else
  17729. enable_wayland_shared=maybe
  17730. fi
  17731. case "$host" in
  17732. *)
  17733. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17734. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17735. if test x$wayland_egl_lib = x; then
  17736. # This works in Ubuntu 13.10, maybe others
  17737. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17738. fi
  17739. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17740. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17741. ;;
  17742. esac
  17743. if test x$enable_wayland_shared = xmaybe; then
  17744. enable_wayland_shared=yes
  17745. fi
  17746. if test x$have_loadso != xyes && \
  17747. test x$enable_wayland_shared = xyes; then
  17748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17749. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17750. enable_wayland_shared=no
  17751. fi
  17752. if test x$have_loadso = xyes && \
  17753. test x$enable_wayland_shared = xyes && \
  17754. test x$wayland_client_lib != x && \
  17755. test x$wayland_egl_lib != x && \
  17756. test x$wayland_cursor_lib != x && \
  17757. test x$xkbcommon_lib != x; then
  17758. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17759. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17760. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17761. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17762. cat >>confdefs.h <<_ACEOF
  17763. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17764. _ACEOF
  17765. cat >>confdefs.h <<_ACEOF
  17766. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17767. _ACEOF
  17768. cat >>confdefs.h <<_ACEOF
  17769. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17770. _ACEOF
  17771. cat >>confdefs.h <<_ACEOF
  17772. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17773. _ACEOF
  17774. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17775. else
  17776. enable_wayland_shared=no
  17777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17778. SUMMARY_video="${SUMMARY_video} wayland"
  17779. fi
  17780. have_video=yes
  17781. # Check whether --enable-libdecor was given.
  17782. if test "${enable_libdecor+set}" = set; then :
  17783. enableval=$enable_libdecor;
  17784. else
  17785. enable_libdecor=yes
  17786. fi
  17787. if test x$enable_libdecor = xyes; then
  17788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17789. $as_echo_n "checking for libdecor support... " >&6; }
  17790. if $PKG_CONFIG --exists libdecor-0; then :
  17791. video_libdecor=yes
  17792. else
  17793. video_libdecor=no
  17794. fi
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17796. $as_echo "$video_libdecor" >&6; }
  17797. if test x$video_libdecor = xyes; then
  17798. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17799. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17800. # Check whether --enable-libdecor-shared was given.
  17801. if test "${enable_libdecor_shared+set}" = set; then :
  17802. enableval=$enable_libdecor_shared;
  17803. else
  17804. enable_libdecor_shared=yes
  17805. fi
  17806. if test x$enable_wayland_shared != xyes; then
  17807. enable_libdecor_shared=no
  17808. fi
  17809. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17810. if test x$have_loadso != xyes && \
  17811. test x$enable_libdecor_shared = xyes; then
  17812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17813. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17814. fi
  17815. if test x$have_loadso = xyes && \
  17816. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17817. echo "-- dynamic libdecor -> $decor_lib"
  17818. cat >>confdefs.h <<_ACEOF
  17819. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17820. _ACEOF
  17821. else
  17822. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17823. fi
  17824. fi
  17825. fi
  17826. fi
  17827. fi
  17828. }
  17829. CheckNativeClient()
  17830. {
  17831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17832. /* end confdefs.h. */
  17833. #if !defined(__native_client__)
  17834. #error "NO NACL"
  17835. #endif
  17836. int
  17837. main ()
  17838. {
  17839. ;
  17840. return 0;
  17841. }
  17842. _ACEOF
  17843. if ac_fn_c_try_compile "$LINENO"; then :
  17844. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17845. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17846. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17847. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17848. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17849. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17850. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17851. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17852. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17853. SUMMARY_audio="${SUMMARY_audio} nacl"
  17854. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17855. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17856. fi
  17857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17858. }
  17859. CheckRPI()
  17860. {
  17861. # Check whether --enable-video-rpi was given.
  17862. if test "${enable_video_rpi+set}" = set; then :
  17863. enableval=$enable_video_rpi;
  17864. else
  17865. enable_video_rpi=yes
  17866. fi
  17867. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17868. pkg_failed=no
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17870. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17871. if test -n "$RPI_CFLAGS"; then
  17872. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17873. elif test -n "$PKG_CONFIG"; then
  17874. if test -n "$PKG_CONFIG" && \
  17875. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17876. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17877. ac_status=$?
  17878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17879. test $ac_status = 0; }; then
  17880. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17881. test "x$?" != "x0" && pkg_failed=yes
  17882. else
  17883. pkg_failed=yes
  17884. fi
  17885. else
  17886. pkg_failed=untried
  17887. fi
  17888. if test -n "$RPI_LIBS"; then
  17889. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17890. elif test -n "$PKG_CONFIG"; then
  17891. if test -n "$PKG_CONFIG" && \
  17892. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17893. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17894. ac_status=$?
  17895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17896. test $ac_status = 0; }; then
  17897. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17898. test "x$?" != "x0" && pkg_failed=yes
  17899. else
  17900. pkg_failed=yes
  17901. fi
  17902. else
  17903. pkg_failed=untried
  17904. fi
  17905. if test $pkg_failed = yes; then
  17906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17907. $as_echo "no" >&6; }
  17908. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17909. _pkg_short_errors_supported=yes
  17910. else
  17911. _pkg_short_errors_supported=no
  17912. fi
  17913. if test $_pkg_short_errors_supported = yes; then
  17914. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17915. else
  17916. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17917. fi
  17918. # Put the nasty error message in config.log where it belongs
  17919. echo "$RPI_PKG_ERRORS" >&5
  17920. video_rpi=no
  17921. elif test $pkg_failed = untried; then
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17923. $as_echo "no" >&6; }
  17924. video_rpi=no
  17925. else
  17926. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17927. RPI_LIBS=$pkg_cv_RPI_LIBS
  17928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17929. $as_echo "yes" >&6; }
  17930. video_rpi=yes
  17931. fi
  17932. if test x$video_rpi = xno; then
  17933. if test x$ARCH = xnetbsd; then
  17934. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17935. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17936. else
  17937. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17938. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17939. fi
  17940. fi
  17941. # Save the original compiler flags and libraries
  17942. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17943. # Add the Raspberry Pi compiler flags and libraries
  17944. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  17946. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  17947. have_video_rpi=no
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. #include <bcm_host.h>
  17951. #include <EGL/eglplatform.h>
  17952. int
  17953. main ()
  17954. {
  17955. EGL_DISPMANX_WINDOW_T window;
  17956. bcm_host_init();
  17957. ;
  17958. return 0;
  17959. }
  17960. _ACEOF
  17961. if ac_fn_c_try_link "$LINENO"; then :
  17962. have_video_rpi=yes
  17963. fi
  17964. rm -f core conftest.err conftest.$ac_objext \
  17965. conftest$ac_exeext conftest.$ac_ext
  17966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17967. $as_echo "$have_video_rpi" >&6; }
  17968. # Restore the compiler flags and libraries
  17969. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17970. if test x$have_video_rpi = xyes; then
  17971. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17972. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17973. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17974. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17975. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17976. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17977. SUMMARY_video="${SUMMARY_video} rpi"
  17978. fi
  17979. fi
  17980. }
  17981. CheckX11()
  17982. {
  17983. # Check whether --enable-video-x11 was given.
  17984. if test "${enable_video_x11+set}" = set; then :
  17985. enableval=$enable_video_x11;
  17986. else
  17987. enable_video_x11=yes
  17988. fi
  17989. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17990. case "$host" in
  17991. *-*-darwin*)
  17992. # This isn't necessary for X11, but fixes GLX detection
  17993. if test "x$x_includes" = xNONE && \
  17994. test "x$x_libraries" = xNONE && \
  17995. test -d /opt/X11/include && \
  17996. test -d /opt/X11/lib; then
  17997. x_includes="/opt/X11/include"
  17998. x_libraries="/opt/X11/lib"
  17999. fi
  18000. ;;
  18001. esac
  18002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18003. $as_echo_n "checking for X... " >&6; }
  18004. # Check whether --with-x was given.
  18005. if test "${with_x+set}" = set; then :
  18006. withval=$with_x;
  18007. fi
  18008. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18009. if test "x$with_x" = xno; then
  18010. # The user explicitly disabled X.
  18011. have_x=disabled
  18012. else
  18013. case $x_includes,$x_libraries in #(
  18014. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18015. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18016. $as_echo_n "(cached) " >&6
  18017. else
  18018. # One or both of the vars are not set, and there is no cached value.
  18019. ac_x_includes=no
  18020. ac_x_libraries=no
  18021. # Do we need to do anything special at all?
  18022. ac_save_LIBS=$LIBS
  18023. LIBS="-lX11 $LIBS"
  18024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18025. /* end confdefs.h. */
  18026. #include <X11/Xlib.h>
  18027. int
  18028. main ()
  18029. {
  18030. XrmInitialize ()
  18031. ;
  18032. return 0;
  18033. }
  18034. _ACEOF
  18035. if ac_fn_c_try_link "$LINENO"; then :
  18036. # We can compile and link X programs with no special options.
  18037. ac_x_includes=
  18038. ac_x_libraries=
  18039. fi
  18040. rm -f core conftest.err conftest.$ac_objext \
  18041. conftest$ac_exeext conftest.$ac_ext
  18042. LIBS="$ac_save_LIBS"
  18043. # If that didn't work, only try xmkmf and filesystem searches
  18044. # for native compilation.
  18045. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18046. rm -f -r conftest.dir
  18047. if mkdir conftest.dir; then
  18048. cd conftest.dir
  18049. cat >Imakefile <<'_ACEOF'
  18050. incroot:
  18051. @echo incroot='${INCROOT}'
  18052. usrlibdir:
  18053. @echo usrlibdir='${USRLIBDIR}'
  18054. libdir:
  18055. @echo libdir='${LIBDIR}'
  18056. _ACEOF
  18057. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18058. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18059. for ac_var in incroot usrlibdir libdir; do
  18060. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18061. done
  18062. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18063. for ac_extension in a so sl dylib la dll; do
  18064. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18065. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18066. ac_im_usrlibdir=$ac_im_libdir; break
  18067. fi
  18068. done
  18069. # Screen out bogus values from the imake configuration. They are
  18070. # bogus both because they are the default anyway, and because
  18071. # using them would break gcc on systems where it needs fixed includes.
  18072. case $ac_im_incroot in
  18073. /usr/include) ac_x_includes= ;;
  18074. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18075. esac
  18076. case $ac_im_usrlibdir in
  18077. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18078. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18079. esac
  18080. fi
  18081. cd ..
  18082. rm -f -r conftest.dir
  18083. fi
  18084. # Standard set of common directories for X headers.
  18085. # Check X11 before X11Rn because it is often a symlink to the current release.
  18086. ac_x_header_dirs='
  18087. /usr/X11/include
  18088. /usr/X11R7/include
  18089. /usr/X11R6/include
  18090. /usr/X11R5/include
  18091. /usr/X11R4/include
  18092. /usr/include/X11
  18093. /usr/include/X11R7
  18094. /usr/include/X11R6
  18095. /usr/include/X11R5
  18096. /usr/include/X11R4
  18097. /usr/local/X11/include
  18098. /usr/local/X11R7/include
  18099. /usr/local/X11R6/include
  18100. /usr/local/X11R5/include
  18101. /usr/local/X11R4/include
  18102. /usr/local/include/X11
  18103. /usr/local/include/X11R7
  18104. /usr/local/include/X11R6
  18105. /usr/local/include/X11R5
  18106. /usr/local/include/X11R4
  18107. /opt/X11/include
  18108. /usr/X386/include
  18109. /usr/x386/include
  18110. /usr/XFree86/include/X11
  18111. /usr/include
  18112. /usr/local/include
  18113. /usr/unsupported/include
  18114. /usr/athena/include
  18115. /usr/local/x11r5/include
  18116. /usr/lpp/Xamples/include
  18117. /usr/openwin/include
  18118. /usr/openwin/share/include'
  18119. if test "$ac_x_includes" = no; then
  18120. # Guess where to find include files, by looking for Xlib.h.
  18121. # First, try using that file with no special directory specified.
  18122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18123. /* end confdefs.h. */
  18124. #include <X11/Xlib.h>
  18125. _ACEOF
  18126. if ac_fn_c_try_cpp "$LINENO"; then :
  18127. # We can compile using X headers with no special include directory.
  18128. ac_x_includes=
  18129. else
  18130. for ac_dir in $ac_x_header_dirs; do
  18131. if test -r "$ac_dir/X11/Xlib.h"; then
  18132. ac_x_includes=$ac_dir
  18133. break
  18134. fi
  18135. done
  18136. fi
  18137. rm -f conftest.err conftest.i conftest.$ac_ext
  18138. fi # $ac_x_includes = no
  18139. if test "$ac_x_libraries" = no; then
  18140. # Check for the libraries.
  18141. # See if we find them without any special options.
  18142. # Don't add to $LIBS permanently.
  18143. ac_save_LIBS=$LIBS
  18144. LIBS="-lX11 $LIBS"
  18145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18146. /* end confdefs.h. */
  18147. #include <X11/Xlib.h>
  18148. int
  18149. main ()
  18150. {
  18151. XrmInitialize ()
  18152. ;
  18153. return 0;
  18154. }
  18155. _ACEOF
  18156. if ac_fn_c_try_link "$LINENO"; then :
  18157. LIBS=$ac_save_LIBS
  18158. # We can link X programs with no special library path.
  18159. ac_x_libraries=
  18160. else
  18161. LIBS=$ac_save_LIBS
  18162. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18163. do
  18164. # Don't even attempt the hair of trying to link an X program!
  18165. for ac_extension in a so sl dylib la dll; do
  18166. if test -r "$ac_dir/libX11.$ac_extension"; then
  18167. ac_x_libraries=$ac_dir
  18168. break 2
  18169. fi
  18170. done
  18171. done
  18172. fi
  18173. rm -f core conftest.err conftest.$ac_objext \
  18174. conftest$ac_exeext conftest.$ac_ext
  18175. fi # $ac_x_libraries = no
  18176. fi
  18177. # Record the results.
  18178. case $ac_x_includes,$ac_x_libraries in #(
  18179. no,* | *,no | *\'*) :
  18180. # Didn't find X, or a directory has "'" in its name.
  18181. ac_cv_have_x="have_x=no" ;; #(
  18182. *) :
  18183. # Record where we found X for the cache.
  18184. ac_cv_have_x="have_x=yes\
  18185. ac_x_includes='$ac_x_includes'\
  18186. ac_x_libraries='$ac_x_libraries'" ;;
  18187. esac
  18188. fi
  18189. ;; #(
  18190. *) have_x=yes;;
  18191. esac
  18192. eval "$ac_cv_have_x"
  18193. fi # $with_x != no
  18194. if test "$have_x" != yes; then
  18195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18196. $as_echo "$have_x" >&6; }
  18197. no_x=yes
  18198. else
  18199. # If each of the values was on the command line, it overrides each guess.
  18200. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18201. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18202. # Update the cache value to reflect the command line values.
  18203. ac_cv_have_x="have_x=yes\
  18204. ac_x_includes='$x_includes'\
  18205. ac_x_libraries='$x_libraries'"
  18206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18207. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18208. fi
  18209. if test "$no_x" = yes; then
  18210. # Not all programs may use this symbol, but it does not hurt to define it.
  18211. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18212. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18213. else
  18214. if test -n "$x_includes"; then
  18215. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18216. fi
  18217. # It would also be nice to do this for all -L options, not just this one.
  18218. if test -n "$x_libraries"; then
  18219. X_LIBS="$X_LIBS -L$x_libraries"
  18220. # For Solaris; some versions of Sun CC require a space after -R and
  18221. # others require no space. Words are not sufficient . . . .
  18222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18223. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18224. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18225. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18226. ac_c_werror_flag=yes
  18227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18228. /* end confdefs.h. */
  18229. int
  18230. main ()
  18231. {
  18232. ;
  18233. return 0;
  18234. }
  18235. _ACEOF
  18236. if ac_fn_c_try_link "$LINENO"; then :
  18237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18238. $as_echo "no" >&6; }
  18239. X_LIBS="$X_LIBS -R$x_libraries"
  18240. else
  18241. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18243. /* end confdefs.h. */
  18244. int
  18245. main ()
  18246. {
  18247. ;
  18248. return 0;
  18249. }
  18250. _ACEOF
  18251. if ac_fn_c_try_link "$LINENO"; then :
  18252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18253. $as_echo "yes" >&6; }
  18254. X_LIBS="$X_LIBS -R $x_libraries"
  18255. else
  18256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18257. $as_echo "neither works" >&6; }
  18258. fi
  18259. rm -f core conftest.err conftest.$ac_objext \
  18260. conftest$ac_exeext conftest.$ac_ext
  18261. fi
  18262. rm -f core conftest.err conftest.$ac_objext \
  18263. conftest$ac_exeext conftest.$ac_ext
  18264. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18265. LIBS=$ac_xsave_LIBS
  18266. fi
  18267. # Check for system-dependent libraries X programs must link with.
  18268. # Do this before checking for the system-independent R6 libraries
  18269. # (-lICE), since we may need -lsocket or whatever for X linking.
  18270. if test "$ISC" = yes; then
  18271. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18272. else
  18273. # Martyn Johnson says this is needed for Ultrix, if the X
  18274. # libraries were built with DECnet support. And Karl Berry says
  18275. # the Alpha needs dnet_stub (dnet does not exist).
  18276. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18278. /* end confdefs.h. */
  18279. /* Override any GCC internal prototype to avoid an error.
  18280. Use char because int might match the return type of a GCC
  18281. builtin and then its argument prototype would still apply. */
  18282. #ifdef __cplusplus
  18283. extern "C"
  18284. #endif
  18285. char XOpenDisplay ();
  18286. int
  18287. main ()
  18288. {
  18289. return XOpenDisplay ();
  18290. ;
  18291. return 0;
  18292. }
  18293. _ACEOF
  18294. if ac_fn_c_try_link "$LINENO"; then :
  18295. else
  18296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18297. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18298. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18299. $as_echo_n "(cached) " >&6
  18300. else
  18301. ac_check_lib_save_LIBS=$LIBS
  18302. LIBS="-ldnet $LIBS"
  18303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18304. /* end confdefs.h. */
  18305. /* Override any GCC internal prototype to avoid an error.
  18306. Use char because int might match the return type of a GCC
  18307. builtin and then its argument prototype would still apply. */
  18308. #ifdef __cplusplus
  18309. extern "C"
  18310. #endif
  18311. char dnet_ntoa ();
  18312. int
  18313. main ()
  18314. {
  18315. return dnet_ntoa ();
  18316. ;
  18317. return 0;
  18318. }
  18319. _ACEOF
  18320. if ac_fn_c_try_link "$LINENO"; then :
  18321. ac_cv_lib_dnet_dnet_ntoa=yes
  18322. else
  18323. ac_cv_lib_dnet_dnet_ntoa=no
  18324. fi
  18325. rm -f core conftest.err conftest.$ac_objext \
  18326. conftest$ac_exeext conftest.$ac_ext
  18327. LIBS=$ac_check_lib_save_LIBS
  18328. fi
  18329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18330. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18331. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18332. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18333. fi
  18334. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18336. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18337. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18338. $as_echo_n "(cached) " >&6
  18339. else
  18340. ac_check_lib_save_LIBS=$LIBS
  18341. LIBS="-ldnet_stub $LIBS"
  18342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18343. /* end confdefs.h. */
  18344. /* Override any GCC internal prototype to avoid an error.
  18345. Use char because int might match the return type of a GCC
  18346. builtin and then its argument prototype would still apply. */
  18347. #ifdef __cplusplus
  18348. extern "C"
  18349. #endif
  18350. char dnet_ntoa ();
  18351. int
  18352. main ()
  18353. {
  18354. return dnet_ntoa ();
  18355. ;
  18356. return 0;
  18357. }
  18358. _ACEOF
  18359. if ac_fn_c_try_link "$LINENO"; then :
  18360. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18361. else
  18362. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18363. fi
  18364. rm -f core conftest.err conftest.$ac_objext \
  18365. conftest$ac_exeext conftest.$ac_ext
  18366. LIBS=$ac_check_lib_save_LIBS
  18367. fi
  18368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18369. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18370. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18371. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18372. fi
  18373. fi
  18374. fi
  18375. rm -f core conftest.err conftest.$ac_objext \
  18376. conftest$ac_exeext conftest.$ac_ext
  18377. LIBS="$ac_xsave_LIBS"
  18378. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18379. # to get the SysV transport functions.
  18380. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18381. # needs -lnsl.
  18382. # The nsl library prevents programs from opening the X display
  18383. # on Irix 5.2, according to T.E. Dickey.
  18384. # The functions gethostbyname, getservbyname, and inet_addr are
  18385. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18386. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18387. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18388. fi
  18389. if test $ac_cv_func_gethostbyname = no; then
  18390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18391. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18392. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18393. $as_echo_n "(cached) " >&6
  18394. else
  18395. ac_check_lib_save_LIBS=$LIBS
  18396. LIBS="-lnsl $LIBS"
  18397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18398. /* end confdefs.h. */
  18399. /* Override any GCC internal prototype to avoid an error.
  18400. Use char because int might match the return type of a GCC
  18401. builtin and then its argument prototype would still apply. */
  18402. #ifdef __cplusplus
  18403. extern "C"
  18404. #endif
  18405. char gethostbyname ();
  18406. int
  18407. main ()
  18408. {
  18409. return gethostbyname ();
  18410. ;
  18411. return 0;
  18412. }
  18413. _ACEOF
  18414. if ac_fn_c_try_link "$LINENO"; then :
  18415. ac_cv_lib_nsl_gethostbyname=yes
  18416. else
  18417. ac_cv_lib_nsl_gethostbyname=no
  18418. fi
  18419. rm -f core conftest.err conftest.$ac_objext \
  18420. conftest$ac_exeext conftest.$ac_ext
  18421. LIBS=$ac_check_lib_save_LIBS
  18422. fi
  18423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18424. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18425. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18426. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18427. fi
  18428. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18430. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18431. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18432. $as_echo_n "(cached) " >&6
  18433. else
  18434. ac_check_lib_save_LIBS=$LIBS
  18435. LIBS="-lbsd $LIBS"
  18436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18437. /* end confdefs.h. */
  18438. /* Override any GCC internal prototype to avoid an error.
  18439. Use char because int might match the return type of a GCC
  18440. builtin and then its argument prototype would still apply. */
  18441. #ifdef __cplusplus
  18442. extern "C"
  18443. #endif
  18444. char gethostbyname ();
  18445. int
  18446. main ()
  18447. {
  18448. return gethostbyname ();
  18449. ;
  18450. return 0;
  18451. }
  18452. _ACEOF
  18453. if ac_fn_c_try_link "$LINENO"; then :
  18454. ac_cv_lib_bsd_gethostbyname=yes
  18455. else
  18456. ac_cv_lib_bsd_gethostbyname=no
  18457. fi
  18458. rm -f core conftest.err conftest.$ac_objext \
  18459. conftest$ac_exeext conftest.$ac_ext
  18460. LIBS=$ac_check_lib_save_LIBS
  18461. fi
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18463. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18464. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18465. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18466. fi
  18467. fi
  18468. fi
  18469. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18470. # socket/setsockopt and other routines are undefined under SCO ODT
  18471. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18472. # on later versions), says Simon Leinen: it contains gethostby*
  18473. # variants that don't use the name server (or something). -lsocket
  18474. # must be given before -lnsl if both are needed. We assume that
  18475. # if connect needs -lnsl, so does gethostbyname.
  18476. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18477. if test "x$ac_cv_func_connect" = xyes; then :
  18478. fi
  18479. if test $ac_cv_func_connect = no; then
  18480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18481. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18482. if ${ac_cv_lib_socket_connect+:} false; then :
  18483. $as_echo_n "(cached) " >&6
  18484. else
  18485. ac_check_lib_save_LIBS=$LIBS
  18486. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18488. /* end confdefs.h. */
  18489. /* Override any GCC internal prototype to avoid an error.
  18490. Use char because int might match the return type of a GCC
  18491. builtin and then its argument prototype would still apply. */
  18492. #ifdef __cplusplus
  18493. extern "C"
  18494. #endif
  18495. char connect ();
  18496. int
  18497. main ()
  18498. {
  18499. return connect ();
  18500. ;
  18501. return 0;
  18502. }
  18503. _ACEOF
  18504. if ac_fn_c_try_link "$LINENO"; then :
  18505. ac_cv_lib_socket_connect=yes
  18506. else
  18507. ac_cv_lib_socket_connect=no
  18508. fi
  18509. rm -f core conftest.err conftest.$ac_objext \
  18510. conftest$ac_exeext conftest.$ac_ext
  18511. LIBS=$ac_check_lib_save_LIBS
  18512. fi
  18513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18514. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18515. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18516. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18517. fi
  18518. fi
  18519. # Guillermo Gomez says -lposix is necessary on A/UX.
  18520. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18521. if test "x$ac_cv_func_remove" = xyes; then :
  18522. fi
  18523. if test $ac_cv_func_remove = no; then
  18524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18525. $as_echo_n "checking for remove in -lposix... " >&6; }
  18526. if ${ac_cv_lib_posix_remove+:} false; then :
  18527. $as_echo_n "(cached) " >&6
  18528. else
  18529. ac_check_lib_save_LIBS=$LIBS
  18530. LIBS="-lposix $LIBS"
  18531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18532. /* end confdefs.h. */
  18533. /* Override any GCC internal prototype to avoid an error.
  18534. Use char because int might match the return type of a GCC
  18535. builtin and then its argument prototype would still apply. */
  18536. #ifdef __cplusplus
  18537. extern "C"
  18538. #endif
  18539. char remove ();
  18540. int
  18541. main ()
  18542. {
  18543. return remove ();
  18544. ;
  18545. return 0;
  18546. }
  18547. _ACEOF
  18548. if ac_fn_c_try_link "$LINENO"; then :
  18549. ac_cv_lib_posix_remove=yes
  18550. else
  18551. ac_cv_lib_posix_remove=no
  18552. fi
  18553. rm -f core conftest.err conftest.$ac_objext \
  18554. conftest$ac_exeext conftest.$ac_ext
  18555. LIBS=$ac_check_lib_save_LIBS
  18556. fi
  18557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18558. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18559. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18560. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18561. fi
  18562. fi
  18563. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18564. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18565. if test "x$ac_cv_func_shmat" = xyes; then :
  18566. fi
  18567. if test $ac_cv_func_shmat = no; then
  18568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18569. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18570. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18571. $as_echo_n "(cached) " >&6
  18572. else
  18573. ac_check_lib_save_LIBS=$LIBS
  18574. LIBS="-lipc $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 shmat ();
  18584. int
  18585. main ()
  18586. {
  18587. return shmat ();
  18588. ;
  18589. return 0;
  18590. }
  18591. _ACEOF
  18592. if ac_fn_c_try_link "$LINENO"; then :
  18593. ac_cv_lib_ipc_shmat=yes
  18594. else
  18595. ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
  18602. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18603. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18604. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18605. fi
  18606. fi
  18607. fi
  18608. # Check for libraries that X11R6 Xt/Xaw programs need.
  18609. ac_save_LDFLAGS=$LDFLAGS
  18610. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18611. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18612. # check for ICE first), but we must link in the order -lSM -lICE or
  18613. # we get undefined symbols. So assume we have SM if we have ICE.
  18614. # These have to be linked with before -lX11, unlike the other
  18615. # libraries we check for below, so use a different variable.
  18616. # John Interrante, Karl Berry
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18618. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18619. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18620. $as_echo_n "(cached) " >&6
  18621. else
  18622. ac_check_lib_save_LIBS=$LIBS
  18623. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18625. /* end confdefs.h. */
  18626. /* Override any GCC internal prototype to avoid an error.
  18627. Use char because int might match the return type of a GCC
  18628. builtin and then its argument prototype would still apply. */
  18629. #ifdef __cplusplus
  18630. extern "C"
  18631. #endif
  18632. char IceConnectionNumber ();
  18633. int
  18634. main ()
  18635. {
  18636. return IceConnectionNumber ();
  18637. ;
  18638. return 0;
  18639. }
  18640. _ACEOF
  18641. if ac_fn_c_try_link "$LINENO"; then :
  18642. ac_cv_lib_ICE_IceConnectionNumber=yes
  18643. else
  18644. ac_cv_lib_ICE_IceConnectionNumber=no
  18645. fi
  18646. rm -f core conftest.err conftest.$ac_objext \
  18647. conftest$ac_exeext conftest.$ac_ext
  18648. LIBS=$ac_check_lib_save_LIBS
  18649. fi
  18650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18651. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18652. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18653. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18654. fi
  18655. LDFLAGS=$ac_save_LDFLAGS
  18656. fi
  18657. if test x$have_x = xyes; then
  18658. # Check whether --enable-x11-shared was given.
  18659. if test "${enable_x11_shared+set}" = set; then :
  18660. enableval=$enable_x11_shared;
  18661. else
  18662. enable_x11_shared=maybe
  18663. fi
  18664. case "$host" in
  18665. *-*-darwin*)
  18666. # Apple now puts this in /opt/X11
  18667. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18668. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18669. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18670. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18671. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18672. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18673. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18674. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18675. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18676. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18677. ;;
  18678. *-*-openbsd*)
  18679. x11_lib='libX11.so'
  18680. x11ext_lib='libXext.so'
  18681. xcursor_lib='libXcursor.so'
  18682. xinerama_lib='libXinerama.so'
  18683. xinput_lib='libXi.so'
  18684. xfixes_lib='libXfixes.so'
  18685. xrandr_lib='libXrandr.so'
  18686. xrender_lib='libXrender.so'
  18687. xss_lib='libXss.so'
  18688. xvidmode_lib='libXxf86vm.so'
  18689. ;;
  18690. *)
  18691. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18692. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18693. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18694. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18695. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18696. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18697. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18698. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18699. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18700. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18701. ;;
  18702. esac
  18703. if test x$ac_cv_func_shmat != xyes; then
  18704. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18705. fi
  18706. CFLAGS="$CFLAGS $X_CFLAGS"
  18707. LDFLAGS="$LDFLAGS $X_LIBS"
  18708. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18709. #include <X11/Xproto.h>
  18710. "
  18711. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18712. have_xext_h_hdr=yes
  18713. else
  18714. have_xext_h_hdr=no
  18715. fi
  18716. if test x$have_xext_h_hdr != xyes; then
  18717. as_fn_error $? "
  18718. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18719. " "$LINENO" 5
  18720. fi
  18721. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18722. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18723. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18724. # Needed so SDL applications can include SDL_syswm.h
  18725. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18726. if test x$enable_x11_shared = xmaybe; then
  18727. enable_x11_shared=yes
  18728. fi
  18729. if test x$have_loadso != xyes && \
  18730. test x$enable_x11_shared = xyes; then
  18731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18732. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18733. enable_x11_shared=no
  18734. fi
  18735. if test x$have_loadso = xyes && \
  18736. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18737. echo "-- dynamic libX11 -> $x11_lib"
  18738. echo "-- dynamic libX11ext -> $x11ext_lib"
  18739. cat >>confdefs.h <<_ACEOF
  18740. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18741. _ACEOF
  18742. cat >>confdefs.h <<_ACEOF
  18743. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18744. _ACEOF
  18745. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18746. else
  18747. enable_x11_shared=no
  18748. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18749. SUMMARY_video="${SUMMARY_video} x11"
  18750. fi
  18751. have_video=yes
  18752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18753. $as_echo_n "checking for XGenericEvent... " >&6; }
  18754. have_XGenericEvent=no
  18755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18756. /* end confdefs.h. */
  18757. #include <X11/Xlib.h>
  18758. int
  18759. main ()
  18760. {
  18761. Display *display;
  18762. XEvent event;
  18763. XGenericEventCookie *cookie = &event.xcookie;
  18764. XNextEvent(display, &event);
  18765. XGetEventData(display, cookie);
  18766. XFreeEventData(display, cookie);
  18767. ;
  18768. return 0;
  18769. }
  18770. _ACEOF
  18771. if ac_fn_c_try_compile "$LINENO"; then :
  18772. have_XGenericEvent=yes
  18773. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18774. fi
  18775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18777. $as_echo "$have_XGenericEvent" >&6; }
  18778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18779. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18780. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18781. $as_echo_n "(cached) " >&6
  18782. else
  18783. ac_check_lib_save_LIBS=$LIBS
  18784. LIBS="-lX11 $LIBS"
  18785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18786. /* end confdefs.h. */
  18787. /* Override any GCC internal prototype to avoid an error.
  18788. Use char because int might match the return type of a GCC
  18789. builtin and then its argument prototype would still apply. */
  18790. #ifdef __cplusplus
  18791. extern "C"
  18792. #endif
  18793. char XkbKeycodeToKeysym ();
  18794. int
  18795. main ()
  18796. {
  18797. return XkbKeycodeToKeysym ();
  18798. ;
  18799. return 0;
  18800. }
  18801. _ACEOF
  18802. if ac_fn_c_try_link "$LINENO"; then :
  18803. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18804. else
  18805. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18806. fi
  18807. rm -f core conftest.err conftest.$ac_objext \
  18808. conftest$ac_exeext conftest.$ac_ext
  18809. LIBS=$ac_check_lib_save_LIBS
  18810. fi
  18811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18812. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18813. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18814. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18815. fi
  18816. # Check whether --enable-video-x11-xcursor was given.
  18817. if test "${enable_video_x11_xcursor+set}" = set; then :
  18818. enableval=$enable_video_x11_xcursor;
  18819. else
  18820. enable_video_x11_xcursor=yes
  18821. fi
  18822. if test x$enable_video_x11_xcursor = xyes; then
  18823. definitely_enable_video_x11_xcursor=no
  18824. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18825. "
  18826. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18827. have_xcursor_h_hdr=yes
  18828. else
  18829. have_xcursor_h_hdr=no
  18830. fi
  18831. if test x$have_xcursor_h_hdr = xyes; then
  18832. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18833. echo "-- dynamic libXcursor -> $xcursor_lib"
  18834. cat >>confdefs.h <<_ACEOF
  18835. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18836. _ACEOF
  18837. definitely_enable_video_x11_xcursor=yes
  18838. else
  18839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18840. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18841. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18842. $as_echo_n "(cached) " >&6
  18843. else
  18844. ac_check_lib_save_LIBS=$LIBS
  18845. LIBS="-lXcursor $LIBS"
  18846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18847. /* end confdefs.h. */
  18848. /* Override any GCC internal prototype to avoid an error.
  18849. Use char because int might match the return type of a GCC
  18850. builtin and then its argument prototype would still apply. */
  18851. #ifdef __cplusplus
  18852. extern "C"
  18853. #endif
  18854. char XcursorImageCreate ();
  18855. int
  18856. main ()
  18857. {
  18858. return XcursorImageCreate ();
  18859. ;
  18860. return 0;
  18861. }
  18862. _ACEOF
  18863. if ac_fn_c_try_link "$LINENO"; then :
  18864. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18865. else
  18866. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18867. fi
  18868. rm -f core conftest.err conftest.$ac_objext \
  18869. conftest$ac_exeext conftest.$ac_ext
  18870. LIBS=$ac_check_lib_save_LIBS
  18871. fi
  18872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18873. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18874. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18875. have_xcursor_lib=yes
  18876. fi
  18877. if test x$have_xcursor_lib = xyes ; then
  18878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18879. definitely_enable_video_x11_xcursor=yes
  18880. fi
  18881. fi
  18882. fi
  18883. fi
  18884. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18885. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18886. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18887. fi
  18888. # Check whether --enable-video-x11-xdbe was given.
  18889. if test "${enable_video_x11_xdbe+set}" = set; then :
  18890. enableval=$enable_video_x11_xdbe;
  18891. else
  18892. enable_video_x11_xdbe=yes
  18893. fi
  18894. if test x$enable_video_x11_xdbe = xyes; then
  18895. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18896. "
  18897. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18898. have_dbe_h_hdr=yes
  18899. else
  18900. have_dbe_h_hdr=no
  18901. fi
  18902. if test x$have_dbe_h_hdr = xyes; then
  18903. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18904. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18905. fi
  18906. fi
  18907. # Check whether --enable-video-x11-xinerama was given.
  18908. if test "${enable_video_x11_xinerama+set}" = set; then :
  18909. enableval=$enable_video_x11_xinerama;
  18910. else
  18911. enable_video_x11_xinerama=yes
  18912. fi
  18913. if test x$enable_video_x11_xinerama = xyes; then
  18914. definitely_enable_video_x11_xinerama=no
  18915. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18916. "
  18917. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18918. have_xinerama_h_hdr=yes
  18919. else
  18920. have_xinerama_h_hdr=no
  18921. fi
  18922. if test x$have_xinerama_h_hdr = xyes; then
  18923. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18924. echo "-- dynamic libXinerama -> $xinerama_lib"
  18925. cat >>confdefs.h <<_ACEOF
  18926. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18927. _ACEOF
  18928. definitely_enable_video_x11_xinerama=yes
  18929. else
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18931. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18932. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18933. $as_echo_n "(cached) " >&6
  18934. else
  18935. ac_check_lib_save_LIBS=$LIBS
  18936. LIBS="-lXinerama $LIBS"
  18937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18938. /* end confdefs.h. */
  18939. /* Override any GCC internal prototype to avoid an error.
  18940. Use char because int might match the return type of a GCC
  18941. builtin and then its argument prototype would still apply. */
  18942. #ifdef __cplusplus
  18943. extern "C"
  18944. #endif
  18945. char XineramaQueryExtension ();
  18946. int
  18947. main ()
  18948. {
  18949. return XineramaQueryExtension ();
  18950. ;
  18951. return 0;
  18952. }
  18953. _ACEOF
  18954. if ac_fn_c_try_link "$LINENO"; then :
  18955. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18956. else
  18957. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18958. fi
  18959. rm -f core conftest.err conftest.$ac_objext \
  18960. conftest$ac_exeext conftest.$ac_ext
  18961. LIBS=$ac_check_lib_save_LIBS
  18962. fi
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18964. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18965. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18966. have_xinerama_lib=yes
  18967. fi
  18968. if test x$have_xinerama_lib = xyes ; then
  18969. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18970. definitely_enable_video_x11_xinerama=yes
  18971. fi
  18972. fi
  18973. fi
  18974. fi
  18975. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18976. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18977. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18978. fi
  18979. # Check whether --enable-video-x11-xinput was given.
  18980. if test "${enable_video_x11_xinput+set}" = set; then :
  18981. enableval=$enable_video_x11_xinput;
  18982. else
  18983. enable_video_x11_xinput=yes
  18984. fi
  18985. if test x$enable_video_x11_xinput = xyes; then
  18986. definitely_enable_video_x11_xinput=no
  18987. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18988. "
  18989. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18990. have_xinput_h_hdr=yes
  18991. else
  18992. have_xinput_h_hdr=no
  18993. fi
  18994. if test x$have_xinput_h_hdr = xyes; then
  18995. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18996. echo "-- dynamic libXi -> $xinput_lib"
  18997. cat >>confdefs.h <<_ACEOF
  18998. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18999. _ACEOF
  19000. definitely_enable_video_x11_xinput=yes
  19001. else
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19003. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19004. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19005. $as_echo_n "(cached) " >&6
  19006. else
  19007. ac_check_lib_save_LIBS=$LIBS
  19008. LIBS="-lXi $LIBS"
  19009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19010. /* end confdefs.h. */
  19011. /* Override any GCC internal prototype to avoid an error.
  19012. Use char because int might match the return type of a GCC
  19013. builtin and then its argument prototype would still apply. */
  19014. #ifdef __cplusplus
  19015. extern "C"
  19016. #endif
  19017. char XOpenDevice ();
  19018. int
  19019. main ()
  19020. {
  19021. return XOpenDevice ();
  19022. ;
  19023. return 0;
  19024. }
  19025. _ACEOF
  19026. if ac_fn_c_try_link "$LINENO"; then :
  19027. ac_cv_lib_Xi_XOpenDevice=yes
  19028. else
  19029. ac_cv_lib_Xi_XOpenDevice=no
  19030. fi
  19031. rm -f core conftest.err conftest.$ac_objext \
  19032. conftest$ac_exeext conftest.$ac_ext
  19033. LIBS=$ac_check_lib_save_LIBS
  19034. fi
  19035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19036. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19037. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19038. have_xinput_lib=yes
  19039. fi
  19040. if test x$have_xinput_lib = xyes ; then
  19041. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19042. definitely_enable_video_x11_xinput=yes
  19043. fi
  19044. fi
  19045. fi
  19046. fi
  19047. if test x$definitely_enable_video_x11_xinput = xyes; then
  19048. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19049. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19051. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19052. have_xinput2_multitouch=no
  19053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19054. /* end confdefs.h. */
  19055. #include <X11/Xlib.h>
  19056. #include <X11/Xproto.h>
  19057. #include <X11/extensions/XInput2.h>
  19058. int
  19059. main ()
  19060. {
  19061. int event_type = XI_TouchBegin;
  19062. XITouchClassInfo *t;
  19063. ;
  19064. return 0;
  19065. }
  19066. _ACEOF
  19067. if ac_fn_c_try_compile "$LINENO"; then :
  19068. have_xinput2_multitouch=yes
  19069. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19070. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19071. fi
  19072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19074. $as_echo "$have_xinput2_multitouch" >&6; }
  19075. fi
  19076. # Check whether --enable-video-x11-xfixes was given.
  19077. if test "${enable_video_x11_xfixes+set}" = set; then :
  19078. enableval=$enable_video_x11_xfixes;
  19079. else
  19080. enable_video_x11_xfixes=yes
  19081. fi
  19082. if test x$enable_video_x11_xfixes = xyes; then
  19083. definitely_enable_video_x11_xfixes=no
  19084. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19086. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19088. /* end confdefs.h. */
  19089. #include <X11/Xlib.h>
  19090. #include <X11/Xproto.h>
  19091. #include <X11/extensions/XInput2.h>
  19092. #include <X11/extensions/Xfixes.h>
  19093. int
  19094. main ()
  19095. {
  19096. BarrierEventID b;
  19097. ;
  19098. return 0;
  19099. }
  19100. _ACEOF
  19101. if ac_fn_c_try_compile "$LINENO"; then :
  19102. have_xfixes_h_hdr=yes
  19103. else
  19104. have_xfixes_h_hdr=no
  19105. fi
  19106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19108. $as_echo "$have_xfixes_h_hdr" >&6; }
  19109. if test x$have_xfixes_h_hdr = xyes; then
  19110. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19111. echo "-- dynamic libXfixes -> $xfixes_lib"
  19112. cat >>confdefs.h <<_ACEOF
  19113. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19114. _ACEOF
  19115. definitely_enable_video_x11_xfixes=yes
  19116. else
  19117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19118. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19119. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19120. $as_echo_n "(cached) " >&6
  19121. else
  19122. ac_check_lib_save_LIBS=$LIBS
  19123. LIBS="-lXfixes $LIBS"
  19124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19125. /* end confdefs.h. */
  19126. /* Override any GCC internal prototype to avoid an error.
  19127. Use char because int might match the return type of a GCC
  19128. builtin and then its argument prototype would still apply. */
  19129. #ifdef __cplusplus
  19130. extern "C"
  19131. #endif
  19132. char XFixesCreatePointerBarrier ();
  19133. int
  19134. main ()
  19135. {
  19136. return XFixesCreatePointerBarrier ();
  19137. ;
  19138. return 0;
  19139. }
  19140. _ACEOF
  19141. if ac_fn_c_try_link "$LINENO"; then :
  19142. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19143. else
  19144. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19145. fi
  19146. rm -f core conftest.err conftest.$ac_objext \
  19147. conftest$ac_exeext conftest.$ac_ext
  19148. LIBS=$ac_check_lib_save_LIBS
  19149. fi
  19150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19151. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19152. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19153. have_xfixes_lib=yes
  19154. fi
  19155. if test x$have_xfixes_lib = xyes ; then
  19156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19157. definitely_enable_video_x11_xfixes=yes
  19158. fi
  19159. fi
  19160. fi
  19161. fi
  19162. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19163. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19164. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19165. fi
  19166. # Check whether --enable-video-x11-xrandr was given.
  19167. if test "${enable_video_x11_xrandr+set}" = set; then :
  19168. enableval=$enable_video_x11_xrandr;
  19169. else
  19170. enable_video_x11_xrandr=yes
  19171. fi
  19172. if test x$enable_video_x11_xrandr = xyes; then
  19173. definitely_enable_video_x11_xrandr=no
  19174. have_xrandr_h_hdr=no
  19175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19176. /* end confdefs.h. */
  19177. #include <X11/Xlib.h>
  19178. #include <X11/extensions/Xrandr.h>
  19179. int
  19180. main ()
  19181. {
  19182. XRRScreenResources *res = NULL;
  19183. ;
  19184. return 0;
  19185. }
  19186. _ACEOF
  19187. if ac_fn_c_try_compile "$LINENO"; then :
  19188. have_xrandr_h_hdr=yes
  19189. fi
  19190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19191. if test x$have_xrandr_h_hdr = xyes; then
  19192. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19193. echo "-- dynamic libXrandr -> $xrandr_lib"
  19194. cat >>confdefs.h <<_ACEOF
  19195. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19196. _ACEOF
  19197. definitely_enable_video_x11_xrandr=yes
  19198. else
  19199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19200. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19201. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19202. $as_echo_n "(cached) " >&6
  19203. else
  19204. ac_check_lib_save_LIBS=$LIBS
  19205. LIBS="-lXrandr $LIBS"
  19206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19207. /* end confdefs.h. */
  19208. /* Override any GCC internal prototype to avoid an error.
  19209. Use char because int might match the return type of a GCC
  19210. builtin and then its argument prototype would still apply. */
  19211. #ifdef __cplusplus
  19212. extern "C"
  19213. #endif
  19214. char XRRQueryExtension ();
  19215. int
  19216. main ()
  19217. {
  19218. return XRRQueryExtension ();
  19219. ;
  19220. return 0;
  19221. }
  19222. _ACEOF
  19223. if ac_fn_c_try_link "$LINENO"; then :
  19224. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19225. else
  19226. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19227. fi
  19228. rm -f core conftest.err conftest.$ac_objext \
  19229. conftest$ac_exeext conftest.$ac_ext
  19230. LIBS=$ac_check_lib_save_LIBS
  19231. fi
  19232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19233. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19234. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19235. have_xrandr_lib=yes
  19236. fi
  19237. if test x$have_xrandr_lib = xyes ; then
  19238. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19239. definitely_enable_video_x11_xrandr=yes
  19240. fi
  19241. fi
  19242. fi
  19243. fi
  19244. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19245. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19246. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19247. fi
  19248. # Check whether --enable-video-x11-scrnsaver was given.
  19249. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19250. enableval=$enable_video_x11_scrnsaver;
  19251. else
  19252. enable_video_x11_scrnsaver=yes
  19253. fi
  19254. if test x$enable_video_x11_scrnsaver = xyes; then
  19255. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19256. "
  19257. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19258. have_scrnsaver_h_hdr=yes
  19259. else
  19260. have_scrnsaver_h_hdr=no
  19261. fi
  19262. if test x$have_scrnsaver_h_hdr = xyes; then
  19263. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19264. echo "-- dynamic libXss -> $xss_lib"
  19265. cat >>confdefs.h <<_ACEOF
  19266. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19267. _ACEOF
  19268. definitely_enable_video_x11_scrnsaver=yes
  19269. else
  19270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19271. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19272. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19273. $as_echo_n "(cached) " >&6
  19274. else
  19275. ac_check_lib_save_LIBS=$LIBS
  19276. LIBS="-lXss $LIBS"
  19277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19278. /* end confdefs.h. */
  19279. /* Override any GCC internal prototype to avoid an error.
  19280. Use char because int might match the return type of a GCC
  19281. builtin and then its argument prototype would still apply. */
  19282. #ifdef __cplusplus
  19283. extern "C"
  19284. #endif
  19285. char XScreenSaverSuspend ();
  19286. int
  19287. main ()
  19288. {
  19289. return XScreenSaverSuspend ();
  19290. ;
  19291. return 0;
  19292. }
  19293. _ACEOF
  19294. if ac_fn_c_try_link "$LINENO"; then :
  19295. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19296. else
  19297. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19298. fi
  19299. rm -f core conftest.err conftest.$ac_objext \
  19300. conftest$ac_exeext conftest.$ac_ext
  19301. LIBS=$ac_check_lib_save_LIBS
  19302. fi
  19303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19304. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19305. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19306. have_xss_lib=yes
  19307. fi
  19308. if test x$have_xss_lib = xyes ; then
  19309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19310. definitely_enable_video_x11_scrnsaver=yes
  19311. fi
  19312. fi
  19313. fi
  19314. fi
  19315. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19316. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19317. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19318. fi
  19319. # Check whether --enable-video-x11-xshape was given.
  19320. if test "${enable_video_x11_xshape+set}" = set; then :
  19321. enableval=$enable_video_x11_xshape;
  19322. else
  19323. enable_video_x11_xshape=yes
  19324. fi
  19325. if test x$enable_video_x11_xshape = xyes; then
  19326. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19327. "
  19328. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19329. have_shape_h_hdr=yes
  19330. else
  19331. have_shape_h_hdr=no
  19332. fi
  19333. if test x$have_shape_h_hdr = xyes; then
  19334. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19335. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19336. fi
  19337. fi
  19338. # Check whether --enable-video-x11-vm was given.
  19339. if test "${enable_video_x11_vm+set}" = set; then :
  19340. enableval=$enable_video_x11_vm;
  19341. else
  19342. enable_video_x11_vm=yes
  19343. fi
  19344. if test x$enable_video_x11_vm = xyes; then
  19345. definitely_enable_video_x11_vm=no
  19346. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  19347. "
  19348. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  19349. have_vm_h_hdr=yes
  19350. else
  19351. have_vm_h_hdr=no
  19352. fi
  19353. if test x$have_vm_h_hdr = xyes; then
  19354. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  19355. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  19356. cat >>confdefs.h <<_ACEOF
  19357. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  19358. _ACEOF
  19359. definitely_enable_video_x11_vm=yes
  19360. else
  19361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  19362. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  19363. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  19364. $as_echo_n "(cached) " >&6
  19365. else
  19366. ac_check_lib_save_LIBS=$LIBS
  19367. LIBS="-lXxf86vm $LIBS"
  19368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19369. /* end confdefs.h. */
  19370. /* Override any GCC internal prototype to avoid an error.
  19371. Use char because int might match the return type of a GCC
  19372. builtin and then its argument prototype would still apply. */
  19373. #ifdef __cplusplus
  19374. extern "C"
  19375. #endif
  19376. char XF86VidModeQueryVersion ();
  19377. int
  19378. main ()
  19379. {
  19380. return XF86VidModeQueryVersion ();
  19381. ;
  19382. return 0;
  19383. }
  19384. _ACEOF
  19385. if ac_fn_c_try_link "$LINENO"; then :
  19386. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  19387. else
  19388. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  19389. fi
  19390. rm -f core conftest.err conftest.$ac_objext \
  19391. conftest$ac_exeext conftest.$ac_ext
  19392. LIBS=$ac_check_lib_save_LIBS
  19393. fi
  19394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  19395. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  19396. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  19397. have_vm_lib=yes
  19398. fi
  19399. if test x$have_vm_lib = xyes ; then
  19400. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  19401. definitely_enable_video_x11_vm=yes
  19402. fi
  19403. fi
  19404. fi
  19405. fi
  19406. if test x$definitely_enable_video_x11_vm = xyes; then
  19407. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  19408. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  19409. fi
  19410. fi
  19411. fi
  19412. if test x$have_x != xyes; then
  19413. # Prevent Mesa from including X11 headers
  19414. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19415. fi
  19416. }
  19417. CheckVivanteVideo()
  19418. {
  19419. # Check whether --enable-video-vivante was given.
  19420. if test "${enable_video_vivante+set}" = set; then :
  19421. enableval=$enable_video_vivante;
  19422. else
  19423. enable_video_vivante=yes
  19424. fi
  19425. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19427. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19428. have_vivante_vdk=no
  19429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19430. /* end confdefs.h. */
  19431. #define LINUX
  19432. #define EGL_API_FB
  19433. #include <gc_vdk.h>
  19434. int
  19435. main ()
  19436. {
  19437. ;
  19438. return 0;
  19439. }
  19440. _ACEOF
  19441. if ac_fn_c_try_compile "$LINENO"; then :
  19442. have_vivante_vdk=yes
  19443. fi
  19444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19446. $as_echo "$have_vivante_vdk" >&6; }
  19447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19448. $as_echo_n "checking for Vivante FB API... " >&6; }
  19449. have_vivante_egl=no
  19450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19451. /* end confdefs.h. */
  19452. #define LINUX
  19453. #define EGL_API_FB
  19454. #include <EGL/eglvivante.h>
  19455. int
  19456. main ()
  19457. {
  19458. ;
  19459. return 0;
  19460. }
  19461. _ACEOF
  19462. if ac_fn_c_try_compile "$LINENO"; then :
  19463. have_vivante_egl=yes
  19464. fi
  19465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19467. $as_echo "$have_vivante_egl" >&6; }
  19468. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19469. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19470. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19471. if test x$have_vivante_vdk = xyes; then
  19472. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19473. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19474. fi
  19475. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19476. SUMMARY_video="${SUMMARY_video} vivante"
  19477. have_video=yes
  19478. fi
  19479. fi
  19480. }
  19481. CheckHaikuVideo()
  19482. {
  19483. if test x$enable_video = xyes; then
  19484. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19485. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19486. have_video=yes
  19487. SUMMARY_video="${SUMMARY_video} haiku"
  19488. fi
  19489. }
  19490. CheckCOCOA()
  19491. {
  19492. # Check whether --enable-video-cocoa was given.
  19493. if test "${enable_video_cocoa+set}" = set; then :
  19494. enableval=$enable_video_cocoa;
  19495. else
  19496. enable_video_cocoa=yes
  19497. fi
  19498. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19499. save_CFLAGS="$CFLAGS"
  19500. CFLAGS="$CFLAGS -x objective-c"
  19501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19502. $as_echo_n "checking for Cocoa framework... " >&6; }
  19503. have_cocoa=no
  19504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19505. /* end confdefs.h. */
  19506. #import <Cocoa/Cocoa.h>
  19507. int
  19508. main ()
  19509. {
  19510. ;
  19511. return 0;
  19512. }
  19513. _ACEOF
  19514. if ac_fn_c_try_compile "$LINENO"; then :
  19515. have_cocoa=yes
  19516. fi
  19517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19519. $as_echo "$have_cocoa" >&6; }
  19520. CFLAGS="$save_CFLAGS"
  19521. if test x$have_cocoa = xyes; then
  19522. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19523. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19524. SUMMARY_video="${SUMMARY_video} cocoa"
  19525. have_video=yes
  19526. fi
  19527. fi
  19528. }
  19529. CheckMETAL()
  19530. {
  19531. # Check whether --enable-video-metal was given.
  19532. if test "${enable_video_metal+set}" = set; then :
  19533. enableval=$enable_video_metal;
  19534. else
  19535. enable_video_metal=yes
  19536. fi
  19537. # Check whether --enable-render-metal was given.
  19538. if test "${enable_render_metal+set}" = set; then :
  19539. enableval=$enable_render_metal;
  19540. else
  19541. enable_render_metal=yes
  19542. fi
  19543. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19544. save_CFLAGS="$CFLAGS"
  19545. CFLAGS="$CFLAGS -x objective-c"
  19546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19547. $as_echo_n "checking for Metal framework... " >&6; }
  19548. have_metal=no
  19549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19550. /* end confdefs.h. */
  19551. #import <Cocoa/Cocoa.h>
  19552. #import <Metal/Metal.h>
  19553. #import <QuartzCore/CAMetalLayer.h>
  19554. #if TARGET_CPU_X86
  19555. #error Metal doesn't work on this configuration
  19556. #endif
  19557. int
  19558. main ()
  19559. {
  19560. ;
  19561. return 0;
  19562. }
  19563. _ACEOF
  19564. if ac_fn_c_try_compile "$LINENO"; then :
  19565. have_metal=yes
  19566. fi
  19567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19568. CFLAGS="$save_CFLAGS"
  19569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19570. $as_echo "$have_metal" >&6; }
  19571. if test x$have_metal = xyes; then
  19572. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19573. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19574. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19575. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19576. fi
  19577. SUMMARY_video="${SUMMARY_video} metal"
  19578. else
  19579. enable_video_metal=no
  19580. enable_render_metal=no
  19581. fi
  19582. fi
  19583. }
  19584. CheckDirectFB()
  19585. {
  19586. # Check whether --enable-video-directfb was given.
  19587. if test "${enable_video_directfb+set}" = set; then :
  19588. enableval=$enable_video_directfb;
  19589. else
  19590. enable_video_directfb=no
  19591. fi
  19592. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19593. pkg_failed=no
  19594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19595. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19596. if test -n "$DIRECTFB_CFLAGS"; then
  19597. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19598. elif test -n "$PKG_CONFIG"; then
  19599. if test -n "$PKG_CONFIG" && \
  19600. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19601. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19602. ac_status=$?
  19603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19604. test $ac_status = 0; }; then
  19605. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19606. test "x$?" != "x0" && pkg_failed=yes
  19607. else
  19608. pkg_failed=yes
  19609. fi
  19610. else
  19611. pkg_failed=untried
  19612. fi
  19613. if test -n "$DIRECTFB_LIBS"; then
  19614. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19615. elif test -n "$PKG_CONFIG"; then
  19616. if test -n "$PKG_CONFIG" && \
  19617. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19618. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19619. ac_status=$?
  19620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19621. test $ac_status = 0; }; then
  19622. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19623. test "x$?" != "x0" && pkg_failed=yes
  19624. else
  19625. pkg_failed=yes
  19626. fi
  19627. else
  19628. pkg_failed=untried
  19629. fi
  19630. if test $pkg_failed = yes; then
  19631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19632. $as_echo "no" >&6; }
  19633. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19634. _pkg_short_errors_supported=yes
  19635. else
  19636. _pkg_short_errors_supported=no
  19637. fi
  19638. if test $_pkg_short_errors_supported = yes; then
  19639. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19640. else
  19641. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19642. fi
  19643. # Put the nasty error message in config.log where it belongs
  19644. echo "$DIRECTFB_PKG_ERRORS" >&5
  19645. video_directfb=no
  19646. elif test $pkg_failed = untried; then
  19647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19648. $as_echo "no" >&6; }
  19649. video_directfb=no
  19650. else
  19651. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19652. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19654. $as_echo "yes" >&6; }
  19655. video_directfb=yes
  19656. fi
  19657. if test x$video_directfb = xyes; then
  19658. # SuSE 11.1 installs directfb-config without directfb-devel
  19659. save_CPPFLAGS="$CPPFLAGS"
  19660. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19661. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19662. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19663. have_directfb_hdr=yes
  19664. else
  19665. have_directfb_hdr=no
  19666. fi
  19667. CPPFLAGS="$save_CPPFLAGS"
  19668. video_directfb=$have_directfb_hdr
  19669. fi
  19670. if test x$video_directfb = xyes; then
  19671. # Check whether --enable-directfb-shared was given.
  19672. if test "${enable_directfb_shared+set}" = set; then :
  19673. enableval=$enable_directfb_shared;
  19674. else
  19675. enable_directfb_shared=yes
  19676. fi
  19677. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19678. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19679. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19680. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19681. directfb_shared=no
  19682. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19683. if test x$have_loadso != xyes && \
  19684. test x$enable_directfb_shared = xyes; then
  19685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19686. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19687. fi
  19688. if test x$have_loadso = xyes && \
  19689. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19690. directfb_shared=yes
  19691. echo "-- dynamic libdirectfb -> $directfb_lib"
  19692. cat >>confdefs.h <<_ACEOF
  19693. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19694. _ACEOF
  19695. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19696. else
  19697. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19698. SUMMARY_video="${SUMMARY_video} directfb"
  19699. fi
  19700. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19701. have_video=yes
  19702. fi
  19703. fi
  19704. }
  19705. CheckKMSDRM()
  19706. {
  19707. # Check whether --enable-video-kmsdrm was given.
  19708. if test "${enable_video_kmsdrm+set}" = set; then :
  19709. enableval=$enable_video_kmsdrm;
  19710. else
  19711. enable_video_kmsdrm=yes
  19712. fi
  19713. if test x$enable_video = xyes && \
  19714. test x$enable_video_kmsdrm = xyes && \
  19715. test x$video_opengl_egl = xyes; then
  19716. video_kmsdrm=no
  19717. pkg_failed=no
  19718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19719. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19720. if test -n "$LIBDRM_CFLAGS"; then
  19721. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19722. elif test -n "$PKG_CONFIG"; then
  19723. if test -n "$PKG_CONFIG" && \
  19724. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19725. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19726. ac_status=$?
  19727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19728. test $ac_status = 0; }; then
  19729. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19730. test "x$?" != "x0" && pkg_failed=yes
  19731. else
  19732. pkg_failed=yes
  19733. fi
  19734. else
  19735. pkg_failed=untried
  19736. fi
  19737. if test -n "$LIBDRM_LIBS"; then
  19738. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19739. elif test -n "$PKG_CONFIG"; then
  19740. if test -n "$PKG_CONFIG" && \
  19741. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19742. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19743. ac_status=$?
  19744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19745. test $ac_status = 0; }; then
  19746. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19747. test "x$?" != "x0" && pkg_failed=yes
  19748. else
  19749. pkg_failed=yes
  19750. fi
  19751. else
  19752. pkg_failed=untried
  19753. fi
  19754. if test $pkg_failed = yes; then
  19755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19756. $as_echo "no" >&6; }
  19757. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19758. _pkg_short_errors_supported=yes
  19759. else
  19760. _pkg_short_errors_supported=no
  19761. fi
  19762. if test $_pkg_short_errors_supported = yes; then
  19763. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19764. else
  19765. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19766. fi
  19767. # Put the nasty error message in config.log where it belongs
  19768. echo "$LIBDRM_PKG_ERRORS" >&5
  19769. libdrm_avail=no
  19770. elif test $pkg_failed = untried; then
  19771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19772. $as_echo "no" >&6; }
  19773. libdrm_avail=no
  19774. else
  19775. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19776. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19778. $as_echo "yes" >&6; }
  19779. libdrm_avail=yes
  19780. fi
  19781. pkg_failed=no
  19782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19783. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19784. if test -n "$LIBGBM_CFLAGS"; then
  19785. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19786. elif test -n "$PKG_CONFIG"; then
  19787. if test -n "$PKG_CONFIG" && \
  19788. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19789. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19790. ac_status=$?
  19791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19792. test $ac_status = 0; }; then
  19793. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19794. test "x$?" != "x0" && pkg_failed=yes
  19795. else
  19796. pkg_failed=yes
  19797. fi
  19798. else
  19799. pkg_failed=untried
  19800. fi
  19801. if test -n "$LIBGBM_LIBS"; then
  19802. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19803. elif test -n "$PKG_CONFIG"; then
  19804. if test -n "$PKG_CONFIG" && \
  19805. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19806. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19807. ac_status=$?
  19808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19809. test $ac_status = 0; }; then
  19810. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19811. test "x$?" != "x0" && pkg_failed=yes
  19812. else
  19813. pkg_failed=yes
  19814. fi
  19815. else
  19816. pkg_failed=untried
  19817. fi
  19818. if test $pkg_failed = yes; then
  19819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19820. $as_echo "no" >&6; }
  19821. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19822. _pkg_short_errors_supported=yes
  19823. else
  19824. _pkg_short_errors_supported=no
  19825. fi
  19826. if test $_pkg_short_errors_supported = yes; then
  19827. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19828. else
  19829. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19830. fi
  19831. # Put the nasty error message in config.log where it belongs
  19832. echo "$LIBGBM_PKG_ERRORS" >&5
  19833. libgbm_avail=no
  19834. elif test $pkg_failed = untried; then
  19835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19836. $as_echo "no" >&6; }
  19837. libgbm_avail=no
  19838. else
  19839. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19840. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19842. $as_echo "yes" >&6; }
  19843. libgbm_avail=yes
  19844. fi
  19845. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19846. video_kmsdrm=yes
  19847. fi
  19848. if test x$video_kmsdrm = xyes; then
  19849. # Check whether --enable-kmsdrm-shared was given.
  19850. if test "${enable_kmsdrm_shared+set}" = set; then :
  19851. enableval=$enable_kmsdrm_shared;
  19852. else
  19853. enable_kmsdrm_shared=yes
  19854. fi
  19855. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19856. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19857. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19859. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19860. kmsdrm_shared=no
  19861. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19862. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19863. if test x$have_loadso != xyes && \
  19864. test x$enable_kmsdrm_shared = xyes; then
  19865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19866. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19867. fi
  19868. if test x$have_loadso = xyes && \
  19869. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19870. kmsdrm_shared=yes
  19871. cat >>confdefs.h <<_ACEOF
  19872. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19873. _ACEOF
  19874. cat >>confdefs.h <<_ACEOF
  19875. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19876. _ACEOF
  19877. cat >>confdefs.h <<_ACEOF
  19878. #define HAVE_KMSDRM_SHARED "TRUE"
  19879. _ACEOF
  19880. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19881. else
  19882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19883. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19884. fi
  19885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19886. $as_echo "$kmsdrm_shared" >&6; }
  19887. if test x$kmsdrm_shared = xyes; then
  19888. echo "-- dynamic libdrm -> $drm_lib"
  19889. echo "-- dynamic libgbm -> $gbm_lib"
  19890. fi
  19891. have_video=yes
  19892. fi
  19893. fi
  19894. }
  19895. CheckDummyVideo()
  19896. {
  19897. # Check whether --enable-video-dummy was given.
  19898. if test "${enable_video_dummy+set}" = set; then :
  19899. enableval=$enable_video_dummy;
  19900. else
  19901. enable_video_dummy=yes
  19902. fi
  19903. if test x$enable_video_dummy = xyes; then
  19904. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19905. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19906. have_video=yes
  19907. SUMMARY_video="${SUMMARY_video} dummy"
  19908. fi
  19909. }
  19910. CheckOffscreenVideo()
  19911. {
  19912. # Check whether --enable-video-offscreen was given.
  19913. if test "${enable_video_offscreen+set}" = set; then :
  19914. enableval=$enable_video_offscreen;
  19915. else
  19916. enable_video_offscreen=no
  19917. fi
  19918. if test x$enable_video_offscreen = xyes; then
  19919. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19920. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19921. have_video=yes
  19922. SUMMARY_video="${SUMMARY_video} offscreen"
  19923. fi
  19924. }
  19925. CheckQNXVideo()
  19926. {
  19927. if test x$enable_video = xyes; then
  19928. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19929. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19930. have_video=yes
  19931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19932. SUMMARY_video="${SUMMARY_video} qnx"
  19933. fi
  19934. }
  19935. CheckQNXAudio()
  19936. {
  19937. if test x$enable_audio = xyes; then
  19938. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19939. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19940. have_audio=yes
  19941. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19942. SUMMARY_audio="${SUMMARY_audio} qsa"
  19943. fi
  19944. }
  19945. # Check whether --enable-video-opengl was given.
  19946. if test "${enable_video_opengl+set}" = set; then :
  19947. enableval=$enable_video_opengl;
  19948. else
  19949. enable_video_opengl=yes
  19950. fi
  19951. CheckGLX()
  19952. {
  19953. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19955. $as_echo_n "checking for GLX support... " >&6; }
  19956. video_opengl_glx=no
  19957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19958. /* end confdefs.h. */
  19959. #include <GL/glx.h>
  19960. int
  19961. main ()
  19962. {
  19963. ;
  19964. return 0;
  19965. }
  19966. _ACEOF
  19967. if ac_fn_c_try_compile "$LINENO"; then :
  19968. video_opengl_glx=yes
  19969. fi
  19970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19972. $as_echo "$video_opengl_glx" >&6; }
  19973. if test x$video_opengl_glx = xyes; then
  19974. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19975. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19976. fi
  19977. fi
  19978. }
  19979. # Check whether --enable-video-opengles was given.
  19980. if test "${enable_video_opengles+set}" = set; then :
  19981. enableval=$enable_video_opengles;
  19982. else
  19983. enable_video_opengles=yes
  19984. fi
  19985. # Check whether --enable-video-opengles1 was given.
  19986. if test "${enable_video_opengles1+set}" = set; then :
  19987. enableval=$enable_video_opengles1;
  19988. else
  19989. enable_video_opengles1=yes
  19990. fi
  19991. # Check whether --enable-video-opengles2 was given.
  19992. if test "${enable_video_opengles2+set}" = set; then :
  19993. enableval=$enable_video_opengles2;
  19994. else
  19995. enable_video_opengles2=yes
  19996. fi
  19997. CheckEGL()
  19998. {
  19999. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20001. $as_echo_n "checking for EGL support... " >&6; }
  20002. video_opengl_egl=no
  20003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20004. /* end confdefs.h. */
  20005. #define LINUX
  20006. #define EGL_API_FB
  20007. #define MESA_EGL_NO_X11_HEADERS
  20008. #define EGL_NO_X11
  20009. #include <EGL/egl.h>
  20010. #include <EGL/eglext.h>
  20011. int
  20012. main ()
  20013. {
  20014. ;
  20015. return 0;
  20016. }
  20017. _ACEOF
  20018. if ac_fn_c_try_compile "$LINENO"; then :
  20019. video_opengl_egl=yes
  20020. fi
  20021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20023. $as_echo "$video_opengl_egl" >&6; }
  20024. if test x$video_opengl_egl = xyes; then
  20025. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20026. fi
  20027. fi
  20028. }
  20029. CheckOpenGL()
  20030. {
  20031. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20033. $as_echo_n "checking for OpenGL headers... " >&6; }
  20034. video_opengl=no
  20035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20036. /* end confdefs.h. */
  20037. #include <GL/gl.h>
  20038. #include <GL/glext.h>
  20039. int
  20040. main ()
  20041. {
  20042. ;
  20043. return 0;
  20044. }
  20045. _ACEOF
  20046. if ac_fn_c_try_compile "$LINENO"; then :
  20047. video_opengl=yes
  20048. fi
  20049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20051. $as_echo "$video_opengl" >&6; }
  20052. if test x$video_opengl = xyes; then
  20053. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20054. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20055. SUMMARY_video="${SUMMARY_video} opengl"
  20056. fi
  20057. fi
  20058. }
  20059. CheckOpenGLES()
  20060. {
  20061. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20062. if test x$enable_video_opengles1 = xyes; then
  20063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20064. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20065. video_opengles_v1=no
  20066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20067. /* end confdefs.h. */
  20068. #include <GLES/gl.h>
  20069. #include <GLES/glext.h>
  20070. int
  20071. main ()
  20072. {
  20073. ;
  20074. return 0;
  20075. }
  20076. _ACEOF
  20077. if ac_fn_c_try_compile "$LINENO"; then :
  20078. video_opengles_v1=yes
  20079. fi
  20080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20082. $as_echo "$video_opengles_v1" >&6; }
  20083. if test x$video_opengles_v1 = xyes; then
  20084. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20085. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20086. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20087. fi
  20088. fi
  20089. if test x$enable_video_opengles2 = xyes; then
  20090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20091. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20092. video_opengles_v2=no
  20093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20094. /* end confdefs.h. */
  20095. #include <GLES2/gl2.h>
  20096. #include <GLES2/gl2ext.h>
  20097. int
  20098. main ()
  20099. {
  20100. ;
  20101. return 0;
  20102. }
  20103. _ACEOF
  20104. if ac_fn_c_try_compile "$LINENO"; then :
  20105. video_opengles_v2=yes
  20106. fi
  20107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20109. $as_echo "$video_opengles_v2" >&6; }
  20110. if test x$video_opengles_v2 = xyes; then
  20111. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20112. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20113. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20114. fi
  20115. fi
  20116. fi
  20117. }
  20118. CheckWINDOWSGL()
  20119. {
  20120. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20121. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20122. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20123. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20124. SUMMARY_video="${SUMMARY_video} opengl"
  20125. fi
  20126. }
  20127. CheckWINDOWSGLES()
  20128. {
  20129. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20131. $as_echo_n "checking for EGL support... " >&6; }
  20132. video_opengl_egl=no
  20133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20134. /* end confdefs.h. */
  20135. #include <EGL/egl.h>
  20136. int
  20137. main ()
  20138. {
  20139. ;
  20140. return 0;
  20141. }
  20142. _ACEOF
  20143. if ac_fn_c_try_compile "$LINENO"; then :
  20144. video_opengl_egl=yes
  20145. fi
  20146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20148. $as_echo "$video_opengl_egl" >&6; }
  20149. if test x$video_opengl_egl = xyes; then
  20150. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20151. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20152. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20153. fi
  20154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20155. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20156. video_opengles_v2=no
  20157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20158. /* end confdefs.h. */
  20159. #include <GLES2/gl2.h>
  20160. #include <GLES2/gl2ext.h>
  20161. int
  20162. main ()
  20163. {
  20164. ;
  20165. return 0;
  20166. }
  20167. _ACEOF
  20168. if ac_fn_c_try_compile "$LINENO"; then :
  20169. video_opengles_v2=yes
  20170. fi
  20171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20173. $as_echo "$video_opengles_v2" >&6; }
  20174. if test x$video_opengles_v2 = xyes; then
  20175. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20176. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20177. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20178. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20179. fi
  20180. fi
  20181. }
  20182. CheckHaikuGL()
  20183. {
  20184. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20185. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20186. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20187. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20188. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20189. SUMMARY_video="${SUMMARY_video} opengl"
  20190. fi
  20191. }
  20192. CheckMacGL()
  20193. {
  20194. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20195. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20196. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20197. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20198. SUMMARY_video="${SUMMARY_video} opengl"
  20199. fi
  20200. }
  20201. CheckMacGLES()
  20202. {
  20203. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20204. video_opengl_egl=yes
  20205. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20206. video_opengles_v2=yes
  20207. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20208. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20209. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20210. fi
  20211. }
  20212. CheckEmscriptenGLES()
  20213. {
  20214. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20216. $as_echo_n "checking for EGL support... " >&6; }
  20217. video_opengl_egl=no
  20218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20219. /* end confdefs.h. */
  20220. #include <EGL/egl.h>
  20221. int
  20222. main ()
  20223. {
  20224. ;
  20225. return 0;
  20226. }
  20227. _ACEOF
  20228. if ac_fn_c_try_compile "$LINENO"; then :
  20229. video_opengl_egl=yes
  20230. fi
  20231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20233. $as_echo "$video_opengl_egl" >&6; }
  20234. if test x$video_opengl_egl = xyes; then
  20235. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20236. fi
  20237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20238. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20239. video_opengles_v2=no
  20240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20241. /* end confdefs.h. */
  20242. #include <GLES2/gl2.h>
  20243. #include <GLES2/gl2ext.h>
  20244. int
  20245. main ()
  20246. {
  20247. ;
  20248. return 0;
  20249. }
  20250. _ACEOF
  20251. if ac_fn_c_try_compile "$LINENO"; then :
  20252. video_opengles_v2=yes
  20253. fi
  20254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20256. $as_echo "$video_opengles_v2" >&6; }
  20257. if test x$video_opengles_v2 = xyes; then
  20258. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20259. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20260. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20261. fi
  20262. fi
  20263. }
  20264. # Check whether --enable-video-vulkan was given.
  20265. if test "${enable_video_vulkan+set}" = set; then :
  20266. enableval=$enable_video_vulkan;
  20267. else
  20268. enable_video_vulkan=yes
  20269. fi
  20270. CheckVulkan()
  20271. {
  20272. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20273. case "$host" in
  20274. *-*-android*)
  20275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20276. /* end confdefs.h. */
  20277. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20278. #error Vulkan doesn't work on this configuration
  20279. #endif
  20280. int
  20281. main ()
  20282. {
  20283. ;
  20284. return 0;
  20285. }
  20286. _ACEOF
  20287. if ac_fn_c_try_compile "$LINENO"; then :
  20288. else
  20289. enable_video_vulkan=no
  20290. fi
  20291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20292. ;;
  20293. *-*-darwin*)
  20294. save_CFLAGS="$CFLAGS"
  20295. CFLAGS="$CFLAGS -x objective-c"
  20296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20297. /* end confdefs.h. */
  20298. #include <Cocoa/Cocoa.h>
  20299. #include <Metal/Metal.h>
  20300. #include <QuartzCore/CAMetalLayer.h>
  20301. #if TARGET_CPU_X86
  20302. #error Vulkan doesn't work on this configuration
  20303. #endif
  20304. int
  20305. main ()
  20306. {
  20307. ;
  20308. return 0;
  20309. }
  20310. _ACEOF
  20311. if ac_fn_c_try_compile "$LINENO"; then :
  20312. else
  20313. enable_video_vulkan=no
  20314. fi
  20315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20316. CFLAGS="$save_CFLAGS"
  20317. ;;
  20318. *)
  20319. ;;
  20320. esac
  20321. if test x$enable_video_vulkan = xno; then
  20322. # For reasons I am totally unable to see, I get an undefined macro error if
  20323. # I put this in the AC_TRY_COMPILE.
  20324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20325. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20326. fi
  20327. fi
  20328. if test x$have_loadso != xyes; then
  20329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20330. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20331. enable_video_vulkan=no
  20332. fi
  20333. if test x$enable_video_vulkan = xyes; then
  20334. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20335. SUMMARY_video="${SUMMARY_video} vulkan"
  20336. fi
  20337. }
  20338. CheckInputEvents()
  20339. {
  20340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20341. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20342. use_input_events=no
  20343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20344. /* end confdefs.h. */
  20345. #include <linux/input.h>
  20346. int
  20347. main ()
  20348. {
  20349. #ifndef EVIOCGNAME
  20350. #error EVIOCGNAME() ioctl not available
  20351. #endif
  20352. ;
  20353. return 0;
  20354. }
  20355. _ACEOF
  20356. if ac_fn_c_try_compile "$LINENO"; then :
  20357. use_input_events=yes
  20358. fi
  20359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20361. $as_echo "$use_input_events" >&6; }
  20362. if test x$use_input_events = xyes; then
  20363. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20364. SUMMARY_input="${SUMMARY_input} linuxev"
  20365. fi
  20366. }
  20367. CheckInputKD()
  20368. {
  20369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20370. $as_echo_n "checking for Linux kd.h... " >&6; }
  20371. use_input_kd=no
  20372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20373. /* end confdefs.h. */
  20374. #include <linux/kd.h>
  20375. #include <linux/keyboard.h>
  20376. int
  20377. main ()
  20378. {
  20379. struct kbentry kbe;
  20380. kbe.kb_table = KG_CTRL;
  20381. ioctl(0, KDGKBENT, &kbe);
  20382. ;
  20383. return 0;
  20384. }
  20385. _ACEOF
  20386. if ac_fn_c_try_compile "$LINENO"; then :
  20387. use_input_kd=yes
  20388. fi
  20389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20391. $as_echo "$use_input_kd" >&6; }
  20392. if test x$use_input_kd = xyes; then
  20393. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20394. SUMMARY_input="${SUMMARY_input} linuxkd"
  20395. fi
  20396. }
  20397. CheckInputKBIO()
  20398. {
  20399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20400. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20401. use_input_kbio=no
  20402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20403. /* end confdefs.h. */
  20404. #include <sys/kbio.h>
  20405. #include <sys/ioctl.h>
  20406. int
  20407. main ()
  20408. {
  20409. accentmap_t accTable;
  20410. ioctl(0, KDENABIO, 1);
  20411. ;
  20412. return 0;
  20413. }
  20414. _ACEOF
  20415. if ac_fn_c_try_compile "$LINENO"; then :
  20416. use_input_kbio=yes
  20417. fi
  20418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20420. $as_echo "$use_input_kbio" >&6; }
  20421. if test x$use_input_kbio = xyes; then
  20422. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20423. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20424. fi
  20425. }
  20426. CheckInputWSCONS()
  20427. {
  20428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20429. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20430. use_input_wscons=no
  20431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20432. /* end confdefs.h. */
  20433. #include <sys/time.h>
  20434. #include <dev/wscons/wsconsio.h>
  20435. #include <dev/wscons/wsksymdef.h>
  20436. #include <dev/wscons/wsksymvar.h>
  20437. #include <sys/ioctl.h>
  20438. int
  20439. main ()
  20440. {
  20441. struct wskbd_map_data data;
  20442. ioctl(0, WSKBDIO_GETMAP, &data);
  20443. ;
  20444. return 0;
  20445. }
  20446. _ACEOF
  20447. if ac_fn_c_try_compile "$LINENO"; then :
  20448. use_input_wscons=yes
  20449. fi
  20450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20452. $as_echo "$use_input_wscons" >&6; }
  20453. if test x$use_input_wscons = xyes; then
  20454. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20455. SUMMARY_input="${SUMMARY_input} wscons"
  20456. fi
  20457. }
  20458. CheckLibUDev()
  20459. {
  20460. # Check whether --enable-libudev was given.
  20461. if test "${enable_libudev+set}" = set; then :
  20462. enableval=$enable_libudev;
  20463. else
  20464. enable_libudev=yes
  20465. fi
  20466. if test x$enable_libudev = xyes; then
  20467. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20468. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20469. have_libudev_h_hdr=yes
  20470. else
  20471. have_libudev_h_hdr=no
  20472. fi
  20473. if test x$have_libudev_h_hdr = xyes; then
  20474. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20475. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20476. if test x$udev_lib != x; then
  20477. echo "-- dynamic udev -> $udev_lib"
  20478. cat >>confdefs.h <<_ACEOF
  20479. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20480. _ACEOF
  20481. fi
  20482. fi
  20483. fi
  20484. }
  20485. CheckDBus()
  20486. {
  20487. # Check whether --enable-dbus was given.
  20488. if test "${enable_dbus+set}" = set; then :
  20489. enableval=$enable_dbus;
  20490. else
  20491. enable_dbus=yes
  20492. fi
  20493. if test x$enable_dbus = xyes; then
  20494. pkg_failed=no
  20495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20496. $as_echo_n "checking for dbus-1... " >&6; }
  20497. if test -n "$DBUS_CFLAGS"; then
  20498. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20499. elif test -n "$PKG_CONFIG"; then
  20500. if test -n "$PKG_CONFIG" && \
  20501. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20502. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20503. ac_status=$?
  20504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20505. test $ac_status = 0; }; then
  20506. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20507. test "x$?" != "x0" && pkg_failed=yes
  20508. else
  20509. pkg_failed=yes
  20510. fi
  20511. else
  20512. pkg_failed=untried
  20513. fi
  20514. if test -n "$DBUS_LIBS"; then
  20515. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20516. elif test -n "$PKG_CONFIG"; then
  20517. if test -n "$PKG_CONFIG" && \
  20518. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20519. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20520. ac_status=$?
  20521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20522. test $ac_status = 0; }; then
  20523. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20524. test "x$?" != "x0" && pkg_failed=yes
  20525. else
  20526. pkg_failed=yes
  20527. fi
  20528. else
  20529. pkg_failed=untried
  20530. fi
  20531. if test $pkg_failed = yes; then
  20532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20533. $as_echo "no" >&6; }
  20534. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20535. _pkg_short_errors_supported=yes
  20536. else
  20537. _pkg_short_errors_supported=no
  20538. fi
  20539. if test $_pkg_short_errors_supported = yes; then
  20540. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20541. else
  20542. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20543. fi
  20544. # Put the nasty error message in config.log where it belongs
  20545. echo "$DBUS_PKG_ERRORS" >&5
  20546. have_dbus=no
  20547. elif test $pkg_failed = untried; then
  20548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20549. $as_echo "no" >&6; }
  20550. have_dbus=no
  20551. else
  20552. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20553. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20555. $as_echo "yes" >&6; }
  20556. have_dbus=yes
  20557. fi
  20558. save_CPPFLAGS="$CPPFLAGS"
  20559. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20560. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20561. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20562. have_dbus_dbus_h_hdr=yes
  20563. else
  20564. have_dbus_dbus_h_hdr=no
  20565. fi
  20566. CPPFLAGS="$save_CPPFLAGS"
  20567. if test x$have_dbus_dbus_h_hdr = xyes; then
  20568. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20569. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20570. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20571. fi
  20572. fi
  20573. }
  20574. CheckIME()
  20575. {
  20576. # Check whether --enable-ime was given.
  20577. if test "${enable_ime+set}" = set; then :
  20578. enableval=$enable_ime;
  20579. else
  20580. enable_ime=yes
  20581. fi
  20582. if test x$enable_ime = xyes; then
  20583. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20584. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20585. fi
  20586. }
  20587. CheckInotify()
  20588. {
  20589. save_LIBS="$LIBS"
  20590. case "$host" in
  20591. *-*-freebsd*) LIBS="$LIBS -linotify"
  20592. ;;
  20593. esac
  20594. for ac_header in sys/inotify.h
  20595. do :
  20596. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20597. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20598. cat >>confdefs.h <<_ACEOF
  20599. #define HAVE_SYS_INOTIFY_H 1
  20600. _ACEOF
  20601. have_inotify_inotify_h_hdr=yes
  20602. fi
  20603. done
  20604. for ac_func in inotify_init
  20605. do :
  20606. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20607. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20608. cat >>confdefs.h <<_ACEOF
  20609. #define HAVE_INOTIFY_INIT 1
  20610. _ACEOF
  20611. have_inotify=yes
  20612. fi
  20613. done
  20614. for ac_func in inotify_init1
  20615. do :
  20616. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20617. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20618. cat >>confdefs.h <<_ACEOF
  20619. #define HAVE_INOTIFY_INIT1 1
  20620. _ACEOF
  20621. fi
  20622. done
  20623. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20624. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20625. case "$host" in
  20626. *-*-freebsd*)
  20627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20628. ;;
  20629. esac
  20630. fi
  20631. LIBS="$save_LIBS"
  20632. }
  20633. CheckIBus()
  20634. {
  20635. # Check whether --enable-ibus was given.
  20636. if test "${enable_ibus+set}" = set; then :
  20637. enableval=$enable_ibus;
  20638. else
  20639. enable_ibus=yes
  20640. fi
  20641. if test x$enable_ibus = xyes; then
  20642. pkg_failed=no
  20643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20644. $as_echo_n "checking for ibus-1.0... " >&6; }
  20645. if test -n "$IBUS_CFLAGS"; then
  20646. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20647. elif test -n "$PKG_CONFIG"; then
  20648. if test -n "$PKG_CONFIG" && \
  20649. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20650. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20651. ac_status=$?
  20652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20653. test $ac_status = 0; }; then
  20654. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20655. test "x$?" != "x0" && pkg_failed=yes
  20656. else
  20657. pkg_failed=yes
  20658. fi
  20659. else
  20660. pkg_failed=untried
  20661. fi
  20662. if test -n "$IBUS_LIBS"; then
  20663. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20664. elif test -n "$PKG_CONFIG"; then
  20665. if test -n "$PKG_CONFIG" && \
  20666. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20667. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20668. ac_status=$?
  20669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20670. test $ac_status = 0; }; then
  20671. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20672. test "x$?" != "x0" && pkg_failed=yes
  20673. else
  20674. pkg_failed=yes
  20675. fi
  20676. else
  20677. pkg_failed=untried
  20678. fi
  20679. if test $pkg_failed = yes; then
  20680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20681. $as_echo "no" >&6; }
  20682. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20683. _pkg_short_errors_supported=yes
  20684. else
  20685. _pkg_short_errors_supported=no
  20686. fi
  20687. if test $_pkg_short_errors_supported = yes; then
  20688. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20689. else
  20690. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20691. fi
  20692. # Put the nasty error message in config.log where it belongs
  20693. echo "$IBUS_PKG_ERRORS" >&5
  20694. have_ibus=no
  20695. elif test $pkg_failed = untried; then
  20696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20697. $as_echo "no" >&6; }
  20698. have_ibus=no
  20699. else
  20700. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20701. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20703. $as_echo "yes" >&6; }
  20704. have_ibus=yes
  20705. fi
  20706. save_CPPFLAGS="$CPPFLAGS"
  20707. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20708. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20709. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20710. have_ibus_ibus_h_hdr=yes
  20711. else
  20712. have_ibus_ibus_h_hdr=no
  20713. fi
  20714. CPPFLAGS="$save_CPPFLAGS"
  20715. if test x$have_ibus_ibus_h_hdr = xyes; then
  20716. if test x$enable_ime != xyes; then
  20717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20718. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20719. have_ibus_ibus_h_hdr=no
  20720. elif test x$enable_dbus != xyes; then
  20721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20722. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20723. have_ibus_ibus_h_hdr=no
  20724. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20726. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20727. have_ibus_ibus_h_hdr=no
  20728. else
  20729. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20730. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20731. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20732. fi
  20733. fi
  20734. fi
  20735. }
  20736. CheckFcitx()
  20737. {
  20738. # Check whether --enable-fcitx was given.
  20739. if test "${enable_fcitx+set}" = set; then :
  20740. enableval=$enable_fcitx;
  20741. else
  20742. enable_fcitx=yes
  20743. fi
  20744. if test x$enable_fcitx = xyes; then
  20745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20746. $as_echo_n "checking for fcitx support... " >&6; }
  20747. have_fcitx=no
  20748. if test x$enable_ime != xyes; then
  20749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20750. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20751. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20753. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20754. else
  20755. have_fcitx=yes
  20756. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20757. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20758. fi
  20759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20760. $as_echo "$have_fcitx" >&6; }
  20761. fi
  20762. }
  20763. CheckJoystickMFI()
  20764. {
  20765. # Check whether --enable-joystick-mfi was given.
  20766. if test "${enable_joystick_mfi+set}" = set; then :
  20767. enableval=$enable_joystick_mfi;
  20768. else
  20769. enable_joystick_mfi=yes
  20770. fi
  20771. if test x$enable_joystick_mfi = xyes; then
  20772. save_CFLAGS="$CFLAGS"
  20773. save_LDFLAGS="$LDFLAGS"
  20774. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20775. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20777. $as_echo_n "checking for GameController framework... " >&6; }
  20778. enable_joystick_mfi=no
  20779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20780. /* end confdefs.h. */
  20781. #include <AvailabilityMacros.h>
  20782. #include <TargetConditionals.h>
  20783. #import <GameController/GameController.h>
  20784. int
  20785. main ()
  20786. {
  20787. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20788. #error GameController framework doesn't work on this configuration
  20789. #endif
  20790. #if TARGET_CPU_X86
  20791. #error GameController framework doesn't work on this configuration
  20792. #endif
  20793. ;
  20794. return 0;
  20795. }
  20796. _ACEOF
  20797. if ac_fn_c_try_link "$LINENO"; then :
  20798. enable_joystick_mfi=yes
  20799. fi
  20800. rm -f core conftest.err conftest.$ac_objext \
  20801. conftest$ac_exeext conftest.$ac_ext
  20802. CFLAGS="$save_CFLAGS"
  20803. LDFLAGS="$save_LDFLAGS"
  20804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20805. $as_echo "$enable_joystick_mfi" >&6; }
  20806. if test x$enable_joystick_mfi = xyes; then
  20807. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20808. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20809. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20810. fi
  20811. fi
  20812. }
  20813. CheckPTHREAD()
  20814. {
  20815. case "$host" in
  20816. *-*-emscripten*)
  20817. enable_pthreads_default=no
  20818. ;;
  20819. *)
  20820. enable_pthreads_default=yes
  20821. ;;
  20822. esac
  20823. # Check whether --enable-pthreads was given.
  20824. if test "${enable_pthreads+set}" = set; then :
  20825. enableval=$enable_pthreads;
  20826. else
  20827. enable_pthreads=maybe
  20828. fi
  20829. # Check whether --enable-pthread-sem was given.
  20830. if test "${enable_pthread_sem+set}" = set; then :
  20831. enableval=$enable_pthread_sem;
  20832. else
  20833. enable_pthread_sem=maybe
  20834. fi
  20835. if test x$enable_pthreads = xmaybe; then
  20836. enable_pthreads=$enable_pthreads_default
  20837. fi
  20838. if test x$enable_pthread_sem = xmaybe; then
  20839. enable_pthread_sem=$enable_pthreads
  20840. fi
  20841. case "$host" in
  20842. *-*-android*)
  20843. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20844. pthread_lib=""
  20845. ;;
  20846. *-*-linux*|*-*-uclinux*)
  20847. pthread_cflags="-D_REENTRANT"
  20848. pthread_lib="-lpthread"
  20849. ;;
  20850. *-*-bsdi*)
  20851. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20852. pthread_lib=""
  20853. ;;
  20854. *-*-darwin*)
  20855. pthread_cflags="-D_THREAD_SAFE"
  20856. # causes Carbon.p complaints?
  20857. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20858. ;;
  20859. *-*-freebsd*|*-*-dragonfly*)
  20860. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20861. pthread_lib="-pthread"
  20862. ;;
  20863. *-*-netbsd*)
  20864. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20865. pthread_lib="-lpthread"
  20866. ;;
  20867. *-*-openbsd*)
  20868. pthread_cflags="-D_REENTRANT"
  20869. pthread_lib="-pthread"
  20870. ;;
  20871. *-*-solaris2.9)
  20872. # From Solaris 9+, posix4's preferred name is rt.
  20873. pthread_cflags="-D_REENTRANT"
  20874. pthread_lib="-lpthread -lrt"
  20875. ;;
  20876. *-*-solaris2.10)
  20877. # Solaris 10+ merged pthread into libc.
  20878. pthread_cflags="-D_REENTRANT"
  20879. pthread_lib="-lrt"
  20880. ;;
  20881. *-*-solaris*)
  20882. # Solaris 11+ merged rt into libc.
  20883. pthread_cflags="-D_REENTRANT"
  20884. pthread_lib=""
  20885. ;;
  20886. *-*-sysv5*)
  20887. pthread_cflags="-D_REENTRANT -Kthread"
  20888. pthread_lib=""
  20889. ;;
  20890. *-*-aix*)
  20891. pthread_cflags="-D_REENTRANT -mthreads"
  20892. pthread_lib="-lpthread"
  20893. ;;
  20894. *-*-hpux11*)
  20895. pthread_cflags="-D_REENTRANT"
  20896. pthread_lib="-L/usr/lib -lpthread"
  20897. ;;
  20898. *-*-haiku*)
  20899. pthread_cflags="-D_REENTRANT"
  20900. pthread_lib=""
  20901. ;;
  20902. *-*-nto*)
  20903. pthread_cflags="-D_REENTRANT"
  20904. pthread_lib=""
  20905. ;;
  20906. *-*-emscripten*)
  20907. pthread_cflags="-D_REENTRANT -pthread"
  20908. pthread_lib="-pthread"
  20909. ;;
  20910. *)
  20911. pthread_cflags="-D_REENTRANT"
  20912. pthread_lib="-lpthread"
  20913. ;;
  20914. esac
  20915. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20916. # Save the original compiler flags and libraries
  20917. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20918. # Add the pthread compiler flags and libraries
  20919. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20920. # Check to see if we have pthread support on this system
  20921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20922. $as_echo_n "checking for pthreads... " >&6; }
  20923. use_pthreads=no
  20924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20925. /* end confdefs.h. */
  20926. #include <pthread.h>
  20927. int
  20928. main ()
  20929. {
  20930. pthread_attr_t type;
  20931. pthread_attr_init(&type);
  20932. ;
  20933. return 0;
  20934. }
  20935. _ACEOF
  20936. if ac_fn_c_try_link "$LINENO"; then :
  20937. use_pthreads=yes
  20938. fi
  20939. rm -f core conftest.err conftest.$ac_objext \
  20940. conftest$ac_exeext conftest.$ac_ext
  20941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20942. $as_echo "$use_pthreads" >&6; }
  20943. # Restore the compiler flags and libraries
  20944. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20945. # Do futher testing if we have pthread support...
  20946. if test x$use_pthreads = xyes; then
  20947. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20948. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20949. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20950. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20951. # Save the original compiler flags and libraries
  20952. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20953. # Add the pthread compiler flags and libraries
  20954. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20955. # Check to see if recursive mutexes are available
  20956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20957. $as_echo_n "checking for recursive mutexes... " >&6; }
  20958. has_recursive_mutexes=no
  20959. if test x$has_recursive_mutexes = xno; then
  20960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20961. /* end confdefs.h. */
  20962. #define _GNU_SOURCE 1
  20963. #include <pthread.h>
  20964. int
  20965. main ()
  20966. {
  20967. pthread_mutexattr_t attr;
  20968. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20969. ;
  20970. return 0;
  20971. }
  20972. _ACEOF
  20973. if ac_fn_c_try_link "$LINENO"; then :
  20974. has_recursive_mutexes=yes
  20975. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20976. fi
  20977. rm -f core conftest.err conftest.$ac_objext \
  20978. conftest$ac_exeext conftest.$ac_ext
  20979. fi
  20980. if test x$has_recursive_mutexes = xno; then
  20981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20982. /* end confdefs.h. */
  20983. #define _GNU_SOURCE 1
  20984. #include <pthread.h>
  20985. int
  20986. main ()
  20987. {
  20988. pthread_mutexattr_t attr;
  20989. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20990. ;
  20991. return 0;
  20992. }
  20993. _ACEOF
  20994. if ac_fn_c_try_link "$LINENO"; then :
  20995. has_recursive_mutexes=yes
  20996. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20997. fi
  20998. rm -f core conftest.err conftest.$ac_objext \
  20999. conftest$ac_exeext conftest.$ac_ext
  21000. fi
  21001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21002. $as_echo "$has_recursive_mutexes" >&6; }
  21003. # Check to see if pthread semaphore support is missing
  21004. if test x$enable_pthread_sem = xyes; then
  21005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21006. $as_echo_n "checking for pthread semaphores... " >&6; }
  21007. have_pthread_sem=no
  21008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21009. /* end confdefs.h. */
  21010. #include <pthread.h>
  21011. #include <semaphore.h>
  21012. int
  21013. main ()
  21014. {
  21015. ;
  21016. return 0;
  21017. }
  21018. _ACEOF
  21019. if ac_fn_c_try_compile "$LINENO"; then :
  21020. have_pthread_sem=yes
  21021. fi
  21022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21024. $as_echo "$have_pthread_sem" >&6; }
  21025. fi
  21026. if test x$have_pthread_sem = xyes; then
  21027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21028. $as_echo_n "checking for sem_timedwait... " >&6; }
  21029. have_sem_timedwait=no
  21030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21031. /* end confdefs.h. */
  21032. #include <pthread.h>
  21033. #include <semaphore.h>
  21034. int
  21035. main ()
  21036. {
  21037. sem_timedwait(NULL, NULL);
  21038. ;
  21039. return 0;
  21040. }
  21041. _ACEOF
  21042. if ac_fn_c_try_link "$LINENO"; then :
  21043. have_sem_timedwait=yes
  21044. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21045. fi
  21046. rm -f core conftest.err conftest.$ac_objext \
  21047. conftest$ac_exeext conftest.$ac_ext
  21048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21049. $as_echo "$have_sem_timedwait" >&6; }
  21050. fi
  21051. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21052. "
  21053. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21054. have_pthread_np_h=yes
  21055. else
  21056. have_pthread_np_h=no
  21057. fi
  21058. if test x$have_pthread_np_h = xyes; then
  21059. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21060. fi
  21061. # Check to see if pthread naming is available
  21062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21063. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21065. /* end confdefs.h. */
  21066. /* Override any GCC internal prototype to avoid an error.
  21067. Use char because int might match the return type of a GCC
  21068. builtin and then its argument prototype would still apply. */
  21069. #ifdef __cplusplus
  21070. extern "C"
  21071. #endif
  21072. char pthread_setname_np ();
  21073. int
  21074. main ()
  21075. {
  21076. return pthread_setname_np ();
  21077. ;
  21078. return 0;
  21079. }
  21080. _ACEOF
  21081. if ac_fn_c_try_link "$LINENO"; then :
  21082. has_pthread_setname_np=yes
  21083. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21084. else
  21085. has_pthread_setname_np=no
  21086. fi
  21087. rm -f core conftest.err conftest.$ac_objext \
  21088. conftest$ac_exeext conftest.$ac_ext
  21089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21090. $as_echo "$has_pthread_setname_np" >&6; }
  21091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21092. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21094. /* end confdefs.h. */
  21095. /* Override any GCC internal prototype to avoid an error.
  21096. Use char because int might match the return type of a GCC
  21097. builtin and then its argument prototype would still apply. */
  21098. #ifdef __cplusplus
  21099. extern "C"
  21100. #endif
  21101. char pthread_set_name_np ();
  21102. int
  21103. main ()
  21104. {
  21105. return pthread_set_name_np ();
  21106. ;
  21107. return 0;
  21108. }
  21109. _ACEOF
  21110. if ac_fn_c_try_link "$LINENO"; then :
  21111. has_pthread_set_name_np=yes
  21112. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21113. else
  21114. has_pthread_set_name_np=no
  21115. fi
  21116. rm -f core conftest.err conftest.$ac_objext \
  21117. conftest$ac_exeext conftest.$ac_ext
  21118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21119. $as_echo "$has_pthread_set_name_np" >&6; }
  21120. # Restore the compiler flags and libraries
  21121. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21122. # Basic thread creation functions
  21123. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21124. # Semaphores
  21125. # We can fake these with mutexes and condition variables if necessary
  21126. if test x$have_pthread_sem = xyes; then
  21127. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21128. else
  21129. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21130. fi
  21131. # Mutexes
  21132. # We can fake these with semaphores if necessary
  21133. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21134. # Condition variables
  21135. # We can fake these with semaphores and mutexes if necessary
  21136. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21137. # Thread local storage
  21138. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21139. have_threads=yes
  21140. fi
  21141. fi
  21142. }
  21143. CheckWINDOWS()
  21144. {
  21145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21146. $as_echo_n "checking Windows compiler... " >&6; }
  21147. have_win32_gcc=no
  21148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21149. /* end confdefs.h. */
  21150. #include <windows.h>
  21151. int
  21152. main ()
  21153. {
  21154. ;
  21155. return 0;
  21156. }
  21157. _ACEOF
  21158. if ac_fn_c_try_compile "$LINENO"; then :
  21159. have_win32_gcc=yes
  21160. fi
  21161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21163. $as_echo "$have_win32_gcc" >&6; }
  21164. if test x$have_win32_gcc != xyes; then
  21165. as_fn_error $? "
  21166. *** Your compiler ($CC) does not produce Windows executables!
  21167. " "$LINENO" 5
  21168. fi
  21169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21170. $as_echo_n "checking Windows CE... " >&6; }
  21171. have_wince=no
  21172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21173. /* end confdefs.h. */
  21174. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21175. #error This is not Windows CE
  21176. #endif
  21177. int
  21178. main ()
  21179. {
  21180. ;
  21181. return 0;
  21182. }
  21183. _ACEOF
  21184. if ac_fn_c_try_compile "$LINENO"; then :
  21185. have_wince=yes
  21186. as_fn_error $? "
  21187. *** Sorry, Windows CE is no longer supported.
  21188. " "$LINENO" 5
  21189. fi
  21190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21192. $as_echo "$have_wince" >&6; }
  21193. # This fixes Windows stack alignment with newer GCC
  21194. CheckStackBoundary
  21195. }
  21196. CheckOS2()
  21197. {
  21198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21199. $as_echo_n "checking OS/2 compiler... " >&6; }
  21200. have_os2_gcc=no
  21201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21202. /* end confdefs.h. */
  21203. #include <os2.h>
  21204. int
  21205. main ()
  21206. {
  21207. ;
  21208. return 0;
  21209. }
  21210. _ACEOF
  21211. if ac_fn_c_try_compile "$LINENO"; then :
  21212. have_os2_gcc=yes
  21213. fi
  21214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21216. $as_echo "$have_os2_gcc" >&6; }
  21217. if test x$have_os2_gcc != xyes; then
  21218. as_fn_error $? "
  21219. *** Your compiler ($CC) does not produce OS/2 executables!
  21220. " "$LINENO" 5
  21221. fi
  21222. }
  21223. CheckDIRECTX()
  21224. {
  21225. # Check whether --enable-directx was given.
  21226. if test "${enable_directx+set}" = set; then :
  21227. enableval=$enable_directx;
  21228. else
  21229. enable_directx=yes
  21230. fi
  21231. if test x$enable_directx = xyes; then
  21232. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21233. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21234. have_d3d=yes
  21235. fi
  21236. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21237. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21238. have_d3d11=yes
  21239. fi
  21240. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21241. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21242. have_ddraw=yes
  21243. fi
  21244. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21245. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21246. have_dsound=yes
  21247. fi
  21248. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21249. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21250. have_dinput=yes
  21251. fi
  21252. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21253. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21254. have_dxgi=yes
  21255. fi
  21256. if test x$have_ddraw = xyes; then
  21257. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21258. fi
  21259. if test x$have_dinput = xyes; then
  21260. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21261. fi
  21262. if test x$have_dsound = xyes; then
  21263. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21264. fi
  21265. if test x$have_dxgi = xyes; then
  21266. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21267. fi
  21268. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21269. # FIXME: ...so force it off for now.
  21270. case "$host" in
  21271. *-*-cygwin*)
  21272. have_dinput=false
  21273. ;;
  21274. esac
  21275. fi
  21276. # Check whether --enable-xinput was given.
  21277. if test "${enable_xinput+set}" = set; then :
  21278. enableval=$enable_xinput;
  21279. else
  21280. enable_xinput=yes
  21281. fi
  21282. if test x$enable_xinput = xyes; then
  21283. have_xinput_gamepadex=no
  21284. have_xinput_stateex=no
  21285. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21286. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21287. have_xinput=yes
  21288. fi
  21289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21290. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21292. /* end confdefs.h. */
  21293. #include <windows.h>
  21294. #include <xinput.h>
  21295. XINPUT_GAMEPAD_EX x1;
  21296. int
  21297. main ()
  21298. {
  21299. ;
  21300. return 0;
  21301. }
  21302. _ACEOF
  21303. if ac_fn_c_try_compile "$LINENO"; then :
  21304. have_xinput_gamepadex=yes
  21305. fi
  21306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21308. $as_echo "$have_xinput_gamepadex" >&6; }
  21309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21310. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21312. /* end confdefs.h. */
  21313. #include <windows.h>
  21314. #include <xinput.h>
  21315. XINPUT_STATE_EX s1;
  21316. int
  21317. main ()
  21318. {
  21319. ;
  21320. return 0;
  21321. }
  21322. _ACEOF
  21323. if ac_fn_c_try_compile "$LINENO"; then :
  21324. have_xinput_stateex=yes
  21325. fi
  21326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21328. $as_echo "$have_xinput_stateex" >&6; }
  21329. if test x$have_xinput = xyes; then
  21330. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21331. fi
  21332. if test x$have_xinput_gamepadex = xyes; then
  21333. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21334. fi
  21335. if test x$have_xinput_stateex = xyes; then
  21336. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21337. fi
  21338. fi
  21339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21340. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21342. /* end confdefs.h. */
  21343. #define COBJMACROS
  21344. #include <windows.gaming.input.h>
  21345. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21346. int
  21347. main ()
  21348. {
  21349. ;
  21350. return 0;
  21351. }
  21352. _ACEOF
  21353. if ac_fn_c_try_compile "$LINENO"; then :
  21354. have_wgi=yes
  21355. else
  21356. have_wgi=no
  21357. fi
  21358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21360. $as_echo "$have_wgi" >&6; }
  21361. if test x$have_wgi = xyes; then
  21362. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21363. fi
  21364. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21365. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21366. have_wasapi=yes
  21367. fi
  21368. if test x$have_wasapi = xyes; then
  21369. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21370. fi
  21371. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21372. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21373. else
  21374. have_wasapi=no
  21375. fi
  21376. if test x$have_wasapi = xyes; then
  21377. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21378. fi
  21379. # Check whether --enable-wasapi was given.
  21380. if test "${enable_wasapi+set}" = set; then :
  21381. enableval=$enable_wasapi;
  21382. else
  21383. enable_wasapi=yes
  21384. fi
  21385. }
  21386. CheckDLOPEN()
  21387. {
  21388. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21389. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21390. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21391. have_dlfcn_h=yes
  21392. else
  21393. have_dlfcn_h=no
  21394. fi
  21395. have_dlopen=no
  21396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21397. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21398. if ${ac_cv_lib_c_dlopen+:} false; then :
  21399. $as_echo_n "(cached) " >&6
  21400. else
  21401. ac_check_lib_save_LIBS=$LIBS
  21402. LIBS="-lc $LIBS"
  21403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21404. /* end confdefs.h. */
  21405. /* Override any GCC internal prototype to avoid an error.
  21406. Use char because int might match the return type of a GCC
  21407. builtin and then its argument prototype would still apply. */
  21408. #ifdef __cplusplus
  21409. extern "C"
  21410. #endif
  21411. char dlopen ();
  21412. int
  21413. main ()
  21414. {
  21415. return dlopen ();
  21416. ;
  21417. return 0;
  21418. }
  21419. _ACEOF
  21420. if ac_fn_c_try_link "$LINENO"; then :
  21421. ac_cv_lib_c_dlopen=yes
  21422. else
  21423. ac_cv_lib_c_dlopen=no
  21424. fi
  21425. rm -f core conftest.err conftest.$ac_objext \
  21426. conftest$ac_exeext conftest.$ac_ext
  21427. LIBS=$ac_check_lib_save_LIBS
  21428. fi
  21429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21430. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21431. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21432. have_dlopen=yes
  21433. else
  21434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21435. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21436. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21437. $as_echo_n "(cached) " >&6
  21438. else
  21439. ac_check_lib_save_LIBS=$LIBS
  21440. LIBS="-ldl $LIBS"
  21441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21442. /* end confdefs.h. */
  21443. /* Override any GCC internal prototype to avoid an error.
  21444. Use char because int might match the return type of a GCC
  21445. builtin and then its argument prototype would still apply. */
  21446. #ifdef __cplusplus
  21447. extern "C"
  21448. #endif
  21449. char dlopen ();
  21450. int
  21451. main ()
  21452. {
  21453. return dlopen ();
  21454. ;
  21455. return 0;
  21456. }
  21457. _ACEOF
  21458. if ac_fn_c_try_link "$LINENO"; then :
  21459. ac_cv_lib_dl_dlopen=yes
  21460. else
  21461. ac_cv_lib_dl_dlopen=no
  21462. fi
  21463. rm -f core conftest.err conftest.$ac_objext \
  21464. conftest$ac_exeext conftest.$ac_ext
  21465. LIBS=$ac_check_lib_save_LIBS
  21466. fi
  21467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21468. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21469. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21470. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21471. fi
  21472. fi
  21473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21474. $as_echo_n "checking for dlopen... " >&6; }
  21475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21476. $as_echo "$have_dlopen" >&6; }
  21477. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21478. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21479. if test x$enable_loadso = xyes; then
  21480. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21481. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21482. have_loadso=yes
  21483. fi
  21484. fi
  21485. }
  21486. CheckO_CLOEXEC()
  21487. {
  21488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21489. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21491. /* end confdefs.h. */
  21492. #include <fcntl.h>
  21493. int flag = O_CLOEXEC;
  21494. int
  21495. main ()
  21496. {
  21497. ;
  21498. return 0;
  21499. }
  21500. _ACEOF
  21501. if ac_fn_c_try_compile "$LINENO"; then :
  21502. have_o_cloexec=yes
  21503. else
  21504. have_o_cloexec=no
  21505. fi
  21506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21508. $as_echo "$have_o_cloexec" >&6; }
  21509. if test $have_o_cloexec = yes; then
  21510. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21511. fi
  21512. }
  21513. CheckUSBHID()
  21514. {
  21515. case "$host" in
  21516. *-*-*bsd*|*-*-dragonfly*)
  21517. if test x$enable_joystick = xyes; then
  21518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21519. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21520. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21521. $as_echo_n "(cached) " >&6
  21522. else
  21523. ac_check_lib_save_LIBS=$LIBS
  21524. LIBS="-lusbhid $LIBS"
  21525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21526. /* end confdefs.h. */
  21527. /* Override any GCC internal prototype to avoid an error.
  21528. Use char because int might match the return type of a GCC
  21529. builtin and then its argument prototype would still apply. */
  21530. #ifdef __cplusplus
  21531. extern "C"
  21532. #endif
  21533. char hid_init ();
  21534. int
  21535. main ()
  21536. {
  21537. return hid_init ();
  21538. ;
  21539. return 0;
  21540. }
  21541. _ACEOF
  21542. if ac_fn_c_try_link "$LINENO"; then :
  21543. ac_cv_lib_usbhid_hid_init=yes
  21544. else
  21545. ac_cv_lib_usbhid_hid_init=no
  21546. fi
  21547. rm -f core conftest.err conftest.$ac_objext \
  21548. conftest$ac_exeext conftest.$ac_ext
  21549. LIBS=$ac_check_lib_save_LIBS
  21550. fi
  21551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21552. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21553. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21554. have_libusbhid=yes
  21555. fi
  21556. if test x$have_libusbhid = xyes; then
  21557. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21558. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21559. USB_CFLAGS="-DHAVE_USBHID_H"
  21560. fi
  21561. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21562. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21563. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21564. fi
  21565. USB_LIBS="$USB_LIBS -lusbhid"
  21566. else
  21567. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21568. if test "x$ac_cv_header_usb_h" = xyes; then :
  21569. USB_CFLAGS="-DHAVE_USB_H"
  21570. fi
  21571. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21572. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21573. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21574. fi
  21575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21576. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21577. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21578. $as_echo_n "(cached) " >&6
  21579. else
  21580. ac_check_lib_save_LIBS=$LIBS
  21581. LIBS="-lusb $LIBS"
  21582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21583. /* end confdefs.h. */
  21584. /* Override any GCC internal prototype to avoid an error.
  21585. Use char because int might match the return type of a GCC
  21586. builtin and then its argument prototype would still apply. */
  21587. #ifdef __cplusplus
  21588. extern "C"
  21589. #endif
  21590. char hid_init ();
  21591. int
  21592. main ()
  21593. {
  21594. return hid_init ();
  21595. ;
  21596. return 0;
  21597. }
  21598. _ACEOF
  21599. if ac_fn_c_try_link "$LINENO"; then :
  21600. ac_cv_lib_usb_hid_init=yes
  21601. else
  21602. ac_cv_lib_usb_hid_init=no
  21603. fi
  21604. rm -f core conftest.err conftest.$ac_objext \
  21605. conftest$ac_exeext conftest.$ac_ext
  21606. LIBS=$ac_check_lib_save_LIBS
  21607. fi
  21608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21609. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21610. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21611. USB_LIBS="$USB_LIBS -lusb"
  21612. fi
  21613. fi
  21614. save_CFLAGS="$CFLAGS"
  21615. CFLAGS="$CFLAGS $USB_CFLAGS"
  21616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21617. $as_echo_n "checking for usbhid... " >&6; }
  21618. have_usbhid=no
  21619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21620. /* end confdefs.h. */
  21621. #include <sys/types.h>
  21622. #if defined(HAVE_USB_H)
  21623. #include <usb.h>
  21624. #endif
  21625. #ifdef __DragonFly__
  21626. # include <bus/u4b/usb.h>
  21627. # include <bus/u4b/usbhid.h>
  21628. #else
  21629. # include <dev/usb/usb.h>
  21630. # include <dev/usb/usbhid.h>
  21631. #endif
  21632. #if defined(HAVE_USBHID_H)
  21633. #include <usbhid.h>
  21634. #elif defined(HAVE_LIBUSB_H)
  21635. #include <libusb.h>
  21636. #elif defined(HAVE_LIBUSBHID_H)
  21637. #include <libusbhid.h>
  21638. #endif
  21639. int
  21640. main ()
  21641. {
  21642. struct report_desc *repdesc;
  21643. struct usb_ctl_report *repbuf;
  21644. hid_kind_t hidkind;
  21645. ;
  21646. return 0;
  21647. }
  21648. _ACEOF
  21649. if ac_fn_c_try_compile "$LINENO"; then :
  21650. have_usbhid=yes
  21651. fi
  21652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21654. $as_echo "$have_usbhid" >&6; }
  21655. if test x$have_usbhid = xyes; then
  21656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21657. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21658. have_usbhid_ucr_data=no
  21659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21660. /* end confdefs.h. */
  21661. #include <sys/types.h>
  21662. #if defined(HAVE_USB_H)
  21663. #include <usb.h>
  21664. #endif
  21665. #ifdef __DragonFly__
  21666. # include <bus/u4b/usb.h>
  21667. # include <bus/u4b/usbhid.h>
  21668. #else
  21669. # include <dev/usb/usb.h>
  21670. # include <dev/usb/usbhid.h>
  21671. #endif
  21672. #if defined(HAVE_USBHID_H)
  21673. #include <usbhid.h>
  21674. #elif defined(HAVE_LIBUSB_H)
  21675. #include <libusb.h>
  21676. #elif defined(HAVE_LIBUSBHID_H)
  21677. #include <libusbhid.h>
  21678. #endif
  21679. int
  21680. main ()
  21681. {
  21682. struct usb_ctl_report buf;
  21683. if (buf.ucr_data) { }
  21684. ;
  21685. return 0;
  21686. }
  21687. _ACEOF
  21688. if ac_fn_c_try_compile "$LINENO"; then :
  21689. have_usbhid_ucr_data=yes
  21690. fi
  21691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21692. if test x$have_usbhid_ucr_data = xyes; then
  21693. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21694. fi
  21695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21696. $as_echo "$have_usbhid_ucr_data" >&6; }
  21697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21698. $as_echo_n "checking for new usbhid API... " >&6; }
  21699. have_usbhid_new=no
  21700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21701. /* end confdefs.h. */
  21702. #include <sys/types.h>
  21703. #if defined(HAVE_USB_H)
  21704. #include <usb.h>
  21705. #endif
  21706. #ifdef __DragonFly__
  21707. #include <bus/u4b/usb.h>
  21708. #include <bus/u4b/usbhid.h>
  21709. #else
  21710. #include <dev/usb/usb.h>
  21711. #include <dev/usb/usbhid.h>
  21712. #endif
  21713. #if defined(HAVE_USBHID_H)
  21714. #include <usbhid.h>
  21715. #elif defined(HAVE_LIBUSB_H)
  21716. #include <libusb.h>
  21717. #elif defined(HAVE_LIBUSBHID_H)
  21718. #include <libusbhid.h>
  21719. #endif
  21720. int
  21721. main ()
  21722. {
  21723. report_desc_t d;
  21724. hid_start_parse(d, 1, 1);
  21725. ;
  21726. return 0;
  21727. }
  21728. _ACEOF
  21729. if ac_fn_c_try_compile "$LINENO"; then :
  21730. have_usbhid_new=yes
  21731. fi
  21732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21733. if test x$have_usbhid_new = xyes; then
  21734. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21735. fi
  21736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21737. $as_echo "$have_usbhid_new" >&6; }
  21738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21739. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21740. have_machine_joystick=no
  21741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21742. /* end confdefs.h. */
  21743. #include <machine/joystick.h>
  21744. int
  21745. main ()
  21746. {
  21747. struct joystick t;
  21748. ;
  21749. return 0;
  21750. }
  21751. _ACEOF
  21752. if ac_fn_c_try_compile "$LINENO"; then :
  21753. have_machine_joystick=yes
  21754. fi
  21755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21756. if test x$have_machine_joystick = xyes; then
  21757. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21758. fi
  21759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21760. $as_echo "$have_machine_joystick" >&6; }
  21761. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21762. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21763. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21764. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21765. have_joystick=yes
  21766. fi
  21767. CFLAGS="$save_CFLAGS"
  21768. fi
  21769. ;;
  21770. esac
  21771. }
  21772. CheckHIDAPI()
  21773. {
  21774. # Check whether --enable-hidapi-joystick was given.
  21775. if test "${enable_hidapi_joystick+set}" = set; then :
  21776. enableval=$enable_hidapi_joystick;
  21777. else
  21778. enable_hidapi_joystick=yes
  21779. fi
  21780. # Check whether --enable-hidapi-libusb was given.
  21781. if test "${enable_hidapi_libusb+set}" = set; then :
  21782. enableval=$enable_hidapi_libusb;
  21783. else
  21784. enable_hidapi_libusb=maybe
  21785. fi
  21786. if test x$enable_hidapi = xyes; then
  21787. case "$host" in
  21788. # libusb does not support iOS
  21789. *-ios-* )
  21790. enable_hidapi_libusb=no
  21791. ;;
  21792. # On the other hand, *BSD specifically uses libusb only
  21793. *-*-*bsd* )
  21794. enable_hidapi_libusb=yes
  21795. require_hidapi_libusb=yes
  21796. ;;
  21797. *-*-os2* )
  21798. enable_hidapi_libusb=yes
  21799. ;;
  21800. esac
  21801. hidapi_support=yes
  21802. if test x$enable_hidapi_libusb = xyes; then
  21803. pkg_failed=no
  21804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21805. $as_echo_n "checking for libusb-1.0... " >&6; }
  21806. if test -n "$LIBUSB_CFLAGS"; then
  21807. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21808. elif test -n "$PKG_CONFIG"; then
  21809. if test -n "$PKG_CONFIG" && \
  21810. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21811. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21812. ac_status=$?
  21813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21814. test $ac_status = 0; }; then
  21815. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21816. test "x$?" != "x0" && pkg_failed=yes
  21817. else
  21818. pkg_failed=yes
  21819. fi
  21820. else
  21821. pkg_failed=untried
  21822. fi
  21823. if test -n "$LIBUSB_LIBS"; then
  21824. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21825. elif test -n "$PKG_CONFIG"; then
  21826. if test -n "$PKG_CONFIG" && \
  21827. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21828. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21829. ac_status=$?
  21830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21831. test $ac_status = 0; }; then
  21832. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21833. test "x$?" != "x0" && pkg_failed=yes
  21834. else
  21835. pkg_failed=yes
  21836. fi
  21837. else
  21838. pkg_failed=untried
  21839. fi
  21840. if test $pkg_failed = yes; then
  21841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21842. $as_echo "no" >&6; }
  21843. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21844. _pkg_short_errors_supported=yes
  21845. else
  21846. _pkg_short_errors_supported=no
  21847. fi
  21848. if test $_pkg_short_errors_supported = yes; then
  21849. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21850. else
  21851. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21852. fi
  21853. # Put the nasty error message in config.log where it belongs
  21854. echo "$LIBUSB_PKG_ERRORS" >&5
  21855. have_libusb=no
  21856. elif test $pkg_failed = untried; then
  21857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21858. $as_echo "no" >&6; }
  21859. have_libusb=no
  21860. else
  21861. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21862. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21864. $as_echo "yes" >&6; }
  21865. have_libusb=yes
  21866. fi
  21867. save_CPPFLAGS="$CPPFLAGS"
  21868. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21869. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21870. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21871. have_libusb_h=yes
  21872. else
  21873. have_libusb_h=no
  21874. fi
  21875. CPPFLAGS="$save_CPPFLAGS"
  21876. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21877. hidapi_support=no
  21878. fi
  21879. fi
  21880. if test x$hidapi_support = xyes; then
  21881. if test x$have_libusb_h = xyes; then
  21882. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21883. if test x$require_hidapi_libusb = xyes; then
  21884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21885. else
  21886. if test x$have_loadso != xyes; then
  21887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21888. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21889. fi
  21890. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21891. libusb_lib=""
  21892. case "$host" in
  21893. *-*-darwin* )
  21894. libusb_lib="libusb-1.0.0.dylib"
  21895. ;;
  21896. *-*-cygwin* | *-*-mingw* )
  21897. libusb_lib="libusb-1.0.dll"
  21898. ;;
  21899. *-*-os2* )
  21900. libusb_lib="usb100.dll"
  21901. ;;
  21902. esac
  21903. if test x$libusb_lib = x; then
  21904. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21905. fi
  21906. cat >>confdefs.h <<_ACEOF
  21907. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21908. _ACEOF
  21909. fi
  21910. fi
  21911. fi
  21912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21913. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21915. $as_echo "$hidapi_support" >&6; }
  21916. fi
  21917. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21918. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21919. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21920. fi
  21921. }
  21922. CheckClockGettime()
  21923. {
  21924. # Check whether --enable-clock_gettime was given.
  21925. if test "${enable_clock_gettime+set}" = set; then :
  21926. enableval=$enable_clock_gettime;
  21927. else
  21928. enable_clock_gettime=yes
  21929. fi
  21930. if test x$enable_clock_gettime = xyes; then
  21931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21932. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21933. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21934. $as_echo_n "(cached) " >&6
  21935. else
  21936. ac_check_lib_save_LIBS=$LIBS
  21937. LIBS="-lrt $LIBS"
  21938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21939. /* end confdefs.h. */
  21940. /* Override any GCC internal prototype to avoid an error.
  21941. Use char because int might match the return type of a GCC
  21942. builtin and then its argument prototype would still apply. */
  21943. #ifdef __cplusplus
  21944. extern "C"
  21945. #endif
  21946. char clock_gettime ();
  21947. int
  21948. main ()
  21949. {
  21950. return clock_gettime ();
  21951. ;
  21952. return 0;
  21953. }
  21954. _ACEOF
  21955. if ac_fn_c_try_link "$LINENO"; then :
  21956. ac_cv_lib_rt_clock_gettime=yes
  21957. else
  21958. ac_cv_lib_rt_clock_gettime=no
  21959. fi
  21960. rm -f core conftest.err conftest.$ac_objext \
  21961. conftest$ac_exeext conftest.$ac_ext
  21962. LIBS=$ac_check_lib_save_LIBS
  21963. fi
  21964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21965. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21966. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21967. have_clock_gettime=yes
  21968. fi
  21969. if test x$have_clock_gettime = xyes; then
  21970. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21972. else
  21973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21974. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21975. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21976. $as_echo_n "(cached) " >&6
  21977. else
  21978. ac_check_lib_save_LIBS=$LIBS
  21979. LIBS="-lc $LIBS"
  21980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21981. /* end confdefs.h. */
  21982. /* Override any GCC internal prototype to avoid an error.
  21983. Use char because int might match the return type of a GCC
  21984. builtin and then its argument prototype would still apply. */
  21985. #ifdef __cplusplus
  21986. extern "C"
  21987. #endif
  21988. char clock_gettime ();
  21989. int
  21990. main ()
  21991. {
  21992. return clock_gettime ();
  21993. ;
  21994. return 0;
  21995. }
  21996. _ACEOF
  21997. if ac_fn_c_try_link "$LINENO"; then :
  21998. ac_cv_lib_c_clock_gettime=yes
  21999. else
  22000. ac_cv_lib_c_clock_gettime=no
  22001. fi
  22002. rm -f core conftest.err conftest.$ac_objext \
  22003. conftest$ac_exeext conftest.$ac_ext
  22004. LIBS=$ac_check_lib_save_LIBS
  22005. fi
  22006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22007. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22008. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22009. have_clock_gettime=yes
  22010. fi
  22011. if test x$have_clock_gettime = xyes; then
  22012. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22013. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22014. fi
  22015. fi
  22016. fi
  22017. }
  22018. CheckLinuxVersion()
  22019. {
  22020. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22021. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22022. have_linux_version_h=yes
  22023. fi
  22024. if test x$have_linux_version_h = xyes; then
  22025. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22026. fi
  22027. }
  22028. CheckRPATH()
  22029. {
  22030. # Check whether --enable-rpath was given.
  22031. if test "${enable_rpath+set}" = set; then :
  22032. enableval=$enable_rpath;
  22033. else
  22034. enable_rpath=yes
  22035. fi
  22036. }
  22037. CheckEventSignals()
  22038. {
  22039. # Check whether --enable-backgrounding-signal was given.
  22040. if test "${enable_backgrounding_signal+set}" = set; then :
  22041. enableval=$enable_backgrounding_signal;
  22042. else
  22043. enable_backgrounding_signal=no
  22044. fi
  22045. if test x$enable_backgrounding_signal != xno; then
  22046. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22047. fi
  22048. # Check whether --enable-foregrounding-signal was given.
  22049. if test "${enable_foregrounding_signal+set}" = set; then :
  22050. enableval=$enable_foregrounding_signal;
  22051. else
  22052. enable_foregrounding_signal=no
  22053. fi
  22054. if test x$enable_foregrounding_signal != xno; then
  22055. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22056. fi
  22057. }
  22058. CheckVirtualJoystick()
  22059. {
  22060. # Check whether --enable-joystick-virtual was given.
  22061. if test "${enable_joystick_virtual+set}" = set; then :
  22062. enableval=$enable_joystick_virtual;
  22063. else
  22064. enable_joystick_virtual=yes
  22065. fi
  22066. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22067. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22068. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22069. have_joystick_virtual=yes
  22070. fi
  22071. }
  22072. CheckWarnAll
  22073. CheckNoStrictAliasing
  22074. CheckEventSignals
  22075. have_locale=no
  22076. case "$host" in
  22077. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22078. case "$host" in
  22079. *-*-android*)
  22080. # Android
  22081. ARCH=android
  22082. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22083. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22084. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22085. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22086. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22087. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22088. if test x$enable_video = xyes; then
  22089. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22090. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22091. SUMMARY_video="${SUMMARY_video} android"
  22092. fi
  22093. ;;
  22094. *-*-linux*) ARCH=linux ;;
  22095. *-*-uclinux*) ARCH=linux ;;
  22096. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22097. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22098. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22099. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22100. *-*-bsdi*) ARCH=bsdi ;;
  22101. *-*-freebsd*) ARCH=freebsd ;;
  22102. *-*-dragonfly*) ARCH=freebsd ;;
  22103. *-*-netbsd*) ARCH=netbsd ;;
  22104. *-*-openbsd*) ARCH=openbsd ;;
  22105. *-*-sysv5*) ARCH=sysv5 ;;
  22106. *-*-solaris*) ARCH=solaris ;;
  22107. *-*-hpux*) ARCH=hpux ;;
  22108. *-*-aix*) ARCH=aix ;;
  22109. *-*-minix*) ARCH=minix ;;
  22110. *-*-nto*) ARCH=nto
  22111. CheckQNXVideo
  22112. ;;
  22113. esac
  22114. CheckVisibilityHidden
  22115. CheckDeclarationAfterStatement
  22116. CheckDummyVideo
  22117. CheckOffscreenVideo
  22118. CheckDiskAudio
  22119. CheckDummyAudio
  22120. CheckDLOPEN
  22121. CheckARM
  22122. CheckNEON
  22123. CheckO_CLOEXEC
  22124. CheckOSS
  22125. CheckALSA
  22126. CheckPipewire
  22127. CheckPulseAudio
  22128. CheckJACK
  22129. CheckARTSC
  22130. CheckESD
  22131. CheckNAS
  22132. CheckSNDIO
  22133. CheckFusionSound
  22134. CheckLibSampleRate
  22135. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22136. CheckRPI
  22137. CheckX11
  22138. CheckDirectFB
  22139. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22140. CheckEGL
  22141. CheckKMSDRM
  22142. CheckGLX
  22143. CheckOpenGL
  22144. CheckOpenGLES
  22145. CheckVulkan
  22146. CheckWayland
  22147. CheckInputEvents
  22148. CheckLibUDev
  22149. CheckDBus
  22150. CheckIME
  22151. CheckInotify
  22152. CheckIBus
  22153. CheckFcitx
  22154. case $ARCH in
  22155. linux)
  22156. CheckInputKD
  22157. ;;
  22158. freebsd)
  22159. CheckInputKBIO
  22160. ;;
  22161. openbsd|netbsd)
  22162. CheckInputWSCONS
  22163. ;;
  22164. esac
  22165. CheckUSBHID
  22166. CheckHIDAPI
  22167. CheckPTHREAD
  22168. CheckClockGettime
  22169. CheckLinuxVersion
  22170. CheckRPATH
  22171. CheckVivanteVideo
  22172. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22173. have_misc=yes
  22174. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22175. have_locale=yes
  22176. # Set up files for the audio library
  22177. if test x$enable_audio = xyes; then
  22178. case $ARCH in
  22179. sysv5|solaris|hpux)
  22180. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22181. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22182. SUMMARY_audio="${SUMMARY_audio} sun"
  22183. have_audio=yes
  22184. ;;
  22185. netbsd) # Don't use this on OpenBSD, it's busted.
  22186. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22187. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22188. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22189. have_audio=yes
  22190. ;;
  22191. aix)
  22192. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22193. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22194. SUMMARY_audio="${SUMMARY_audio} paudio"
  22195. have_audio=yes
  22196. ;;
  22197. android)
  22198. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22199. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22200. SUMMARY_audio="${SUMMARY_audio} android"
  22201. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22202. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22203. SUMMARY_audio="${SUMMARY_audio} openslES"
  22204. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22205. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22206. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22207. have_audio=yes
  22208. ;;
  22209. nto)
  22210. CheckQNXAudio
  22211. ;;
  22212. esac
  22213. fi
  22214. # Set up files for the joystick library
  22215. if test x$enable_joystick = xyes; then
  22216. case $ARCH in
  22217. linux)
  22218. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22219. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22220. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22221. have_joystick=yes
  22222. ;;
  22223. freebsd)
  22224. if test x$use_input_events = xyes; then
  22225. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22226. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22227. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22228. have_joystick=yes
  22229. fi
  22230. ;;
  22231. android)
  22232. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22233. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22234. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22235. have_joystick=yes
  22236. ;;
  22237. esac
  22238. fi
  22239. # Set up files for the haptic library
  22240. if test x$enable_haptic = xyes; then
  22241. case $ARCH in
  22242. linux|freebsd)
  22243. if test x$use_input_events = xyes; then
  22244. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22245. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22246. have_haptic=yes
  22247. fi
  22248. ;;
  22249. android)
  22250. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22251. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22252. have_haptic=yes
  22253. ;;
  22254. esac
  22255. fi
  22256. # Set up files for the sensor library
  22257. if test x$enable_sensor = xyes; then
  22258. case $ARCH in
  22259. android)
  22260. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22261. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22262. have_sensor=yes
  22263. ;;
  22264. esac
  22265. fi
  22266. # Set up files for the power library
  22267. if test x$enable_power = xyes; then
  22268. case $ARCH in
  22269. linux)
  22270. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22271. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22272. have_power=yes
  22273. ;;
  22274. android)
  22275. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22276. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22277. have_power=yes
  22278. ;;
  22279. esac
  22280. fi
  22281. # Set up files for the filesystem library
  22282. if test x$enable_filesystem = xyes; then
  22283. case $ARCH in
  22284. android)
  22285. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22286. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22287. have_filesystem=yes
  22288. ;;
  22289. *)
  22290. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22291. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22292. have_filesystem=yes
  22293. ;;
  22294. esac
  22295. fi
  22296. # Set up files for the timer library
  22297. if test x$enable_timers = xyes; then
  22298. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22299. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22300. have_timers=yes
  22301. fi
  22302. # Set up files for udev hotplugging support
  22303. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22304. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22305. fi
  22306. # Set up files for evdev input
  22307. if test x$use_input_events = xyes; then
  22308. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22309. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22310. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22311. fi
  22312. # Set up files for wscons input
  22313. if test x$use_input_wscons = xyes; then
  22314. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22315. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22316. fi
  22317. # Set up other core UNIX files
  22318. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22319. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22320. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22321. ;;
  22322. *-*-cygwin* | *-*-mingw*)
  22323. ARCH=win32
  22324. if test "$build" != "$host"; then # cross-compiling
  22325. # Default cross-compile location
  22326. ac_default_prefix=/usr/local/cross-tools/$host
  22327. else
  22328. # Look for the location of the tools and install there
  22329. if test "$BUILD_PREFIX" != ""; then
  22330. ac_default_prefix=$BUILD_PREFIX
  22331. fi
  22332. fi
  22333. if test x$enable_loadso = xyes; then
  22334. have_loadso=yes
  22335. fi
  22336. CheckDeclarationAfterStatement
  22337. CheckDummyVideo
  22338. CheckOffscreenVideo
  22339. CheckDiskAudio
  22340. CheckDummyAudio
  22341. CheckWINDOWS
  22342. CheckWINDOWSGL
  22343. CheckWINDOWSGLES
  22344. CheckVulkan
  22345. CheckDIRECTX
  22346. CheckHIDAPI
  22347. # Set up the core platform files
  22348. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22349. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22350. have_misc=yes
  22351. # Use the Windows locale APIs.
  22352. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22353. have_locale=yes
  22354. # Set up files for the video library
  22355. if test x$enable_video = xyes; then
  22356. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22357. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22358. have_video=yes
  22359. # Check whether --enable-render-d3d was given.
  22360. if test "${enable_render_d3d+set}" = set; then :
  22361. enableval=$enable_render_d3d;
  22362. else
  22363. enable_render_d3d=yes
  22364. fi
  22365. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22366. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22367. SUMMARY_video="${SUMMARY_video} d3d9"
  22368. fi
  22369. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22370. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22371. SUMMARY_video="${SUMMARY_video} d3d11"
  22372. fi
  22373. fi
  22374. # Set up files for the audio library
  22375. if test x$enable_audio = xyes; then
  22376. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22377. SUMMARY_audio="${SUMMARY_audio} winmm"
  22378. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22379. if test x$have_dsound = xyes; then
  22380. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22381. SUMMARY_audio="${SUMMARY_audio} directsound"
  22382. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22383. fi
  22384. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22385. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22386. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22387. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22388. fi
  22389. have_audio=yes
  22390. fi
  22391. # Set up files for the joystick library
  22392. if test x$enable_joystick = xyes; then
  22393. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22394. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22395. if test x$have_xinput = xyes; then
  22396. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22397. fi
  22398. if test x$have_wgi = xyes; then
  22399. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22400. fi
  22401. if test x$have_dinput = xyes; then
  22402. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22403. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22404. fi
  22405. fi
  22406. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22407. have_joystick=yes
  22408. fi
  22409. if test x$enable_haptic = xyes; then
  22410. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22411. if test x$have_xinput = xyes; then
  22412. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22413. fi
  22414. if test x$have_dinput = xyes; then
  22415. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22416. fi
  22417. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22418. have_haptic=yes
  22419. fi
  22420. fi
  22421. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22422. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  22423. have_tpcshrd_h=yes
  22424. fi
  22425. if test x$have_tpcshrd_h = xyes; then
  22426. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22427. fi
  22428. # Set up files for the sensor library
  22429. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22430. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22431. have_winsensors=yes
  22432. else
  22433. have_winsensors=no
  22434. fi
  22435. if test x$have_winsensors = xyes; then
  22436. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22437. fi
  22438. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22439. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22440. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22441. have_sensor=yes
  22442. fi
  22443. # Set up files for the power library
  22444. if test x$enable_power = xyes; then
  22445. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22446. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22447. have_power=yes
  22448. fi
  22449. # Set up files for the filesystem library
  22450. if test x$enable_filesystem = xyes; then
  22451. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22452. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22453. have_filesystem=yes
  22454. fi
  22455. # Set up files for the thread library
  22456. if test x$enable_threads = xyes; then
  22457. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22458. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22459. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22460. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22461. have_threads=yes
  22462. fi
  22463. # Set up files for the timer library
  22464. if test x$enable_timers = xyes; then
  22465. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22466. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22467. have_timers=yes
  22468. fi
  22469. # Set up files for the shared object loading library
  22470. if test x$enable_loadso = xyes; then
  22471. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22472. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22473. fi
  22474. # Set up the system libraries we need
  22475. if test -f /lib/w32api/libuuid.a; then
  22476. LIBUUID=/lib/w32api/libuuid.a
  22477. else
  22478. LIBUUID=-luuid
  22479. fi
  22480. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22481. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22482. # The Windows platform requires special setup
  22483. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22484. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22485. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22486. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22487. # Check to see if this is a mingw or cygwin build
  22488. have_mingw32=
  22489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22490. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22491. if ${ac_cv_lib_mingw32_main+:} false; then :
  22492. $as_echo_n "(cached) " >&6
  22493. else
  22494. ac_check_lib_save_LIBS=$LIBS
  22495. LIBS="-lmingw32 $LIBS"
  22496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22497. /* end confdefs.h. */
  22498. int
  22499. main ()
  22500. {
  22501. return main ();
  22502. ;
  22503. return 0;
  22504. }
  22505. _ACEOF
  22506. if ac_fn_c_try_link "$LINENO"; then :
  22507. ac_cv_lib_mingw32_main=yes
  22508. else
  22509. ac_cv_lib_mingw32_main=no
  22510. fi
  22511. rm -f core conftest.err conftest.$ac_objext \
  22512. conftest$ac_exeext conftest.$ac_ext
  22513. LIBS=$ac_check_lib_save_LIBS
  22514. fi
  22515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22516. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22517. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22518. have_mingw32=yes
  22519. fi
  22520. if test x$have_mingw32 = xyes; then
  22521. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22522. else
  22523. SDL_LIBS="-lcygwin $SDL_LIBS"
  22524. fi
  22525. ;;
  22526. *-*-beos*)
  22527. as_fn_error $? "
  22528. *** BeOS support has been removed as of SDL 2.0.2.
  22529. " "$LINENO" 5
  22530. ;;
  22531. *-*-haiku*)
  22532. ARCH=haiku
  22533. ac_default_prefix=/boot/system
  22534. CheckDummyVideo
  22535. CheckOffscreenVideo
  22536. CheckDiskAudio
  22537. CheckDummyAudio
  22538. CheckDLOPEN
  22539. CheckO_CLOEXEC
  22540. CheckHaikuVideo
  22541. CheckHaikuGL
  22542. CheckPTHREAD
  22543. # Set up files for the audio library
  22544. if test x$enable_audio = xyes; then
  22545. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22546. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22547. SUMMARY_audio="${SUMMARY_audio} haiku"
  22548. have_audio=yes
  22549. fi
  22550. # Set up files for the joystick library
  22551. if test x$enable_joystick = xyes; then
  22552. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22553. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22554. have_joystick=yes
  22555. fi
  22556. # Set up files for the timer library
  22557. if test x$enable_timers = xyes; then
  22558. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22559. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22560. have_timers=yes
  22561. fi
  22562. # Set up files for the system power library
  22563. if test x$enable_power = xyes; then
  22564. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22565. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22566. have_power=yes
  22567. fi
  22568. # Set up files for the system filesystem library
  22569. if test x$enable_filesystem = xyes; then
  22570. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22571. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22572. have_filesystem=yes
  22573. fi
  22574. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22575. have_misc=yes
  22576. # Set up files for the locale library
  22577. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22578. have_locale=yes
  22579. # The Haiku platform requires special setup.
  22580. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22581. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22582. ;;
  22583. *-ios-*)
  22584. ARCH=ios
  22585. CheckVisibilityHidden
  22586. CheckDeclarationAfterStatement
  22587. CheckDummyVideo
  22588. CheckOffscreenVideo
  22589. CheckDiskAudio
  22590. CheckDummyAudio
  22591. CheckDLOPEN
  22592. CheckO_CLOEXEC
  22593. CheckMETAL
  22594. CheckVulkan
  22595. CheckPTHREAD
  22596. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22597. have_misc=yes
  22598. # Set up files for the locale library
  22599. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22600. have_locale=yes
  22601. # Set up files for the audio library
  22602. if test x$enable_audio = xyes; then
  22603. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22604. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22605. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22606. have_audio=yes
  22607. fi
  22608. # Set up files for the joystick library
  22609. if test x$enable_joystick = xyes; then
  22610. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22611. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22612. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22613. have_joystick=yes
  22614. else
  22615. # Need this code for accelerometer as joystick support
  22616. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22617. fi
  22618. # Set up files for the haptic library
  22619. #if test x$enable_haptic = xyes; then
  22620. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22621. # have_haptic=yes
  22622. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22623. #fi
  22624. # Set up files for the sensor library
  22625. if test x$enable_sensor = xyes; then
  22626. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22627. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22628. have_sensor=yes
  22629. fi
  22630. # Set up files for the power library
  22631. if test x$enable_power = xyes; then
  22632. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22633. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22634. have_power=yes
  22635. fi
  22636. # Set up files for the filesystem library
  22637. if test x$enable_filesystem = xyes; then
  22638. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22639. have_filesystem=yes
  22640. fi
  22641. # Set up additional files for the file library
  22642. if test x$enable_file = xyes; then
  22643. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22644. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22645. fi
  22646. # Set up files for the timer library
  22647. if test x$enable_timers = xyes; then
  22648. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22649. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22650. have_timers=yes
  22651. fi
  22652. # Set up other core UNIX files
  22653. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22654. # The iOS platform requires special setup.
  22655. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22656. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22657. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22658. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22659. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22660. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22661. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22662. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22664. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22665. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22667. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22668. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22669. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22670. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22671. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22672. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22673. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22674. fi
  22675. ;;
  22676. *-*-darwin* )
  22677. # This could be either full "Mac OS X", or plain "Darwin" which is
  22678. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22679. # Next line is broken, and a few files below require Mac OS X (full)
  22680. ARCH=macosx
  22681. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22682. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22683. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22684. CheckVisibilityHidden
  22685. CheckDeclarationAfterStatement
  22686. CheckDummyVideo
  22687. CheckOffscreenVideo
  22688. CheckDiskAudio
  22689. CheckDummyAudio
  22690. CheckDLOPEN
  22691. CheckO_CLOEXEC
  22692. CheckCOCOA
  22693. CheckMETAL
  22694. CheckX11
  22695. CheckMacGL
  22696. CheckMacGLES
  22697. CheckGLX
  22698. CheckOpenGL
  22699. CheckVulkan
  22700. CheckPTHREAD
  22701. CheckHIDAPI
  22702. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22703. have_misc=yes
  22704. # Set up files for the locale library
  22705. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22706. have_locale=yes
  22707. # Set up files for the audio library
  22708. if test x$enable_audio = xyes; then
  22709. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22710. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22711. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22712. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22713. have_audio=yes
  22714. fi
  22715. # Set up files for the joystick library
  22716. if test x$enable_joystick = xyes; then
  22717. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22718. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22719. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22720. CheckJoystickMFI
  22721. have_joystick=yes
  22722. fi
  22723. # Set up files for the haptic library
  22724. if test x$enable_haptic = xyes; then
  22725. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22726. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22727. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22728. have_haptic=yes
  22729. fi
  22730. # Set up files for the power library
  22731. if test x$enable_power = xyes; then
  22732. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22733. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22734. have_power=yes
  22735. fi
  22736. # Set up files for the filesystem library
  22737. if test x$enable_filesystem = xyes; then
  22738. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22739. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22740. have_filesystem=yes
  22741. fi
  22742. # Set up files for the timer library
  22743. if test x$enable_timers = xyes; then
  22744. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22745. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22746. have_timers=yes
  22747. fi
  22748. # Set up additional files for the file library
  22749. if test x$enable_file = xyes; then
  22750. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22751. fi
  22752. # Set up other core UNIX files
  22753. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22754. # The Mac OS X platform requires special setup.
  22755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22756. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22757. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22758. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22759. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22760. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22761. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22762. fi
  22763. ;;
  22764. *-nacl|*-pnacl)
  22765. ARCH=nacl
  22766. CheckNativeClient
  22767. CheckDummyAudio
  22768. CheckDummyVideo
  22769. CheckOffscreenVideo
  22770. CheckInputEvents
  22771. CheckPTHREAD
  22772. CheckO_CLOEXEC
  22773. # Set up files for the timer library
  22774. if test x$enable_timers = xyes; then
  22775. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22776. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22777. have_timers=yes
  22778. fi
  22779. if test x$enable_filesystem = xyes; then
  22780. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22781. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22782. have_filesystem=yes
  22783. fi
  22784. ;;
  22785. *-*-emscripten* )
  22786. if test x$enable_video = xyes; then
  22787. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22788. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22789. have_video=yes
  22790. SUMMARY_video="${SUMMARY_video} emscripten"
  22791. fi
  22792. if test x$enable_audio = xyes; then
  22793. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22794. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22795. have_audio=yes
  22796. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22797. fi
  22798. CheckVisibilityHidden
  22799. CheckDeclarationAfterStatement
  22800. CheckDummyVideo
  22801. CheckOffscreenVideo
  22802. CheckDiskAudio
  22803. CheckDummyAudio
  22804. CheckPTHREAD
  22805. CheckDLOPEN
  22806. CheckClockGettime
  22807. CheckEmscriptenGLES
  22808. # Set up files for the power library
  22809. if test x$enable_power = xyes; then
  22810. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22811. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22812. have_power=yes
  22813. fi
  22814. # Set up files for the power library
  22815. if test x$enable_joystick = xyes; then
  22816. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22817. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22818. have_joystick=yes
  22819. fi
  22820. # Set up files for the filesystem library
  22821. if test x$enable_filesystem = xyes; then
  22822. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22823. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22824. have_filesystem=yes
  22825. fi
  22826. # Set up files for the timer library
  22827. if test x$enable_timers = xyes; then
  22828. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22829. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22830. have_timers=yes
  22831. fi
  22832. # Set up files for the locale library
  22833. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22834. have_locale=yes
  22835. ;;
  22836. *-*-riscos*)
  22837. ARCH=riscos
  22838. CheckVisibilityHidden
  22839. CheckDeclarationAfterStatement
  22840. CheckDummyVideo
  22841. CheckOffscreenVideo
  22842. CheckDiskAudio
  22843. CheckDummyAudio
  22844. CheckDLOPEN
  22845. CheckO_CLOEXEC
  22846. CheckOSS
  22847. CheckPTHREAD
  22848. CheckClockGettime
  22849. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22850. have_misc=yes
  22851. # Set up files for the video library
  22852. if test x$enable_video = xyes; then
  22853. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22854. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22855. have_video=yes
  22856. SUMMARY_video="${SUMMARY_video} riscos"
  22857. fi
  22858. # Set up files for the filesystem library
  22859. if test x$enable_filesystem = xyes; then
  22860. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22861. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22862. have_filesystem=yes
  22863. fi
  22864. # Set up files for the timer library
  22865. if test x$enable_timers = xyes; then
  22866. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22867. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22868. have_timers=yes
  22869. fi
  22870. ;;
  22871. *-*-os2*)
  22872. ARCH=os2
  22873. if test "$build" != "$host"; then # cross-compiling
  22874. # Default cross-compile location
  22875. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22876. else
  22877. # Look for the location of the tools and install there
  22878. if test "$BUILD_PREFIX" != ""; then
  22879. ac_default_prefix=$BUILD_PREFIX
  22880. fi
  22881. fi
  22882. enable_static=no # disable static builds
  22883. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22884. CheckOS2
  22885. CheckDeclarationAfterStatement
  22886. CheckDummyVideo
  22887. CheckDiskAudio
  22888. CheckDummyAudio
  22889. CheckHIDAPI
  22890. # Set up the core platform files
  22891. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22892. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22893. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22894. fi
  22895. # Use the Unix locale APIs.
  22896. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22897. have_locale=yes
  22898. # Set up files for the video library
  22899. if test x$enable_video = xyes; then
  22900. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22901. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22902. have_video=yes
  22903. SUMMARY_video="${SUMMARY_video} os/2"
  22904. fi
  22905. # Set up files for the audio library
  22906. if test x$enable_audio = xyes; then
  22907. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22908. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22909. have_audio=yes
  22910. SUMMARY_audio="${SUMMARY_audio} os/2"
  22911. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22912. fi
  22913. # Set up files for the thread library
  22914. if test x$enable_threads = xyes; then
  22915. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22916. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22917. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22918. have_threads=yes
  22919. fi
  22920. # Set up files for the timer library
  22921. if test x$enable_timers = xyes; then
  22922. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22923. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22924. have_timers=yes
  22925. fi
  22926. # Set up files for the shared object loading library
  22927. if test x$enable_loadso = xyes; then
  22928. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  22929. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  22930. have_loadso=yes
  22931. fi
  22932. # Set up files for the filesystem library
  22933. if test x$enable_filesystem = xyes; then
  22934. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  22935. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  22936. have_filesystem=yes
  22937. fi
  22938. # Set up files for the joystick library
  22939. if test x$enable_joystick = xyes; then
  22940. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  22941. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  22942. have_joystick=yes
  22943. fi
  22944. ;;
  22945. *)
  22946. as_fn_error $? "
  22947. *** Unsupported host: Please add to configure.ac
  22948. " "$LINENO" 5
  22949. ;;
  22950. esac
  22951. CheckVirtualJoystick
  22952. # Check whether to install sdl2-config
  22953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22954. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22955. # Check whether --enable-sdl2-config was given.
  22956. if test "${enable_sdl2_config+set}" = set; then :
  22957. enableval=$enable_sdl2_config; case "${enableval}" in
  22958. yes) enable_sdl2_config="TRUE" ;;
  22959. no) enable_sdl2_config="FALSE" ;;
  22960. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22961. esac
  22962. else
  22963. enable_sdl2_config="TRUE"
  22964. fi
  22965. if test "$enable_sdl2_config" = "TRUE"; then
  22966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22967. $as_echo "yes" >&6; }
  22968. else
  22969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22970. $as_echo "no" >&6; }
  22971. fi
  22972. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22973. # Verify that we have all the platform specific files we need
  22974. if test x$have_misc != xyes; then
  22975. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22976. fi
  22977. if test x$have_locale != xyes; then
  22978. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22979. fi
  22980. if test x$have_joystick != xyes; then
  22981. if test x$enable_joystick = xyes; then
  22982. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22983. fi
  22984. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22985. fi
  22986. if test x$have_haptic != xyes; then
  22987. if test x$enable_haptic = xyes; then
  22988. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22989. fi
  22990. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22991. fi
  22992. if test x$have_sensor != xyes; then
  22993. if test x$enable_sensor = xyes; then
  22994. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22995. fi
  22996. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22997. fi
  22998. if test x$have_threads != xyes; then
  22999. if test x$enable_threads = xyes; then
  23000. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23001. fi
  23002. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23003. fi
  23004. if test x$have_timers != xyes; then
  23005. if test x$enable_timers = xyes; then
  23006. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  23007. fi
  23008. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23009. fi
  23010. if test x$have_filesystem != xyes; then
  23011. if test x$enable_filesystem = xyes; then
  23012. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  23013. fi
  23014. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23015. fi
  23016. if test x$have_loadso != xyes; then
  23017. if test x$enable_loadso = xyes; then
  23018. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  23019. fi
  23020. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23021. fi
  23022. if test x$SDLMAIN_SOURCES = x; then
  23023. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23024. fi
  23025. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23026. if test x$video_wayland = xyes; then
  23027. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23028. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23029. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23030. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23031. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23032. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23033. echo ;\
  23034. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23035. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23036. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23037. echo ;\
  23038. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23039. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23040. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23041. echo ;\
  23042. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23043. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23044. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23045. done ;\
  23046. echo ;\
  23047. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23048. fi
  23049. OBJECTS=`echo $SOURCES`
  23050. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23051. for EXT in asm cc m c S; do
  23052. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23053. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23054. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23055. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23056. done
  23057. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23058. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23059. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23060. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23061. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23062. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23063. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23064. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23065. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23066. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23067. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23068. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23069. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23070. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23071. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23072. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23073. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23074. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23075. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23076. # Set runtime shared library paths as needed
  23077. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23078. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23079. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23081. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23082. have_enable_new_dtags=no
  23083. save_LDFLAGS="$LDFLAGS"
  23084. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23086. /* end confdefs.h. */
  23087. int
  23088. main ()
  23089. {
  23090. ;
  23091. return 0;
  23092. }
  23093. _ACEOF
  23094. if ac_fn_c_try_link "$LINENO"; then :
  23095. have_enable_new_dtags=yes
  23096. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23097. fi
  23098. rm -f core conftest.err conftest.$ac_objext \
  23099. conftest$ac_exeext conftest.$ac_ext
  23100. LDFLAGS="$save_LDFLAGS"
  23101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23102. $as_echo "$have_enable_new_dtags" >&6; }
  23103. fi
  23104. if test $ARCH = solaris; then
  23105. SDL_RLD_FLAGS="-R\${libdir}"
  23106. fi
  23107. else
  23108. SDL_RLD_FLAGS=""
  23109. fi
  23110. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23111. if test x$enable_shared = xyes; then
  23112. PKGCONFIG_LIBS_PRIV="
  23113. Libs.private:"
  23114. ENABLE_SHARED_TRUE=
  23115. ENABLE_SHARED_FALSE="#"
  23116. else
  23117. PKGCONFIG_LIBS_PRIV=
  23118. ENABLE_SHARED_TRUE="#"
  23119. ENABLE_SHARED_FALSE=
  23120. fi
  23121. if test x$enable_static = xyes; then
  23122. ENABLE_STATIC_TRUE=
  23123. ENABLE_STATIC_FALSE="#"
  23124. else
  23125. ENABLE_STATIC_TRUE="#"
  23126. ENABLE_STATIC_FALSE=
  23127. fi
  23128. cat >Makefile.rules <<__EOF__
  23129. # Build rules for objects
  23130. -include \$(OBJECTS:.lo=.d)
  23131. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23132. $srcdir/src/SDL.c: update-revision
  23133. $DEPENDS
  23134. $VERSION_DEPENDS
  23135. $SDLMAIN_DEPENDS
  23136. $SDLTEST_DEPENDS
  23137. $WAYLAND_PROTOCOLS_DEPENDS
  23138. __EOF__
  23139. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23140. ac_config_commands="$ac_config_commands sdl2_config"
  23141. SUMMARY="SDL2 Configure Summary:\n"
  23142. if test x$enable_shared = xyes; then
  23143. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23144. fi
  23145. if test x$enable_static = xyes; then
  23146. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23147. fi
  23148. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23149. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23150. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23151. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23152. if test x$have_x = xyes; then
  23153. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23154. fi
  23155. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23156. if test x$have_joystick_virtual = xyes; then
  23157. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23158. else
  23159. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23160. fi
  23161. if test x$have_samplerate_h_hdr = xyes; then
  23162. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23163. else
  23164. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23165. fi
  23166. if test x$have_libudev_h_hdr = xyes; then
  23167. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23168. else
  23169. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23170. fi
  23171. if test x$have_dbus_dbus_h_hdr = xyes; then
  23172. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23173. else
  23174. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23175. fi
  23176. if test x$enable_ime = xyes; then
  23177. SUMMARY="${SUMMARY}Using ime : YES\n"
  23178. else
  23179. SUMMARY="${SUMMARY}Using ime : NO\n"
  23180. fi
  23181. if test x$have_ibus_ibus_h_hdr = xyes; then
  23182. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23183. else
  23184. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23185. fi
  23186. if test x$have_fcitx = xyes; then
  23187. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23188. else
  23189. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23190. fi
  23191. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23192. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23193. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23194. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23195. SUMMARY="${SUMMARY}configure script with:\n"
  23196. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23197. fi
  23198. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23199. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23200. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23201. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23202. SUMMARY="${SUMMARY}configure script with:\n"
  23203. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23204. fi
  23205. ac_config_commands="$ac_config_commands summary"
  23206. cat >confcache <<\_ACEOF
  23207. # This file is a shell script that caches the results of configure
  23208. # tests run on this system so they can be shared between configure
  23209. # scripts and configure runs, see configure's option --config-cache.
  23210. # It is not useful on other systems. If it contains results you don't
  23211. # want to keep, you may remove or edit it.
  23212. #
  23213. # config.status only pays attention to the cache file if you give it
  23214. # the --recheck option to rerun configure.
  23215. #
  23216. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23217. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23218. # following values.
  23219. _ACEOF
  23220. # The following way of writing the cache mishandles newlines in values,
  23221. # but we know of no workaround that is simple, portable, and efficient.
  23222. # So, we kill variables containing newlines.
  23223. # Ultrix sh set writes to stderr and can't be redirected directly,
  23224. # and sets the high bit in the cache file unless we assign to the vars.
  23225. (
  23226. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23227. eval ac_val=\$$ac_var
  23228. case $ac_val in #(
  23229. *${as_nl}*)
  23230. case $ac_var in #(
  23231. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23232. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23233. esac
  23234. case $ac_var in #(
  23235. _ | IFS | as_nl) ;; #(
  23236. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23237. *) { eval $ac_var=; unset $ac_var;} ;;
  23238. esac ;;
  23239. esac
  23240. done
  23241. (set) 2>&1 |
  23242. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23243. *${as_nl}ac_space=\ *)
  23244. # `set' does not quote correctly, so add quotes: double-quote
  23245. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23246. sed -n \
  23247. "s/'/'\\\\''/g;
  23248. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23249. ;; #(
  23250. *)
  23251. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23252. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23253. ;;
  23254. esac |
  23255. sort
  23256. ) |
  23257. sed '
  23258. /^ac_cv_env_/b end
  23259. t clear
  23260. :clear
  23261. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23262. t end
  23263. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23264. :end' >>confcache
  23265. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23266. if test -w "$cache_file"; then
  23267. if test "x$cache_file" != "x/dev/null"; then
  23268. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23269. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23270. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23271. cat confcache >"$cache_file"
  23272. else
  23273. case $cache_file in #(
  23274. */* | ?:*)
  23275. mv -f confcache "$cache_file"$$ &&
  23276. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23277. *)
  23278. mv -f confcache "$cache_file" ;;
  23279. esac
  23280. fi
  23281. fi
  23282. else
  23283. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23284. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23285. fi
  23286. fi
  23287. rm -f confcache
  23288. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23289. # Let make expand exec_prefix.
  23290. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23291. DEFS=-DHAVE_CONFIG_H
  23292. ac_libobjs=
  23293. ac_ltlibobjs=
  23294. U=
  23295. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23296. # 1. Remove the extension, and $U if already installed.
  23297. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23298. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23299. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23300. # will be set to the directory where LIBOBJS objects are built.
  23301. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23302. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23303. done
  23304. LIBOBJS=$ac_libobjs
  23305. LTLIBOBJS=$ac_ltlibobjs
  23306. : "${CONFIG_STATUS=./config.status}"
  23307. ac_write_fail=0
  23308. ac_clean_files_save=$ac_clean_files
  23309. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23310. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23311. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23312. as_write_fail=0
  23313. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23314. #! $SHELL
  23315. # Generated by $as_me.
  23316. # Run this file to recreate the current configuration.
  23317. # Compiler output produced by configure, useful for debugging
  23318. # configure, is in config.log if it exists.
  23319. debug=false
  23320. ac_cs_recheck=false
  23321. ac_cs_silent=false
  23322. SHELL=\${CONFIG_SHELL-$SHELL}
  23323. export SHELL
  23324. _ASEOF
  23325. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23326. ## -------------------- ##
  23327. ## M4sh Initialization. ##
  23328. ## -------------------- ##
  23329. # Be more Bourne compatible
  23330. DUALCASE=1; export DUALCASE # for MKS sh
  23331. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23332. emulate sh
  23333. NULLCMD=:
  23334. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23335. # is contrary to our usage. Disable this feature.
  23336. alias -g '${1+"$@"}'='"$@"'
  23337. setopt NO_GLOB_SUBST
  23338. else
  23339. case `(set -o) 2>/dev/null` in #(
  23340. *posix*) :
  23341. set -o posix ;; #(
  23342. *) :
  23343. ;;
  23344. esac
  23345. fi
  23346. as_nl='
  23347. '
  23348. export as_nl
  23349. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23350. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23351. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23352. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23353. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23354. # but without wasting forks for bash or zsh.
  23355. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23356. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23357. as_echo='print -r --'
  23358. as_echo_n='print -rn --'
  23359. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23360. as_echo='printf %s\n'
  23361. as_echo_n='printf %s'
  23362. else
  23363. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23364. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23365. as_echo_n='/usr/ucb/echo -n'
  23366. else
  23367. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23368. as_echo_n_body='eval
  23369. arg=$1;
  23370. case $arg in #(
  23371. *"$as_nl"*)
  23372. expr "X$arg" : "X\\(.*\\)$as_nl";
  23373. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23374. esac;
  23375. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23376. '
  23377. export as_echo_n_body
  23378. as_echo_n='sh -c $as_echo_n_body as_echo'
  23379. fi
  23380. export as_echo_body
  23381. as_echo='sh -c $as_echo_body as_echo'
  23382. fi
  23383. # The user is always right.
  23384. if test "${PATH_SEPARATOR+set}" != set; then
  23385. PATH_SEPARATOR=:
  23386. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23387. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23388. PATH_SEPARATOR=';'
  23389. }
  23390. fi
  23391. # IFS
  23392. # We need space, tab and new line, in precisely that order. Quoting is
  23393. # there to prevent editors from complaining about space-tab.
  23394. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23395. # splitting by setting IFS to empty value.)
  23396. IFS=" "" $as_nl"
  23397. # Find who we are. Look in the path if we contain no directory separator.
  23398. as_myself=
  23399. case $0 in #((
  23400. *[\\/]* ) as_myself=$0 ;;
  23401. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23402. for as_dir in $PATH
  23403. do
  23404. IFS=$as_save_IFS
  23405. test -z "$as_dir" && as_dir=.
  23406. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23407. done
  23408. IFS=$as_save_IFS
  23409. ;;
  23410. esac
  23411. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23412. # in which case we are not to be found in the path.
  23413. if test "x$as_myself" = x; then
  23414. as_myself=$0
  23415. fi
  23416. if test ! -f "$as_myself"; then
  23417. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23418. exit 1
  23419. fi
  23420. # Unset variables that we do not need and which cause bugs (e.g. in
  23421. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23422. # suppresses any "Segmentation fault" message there. '((' could
  23423. # trigger a bug in pdksh 5.2.14.
  23424. for as_var in BASH_ENV ENV MAIL MAILPATH
  23425. do eval test x\${$as_var+set} = xset \
  23426. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23427. done
  23428. PS1='$ '
  23429. PS2='> '
  23430. PS4='+ '
  23431. # NLS nuisances.
  23432. LC_ALL=C
  23433. export LC_ALL
  23434. LANGUAGE=C
  23435. export LANGUAGE
  23436. # CDPATH.
  23437. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23438. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23439. # ----------------------------------------
  23440. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23441. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23442. # script with STATUS, using 1 if that was 0.
  23443. as_fn_error ()
  23444. {
  23445. as_status=$1; test $as_status -eq 0 && as_status=1
  23446. if test "$4"; then
  23447. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23448. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23449. fi
  23450. $as_echo "$as_me: error: $2" >&2
  23451. as_fn_exit $as_status
  23452. } # as_fn_error
  23453. # as_fn_set_status STATUS
  23454. # -----------------------
  23455. # Set $? to STATUS, without forking.
  23456. as_fn_set_status ()
  23457. {
  23458. return $1
  23459. } # as_fn_set_status
  23460. # as_fn_exit STATUS
  23461. # -----------------
  23462. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23463. as_fn_exit ()
  23464. {
  23465. set +e
  23466. as_fn_set_status $1
  23467. exit $1
  23468. } # as_fn_exit
  23469. # as_fn_unset VAR
  23470. # ---------------
  23471. # Portably unset VAR.
  23472. as_fn_unset ()
  23473. {
  23474. { eval $1=; unset $1;}
  23475. }
  23476. as_unset=as_fn_unset
  23477. # as_fn_append VAR VALUE
  23478. # ----------------------
  23479. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23480. # advantage of any shell optimizations that allow amortized linear growth over
  23481. # repeated appends, instead of the typical quadratic growth present in naive
  23482. # implementations.
  23483. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23484. eval 'as_fn_append ()
  23485. {
  23486. eval $1+=\$2
  23487. }'
  23488. else
  23489. as_fn_append ()
  23490. {
  23491. eval $1=\$$1\$2
  23492. }
  23493. fi # as_fn_append
  23494. # as_fn_arith ARG...
  23495. # ------------------
  23496. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23497. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23498. # must be portable across $(()) and expr.
  23499. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23500. eval 'as_fn_arith ()
  23501. {
  23502. as_val=$(( $* ))
  23503. }'
  23504. else
  23505. as_fn_arith ()
  23506. {
  23507. as_val=`expr "$@" || test $? -eq 1`
  23508. }
  23509. fi # as_fn_arith
  23510. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23511. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23512. as_expr=expr
  23513. else
  23514. as_expr=false
  23515. fi
  23516. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23517. as_basename=basename
  23518. else
  23519. as_basename=false
  23520. fi
  23521. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23522. as_dirname=dirname
  23523. else
  23524. as_dirname=false
  23525. fi
  23526. as_me=`$as_basename -- "$0" ||
  23527. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23528. X"$0" : 'X\(//\)$' \| \
  23529. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23530. $as_echo X/"$0" |
  23531. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23532. s//\1/
  23533. q
  23534. }
  23535. /^X\/\(\/\/\)$/{
  23536. s//\1/
  23537. q
  23538. }
  23539. /^X\/\(\/\).*/{
  23540. s//\1/
  23541. q
  23542. }
  23543. s/.*/./; q'`
  23544. # Avoid depending upon Character Ranges.
  23545. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23546. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23547. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23548. as_cr_digits='0123456789'
  23549. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23550. ECHO_C= ECHO_N= ECHO_T=
  23551. case `echo -n x` in #(((((
  23552. -n*)
  23553. case `echo 'xy\c'` in
  23554. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23555. xy) ECHO_C='\c';;
  23556. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23557. ECHO_T=' ';;
  23558. esac;;
  23559. *)
  23560. ECHO_N='-n';;
  23561. esac
  23562. rm -f conf$$ conf$$.exe conf$$.file
  23563. if test -d conf$$.dir; then
  23564. rm -f conf$$.dir/conf$$.file
  23565. else
  23566. rm -f conf$$.dir
  23567. mkdir conf$$.dir 2>/dev/null
  23568. fi
  23569. if (echo >conf$$.file) 2>/dev/null; then
  23570. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23571. as_ln_s='ln -s'
  23572. # ... but there are two gotchas:
  23573. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23574. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23575. # In both cases, we have to default to `cp -pR'.
  23576. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23577. as_ln_s='cp -pR'
  23578. elif ln conf$$.file conf$$ 2>/dev/null; then
  23579. as_ln_s=ln
  23580. else
  23581. as_ln_s='cp -pR'
  23582. fi
  23583. else
  23584. as_ln_s='cp -pR'
  23585. fi
  23586. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23587. rmdir conf$$.dir 2>/dev/null
  23588. # as_fn_mkdir_p
  23589. # -------------
  23590. # Create "$as_dir" as a directory, including parents if necessary.
  23591. as_fn_mkdir_p ()
  23592. {
  23593. case $as_dir in #(
  23594. -*) as_dir=./$as_dir;;
  23595. esac
  23596. test -d "$as_dir" || eval $as_mkdir_p || {
  23597. as_dirs=
  23598. while :; do
  23599. case $as_dir in #(
  23600. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23601. *) as_qdir=$as_dir;;
  23602. esac
  23603. as_dirs="'$as_qdir' $as_dirs"
  23604. as_dir=`$as_dirname -- "$as_dir" ||
  23605. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23606. X"$as_dir" : 'X\(//\)[^/]' \| \
  23607. X"$as_dir" : 'X\(//\)$' \| \
  23608. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23609. $as_echo X"$as_dir" |
  23610. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23611. s//\1/
  23612. q
  23613. }
  23614. /^X\(\/\/\)[^/].*/{
  23615. s//\1/
  23616. q
  23617. }
  23618. /^X\(\/\/\)$/{
  23619. s//\1/
  23620. q
  23621. }
  23622. /^X\(\/\).*/{
  23623. s//\1/
  23624. q
  23625. }
  23626. s/.*/./; q'`
  23627. test -d "$as_dir" && break
  23628. done
  23629. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23630. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23631. } # as_fn_mkdir_p
  23632. if mkdir -p . 2>/dev/null; then
  23633. as_mkdir_p='mkdir -p "$as_dir"'
  23634. else
  23635. test -d ./-p && rmdir ./-p
  23636. as_mkdir_p=false
  23637. fi
  23638. # as_fn_executable_p FILE
  23639. # -----------------------
  23640. # Test if FILE is an executable regular file.
  23641. as_fn_executable_p ()
  23642. {
  23643. test -f "$1" && test -x "$1"
  23644. } # as_fn_executable_p
  23645. as_test_x='test -x'
  23646. as_executable_p=as_fn_executable_p
  23647. # Sed expression to map a string onto a valid CPP name.
  23648. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23649. # Sed expression to map a string onto a valid variable name.
  23650. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23651. exec 6>&1
  23652. ## ----------------------------------- ##
  23653. ## Main body of $CONFIG_STATUS script. ##
  23654. ## ----------------------------------- ##
  23655. _ASEOF
  23656. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23657. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23658. # Save the log message, to keep $0 and so on meaningful, and to
  23659. # report actual input values of CONFIG_FILES etc. instead of their
  23660. # values after options handling.
  23661. ac_log="
  23662. This file was extended by $as_me, which was
  23663. generated by GNU Autoconf 2.69. Invocation command line was
  23664. CONFIG_FILES = $CONFIG_FILES
  23665. CONFIG_HEADERS = $CONFIG_HEADERS
  23666. CONFIG_LINKS = $CONFIG_LINKS
  23667. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23668. $ $0 $@
  23669. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23670. "
  23671. _ACEOF
  23672. case $ac_config_files in *"
  23673. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23674. esac
  23675. case $ac_config_headers in *"
  23676. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23677. esac
  23678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23679. # Files that config.status was made for.
  23680. config_files="$ac_config_files"
  23681. config_headers="$ac_config_headers"
  23682. config_commands="$ac_config_commands"
  23683. _ACEOF
  23684. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23685. ac_cs_usage="\
  23686. \`$as_me' instantiates files and other configuration actions
  23687. from templates according to the current configuration. Unless the files
  23688. and actions are specified as TAGs, all are instantiated by default.
  23689. Usage: $0 [OPTION]... [TAG]...
  23690. -h, --help print this help, then exit
  23691. -V, --version print version number and configuration settings, then exit
  23692. --config print configuration, then exit
  23693. -q, --quiet, --silent
  23694. do not print progress messages
  23695. -d, --debug don't remove temporary files
  23696. --recheck update $as_me by reconfiguring in the same conditions
  23697. --file=FILE[:TEMPLATE]
  23698. instantiate the configuration file FILE
  23699. --header=FILE[:TEMPLATE]
  23700. instantiate the configuration header FILE
  23701. Configuration files:
  23702. $config_files
  23703. Configuration headers:
  23704. $config_headers
  23705. Configuration commands:
  23706. $config_commands
  23707. Report bugs to the package provider."
  23708. _ACEOF
  23709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23710. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23711. ac_cs_version="\\
  23712. config.status
  23713. configured by $0, generated by GNU Autoconf 2.69,
  23714. with options \\"\$ac_cs_config\\"
  23715. Copyright (C) 2012 Free Software Foundation, Inc.
  23716. This config.status script is free software; the Free Software Foundation
  23717. gives unlimited permission to copy, distribute and modify it."
  23718. ac_pwd='$ac_pwd'
  23719. srcdir='$srcdir'
  23720. INSTALL='$INSTALL'
  23721. AWK='$AWK'
  23722. test -n "\$AWK" || AWK=awk
  23723. _ACEOF
  23724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23725. # The default lists apply if the user does not specify any file.
  23726. ac_need_defaults=:
  23727. while test $# != 0
  23728. do
  23729. case $1 in
  23730. --*=?*)
  23731. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23732. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23733. ac_shift=:
  23734. ;;
  23735. --*=)
  23736. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23737. ac_optarg=
  23738. ac_shift=:
  23739. ;;
  23740. *)
  23741. ac_option=$1
  23742. ac_optarg=$2
  23743. ac_shift=shift
  23744. ;;
  23745. esac
  23746. case $ac_option in
  23747. # Handling of the options.
  23748. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23749. ac_cs_recheck=: ;;
  23750. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23751. $as_echo "$ac_cs_version"; exit ;;
  23752. --config | --confi | --conf | --con | --co | --c )
  23753. $as_echo "$ac_cs_config"; exit ;;
  23754. --debug | --debu | --deb | --de | --d | -d )
  23755. debug=: ;;
  23756. --file | --fil | --fi | --f )
  23757. $ac_shift
  23758. case $ac_optarg in
  23759. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23760. '') as_fn_error $? "missing file argument" ;;
  23761. esac
  23762. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23763. ac_need_defaults=false;;
  23764. --header | --heade | --head | --hea )
  23765. $ac_shift
  23766. case $ac_optarg in
  23767. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23768. esac
  23769. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23770. ac_need_defaults=false;;
  23771. --he | --h)
  23772. # Conflict between --help and --header
  23773. as_fn_error $? "ambiguous option: \`$1'
  23774. Try \`$0 --help' for more information.";;
  23775. --help | --hel | -h )
  23776. $as_echo "$ac_cs_usage"; exit ;;
  23777. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23778. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23779. ac_cs_silent=: ;;
  23780. # This is an error.
  23781. -*) as_fn_error $? "unrecognized option: \`$1'
  23782. Try \`$0 --help' for more information." ;;
  23783. *) as_fn_append ac_config_targets " $1"
  23784. ac_need_defaults=false ;;
  23785. esac
  23786. shift
  23787. done
  23788. ac_configure_extra_args=
  23789. if $ac_cs_silent; then
  23790. exec 6>/dev/null
  23791. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23792. fi
  23793. _ACEOF
  23794. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23795. if \$ac_cs_recheck; then
  23796. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23797. shift
  23798. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23799. CONFIG_SHELL='$SHELL'
  23800. export CONFIG_SHELL
  23801. exec "\$@"
  23802. fi
  23803. _ACEOF
  23804. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23805. exec 5>>config.log
  23806. {
  23807. echo
  23808. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23809. ## Running $as_me. ##
  23810. _ASBOX
  23811. $as_echo "$ac_log"
  23812. } >&5
  23813. _ACEOF
  23814. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23815. #
  23816. # INIT-COMMANDS
  23817. #
  23818. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23819. # if CDPATH is set.
  23820. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23821. sed_quote_subst='$sed_quote_subst'
  23822. double_quote_subst='$double_quote_subst'
  23823. delay_variable_subst='$delay_variable_subst'
  23824. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23825. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23826. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23827. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23828. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23829. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23830. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23831. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23832. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23833. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23834. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23835. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23836. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23837. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23838. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23839. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23840. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23841. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23842. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23843. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23844. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23845. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23846. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23847. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23848. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23849. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23850. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23851. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23852. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23853. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23854. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23855. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23856. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23857. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23858. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23859. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23860. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23861. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23862. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23863. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23864. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23865. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23866. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23867. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23868. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23869. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23870. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23871. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23872. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23873. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23874. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23875. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23876. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23877. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23878. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23879. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23880. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23881. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23882. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23883. 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"`'
  23884. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23885. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23886. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23887. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23888. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23889. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23890. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23891. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23892. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23893. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23894. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23895. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23896. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23897. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23898. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23899. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23900. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23901. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23902. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23903. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23904. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23905. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23906. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23907. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23908. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23909. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23910. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23911. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23912. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23913. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23914. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23915. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23916. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23917. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23918. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23919. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23920. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23921. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23922. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23923. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23924. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23925. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23926. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23927. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23928. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23929. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23930. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23931. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23932. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23933. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23934. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23935. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23936. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23937. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23938. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23939. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23940. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23941. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23942. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23943. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23944. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23945. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23946. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23947. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23948. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23949. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23950. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23951. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23952. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  23953. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  23954. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23955. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23956. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23957. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23958. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23959. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23960. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23961. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23962. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23963. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23964. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23965. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23966. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23967. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23968. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23969. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23970. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23971. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23972. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23973. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23974. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23975. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23976. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23977. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23978. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23979. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23980. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23981. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23982. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23983. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23984. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23985. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23986. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23987. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23988. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23989. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23990. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23991. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23992. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23993. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23994. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23995. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23996. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23997. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23998. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23999. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24000. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24001. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24002. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24003. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24004. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24005. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24006. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24007. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24008. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24009. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24010. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24011. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24012. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24013. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24014. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24015. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24016. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24017. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24018. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24019. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24020. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24021. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24022. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24023. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24024. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24025. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24026. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24027. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24028. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24029. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24030. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24031. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24032. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24033. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24034. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24035. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24036. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24037. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24038. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24039. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24040. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24041. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24042. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24043. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24044. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24045. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24046. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24047. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24048. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24049. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24050. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24051. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24052. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24053. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24054. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24055. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24056. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24057. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24058. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24059. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24060. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24061. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24062. LTCC='$LTCC'
  24063. LTCFLAGS='$LTCFLAGS'
  24064. compiler='$compiler_DEFAULT'
  24065. # A function that is used when there is no print builtin or printf.
  24066. func_fallback_echo ()
  24067. {
  24068. eval 'cat <<_LTECHO_EOF
  24069. \$1
  24070. _LTECHO_EOF'
  24071. }
  24072. # Quote evaled strings.
  24073. for var in AS \
  24074. DLLTOOL \
  24075. OBJDUMP \
  24076. SHELL \
  24077. ECHO \
  24078. PATH_SEPARATOR \
  24079. SED \
  24080. GREP \
  24081. EGREP \
  24082. FGREP \
  24083. LD \
  24084. NM \
  24085. LN_S \
  24086. lt_SP2NL \
  24087. lt_NL2SP \
  24088. reload_flag \
  24089. deplibs_check_method \
  24090. file_magic_cmd \
  24091. file_magic_glob \
  24092. want_nocaseglob \
  24093. sharedlib_from_linklib_cmd \
  24094. AR \
  24095. AR_FLAGS \
  24096. archiver_list_spec \
  24097. STRIP \
  24098. RANLIB \
  24099. CC \
  24100. CFLAGS \
  24101. compiler \
  24102. lt_cv_sys_global_symbol_pipe \
  24103. lt_cv_sys_global_symbol_to_cdecl \
  24104. lt_cv_sys_global_symbol_to_import \
  24105. lt_cv_sys_global_symbol_to_c_name_address \
  24106. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24107. lt_cv_nm_interface \
  24108. nm_file_list_spec \
  24109. lt_cv_truncate_bin \
  24110. lt_prog_compiler_no_builtin_flag \
  24111. lt_prog_compiler_pic \
  24112. lt_prog_compiler_wl \
  24113. lt_prog_compiler_static \
  24114. lt_cv_prog_compiler_c_o \
  24115. need_locks \
  24116. MANIFEST_TOOL \
  24117. DSYMUTIL \
  24118. NMEDIT \
  24119. LIPO \
  24120. OTOOL \
  24121. OTOOL64 \
  24122. shrext_cmds \
  24123. export_dynamic_flag_spec \
  24124. whole_archive_flag_spec \
  24125. compiler_needs_object \
  24126. with_gnu_ld \
  24127. allow_undefined_flag \
  24128. no_undefined_flag \
  24129. hardcode_libdir_flag_spec \
  24130. hardcode_libdir_separator \
  24131. exclude_expsyms \
  24132. include_expsyms \
  24133. file_list_spec \
  24134. variables_saved_for_relink \
  24135. libname_spec \
  24136. library_names_spec \
  24137. soname_spec \
  24138. install_override_mode \
  24139. finish_eval \
  24140. old_striplib \
  24141. striplib \
  24142. compiler_lib_search_dirs \
  24143. predep_objects \
  24144. postdep_objects \
  24145. predeps \
  24146. postdeps \
  24147. compiler_lib_search_path \
  24148. LD_RC \
  24149. LD_CXX \
  24150. reload_flag_RC \
  24151. reload_flag_CXX \
  24152. compiler_RC \
  24153. compiler_CXX \
  24154. lt_prog_compiler_no_builtin_flag_RC \
  24155. lt_prog_compiler_no_builtin_flag_CXX \
  24156. lt_prog_compiler_pic_RC \
  24157. lt_prog_compiler_pic_CXX \
  24158. lt_prog_compiler_wl_RC \
  24159. lt_prog_compiler_wl_CXX \
  24160. lt_prog_compiler_static_RC \
  24161. lt_prog_compiler_static_CXX \
  24162. lt_cv_prog_compiler_c_o_RC \
  24163. lt_cv_prog_compiler_c_o_CXX \
  24164. export_dynamic_flag_spec_RC \
  24165. export_dynamic_flag_spec_CXX \
  24166. whole_archive_flag_spec_RC \
  24167. whole_archive_flag_spec_CXX \
  24168. compiler_needs_object_RC \
  24169. compiler_needs_object_CXX \
  24170. with_gnu_ld_RC \
  24171. with_gnu_ld_CXX \
  24172. allow_undefined_flag_RC \
  24173. allow_undefined_flag_CXX \
  24174. no_undefined_flag_RC \
  24175. no_undefined_flag_CXX \
  24176. hardcode_libdir_flag_spec_RC \
  24177. hardcode_libdir_flag_spec_CXX \
  24178. hardcode_libdir_separator_RC \
  24179. hardcode_libdir_separator_CXX \
  24180. exclude_expsyms_RC \
  24181. exclude_expsyms_CXX \
  24182. include_expsyms_RC \
  24183. include_expsyms_CXX \
  24184. file_list_spec_RC \
  24185. file_list_spec_CXX \
  24186. compiler_lib_search_dirs_RC \
  24187. compiler_lib_search_dirs_CXX \
  24188. predep_objects_RC \
  24189. predep_objects_CXX \
  24190. postdep_objects_RC \
  24191. postdep_objects_CXX \
  24192. predeps_RC \
  24193. predeps_CXX \
  24194. postdeps_RC \
  24195. postdeps_CXX \
  24196. compiler_lib_search_path_RC \
  24197. compiler_lib_search_path_CXX; do
  24198. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24199. *[\\\\\\\`\\"\\\$]*)
  24200. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24201. ;;
  24202. *)
  24203. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24204. ;;
  24205. esac
  24206. done
  24207. # Double-quote double-evaled strings.
  24208. for var in reload_cmds \
  24209. old_postinstall_cmds \
  24210. old_postuninstall_cmds \
  24211. old_archive_cmds \
  24212. extract_expsyms_cmds \
  24213. old_archive_from_new_cmds \
  24214. old_archive_from_expsyms_cmds \
  24215. archive_cmds \
  24216. archive_expsym_cmds \
  24217. module_cmds \
  24218. module_expsym_cmds \
  24219. export_symbols_cmds \
  24220. prelink_cmds \
  24221. postlink_cmds \
  24222. postinstall_cmds \
  24223. postuninstall_cmds \
  24224. finish_cmds \
  24225. sys_lib_search_path_spec \
  24226. configure_time_dlsearch_path \
  24227. configure_time_lt_sys_library_path \
  24228. reload_cmds_RC \
  24229. reload_cmds_CXX \
  24230. old_archive_cmds_RC \
  24231. old_archive_cmds_CXX \
  24232. old_archive_from_new_cmds_RC \
  24233. old_archive_from_new_cmds_CXX \
  24234. old_archive_from_expsyms_cmds_RC \
  24235. old_archive_from_expsyms_cmds_CXX \
  24236. archive_cmds_RC \
  24237. archive_cmds_CXX \
  24238. archive_expsym_cmds_RC \
  24239. archive_expsym_cmds_CXX \
  24240. module_cmds_RC \
  24241. module_cmds_CXX \
  24242. module_expsym_cmds_RC \
  24243. module_expsym_cmds_CXX \
  24244. export_symbols_cmds_RC \
  24245. export_symbols_cmds_CXX \
  24246. prelink_cmds_RC \
  24247. prelink_cmds_CXX \
  24248. postlink_cmds_RC \
  24249. postlink_cmds_CXX; do
  24250. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24251. *[\\\\\\\`\\"\\\$]*)
  24252. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24253. ;;
  24254. *)
  24255. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24256. ;;
  24257. esac
  24258. done
  24259. ac_aux_dir='$ac_aux_dir'
  24260. # See if we are running on zsh, and set the options that allow our
  24261. # commands through without removal of \ escapes INIT.
  24262. if test -n "\${ZSH_VERSION+set}"; then
  24263. setopt NO_GLOB_SUBST
  24264. fi
  24265. PACKAGE='$PACKAGE'
  24266. VERSION='$VERSION'
  24267. RM='$RM'
  24268. ofile='$ofile'
  24269. SUMMARY="$SUMMARY"
  24270. _ACEOF
  24271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24272. # Handling of arguments.
  24273. for ac_config_target in $ac_config_targets
  24274. do
  24275. case $ac_config_target in
  24276. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24277. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24278. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24279. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24280. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24281. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24282. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24283. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24284. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24285. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24286. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24287. esac
  24288. done
  24289. # If the user did not use the arguments to specify the items to instantiate,
  24290. # then the envvar interface is used. Set only those that are not.
  24291. # We use the long form for the default assignment because of an extremely
  24292. # bizarre bug on SunOS 4.1.3.
  24293. if $ac_need_defaults; then
  24294. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24295. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24296. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24297. fi
  24298. # Have a temporary directory for convenience. Make it in the build tree
  24299. # simply because there is no reason against having it here, and in addition,
  24300. # creating and moving files from /tmp can sometimes cause problems.
  24301. # Hook for its removal unless debugging.
  24302. # Note that there is a small window in which the directory will not be cleaned:
  24303. # after its creation but before its name has been assigned to `$tmp'.
  24304. $debug ||
  24305. {
  24306. tmp= ac_tmp=
  24307. trap 'exit_status=$?
  24308. : "${ac_tmp:=$tmp}"
  24309. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24310. ' 0
  24311. trap 'as_fn_exit 1' 1 2 13 15
  24312. }
  24313. # Create a (secure) tmp directory for tmp files.
  24314. {
  24315. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24316. test -d "$tmp"
  24317. } ||
  24318. {
  24319. tmp=./conf$$-$RANDOM
  24320. (umask 077 && mkdir "$tmp")
  24321. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24322. ac_tmp=$tmp
  24323. # Set up the scripts for CONFIG_FILES section.
  24324. # No need to generate them if there are no CONFIG_FILES.
  24325. # This happens for instance with `./config.status config.h'.
  24326. if test -n "$CONFIG_FILES"; then
  24327. ac_cr=`echo X | tr X '\015'`
  24328. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24329. # But we know of no other shell where ac_cr would be empty at this
  24330. # point, so we can use a bashism as a fallback.
  24331. if test "x$ac_cr" = x; then
  24332. eval ac_cr=\$\'\\r\'
  24333. fi
  24334. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24335. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24336. ac_cs_awk_cr='\\r'
  24337. else
  24338. ac_cs_awk_cr=$ac_cr
  24339. fi
  24340. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24341. _ACEOF
  24342. {
  24343. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24344. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24345. echo "_ACEOF"
  24346. } >conf$$subs.sh ||
  24347. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24348. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24349. ac_delim='%!_!# '
  24350. for ac_last_try in false false false false false :; do
  24351. . ./conf$$subs.sh ||
  24352. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24353. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24354. if test $ac_delim_n = $ac_delim_num; then
  24355. break
  24356. elif $ac_last_try; then
  24357. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24358. else
  24359. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24360. fi
  24361. done
  24362. rm -f conf$$subs.sh
  24363. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24364. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24365. _ACEOF
  24366. sed -n '
  24367. h
  24368. s/^/S["/; s/!.*/"]=/
  24369. p
  24370. g
  24371. s/^[^!]*!//
  24372. :repl
  24373. t repl
  24374. s/'"$ac_delim"'$//
  24375. t delim
  24376. :nl
  24377. h
  24378. s/\(.\{148\}\)..*/\1/
  24379. t more1
  24380. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24381. p
  24382. n
  24383. b repl
  24384. :more1
  24385. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24386. p
  24387. g
  24388. s/.\{148\}//
  24389. t nl
  24390. :delim
  24391. h
  24392. s/\(.\{148\}\)..*/\1/
  24393. t more2
  24394. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24395. p
  24396. b
  24397. :more2
  24398. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24399. p
  24400. g
  24401. s/.\{148\}//
  24402. t delim
  24403. ' <conf$$subs.awk | sed '
  24404. /^[^""]/{
  24405. N
  24406. s/\n//
  24407. }
  24408. ' >>$CONFIG_STATUS || ac_write_fail=1
  24409. rm -f conf$$subs.awk
  24410. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24411. _ACAWK
  24412. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24413. for (key in S) S_is_set[key] = 1
  24414. FS = ""
  24415. }
  24416. {
  24417. line = $ 0
  24418. nfields = split(line, field, "@")
  24419. substed = 0
  24420. len = length(field[1])
  24421. for (i = 2; i < nfields; i++) {
  24422. key = field[i]
  24423. keylen = length(key)
  24424. if (S_is_set[key]) {
  24425. value = S[key]
  24426. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24427. len += length(value) + length(field[++i])
  24428. substed = 1
  24429. } else
  24430. len += 1 + keylen
  24431. }
  24432. print line
  24433. }
  24434. _ACAWK
  24435. _ACEOF
  24436. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24437. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24438. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24439. else
  24440. cat
  24441. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24442. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24443. _ACEOF
  24444. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24445. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24446. # trailing colons and then remove the whole line if VPATH becomes empty
  24447. # (actually we leave an empty line to preserve line numbers).
  24448. if test "x$srcdir" = x.; then
  24449. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24450. h
  24451. s///
  24452. s/^/:/
  24453. s/[ ]*$/:/
  24454. s/:\$(srcdir):/:/g
  24455. s/:\${srcdir}:/:/g
  24456. s/:@srcdir@:/:/g
  24457. s/^:*//
  24458. s/:*$//
  24459. x
  24460. s/\(=[ ]*\).*/\1/
  24461. G
  24462. s/\n//
  24463. s/^[^=]*=[ ]*$//
  24464. }'
  24465. fi
  24466. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24467. fi # test -n "$CONFIG_FILES"
  24468. # Set up the scripts for CONFIG_HEADERS section.
  24469. # No need to generate them if there are no CONFIG_HEADERS.
  24470. # This happens for instance with `./config.status Makefile'.
  24471. if test -n "$CONFIG_HEADERS"; then
  24472. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24473. BEGIN {
  24474. _ACEOF
  24475. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24476. # here-document in config.status, that substitutes the proper values into
  24477. # config.h.in to produce config.h.
  24478. # Create a delimiter string that does not exist in confdefs.h, to ease
  24479. # handling of long lines.
  24480. ac_delim='%!_!# '
  24481. for ac_last_try in false false :; do
  24482. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24483. if test -z "$ac_tt"; then
  24484. break
  24485. elif $ac_last_try; then
  24486. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24487. else
  24488. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24489. fi
  24490. done
  24491. # For the awk script, D is an array of macro values keyed by name,
  24492. # likewise P contains macro parameters if any. Preserve backslash
  24493. # newline sequences.
  24494. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24495. sed -n '
  24496. s/.\{148\}/&'"$ac_delim"'/g
  24497. t rset
  24498. :rset
  24499. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24500. t def
  24501. d
  24502. :def
  24503. s/\\$//
  24504. t bsnl
  24505. s/["\\]/\\&/g
  24506. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24507. D["\1"]=" \3"/p
  24508. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24509. d
  24510. :bsnl
  24511. s/["\\]/\\&/g
  24512. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24513. D["\1"]=" \3\\\\\\n"\\/p
  24514. t cont
  24515. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24516. t cont
  24517. d
  24518. :cont
  24519. n
  24520. s/.\{148\}/&'"$ac_delim"'/g
  24521. t clear
  24522. :clear
  24523. s/\\$//
  24524. t bsnlc
  24525. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24526. d
  24527. :bsnlc
  24528. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24529. b cont
  24530. ' <confdefs.h | sed '
  24531. s/'"$ac_delim"'/"\\\
  24532. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24533. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24534. for (key in D) D_is_set[key] = 1
  24535. FS = ""
  24536. }
  24537. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24538. line = \$ 0
  24539. split(line, arg, " ")
  24540. if (arg[1] == "#") {
  24541. defundef = arg[2]
  24542. mac1 = arg[3]
  24543. } else {
  24544. defundef = substr(arg[1], 2)
  24545. mac1 = arg[2]
  24546. }
  24547. split(mac1, mac2, "(") #)
  24548. macro = mac2[1]
  24549. prefix = substr(line, 1, index(line, defundef) - 1)
  24550. if (D_is_set[macro]) {
  24551. # Preserve the white space surrounding the "#".
  24552. print prefix "define", macro P[macro] D[macro]
  24553. next
  24554. } else {
  24555. # Replace #undef with comments. This is necessary, for example,
  24556. # in the case of _POSIX_SOURCE, which is predefined and required
  24557. # on some systems where configure will not decide to define it.
  24558. if (defundef == "undef") {
  24559. print "/*", prefix defundef, macro, "*/"
  24560. next
  24561. }
  24562. }
  24563. }
  24564. { print }
  24565. _ACAWK
  24566. _ACEOF
  24567. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24568. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24569. fi # test -n "$CONFIG_HEADERS"
  24570. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24571. shift
  24572. for ac_tag
  24573. do
  24574. case $ac_tag in
  24575. :[FHLC]) ac_mode=$ac_tag; continue;;
  24576. esac
  24577. case $ac_mode$ac_tag in
  24578. :[FHL]*:*);;
  24579. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24580. :[FH]-) ac_tag=-:-;;
  24581. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24582. esac
  24583. ac_save_IFS=$IFS
  24584. IFS=:
  24585. set x $ac_tag
  24586. IFS=$ac_save_IFS
  24587. shift
  24588. ac_file=$1
  24589. shift
  24590. case $ac_mode in
  24591. :L) ac_source=$1;;
  24592. :[FH])
  24593. ac_file_inputs=
  24594. for ac_f
  24595. do
  24596. case $ac_f in
  24597. -) ac_f="$ac_tmp/stdin";;
  24598. *) # Look for the file first in the build tree, then in the source tree
  24599. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24600. # because $ac_f cannot contain `:'.
  24601. test -f "$ac_f" ||
  24602. case $ac_f in
  24603. [\\/$]*) false;;
  24604. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24605. esac ||
  24606. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24607. esac
  24608. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24609. as_fn_append ac_file_inputs " '$ac_f'"
  24610. done
  24611. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24612. # use $as_me), people would be surprised to read:
  24613. # /* config.h. Generated by config.status. */
  24614. configure_input='Generated from '`
  24615. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24616. `' by configure.'
  24617. if test x"$ac_file" != x-; then
  24618. configure_input="$ac_file. $configure_input"
  24619. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24620. $as_echo "$as_me: creating $ac_file" >&6;}
  24621. fi
  24622. # Neutralize special characters interpreted by sed in replacement strings.
  24623. case $configure_input in #(
  24624. *\&* | *\|* | *\\* )
  24625. ac_sed_conf_input=`$as_echo "$configure_input" |
  24626. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24627. *) ac_sed_conf_input=$configure_input;;
  24628. esac
  24629. case $ac_tag in
  24630. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24631. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24632. esac
  24633. ;;
  24634. esac
  24635. ac_dir=`$as_dirname -- "$ac_file" ||
  24636. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24637. X"$ac_file" : 'X\(//\)[^/]' \| \
  24638. X"$ac_file" : 'X\(//\)$' \| \
  24639. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24640. $as_echo X"$ac_file" |
  24641. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24642. s//\1/
  24643. q
  24644. }
  24645. /^X\(\/\/\)[^/].*/{
  24646. s//\1/
  24647. q
  24648. }
  24649. /^X\(\/\/\)$/{
  24650. s//\1/
  24651. q
  24652. }
  24653. /^X\(\/\).*/{
  24654. s//\1/
  24655. q
  24656. }
  24657. s/.*/./; q'`
  24658. as_dir="$ac_dir"; as_fn_mkdir_p
  24659. ac_builddir=.
  24660. case "$ac_dir" in
  24661. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24662. *)
  24663. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24664. # A ".." for each directory in $ac_dir_suffix.
  24665. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24666. case $ac_top_builddir_sub in
  24667. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24668. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24669. esac ;;
  24670. esac
  24671. ac_abs_top_builddir=$ac_pwd
  24672. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24673. # for backward compatibility:
  24674. ac_top_builddir=$ac_top_build_prefix
  24675. case $srcdir in
  24676. .) # We are building in place.
  24677. ac_srcdir=.
  24678. ac_top_srcdir=$ac_top_builddir_sub
  24679. ac_abs_top_srcdir=$ac_pwd ;;
  24680. [\\/]* | ?:[\\/]* ) # Absolute name.
  24681. ac_srcdir=$srcdir$ac_dir_suffix;
  24682. ac_top_srcdir=$srcdir
  24683. ac_abs_top_srcdir=$srcdir ;;
  24684. *) # Relative name.
  24685. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24686. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24687. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24688. esac
  24689. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24690. case $ac_mode in
  24691. :F)
  24692. #
  24693. # CONFIG_FILE
  24694. #
  24695. case $INSTALL in
  24696. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24697. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24698. esac
  24699. _ACEOF
  24700. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24701. # If the template does not know about datarootdir, expand it.
  24702. # FIXME: This hack should be removed a few years after 2.60.
  24703. ac_datarootdir_hack=; ac_datarootdir_seen=
  24704. ac_sed_dataroot='
  24705. /datarootdir/ {
  24706. p
  24707. q
  24708. }
  24709. /@datadir@/p
  24710. /@docdir@/p
  24711. /@infodir@/p
  24712. /@localedir@/p
  24713. /@mandir@/p'
  24714. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24715. *datarootdir*) ac_datarootdir_seen=yes;;
  24716. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24718. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24719. _ACEOF
  24720. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24721. ac_datarootdir_hack='
  24722. s&@datadir@&$datadir&g
  24723. s&@docdir@&$docdir&g
  24724. s&@infodir@&$infodir&g
  24725. s&@localedir@&$localedir&g
  24726. s&@mandir@&$mandir&g
  24727. s&\\\${datarootdir}&$datarootdir&g' ;;
  24728. esac
  24729. _ACEOF
  24730. # Neutralize VPATH when `$srcdir' = `.'.
  24731. # Shell code in configure.ac might set extrasub.
  24732. # FIXME: do we really want to maintain this feature?
  24733. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24734. ac_sed_extra="$ac_vpsub
  24735. $extrasub
  24736. _ACEOF
  24737. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24738. :t
  24739. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24740. s|@configure_input@|$ac_sed_conf_input|;t t
  24741. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24742. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24743. s&@srcdir@&$ac_srcdir&;t t
  24744. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24745. s&@top_srcdir@&$ac_top_srcdir&;t t
  24746. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24747. s&@builddir@&$ac_builddir&;t t
  24748. s&@abs_builddir@&$ac_abs_builddir&;t t
  24749. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24750. s&@INSTALL@&$ac_INSTALL&;t t
  24751. $ac_datarootdir_hack
  24752. "
  24753. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24754. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24755. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24756. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24757. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24758. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24760. which seems to be undefined. Please make sure it is defined" >&5
  24761. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24762. which seems to be undefined. Please make sure it is defined" >&2;}
  24763. rm -f "$ac_tmp/stdin"
  24764. case $ac_file in
  24765. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24766. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24767. esac \
  24768. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24769. ;;
  24770. :H)
  24771. #
  24772. # CONFIG_HEADER
  24773. #
  24774. if test x"$ac_file" != x-; then
  24775. {
  24776. $as_echo "/* $configure_input */" \
  24777. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24778. } >"$ac_tmp/config.h" \
  24779. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24780. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24781. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24782. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24783. else
  24784. rm -f "$ac_file"
  24785. mv "$ac_tmp/config.h" "$ac_file" \
  24786. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24787. fi
  24788. else
  24789. $as_echo "/* $configure_input */" \
  24790. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24791. || as_fn_error $? "could not create -" "$LINENO" 5
  24792. fi
  24793. ;;
  24794. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24795. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24796. ;;
  24797. esac
  24798. case $ac_file$ac_mode in
  24799. "libtool":C)
  24800. # See if we are running on zsh, and set the options that allow our
  24801. # commands through without removal of \ escapes.
  24802. if test -n "${ZSH_VERSION+set}"; then
  24803. setopt NO_GLOB_SUBST
  24804. fi
  24805. cfgfile=${ofile}T
  24806. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24807. $RM "$cfgfile"
  24808. cat <<_LT_EOF >> "$cfgfile"
  24809. #! $SHELL
  24810. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24811. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24812. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24813. # Provide generalized library-building support services.
  24814. # Written by Gordon Matzigkeit, 1996
  24815. # Copyright (C) 2014 Free Software Foundation, Inc.
  24816. # This is free software; see the source for copying conditions. There is NO
  24817. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24818. # GNU Libtool is free software; you can redistribute it and/or modify
  24819. # it under the terms of the GNU General Public License as published by
  24820. # the Free Software Foundation; either version 2 of of the License, or
  24821. # (at your option) any later version.
  24822. #
  24823. # As a special exception to the GNU General Public License, if you
  24824. # distribute this file as part of a program or library that is built
  24825. # using GNU Libtool, you may include this file under the same
  24826. # distribution terms that you use for the rest of that program.
  24827. #
  24828. # GNU Libtool is distributed in the hope that it will be useful, but
  24829. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24830. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24831. # GNU General Public License for more details.
  24832. #
  24833. # You should have received a copy of the GNU General Public License
  24834. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24835. # The names of the tagged configurations supported by this script.
  24836. available_tags='RC CXX '
  24837. # Configured defaults for sys_lib_dlsearch_path munging.
  24838. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24839. # ### BEGIN LIBTOOL CONFIG
  24840. # Which release of libtool.m4 was used?
  24841. macro_version=$macro_version
  24842. macro_revision=$macro_revision
  24843. # Assembler program.
  24844. AS=$lt_AS
  24845. # DLL creation program.
  24846. DLLTOOL=$lt_DLLTOOL
  24847. # Object dumper program.
  24848. OBJDUMP=$lt_OBJDUMP
  24849. # Whether or not to build shared libraries.
  24850. build_libtool_libs=$enable_shared
  24851. # Whether or not to build static libraries.
  24852. build_old_libs=$enable_static
  24853. # What type of objects to build.
  24854. pic_mode=$pic_mode
  24855. # Whether or not to optimize for fast installation.
  24856. fast_install=$enable_fast_install
  24857. # Shared archive member basename,for filename based shared library versioning on AIX.
  24858. shared_archive_member_spec=$shared_archive_member_spec
  24859. # Shell to use when invoking shell scripts.
  24860. SHELL=$lt_SHELL
  24861. # An echo program that protects backslashes.
  24862. ECHO=$lt_ECHO
  24863. # The PATH separator for the build system.
  24864. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24865. # The host system.
  24866. host_alias=$host_alias
  24867. host=$host
  24868. host_os=$host_os
  24869. # The build system.
  24870. build_alias=$build_alias
  24871. build=$build
  24872. build_os=$build_os
  24873. # A sed program that does not truncate output.
  24874. SED=$lt_SED
  24875. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24876. Xsed="\$SED -e 1s/^X//"
  24877. # A grep program that handles long lines.
  24878. GREP=$lt_GREP
  24879. # An ERE matcher.
  24880. EGREP=$lt_EGREP
  24881. # A literal string matcher.
  24882. FGREP=$lt_FGREP
  24883. # A BSD- or MS-compatible name lister.
  24884. NM=$lt_NM
  24885. # Whether we need soft or hard links.
  24886. LN_S=$lt_LN_S
  24887. # What is the maximum length of a command?
  24888. max_cmd_len=$max_cmd_len
  24889. # Object file suffix (normally "o").
  24890. objext=$ac_objext
  24891. # Executable file suffix (normally "").
  24892. exeext=$exeext
  24893. # whether the shell understands "unset".
  24894. lt_unset=$lt_unset
  24895. # turn spaces into newlines.
  24896. SP2NL=$lt_lt_SP2NL
  24897. # turn newlines into spaces.
  24898. NL2SP=$lt_lt_NL2SP
  24899. # convert \$build file names to \$host format.
  24900. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24901. # convert \$build files to toolchain format.
  24902. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24903. # Method to check whether dependent libraries are shared objects.
  24904. deplibs_check_method=$lt_deplibs_check_method
  24905. # Command to use when deplibs_check_method = "file_magic".
  24906. file_magic_cmd=$lt_file_magic_cmd
  24907. # How to find potential files when deplibs_check_method = "file_magic".
  24908. file_magic_glob=$lt_file_magic_glob
  24909. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24910. want_nocaseglob=$lt_want_nocaseglob
  24911. # Command to associate shared and link libraries.
  24912. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24913. # The archiver.
  24914. AR=$lt_AR
  24915. # Flags to create an archive.
  24916. AR_FLAGS=$lt_AR_FLAGS
  24917. # How to feed a file listing to the archiver.
  24918. archiver_list_spec=$lt_archiver_list_spec
  24919. # A symbol stripping program.
  24920. STRIP=$lt_STRIP
  24921. # Commands used to install an old-style archive.
  24922. RANLIB=$lt_RANLIB
  24923. old_postinstall_cmds=$lt_old_postinstall_cmds
  24924. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24925. # Whether to use a lock for old archive extraction.
  24926. lock_old_archive_extraction=$lock_old_archive_extraction
  24927. # A C compiler.
  24928. LTCC=$lt_CC
  24929. # LTCC compiler flags.
  24930. LTCFLAGS=$lt_CFLAGS
  24931. # Take the output of nm and produce a listing of raw symbols and C names.
  24932. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24933. # Transform the output of nm in a proper C declaration.
  24934. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24935. # Transform the output of nm into a list of symbols to manually relocate.
  24936. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  24937. # Transform the output of nm in a C name address pair.
  24938. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24939. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24940. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24941. # The name lister interface.
  24942. nm_interface=$lt_lt_cv_nm_interface
  24943. # Specify filename containing input files for \$NM.
  24944. nm_file_list_spec=$lt_nm_file_list_spec
  24945. # The root where to search for dependent libraries,and where our libraries should be installed.
  24946. lt_sysroot=$lt_sysroot
  24947. # Command to truncate a binary pipe.
  24948. lt_truncate_bin=$lt_lt_cv_truncate_bin
  24949. # The name of the directory that contains temporary libtool files.
  24950. objdir=$objdir
  24951. # Used to examine libraries when file_magic_cmd begins with "file".
  24952. MAGIC_CMD=$MAGIC_CMD
  24953. # Must we lock files when doing compilation?
  24954. need_locks=$lt_need_locks
  24955. # Manifest tool.
  24956. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24957. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24958. DSYMUTIL=$lt_DSYMUTIL
  24959. # Tool to change global to local symbols on Mac OS X.
  24960. NMEDIT=$lt_NMEDIT
  24961. # Tool to manipulate fat objects and archives on Mac OS X.
  24962. LIPO=$lt_LIPO
  24963. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24964. OTOOL=$lt_OTOOL
  24965. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24966. OTOOL64=$lt_OTOOL64
  24967. # Old archive suffix (normally "a").
  24968. libext=$libext
  24969. # Shared library suffix (normally ".so").
  24970. shrext_cmds=$lt_shrext_cmds
  24971. # The commands to extract the exported symbol list from a shared archive.
  24972. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24973. # Variables whose values should be saved in libtool wrapper scripts and
  24974. # restored at link time.
  24975. variables_saved_for_relink=$lt_variables_saved_for_relink
  24976. # Do we need the "lib" prefix for modules?
  24977. need_lib_prefix=$need_lib_prefix
  24978. # Do we need a version for libraries?
  24979. need_version=$need_version
  24980. # Library versioning type.
  24981. version_type=$version_type
  24982. # Shared library runtime path variable.
  24983. runpath_var=$runpath_var
  24984. # Shared library path variable.
  24985. shlibpath_var=$shlibpath_var
  24986. # Is shlibpath searched before the hard-coded library search path?
  24987. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24988. # Format of library name prefix.
  24989. libname_spec=$lt_libname_spec
  24990. # List of archive names. First name is the real one, the rest are links.
  24991. # The last name is the one that the linker finds with -lNAME
  24992. library_names_spec=$lt_library_names_spec
  24993. # The coded name of the library, if different from the real name.
  24994. soname_spec=$lt_soname_spec
  24995. # Permission mode override for installation of shared libraries.
  24996. install_override_mode=$lt_install_override_mode
  24997. # Command to use after installation of a shared archive.
  24998. postinstall_cmds=$lt_postinstall_cmds
  24999. # Command to use after uninstallation of a shared archive.
  25000. postuninstall_cmds=$lt_postuninstall_cmds
  25001. # Commands used to finish a libtool library installation in a directory.
  25002. finish_cmds=$lt_finish_cmds
  25003. # As "finish_cmds", except a single script fragment to be evaled but
  25004. # not shown.
  25005. finish_eval=$lt_finish_eval
  25006. # Whether we should hardcode library paths into libraries.
  25007. hardcode_into_libs=$hardcode_into_libs
  25008. # Compile-time system search path for libraries.
  25009. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25010. # Detected run-time system search path for libraries.
  25011. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25012. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25013. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25014. # Whether dlopen is supported.
  25015. dlopen_support=$enable_dlopen
  25016. # Whether dlopen of programs is supported.
  25017. dlopen_self=$enable_dlopen_self
  25018. # Whether dlopen of statically linked programs is supported.
  25019. dlopen_self_static=$enable_dlopen_self_static
  25020. # Commands to strip libraries.
  25021. old_striplib=$lt_old_striplib
  25022. striplib=$lt_striplib
  25023. # The linker used to build libraries.
  25024. LD=$lt_LD
  25025. # How to create reloadable object files.
  25026. reload_flag=$lt_reload_flag
  25027. reload_cmds=$lt_reload_cmds
  25028. # Commands used to build an old-style archive.
  25029. old_archive_cmds=$lt_old_archive_cmds
  25030. # A language specific compiler.
  25031. CC=$lt_compiler
  25032. # Is the compiler the GNU compiler?
  25033. with_gcc=$GCC
  25034. # Compiler flag to turn off builtin functions.
  25035. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25036. # Additional compiler flags for building library objects.
  25037. pic_flag=$lt_lt_prog_compiler_pic
  25038. # How to pass a linker flag through the compiler.
  25039. wl=$lt_lt_prog_compiler_wl
  25040. # Compiler flag to prevent dynamic linking.
  25041. link_static_flag=$lt_lt_prog_compiler_static
  25042. # Does compiler simultaneously support -c and -o options?
  25043. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25044. # Whether or not to add -lc for building shared libraries.
  25045. build_libtool_need_lc=$archive_cmds_need_lc
  25046. # Whether or not to disallow shared libs when runtime libs are static.
  25047. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25048. # Compiler flag to allow reflexive dlopens.
  25049. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25050. # Compiler flag to generate shared objects directly from archives.
  25051. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25052. # Whether the compiler copes with passing no objects directly.
  25053. compiler_needs_object=$lt_compiler_needs_object
  25054. # Create an old-style archive from a shared archive.
  25055. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25056. # Create a temporary old-style archive to link instead of a shared archive.
  25057. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25058. # Commands used to build a shared archive.
  25059. archive_cmds=$lt_archive_cmds
  25060. archive_expsym_cmds=$lt_archive_expsym_cmds
  25061. # Commands used to build a loadable module if different from building
  25062. # a shared archive.
  25063. module_cmds=$lt_module_cmds
  25064. module_expsym_cmds=$lt_module_expsym_cmds
  25065. # Whether we are building with GNU ld or not.
  25066. with_gnu_ld=$lt_with_gnu_ld
  25067. # Flag that allows shared libraries with undefined symbols to be built.
  25068. allow_undefined_flag=$lt_allow_undefined_flag
  25069. # Flag that enforces no undefined symbols.
  25070. no_undefined_flag=$lt_no_undefined_flag
  25071. # Flag to hardcode \$libdir into a binary during linking.
  25072. # This must work even if \$libdir does not exist
  25073. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25074. # Whether we need a single "-rpath" flag with a separated argument.
  25075. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25076. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25077. # DIR into the resulting binary.
  25078. hardcode_direct=$hardcode_direct
  25079. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25080. # DIR into the resulting binary and the resulting library dependency is
  25081. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25082. # library is relocated.
  25083. hardcode_direct_absolute=$hardcode_direct_absolute
  25084. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25085. # into the resulting binary.
  25086. hardcode_minus_L=$hardcode_minus_L
  25087. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25088. # into the resulting binary.
  25089. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25090. # Set to "yes" if building a shared library automatically hardcodes DIR
  25091. # into the library and all subsequent libraries and executables linked
  25092. # against it.
  25093. hardcode_automatic=$hardcode_automatic
  25094. # Set to yes if linker adds runtime paths of dependent libraries
  25095. # to runtime path list.
  25096. inherit_rpath=$inherit_rpath
  25097. # Whether libtool must link a program against all its dependency libraries.
  25098. link_all_deplibs=$link_all_deplibs
  25099. # Set to "yes" if exported symbols are required.
  25100. always_export_symbols=$always_export_symbols
  25101. # The commands to list exported symbols.
  25102. export_symbols_cmds=$lt_export_symbols_cmds
  25103. # Symbols that should not be listed in the preloaded symbols.
  25104. exclude_expsyms=$lt_exclude_expsyms
  25105. # Symbols that must always be exported.
  25106. include_expsyms=$lt_include_expsyms
  25107. # Commands necessary for linking programs (against libraries) with templates.
  25108. prelink_cmds=$lt_prelink_cmds
  25109. # Commands necessary for finishing linking programs.
  25110. postlink_cmds=$lt_postlink_cmds
  25111. # Specify filename containing input files.
  25112. file_list_spec=$lt_file_list_spec
  25113. # How to hardcode a shared library path into an executable.
  25114. hardcode_action=$hardcode_action
  25115. # The directories searched by this compiler when creating a shared library.
  25116. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25117. # Dependencies to place before and after the objects being linked to
  25118. # create a shared library.
  25119. predep_objects=$lt_predep_objects
  25120. postdep_objects=$lt_postdep_objects
  25121. predeps=$lt_predeps
  25122. postdeps=$lt_postdeps
  25123. # The library search path used internally by the compiler when linking
  25124. # a shared library.
  25125. compiler_lib_search_path=$lt_compiler_lib_search_path
  25126. # ### END LIBTOOL CONFIG
  25127. _LT_EOF
  25128. cat <<'_LT_EOF' >> "$cfgfile"
  25129. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25130. # func_munge_path_list VARIABLE PATH
  25131. # -----------------------------------
  25132. # VARIABLE is name of variable containing _space_ separated list of
  25133. # directories to be munged by the contents of PATH, which is string
  25134. # having a format:
  25135. # "DIR[:DIR]:"
  25136. # string "DIR[ DIR]" will be prepended to VARIABLE
  25137. # ":DIR[:DIR]"
  25138. # string "DIR[ DIR]" will be appended to VARIABLE
  25139. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25140. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25141. # "DIRA[ DIRA]" will be appended to VARIABLE
  25142. # "DIR[:DIR]"
  25143. # VARIABLE will be replaced by "DIR[ DIR]"
  25144. func_munge_path_list ()
  25145. {
  25146. case x$2 in
  25147. x)
  25148. ;;
  25149. *:)
  25150. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25151. ;;
  25152. x:*)
  25153. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25154. ;;
  25155. *::*)
  25156. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25157. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25158. ;;
  25159. *)
  25160. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25161. ;;
  25162. esac
  25163. }
  25164. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25165. func_cc_basename ()
  25166. {
  25167. for cc_temp in $*""; do
  25168. case $cc_temp in
  25169. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25170. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25171. \-*) ;;
  25172. *) break;;
  25173. esac
  25174. done
  25175. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25176. }
  25177. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25178. _LT_EOF
  25179. case $host_os in
  25180. aix3*)
  25181. cat <<\_LT_EOF >> "$cfgfile"
  25182. # AIX sometimes has problems with the GCC collect2 program. For some
  25183. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25184. # vanish in a puff of smoke.
  25185. if test set != "${COLLECT_NAMES+set}"; then
  25186. COLLECT_NAMES=
  25187. export COLLECT_NAMES
  25188. fi
  25189. _LT_EOF
  25190. ;;
  25191. esac
  25192. ltmain=$ac_aux_dir/ltmain.sh
  25193. # We use sed instead of cat because bash on DJGPP gets confused if
  25194. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25195. # text mode, it properly converts lines to CR/LF. This bash problem
  25196. # is reportedly fixed, but why not run on old versions too?
  25197. sed '$q' "$ltmain" >> "$cfgfile" \
  25198. || (rm -f "$cfgfile"; exit 1)
  25199. mv -f "$cfgfile" "$ofile" ||
  25200. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25201. chmod +x "$ofile"
  25202. cat <<_LT_EOF >> "$ofile"
  25203. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25204. # The linker used to build libraries.
  25205. LD=$lt_LD_RC
  25206. # How to create reloadable object files.
  25207. reload_flag=$lt_reload_flag_RC
  25208. reload_cmds=$lt_reload_cmds_RC
  25209. # Commands used to build an old-style archive.
  25210. old_archive_cmds=$lt_old_archive_cmds_RC
  25211. # A language specific compiler.
  25212. CC=$lt_compiler_RC
  25213. # Is the compiler the GNU compiler?
  25214. with_gcc=$GCC_RC
  25215. # Compiler flag to turn off builtin functions.
  25216. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25217. # Additional compiler flags for building library objects.
  25218. pic_flag=$lt_lt_prog_compiler_pic_RC
  25219. # How to pass a linker flag through the compiler.
  25220. wl=$lt_lt_prog_compiler_wl_RC
  25221. # Compiler flag to prevent dynamic linking.
  25222. link_static_flag=$lt_lt_prog_compiler_static_RC
  25223. # Does compiler simultaneously support -c and -o options?
  25224. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25225. # Whether or not to add -lc for building shared libraries.
  25226. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25227. # Whether or not to disallow shared libs when runtime libs are static.
  25228. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25229. # Compiler flag to allow reflexive dlopens.
  25230. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25231. # Compiler flag to generate shared objects directly from archives.
  25232. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25233. # Whether the compiler copes with passing no objects directly.
  25234. compiler_needs_object=$lt_compiler_needs_object_RC
  25235. # Create an old-style archive from a shared archive.
  25236. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25237. # Create a temporary old-style archive to link instead of a shared archive.
  25238. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25239. # Commands used to build a shared archive.
  25240. archive_cmds=$lt_archive_cmds_RC
  25241. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25242. # Commands used to build a loadable module if different from building
  25243. # a shared archive.
  25244. module_cmds=$lt_module_cmds_RC
  25245. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25246. # Whether we are building with GNU ld or not.
  25247. with_gnu_ld=$lt_with_gnu_ld_RC
  25248. # Flag that allows shared libraries with undefined symbols to be built.
  25249. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25250. # Flag that enforces no undefined symbols.
  25251. no_undefined_flag=$lt_no_undefined_flag_RC
  25252. # Flag to hardcode \$libdir into a binary during linking.
  25253. # This must work even if \$libdir does not exist
  25254. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25255. # Whether we need a single "-rpath" flag with a separated argument.
  25256. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25257. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25258. # DIR into the resulting binary.
  25259. hardcode_direct=$hardcode_direct_RC
  25260. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25261. # DIR into the resulting binary and the resulting library dependency is
  25262. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25263. # library is relocated.
  25264. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25265. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25266. # into the resulting binary.
  25267. hardcode_minus_L=$hardcode_minus_L_RC
  25268. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25269. # into the resulting binary.
  25270. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25271. # Set to "yes" if building a shared library automatically hardcodes DIR
  25272. # into the library and all subsequent libraries and executables linked
  25273. # against it.
  25274. hardcode_automatic=$hardcode_automatic_RC
  25275. # Set to yes if linker adds runtime paths of dependent libraries
  25276. # to runtime path list.
  25277. inherit_rpath=$inherit_rpath_RC
  25278. # Whether libtool must link a program against all its dependency libraries.
  25279. link_all_deplibs=$link_all_deplibs_RC
  25280. # Set to "yes" if exported symbols are required.
  25281. always_export_symbols=$always_export_symbols_RC
  25282. # The commands to list exported symbols.
  25283. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25284. # Symbols that should not be listed in the preloaded symbols.
  25285. exclude_expsyms=$lt_exclude_expsyms_RC
  25286. # Symbols that must always be exported.
  25287. include_expsyms=$lt_include_expsyms_RC
  25288. # Commands necessary for linking programs (against libraries) with templates.
  25289. prelink_cmds=$lt_prelink_cmds_RC
  25290. # Commands necessary for finishing linking programs.
  25291. postlink_cmds=$lt_postlink_cmds_RC
  25292. # Specify filename containing input files.
  25293. file_list_spec=$lt_file_list_spec_RC
  25294. # How to hardcode a shared library path into an executable.
  25295. hardcode_action=$hardcode_action_RC
  25296. # The directories searched by this compiler when creating a shared library.
  25297. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25298. # Dependencies to place before and after the objects being linked to
  25299. # create a shared library.
  25300. predep_objects=$lt_predep_objects_RC
  25301. postdep_objects=$lt_postdep_objects_RC
  25302. predeps=$lt_predeps_RC
  25303. postdeps=$lt_postdeps_RC
  25304. # The library search path used internally by the compiler when linking
  25305. # a shared library.
  25306. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25307. # ### END LIBTOOL TAG CONFIG: RC
  25308. _LT_EOF
  25309. cat <<_LT_EOF >> "$ofile"
  25310. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25311. # The linker used to build libraries.
  25312. LD=$lt_LD_CXX
  25313. # How to create reloadable object files.
  25314. reload_flag=$lt_reload_flag_CXX
  25315. reload_cmds=$lt_reload_cmds_CXX
  25316. # Commands used to build an old-style archive.
  25317. old_archive_cmds=$lt_old_archive_cmds_CXX
  25318. # A language specific compiler.
  25319. CC=$lt_compiler_CXX
  25320. # Is the compiler the GNU compiler?
  25321. with_gcc=$GCC_CXX
  25322. # Compiler flag to turn off builtin functions.
  25323. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25324. # Additional compiler flags for building library objects.
  25325. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25326. # How to pass a linker flag through the compiler.
  25327. wl=$lt_lt_prog_compiler_wl_CXX
  25328. # Compiler flag to prevent dynamic linking.
  25329. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25330. # Does compiler simultaneously support -c and -o options?
  25331. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25332. # Whether or not to add -lc for building shared libraries.
  25333. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25334. # Whether or not to disallow shared libs when runtime libs are static.
  25335. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25336. # Compiler flag to allow reflexive dlopens.
  25337. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25338. # Compiler flag to generate shared objects directly from archives.
  25339. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25340. # Whether the compiler copes with passing no objects directly.
  25341. compiler_needs_object=$lt_compiler_needs_object_CXX
  25342. # Create an old-style archive from a shared archive.
  25343. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25344. # Create a temporary old-style archive to link instead of a shared archive.
  25345. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25346. # Commands used to build a shared archive.
  25347. archive_cmds=$lt_archive_cmds_CXX
  25348. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25349. # Commands used to build a loadable module if different from building
  25350. # a shared archive.
  25351. module_cmds=$lt_module_cmds_CXX
  25352. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25353. # Whether we are building with GNU ld or not.
  25354. with_gnu_ld=$lt_with_gnu_ld_CXX
  25355. # Flag that allows shared libraries with undefined symbols to be built.
  25356. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25357. # Flag that enforces no undefined symbols.
  25358. no_undefined_flag=$lt_no_undefined_flag_CXX
  25359. # Flag to hardcode \$libdir into a binary during linking.
  25360. # This must work even if \$libdir does not exist
  25361. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25362. # Whether we need a single "-rpath" flag with a separated argument.
  25363. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25364. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25365. # DIR into the resulting binary.
  25366. hardcode_direct=$hardcode_direct_CXX
  25367. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25368. # DIR into the resulting binary and the resulting library dependency is
  25369. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25370. # library is relocated.
  25371. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25372. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25373. # into the resulting binary.
  25374. hardcode_minus_L=$hardcode_minus_L_CXX
  25375. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25376. # into the resulting binary.
  25377. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25378. # Set to "yes" if building a shared library automatically hardcodes DIR
  25379. # into the library and all subsequent libraries and executables linked
  25380. # against it.
  25381. hardcode_automatic=$hardcode_automatic_CXX
  25382. # Set to yes if linker adds runtime paths of dependent libraries
  25383. # to runtime path list.
  25384. inherit_rpath=$inherit_rpath_CXX
  25385. # Whether libtool must link a program against all its dependency libraries.
  25386. link_all_deplibs=$link_all_deplibs_CXX
  25387. # Set to "yes" if exported symbols are required.
  25388. always_export_symbols=$always_export_symbols_CXX
  25389. # The commands to list exported symbols.
  25390. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25391. # Symbols that should not be listed in the preloaded symbols.
  25392. exclude_expsyms=$lt_exclude_expsyms_CXX
  25393. # Symbols that must always be exported.
  25394. include_expsyms=$lt_include_expsyms_CXX
  25395. # Commands necessary for linking programs (against libraries) with templates.
  25396. prelink_cmds=$lt_prelink_cmds_CXX
  25397. # Commands necessary for finishing linking programs.
  25398. postlink_cmds=$lt_postlink_cmds_CXX
  25399. # Specify filename containing input files.
  25400. file_list_spec=$lt_file_list_spec_CXX
  25401. # How to hardcode a shared library path into an executable.
  25402. hardcode_action=$hardcode_action_CXX
  25403. # The directories searched by this compiler when creating a shared library.
  25404. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25405. # Dependencies to place before and after the objects being linked to
  25406. # create a shared library.
  25407. predep_objects=$lt_predep_objects_CXX
  25408. postdep_objects=$lt_postdep_objects_CXX
  25409. predeps=$lt_predeps_CXX
  25410. postdeps=$lt_postdeps_CXX
  25411. # The library search path used internally by the compiler when linking
  25412. # a shared library.
  25413. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25414. # ### END LIBTOOL TAG CONFIG: CXX
  25415. _LT_EOF
  25416. ;;
  25417. "sdl2_config":C) chmod a+x sdl2-config ;;
  25418. "summary":C) printf "$SUMMARY" ;;
  25419. esac
  25420. done # for ac_tag
  25421. as_fn_exit 0
  25422. _ACEOF
  25423. ac_clean_files=$ac_clean_files_save
  25424. test $ac_write_fail = 0 ||
  25425. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25426. # configure is writing to config.log, and then calls config.status.
  25427. # config.status does its own redirection, appending to config.log.
  25428. # Unfortunately, on DOS this fails, as config.log is still kept open
  25429. # by configure, so config.status won't be able to write to it; its
  25430. # output is simply discarded. So we exec the FD to /dev/null,
  25431. # effectively closing config.log, so it can be properly (re)opened and
  25432. # appended to by config.status. When coming back to configure, we
  25433. # need to make the FD available again.
  25434. if test "$no_create" != yes; then
  25435. ac_cs_success=:
  25436. ac_config_status_args=
  25437. test "$silent" = yes &&
  25438. ac_config_status_args="$ac_config_status_args --quiet"
  25439. exec 5>/dev/null
  25440. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25441. exec 5>>config.log
  25442. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25443. # would make configure fail if this is the last instruction.
  25444. $ac_cs_success || as_fn_exit 1
  25445. fi
  25446. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25448. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25449. fi