configure 887 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858
  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_misc
  774. enable_locale
  775. enable_loadso
  776. enable_cpuinfo
  777. enable_assembly
  778. enable_ssemath
  779. enable_mmx
  780. enable_3dnow
  781. enable_sse
  782. enable_sse2
  783. enable_sse3
  784. enable_altivec
  785. enable_oss
  786. enable_alsa
  787. with_alsa_prefix
  788. with_alsa_inc_prefix
  789. enable_alsatest
  790. enable_alsa_shared
  791. enable_jack
  792. enable_jack_shared
  793. enable_esd
  794. with_esd_prefix
  795. with_esd_exec_prefix
  796. enable_esdtest
  797. enable_esd_shared
  798. enable_pipewire
  799. enable_pipewire_shared
  800. enable_pulseaudio
  801. enable_pulseaudio_shared
  802. enable_arts
  803. enable_arts_shared
  804. enable_nas
  805. enable_nas_shared
  806. enable_sndio
  807. enable_sndio_shared
  808. enable_fusionsound
  809. enable_fusionsound_shared
  810. enable_diskaudio
  811. enable_dummyaudio
  812. enable_libsamplerate
  813. enable_libsamplerate_shared
  814. enable_arm_simd
  815. enable_arm_neon
  816. enable_video_wayland
  817. enable_video_wayland_qt_touch
  818. enable_wayland_shared
  819. enable_libdecor
  820. enable_libdecor_shared
  821. enable_video_rpi
  822. enable_video_x11
  823. with_x
  824. enable_x11_shared
  825. enable_video_x11_xcursor
  826. enable_video_x11_xdbe
  827. enable_video_x11_xinerama
  828. enable_video_x11_xinput
  829. enable_video_x11_xfixes
  830. enable_video_x11_xrandr
  831. enable_video_x11_scrnsaver
  832. enable_video_x11_xshape
  833. enable_video_x11_vm
  834. enable_video_vivante
  835. enable_video_cocoa
  836. enable_video_metal
  837. enable_render_metal
  838. enable_video_directfb
  839. enable_directfb_shared
  840. enable_video_kmsdrm
  841. enable_kmsdrm_shared
  842. enable_video_dummy
  843. enable_video_offscreen
  844. enable_video_opengl
  845. enable_video_opengles
  846. enable_video_opengles1
  847. enable_video_opengles2
  848. enable_video_vulkan
  849. enable_libudev
  850. enable_dbus
  851. enable_ime
  852. enable_ibus
  853. enable_fcitx
  854. enable_joystick_mfi
  855. enable_pthreads
  856. enable_pthread_sem
  857. enable_directx
  858. enable_xinput
  859. enable_wasapi
  860. enable_hidapi_joystick
  861. enable_hidapi_libusb
  862. enable_clock_gettime
  863. enable_rpath
  864. enable_backgrounding_signal
  865. enable_foregrounding_signal
  866. enable_joystick_virtual
  867. enable_render_d3d
  868. enable_sdl2_config
  869. '
  870. ac_precious_vars='build_alias
  871. host_alias
  872. target_alias
  873. CC
  874. CFLAGS
  875. LDFLAGS
  876. LIBS
  877. CPPFLAGS
  878. LT_SYS_LIBRARY_PATH
  879. CPP
  880. CXX
  881. CXXFLAGS
  882. CCC
  883. CXXCPP
  884. PKG_CONFIG
  885. PKG_CONFIG_PATH
  886. PKG_CONFIG_LIBDIR
  887. JACK_CFLAGS
  888. JACK_LIBS
  889. PIPEWIRE_CFLAGS
  890. PIPEWIRE_LIBS
  891. PULSEAUDIO_CFLAGS
  892. PULSEAUDIO_LIBS
  893. FUSIONSOUND_CFLAGS
  894. FUSIONSOUND_LIBS
  895. RPI_CFLAGS
  896. RPI_LIBS
  897. XMKMF
  898. DIRECTFB_CFLAGS
  899. DIRECTFB_LIBS
  900. LIBDRM_CFLAGS
  901. LIBDRM_LIBS
  902. LIBGBM_CFLAGS
  903. LIBGBM_LIBS
  904. DBUS_CFLAGS
  905. DBUS_LIBS
  906. IBUS_CFLAGS
  907. IBUS_LIBS
  908. LIBUSB_CFLAGS
  909. LIBUSB_LIBS'
  910. # Initialize some variables set by options.
  911. ac_init_help=
  912. ac_init_version=false
  913. ac_unrecognized_opts=
  914. ac_unrecognized_sep=
  915. # The variables have the same names as the options, with
  916. # dashes changed to underlines.
  917. cache_file=/dev/null
  918. exec_prefix=NONE
  919. no_create=
  920. no_recursion=
  921. prefix=NONE
  922. program_prefix=NONE
  923. program_suffix=NONE
  924. program_transform_name=s,x,x,
  925. silent=
  926. site=
  927. srcdir=
  928. verbose=
  929. x_includes=NONE
  930. x_libraries=NONE
  931. # Installation directory options.
  932. # These are left unexpanded so users can "make install exec_prefix=/foo"
  933. # and all the variables that are supposed to be based on exec_prefix
  934. # by default will actually change.
  935. # Use braces instead of parens because sh, perl, etc. also accept them.
  936. # (The list follows the same order as the GNU Coding Standards.)
  937. bindir='${exec_prefix}/bin'
  938. sbindir='${exec_prefix}/sbin'
  939. libexecdir='${exec_prefix}/libexec'
  940. datarootdir='${prefix}/share'
  941. datadir='${datarootdir}'
  942. sysconfdir='${prefix}/etc'
  943. sharedstatedir='${prefix}/com'
  944. localstatedir='${prefix}/var'
  945. includedir='${prefix}/include'
  946. oldincludedir='/usr/include'
  947. docdir='${datarootdir}/doc/${PACKAGE}'
  948. infodir='${datarootdir}/info'
  949. htmldir='${docdir}'
  950. dvidir='${docdir}'
  951. pdfdir='${docdir}'
  952. psdir='${docdir}'
  953. libdir='${exec_prefix}/lib'
  954. localedir='${datarootdir}/locale'
  955. mandir='${datarootdir}/man'
  956. ac_prev=
  957. ac_dashdash=
  958. for ac_option
  959. do
  960. # If the previous option needs an argument, assign it.
  961. if test -n "$ac_prev"; then
  962. eval $ac_prev=\$ac_option
  963. ac_prev=
  964. continue
  965. fi
  966. case $ac_option in
  967. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  968. *=) ac_optarg= ;;
  969. *) ac_optarg=yes ;;
  970. esac
  971. # Accept the important Cygnus configure options, so we can diagnose typos.
  972. case $ac_dashdash$ac_option in
  973. --)
  974. ac_dashdash=yes ;;
  975. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  976. ac_prev=bindir ;;
  977. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  978. bindir=$ac_optarg ;;
  979. -build | --build | --buil | --bui | --bu)
  980. ac_prev=build_alias ;;
  981. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  982. build_alias=$ac_optarg ;;
  983. -cache-file | --cache-file | --cache-fil | --cache-fi \
  984. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  985. ac_prev=cache_file ;;
  986. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  987. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  988. cache_file=$ac_optarg ;;
  989. --config-cache | -C)
  990. cache_file=config.cache ;;
  991. -datadir | --datadir | --datadi | --datad)
  992. ac_prev=datadir ;;
  993. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  994. datadir=$ac_optarg ;;
  995. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  996. | --dataroo | --dataro | --datar)
  997. ac_prev=datarootdir ;;
  998. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  999. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1000. datarootdir=$ac_optarg ;;
  1001. -disable-* | --disable-*)
  1002. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1003. # Reject names that are not valid shell variable names.
  1004. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1005. as_fn_error $? "invalid feature name: $ac_useropt"
  1006. ac_useropt_orig=$ac_useropt
  1007. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1008. case $ac_user_opts in
  1009. *"
  1010. "enable_$ac_useropt"
  1011. "*) ;;
  1012. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1013. ac_unrecognized_sep=', ';;
  1014. esac
  1015. eval enable_$ac_useropt=no ;;
  1016. -docdir | --docdir | --docdi | --doc | --do)
  1017. ac_prev=docdir ;;
  1018. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1019. docdir=$ac_optarg ;;
  1020. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1021. ac_prev=dvidir ;;
  1022. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1023. dvidir=$ac_optarg ;;
  1024. -enable-* | --enable-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid feature name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "enable_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval enable_$ac_useropt=\$ac_optarg ;;
  1039. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1040. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1041. | --exec | --exe | --ex)
  1042. ac_prev=exec_prefix ;;
  1043. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1044. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1045. | --exec=* | --exe=* | --ex=*)
  1046. exec_prefix=$ac_optarg ;;
  1047. -gas | --gas | --ga | --g)
  1048. # Obsolete; use --with-gas.
  1049. with_gas=yes ;;
  1050. -help | --help | --hel | --he | -h)
  1051. ac_init_help=long ;;
  1052. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1053. ac_init_help=recursive ;;
  1054. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1055. ac_init_help=short ;;
  1056. -host | --host | --hos | --ho)
  1057. ac_prev=host_alias ;;
  1058. -host=* | --host=* | --hos=* | --ho=*)
  1059. host_alias=$ac_optarg ;;
  1060. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1061. ac_prev=htmldir ;;
  1062. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1063. | --ht=*)
  1064. htmldir=$ac_optarg ;;
  1065. -includedir | --includedir | --includedi | --included | --include \
  1066. | --includ | --inclu | --incl | --inc)
  1067. ac_prev=includedir ;;
  1068. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1069. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1070. includedir=$ac_optarg ;;
  1071. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1072. ac_prev=infodir ;;
  1073. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1074. infodir=$ac_optarg ;;
  1075. -libdir | --libdir | --libdi | --libd)
  1076. ac_prev=libdir ;;
  1077. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1078. libdir=$ac_optarg ;;
  1079. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1080. | --libexe | --libex | --libe)
  1081. ac_prev=libexecdir ;;
  1082. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1083. | --libexe=* | --libex=* | --libe=*)
  1084. libexecdir=$ac_optarg ;;
  1085. -localedir | --localedir | --localedi | --localed | --locale)
  1086. ac_prev=localedir ;;
  1087. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1088. localedir=$ac_optarg ;;
  1089. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1090. | --localstate | --localstat | --localsta | --localst | --locals)
  1091. ac_prev=localstatedir ;;
  1092. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1093. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1094. localstatedir=$ac_optarg ;;
  1095. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1096. ac_prev=mandir ;;
  1097. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1098. mandir=$ac_optarg ;;
  1099. -nfp | --nfp | --nf)
  1100. # Obsolete; use --without-fp.
  1101. with_fp=no ;;
  1102. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1103. | --no-cr | --no-c | -n)
  1104. no_create=yes ;;
  1105. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1106. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1107. no_recursion=yes ;;
  1108. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1109. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1110. | --oldin | --oldi | --old | --ol | --o)
  1111. ac_prev=oldincludedir ;;
  1112. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1113. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1114. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1115. oldincludedir=$ac_optarg ;;
  1116. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1117. ac_prev=prefix ;;
  1118. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1119. prefix=$ac_optarg ;;
  1120. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1121. | --program-pre | --program-pr | --program-p)
  1122. ac_prev=program_prefix ;;
  1123. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1124. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1125. program_prefix=$ac_optarg ;;
  1126. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1127. | --program-suf | --program-su | --program-s)
  1128. ac_prev=program_suffix ;;
  1129. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1130. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1131. program_suffix=$ac_optarg ;;
  1132. -program-transform-name | --program-transform-name \
  1133. | --program-transform-nam | --program-transform-na \
  1134. | --program-transform-n | --program-transform- \
  1135. | --program-transform | --program-transfor \
  1136. | --program-transfo | --program-transf \
  1137. | --program-trans | --program-tran \
  1138. | --progr-tra | --program-tr | --program-t)
  1139. ac_prev=program_transform_name ;;
  1140. -program-transform-name=* | --program-transform-name=* \
  1141. | --program-transform-nam=* | --program-transform-na=* \
  1142. | --program-transform-n=* | --program-transform-=* \
  1143. | --program-transform=* | --program-transfor=* \
  1144. | --program-transfo=* | --program-transf=* \
  1145. | --program-trans=* | --program-tran=* \
  1146. | --progr-tra=* | --program-tr=* | --program-t=*)
  1147. program_transform_name=$ac_optarg ;;
  1148. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1149. ac_prev=pdfdir ;;
  1150. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1151. pdfdir=$ac_optarg ;;
  1152. -psdir | --psdir | --psdi | --psd | --ps)
  1153. ac_prev=psdir ;;
  1154. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1155. psdir=$ac_optarg ;;
  1156. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1157. | -silent | --silent | --silen | --sile | --sil)
  1158. silent=yes ;;
  1159. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1160. ac_prev=sbindir ;;
  1161. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1162. | --sbi=* | --sb=*)
  1163. sbindir=$ac_optarg ;;
  1164. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1165. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1166. | --sharedst | --shareds | --shared | --share | --shar \
  1167. | --sha | --sh)
  1168. ac_prev=sharedstatedir ;;
  1169. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1170. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1171. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1172. | --sha=* | --sh=*)
  1173. sharedstatedir=$ac_optarg ;;
  1174. -site | --site | --sit)
  1175. ac_prev=site ;;
  1176. -site=* | --site=* | --sit=*)
  1177. site=$ac_optarg ;;
  1178. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1179. ac_prev=srcdir ;;
  1180. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1181. srcdir=$ac_optarg ;;
  1182. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1183. | --syscon | --sysco | --sysc | --sys | --sy)
  1184. ac_prev=sysconfdir ;;
  1185. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1186. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1187. sysconfdir=$ac_optarg ;;
  1188. -target | --target | --targe | --targ | --tar | --ta | --t)
  1189. ac_prev=target_alias ;;
  1190. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1191. target_alias=$ac_optarg ;;
  1192. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1193. verbose=yes ;;
  1194. -version | --version | --versio | --versi | --vers | -V)
  1195. ac_init_version=: ;;
  1196. -with-* | --with-*)
  1197. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1198. # Reject names that are not valid shell variable names.
  1199. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1200. as_fn_error $? "invalid package name: $ac_useropt"
  1201. ac_useropt_orig=$ac_useropt
  1202. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1203. case $ac_user_opts in
  1204. *"
  1205. "with_$ac_useropt"
  1206. "*) ;;
  1207. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1208. ac_unrecognized_sep=', ';;
  1209. esac
  1210. eval with_$ac_useropt=\$ac_optarg ;;
  1211. -without-* | --without-*)
  1212. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1213. # Reject names that are not valid shell variable names.
  1214. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1215. as_fn_error $? "invalid package name: $ac_useropt"
  1216. ac_useropt_orig=$ac_useropt
  1217. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1218. case $ac_user_opts in
  1219. *"
  1220. "with_$ac_useropt"
  1221. "*) ;;
  1222. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1223. ac_unrecognized_sep=', ';;
  1224. esac
  1225. eval with_$ac_useropt=no ;;
  1226. --x)
  1227. # Obsolete; use --with-x.
  1228. with_x=yes ;;
  1229. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1230. | --x-incl | --x-inc | --x-in | --x-i)
  1231. ac_prev=x_includes ;;
  1232. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1233. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1234. x_includes=$ac_optarg ;;
  1235. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1236. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1237. ac_prev=x_libraries ;;
  1238. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1239. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1240. x_libraries=$ac_optarg ;;
  1241. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1242. Try \`$0 --help' for more information"
  1243. ;;
  1244. *=*)
  1245. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1246. # Reject names that are not valid shell variable names.
  1247. case $ac_envvar in #(
  1248. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1249. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1250. esac
  1251. eval $ac_envvar=\$ac_optarg
  1252. export $ac_envvar ;;
  1253. *)
  1254. # FIXME: should be removed in autoconf 3.0.
  1255. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1256. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1257. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1258. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1259. ;;
  1260. esac
  1261. done
  1262. if test -n "$ac_prev"; then
  1263. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1264. as_fn_error $? "missing argument to $ac_option"
  1265. fi
  1266. if test -n "$ac_unrecognized_opts"; then
  1267. case $enable_option_checking in
  1268. no) ;;
  1269. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1270. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1271. esac
  1272. fi
  1273. # Check all directory arguments for consistency.
  1274. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1275. datadir sysconfdir sharedstatedir localstatedir includedir \
  1276. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1277. libdir localedir mandir
  1278. do
  1279. eval ac_val=\$$ac_var
  1280. # Remove trailing slashes.
  1281. case $ac_val in
  1282. */ )
  1283. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1284. eval $ac_var=\$ac_val;;
  1285. esac
  1286. # Be sure to have absolute directory names.
  1287. case $ac_val in
  1288. [\\/$]* | ?:[\\/]* ) continue;;
  1289. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1290. esac
  1291. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1292. done
  1293. # There might be people who depend on the old broken behavior: `$host'
  1294. # used to hold the argument of --host etc.
  1295. # FIXME: To remove some day.
  1296. build=$build_alias
  1297. host=$host_alias
  1298. target=$target_alias
  1299. # FIXME: To remove some day.
  1300. if test "x$host_alias" != x; then
  1301. if test "x$build_alias" = x; then
  1302. cross_compiling=maybe
  1303. elif test "x$build_alias" != "x$host_alias"; then
  1304. cross_compiling=yes
  1305. fi
  1306. fi
  1307. ac_tool_prefix=
  1308. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1309. test "$silent" = yes && exec 6>/dev/null
  1310. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1311. ac_ls_di=`ls -di .` &&
  1312. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1313. as_fn_error $? "working directory cannot be determined"
  1314. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1315. as_fn_error $? "pwd does not report name of working directory"
  1316. # Find the source files, if location was not specified.
  1317. if test -z "$srcdir"; then
  1318. ac_srcdir_defaulted=yes
  1319. # Try the directory containing this script, then the parent directory.
  1320. ac_confdir=`$as_dirname -- "$as_myself" ||
  1321. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1322. X"$as_myself" : 'X\(//\)[^/]' \| \
  1323. X"$as_myself" : 'X\(//\)$' \| \
  1324. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1325. $as_echo X"$as_myself" |
  1326. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1327. s//\1/
  1328. q
  1329. }
  1330. /^X\(\/\/\)[^/].*/{
  1331. s//\1/
  1332. q
  1333. }
  1334. /^X\(\/\/\)$/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\).*/{
  1339. s//\1/
  1340. q
  1341. }
  1342. s/.*/./; q'`
  1343. srcdir=$ac_confdir
  1344. if test ! -r "$srcdir/$ac_unique_file"; then
  1345. srcdir=..
  1346. fi
  1347. else
  1348. ac_srcdir_defaulted=no
  1349. fi
  1350. if test ! -r "$srcdir/$ac_unique_file"; then
  1351. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1352. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1353. fi
  1354. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1355. ac_abs_confdir=`(
  1356. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1357. pwd)`
  1358. # When building in place, set srcdir=.
  1359. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1360. srcdir=.
  1361. fi
  1362. # Remove unnecessary trailing slashes from srcdir.
  1363. # Double slashes in file names in object file debugging info
  1364. # mess up M-x gdb in Emacs.
  1365. case $srcdir in
  1366. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1367. esac
  1368. for ac_var in $ac_precious_vars; do
  1369. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1370. eval ac_env_${ac_var}_value=\$${ac_var}
  1371. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1373. done
  1374. #
  1375. # Report the --help message.
  1376. #
  1377. if test "$ac_init_help" = "long"; then
  1378. # Omit some internal or obsolete options to make the list less imposing.
  1379. # This message is too long to be a string in the A/UX 3.1 sh.
  1380. cat <<_ACEOF
  1381. \`configure' configures this package to adapt to many kinds of systems.
  1382. Usage: $0 [OPTION]... [VAR=VALUE]...
  1383. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1384. VAR=VALUE. See below for descriptions of some of the useful variables.
  1385. Defaults for the options are specified in brackets.
  1386. Configuration:
  1387. -h, --help display this help and exit
  1388. --help=short display options specific to this package
  1389. --help=recursive display the short help of all the included packages
  1390. -V, --version display version information and exit
  1391. -q, --quiet, --silent do not print \`checking ...' messages
  1392. --cache-file=FILE cache test results in FILE [disabled]
  1393. -C, --config-cache alias for \`--cache-file=config.cache'
  1394. -n, --no-create do not create output files
  1395. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1396. Installation directories:
  1397. --prefix=PREFIX install architecture-independent files in PREFIX
  1398. [$ac_default_prefix]
  1399. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1400. [PREFIX]
  1401. By default, \`make install' will install all the files in
  1402. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1403. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1404. for instance \`--prefix=\$HOME'.
  1405. For better control, use the options below.
  1406. Fine tuning of the installation directories:
  1407. --bindir=DIR user executables [EPREFIX/bin]
  1408. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1409. --libexecdir=DIR program executables [EPREFIX/libexec]
  1410. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1411. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1412. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1413. --libdir=DIR object code libraries [EPREFIX/lib]
  1414. --includedir=DIR C header files [PREFIX/include]
  1415. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1416. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1417. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1418. --infodir=DIR info documentation [DATAROOTDIR/info]
  1419. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1420. --mandir=DIR man documentation [DATAROOTDIR/man]
  1421. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1422. --htmldir=DIR html documentation [DOCDIR]
  1423. --dvidir=DIR dvi documentation [DOCDIR]
  1424. --pdfdir=DIR pdf documentation [DOCDIR]
  1425. --psdir=DIR ps documentation [DOCDIR]
  1426. _ACEOF
  1427. cat <<\_ACEOF
  1428. X features:
  1429. --x-includes=DIR X include files are in DIR
  1430. --x-libraries=DIR X library files are in DIR
  1431. System types:
  1432. --build=BUILD configure for building on BUILD [guessed]
  1433. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1434. _ACEOF
  1435. fi
  1436. if test -n "$ac_init_help"; then
  1437. cat <<\_ACEOF
  1438. Optional Features:
  1439. --disable-option-checking ignore unrecognized --enable/--with options
  1440. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1441. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1442. --enable-shared[=PKGS] build shared libraries [default=yes]
  1443. --enable-static[=PKGS] build static libraries [default=yes]
  1444. --enable-fast-install[=PKGS]
  1445. optimize for fast installation [default=yes]
  1446. --disable-libtool-lock avoid locking (might break parallel builds)
  1447. --enable-assertions Enable internal sanity checks
  1448. (auto/disabled/release/enabled/paranoid)
  1449. [default=auto]
  1450. --enable-dependency-tracking
  1451. Use gcc -MMD -MT dependency tracking [default=yes]
  1452. --enable-libc Use the system C library [default=yes]
  1453. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1454. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1455. --enable-audio Enable the audio subsystem [default=yes]
  1456. --enable-video Enable the video subsystem [default=yes]
  1457. --enable-render Enable the render subsystem [default=yes]
  1458. --enable-events Enable the events subsystem [default=yes]
  1459. --enable-joystick Enable the joystick subsystem [default=yes]
  1460. --enable-haptic Enable the haptic (force feedback) subsystem
  1461. [default=yes]
  1462. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1463. --enable-sensor Enable the sensor subsystem [default=yes]
  1464. --enable-power Enable the power subsystem [default=yes]
  1465. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1466. --enable-threads Enable the threading subsystem [default=yes]
  1467. --enable-timers Enable the timer subsystem [default=yes]
  1468. --enable-file Enable the file subsystem [default=yes]
  1469. --enable-misc Enable the misc subsystem [default=yes]
  1470. --enable-locale Enable the locale subsystem [default=yes]
  1471. --enable-loadso Enable the shared object loading subsystem
  1472. [default=yes]
  1473. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1474. --enable-assembly Enable assembly routines [default=yes]
  1475. --enable-ssemath Allow GCC to use SSE floating point math
  1476. [default=maybe]
  1477. --enable-mmx use MMX assembly routines [default=yes]
  1478. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1479. --enable-sse use SSE assembly routines [default=yes]
  1480. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1481. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1482. --enable-altivec use Altivec assembly routines [default=yes]
  1483. --enable-oss support the OSS audio API [default=maybe]
  1484. --enable-alsa support the ALSA audio API [default=yes]
  1485. --disable-alsatest Do not try to compile and run a test Alsa program
  1486. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1487. --enable-jack use JACK audio [default=yes]
  1488. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1489. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1490. --disable-esdtest Do not try to compile and run a test ESD program
  1491. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1492. --enable-pipewire use Pipewire audio [default=yes]
  1493. --enable-pipewire-shared
  1494. dynamically load Pipewire support [default=yes]
  1495. --enable-pulseaudio use PulseAudio [default=yes]
  1496. --enable-pulseaudio-shared
  1497. dynamically load PulseAudio support [default=yes]
  1498. --enable-arts support the Analog Real Time Synthesizer
  1499. [default=yes]
  1500. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1501. --enable-nas support the NAS audio API [default=yes]
  1502. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1503. --enable-sndio support the sndio audio API [default=yes]
  1504. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1505. --enable-fusionsound use FusionSound audio driver [default=no]
  1506. --enable-fusionsound-shared
  1507. dynamically load fusionsound audio support
  1508. [default=yes]
  1509. --enable-diskaudio support the disk writer audio driver [default=yes]
  1510. --enable-dummyaudio support the dummy audio driver [default=yes]
  1511. --enable-libsamplerate use libsamplerate for audio rate conversion
  1512. [default=yes]
  1513. --enable-libsamplerate-shared
  1514. dynamically load libsamplerate [default=yes]
  1515. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1516. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1517. --enable-video-wayland use Wayland video driver [default=yes]
  1518. --enable-video-wayland-qt-touch
  1519. QtWayland server support for Wayland video driver
  1520. [default=yes]
  1521. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1522. --enable-libdecor use libdecor for Wayland client-side decorations
  1523. [default=yes]
  1524. --enable-libdecor-shared
  1525. dynamically load libdecor [default=yes]
  1526. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1527. --enable-video-x11 use X11 video driver [default=yes]
  1528. --enable-x11-shared dynamically load X11 support [default=maybe]
  1529. --enable-video-x11-xcursor
  1530. enable X11 Xcursor support [default=yes]
  1531. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1532. --enable-video-x11-xinerama
  1533. enable X11 Xinerama support [default=yes]
  1534. --enable-video-x11-xinput
  1535. enable X11 XInput extension for manymouse, tablets,
  1536. etc [default=yes]
  1537. --enable-video-x11-xfixes
  1538. enable X11 Xfixes support [default=yes]
  1539. --enable-video-x11-xrandr
  1540. enable X11 Xrandr extension for fullscreen
  1541. [default=yes]
  1542. --enable-video-x11-scrnsaver
  1543. enable X11 screensaver extension [default=yes]
  1544. --enable-video-x11-xshape
  1545. enable X11 XShape support [default=yes]
  1546. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1547. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1548. --enable-video-cocoa use Cocoa video driver [default=yes]
  1549. --enable-video-metal include Metal support [default=yes]
  1550. --enable-render-metal enable the Metal render driver [default=yes]
  1551. --enable-video-directfb use DirectFB video driver [default=no]
  1552. --enable-directfb-shared
  1553. dynamically load directfb support [default=yes]
  1554. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1555. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1556. --enable-video-dummy use dummy video driver [default=yes]
  1557. --enable-video-offscreen
  1558. use offscreen video driver [default=no]
  1559. --enable-video-opengl include OpenGL support [default=yes]
  1560. --enable-video-opengles include OpenGL ES support [default=yes]
  1561. --enable-video-opengles1
  1562. include OpenGL ES 1.1 support [default=yes]
  1563. --enable-video-opengles2
  1564. include OpenGL ES 2.0 support [default=yes]
  1565. --enable-video-vulkan include Vulkan support [default=yes]
  1566. --enable-libudev enable libudev support [default=yes]
  1567. --enable-dbus enable D-Bus support [default=yes]
  1568. --enable-ime enable IME support [default=yes]
  1569. --enable-ibus enable IBus support [default=yes]
  1570. --enable-fcitx enable fcitx support [default=yes]
  1571. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1572. --enable-pthreads use POSIX threads for multi-threading
  1573. [default=maybe]
  1574. --enable-pthread-sem use pthread semaphores [default=maybe]
  1575. --enable-directx use DirectX for Windows audio/video [default=yes]
  1576. --enable-xinput use Xinput for Windows [default=yes]
  1577. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1578. --enable-hidapi-joystick
  1579. use HIDAPI for low level joystick drivers
  1580. [default=yes]
  1581. --enable-hidapi-libusb use libusb for low level joystick drivers
  1582. [default=maybe]
  1583. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1584. UNIX [default=yes]
  1585. --enable-rpath use an rpath when linking SDL [default=yes]
  1586. --enable-backgrounding-signal
  1587. number to use for magic backgrounding signal or 'no'
  1588. [default=no]
  1589. --enable-foregrounding-signal
  1590. number to use for magic foregrounding signal or 'no'
  1591. [default=no]
  1592. --enable-joystick-virtual
  1593. enable virtual joystick APIs [default=yes]
  1594. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1595. --enable-sdl2-config Install sdl2-config [default=yes]
  1596. Optional Packages:
  1597. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1598. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1599. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1600. both]
  1601. --with-aix-soname=aix|svr4|both
  1602. shared library versioning (aka "SONAME") variant to
  1603. provide on AIX, [default=aix].
  1604. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1605. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1606. compiler's sysroot if not specified).
  1607. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1608. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1609. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1610. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1611. --with-x use the X Window System
  1612. Some influential environment variables:
  1613. CC C compiler command
  1614. CFLAGS C compiler flags
  1615. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1616. nonstandard directory <lib dir>
  1617. LIBS libraries to pass to the linker, e.g. -l<library>
  1618. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1619. you have headers in a nonstandard directory <include dir>
  1620. LT_SYS_LIBRARY_PATH
  1621. User-defined run-time library search path.
  1622. CPP C preprocessor
  1623. CXX C++ compiler command
  1624. CXXFLAGS C++ compiler flags
  1625. CXXCPP C++ preprocessor
  1626. PKG_CONFIG path to pkg-config utility
  1627. PKG_CONFIG_PATH
  1628. directories to add to pkg-config's search path
  1629. PKG_CONFIG_LIBDIR
  1630. path overriding pkg-config's built-in search path
  1631. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1632. JACK_LIBS linker flags for JACK, overriding pkg-config
  1633. PIPEWIRE_CFLAGS
  1634. C compiler flags for PIPEWIRE, overriding pkg-config
  1635. PIPEWIRE_LIBS
  1636. linker flags for PIPEWIRE, overriding pkg-config
  1637. PULSEAUDIO_CFLAGS
  1638. C compiler flags for PULSEAUDIO, overriding pkg-config
  1639. PULSEAUDIO_LIBS
  1640. linker flags for PULSEAUDIO, overriding pkg-config
  1641. FUSIONSOUND_CFLAGS
  1642. C compiler flags for FUSIONSOUND, overriding pkg-config
  1643. FUSIONSOUND_LIBS
  1644. linker flags for FUSIONSOUND, overriding pkg-config
  1645. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1646. RPI_LIBS linker flags for RPI, overriding pkg-config
  1647. XMKMF Path to xmkmf, Makefile generator for X Window System
  1648. DIRECTFB_CFLAGS
  1649. C compiler flags for DIRECTFB, overriding pkg-config
  1650. DIRECTFB_LIBS
  1651. linker flags for DIRECTFB, overriding pkg-config
  1652. LIBDRM_CFLAGS
  1653. C compiler flags for LIBDRM, overriding pkg-config
  1654. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1655. LIBGBM_CFLAGS
  1656. C compiler flags for LIBGBM, overriding pkg-config
  1657. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1658. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1659. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1660. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1661. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1662. LIBUSB_CFLAGS
  1663. C compiler flags for LIBUSB, overriding pkg-config
  1664. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1665. Use these variables to override the choices made by `configure' or to help
  1666. it to find libraries and programs with nonstandard names/locations.
  1667. Report bugs to the package provider.
  1668. _ACEOF
  1669. ac_status=$?
  1670. fi
  1671. if test "$ac_init_help" = "recursive"; then
  1672. # If there are subdirs, report their specific --help.
  1673. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1674. test -d "$ac_dir" ||
  1675. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1676. continue
  1677. ac_builddir=.
  1678. case "$ac_dir" in
  1679. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1680. *)
  1681. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1682. # A ".." for each directory in $ac_dir_suffix.
  1683. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1684. case $ac_top_builddir_sub in
  1685. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1686. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1687. esac ;;
  1688. esac
  1689. ac_abs_top_builddir=$ac_pwd
  1690. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1691. # for backward compatibility:
  1692. ac_top_builddir=$ac_top_build_prefix
  1693. case $srcdir in
  1694. .) # We are building in place.
  1695. ac_srcdir=.
  1696. ac_top_srcdir=$ac_top_builddir_sub
  1697. ac_abs_top_srcdir=$ac_pwd ;;
  1698. [\\/]* | ?:[\\/]* ) # Absolute name.
  1699. ac_srcdir=$srcdir$ac_dir_suffix;
  1700. ac_top_srcdir=$srcdir
  1701. ac_abs_top_srcdir=$srcdir ;;
  1702. *) # Relative name.
  1703. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1704. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1705. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1706. esac
  1707. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1708. cd "$ac_dir" || { ac_status=$?; continue; }
  1709. # Check for guested configure.
  1710. if test -f "$ac_srcdir/configure.gnu"; then
  1711. echo &&
  1712. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1713. elif test -f "$ac_srcdir/configure"; then
  1714. echo &&
  1715. $SHELL "$ac_srcdir/configure" --help=recursive
  1716. else
  1717. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1718. fi || ac_status=$?
  1719. cd "$ac_pwd" || { ac_status=$?; break; }
  1720. done
  1721. fi
  1722. test -n "$ac_init_help" && exit $ac_status
  1723. if $ac_init_version; then
  1724. cat <<\_ACEOF
  1725. configure
  1726. generated by GNU Autoconf 2.69
  1727. Copyright (C) 2012 Free Software Foundation, Inc.
  1728. This configure script is free software; the Free Software Foundation
  1729. gives unlimited permission to copy, distribute and modify it.
  1730. _ACEOF
  1731. exit
  1732. fi
  1733. ## ------------------------ ##
  1734. ## Autoconf initialization. ##
  1735. ## ------------------------ ##
  1736. # ac_fn_c_try_compile LINENO
  1737. # --------------------------
  1738. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_c_try_compile ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext
  1743. if { { ac_try="$ac_compile"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_compile") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } && {
  1759. test -z "$ac_c_werror_flag" ||
  1760. test ! -s conftest.err
  1761. } && test -s conftest.$ac_objext; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1769. as_fn_set_status $ac_retval
  1770. } # ac_fn_c_try_compile
  1771. # ac_fn_c_try_link LINENO
  1772. # -----------------------
  1773. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1774. ac_fn_c_try_link ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. rm -f conftest.$ac_objext conftest$ac_exeext
  1778. if { { ac_try="$ac_link"
  1779. case "(($ac_try" in
  1780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1781. *) ac_try_echo=$ac_try;;
  1782. esac
  1783. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1784. $as_echo "$ac_try_echo"; } >&5
  1785. (eval "$ac_link") 2>conftest.err
  1786. ac_status=$?
  1787. if test -s conftest.err; then
  1788. grep -v '^ *+' conftest.err >conftest.er1
  1789. cat conftest.er1 >&5
  1790. mv -f conftest.er1 conftest.err
  1791. fi
  1792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1793. test $ac_status = 0; } && {
  1794. test -z "$ac_c_werror_flag" ||
  1795. test ! -s conftest.err
  1796. } && test -s conftest$ac_exeext && {
  1797. test "$cross_compiling" = yes ||
  1798. test -x conftest$ac_exeext
  1799. }; then :
  1800. ac_retval=0
  1801. else
  1802. $as_echo "$as_me: failed program was:" >&5
  1803. sed 's/^/| /' conftest.$ac_ext >&5
  1804. ac_retval=1
  1805. fi
  1806. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1807. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1808. # interfere with the next link command; also delete a directory that is
  1809. # left behind by Apple's compiler. We do this before executing the actions.
  1810. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_c_try_link
  1814. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1815. # -------------------------------------------------------
  1816. # Tests whether HEADER exists and can be compiled using the include files in
  1817. # INCLUDES, setting the cache variable VAR accordingly.
  1818. ac_fn_c_check_header_compile ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if eval \${$3+:} false; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. #include <$2>
  1830. _ACEOF
  1831. if ac_fn_c_try_compile "$LINENO"; then :
  1832. eval "$3=yes"
  1833. else
  1834. eval "$3=no"
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837. fi
  1838. eval ac_res=\$$3
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1840. $as_echo "$ac_res" >&6; }
  1841. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1842. } # ac_fn_c_check_header_compile
  1843. # ac_fn_c_try_cpp LINENO
  1844. # ----------------------
  1845. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1846. ac_fn_c_try_cpp ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1855. $as_echo "$ac_try_echo"; } >&5
  1856. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1857. ac_status=$?
  1858. if test -s conftest.err; then
  1859. grep -v '^ *+' conftest.err >conftest.er1
  1860. cat conftest.er1 >&5
  1861. mv -f conftest.er1 conftest.err
  1862. fi
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } > conftest.i && {
  1865. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1866. test ! -s conftest.err
  1867. }; then :
  1868. ac_retval=0
  1869. else
  1870. $as_echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. ac_retval=1
  1873. fi
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. as_fn_set_status $ac_retval
  1876. } # ac_fn_c_try_cpp
  1877. # ac_fn_c_try_run LINENO
  1878. # ----------------------
  1879. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1880. # that executables *can* be run.
  1881. ac_fn_c_try_run ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. if { { ac_try="$ac_link"
  1885. case "(($ac_try" in
  1886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1887. *) ac_try_echo=$ac_try;;
  1888. esac
  1889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1890. $as_echo "$ac_try_echo"; } >&5
  1891. (eval "$ac_link") 2>&5
  1892. ac_status=$?
  1893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1894. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1895. { { case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo"; } >&5
  1901. (eval "$ac_try") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1904. test $ac_status = 0; }; }; then :
  1905. ac_retval=0
  1906. else
  1907. $as_echo "$as_me: program exited with status $ac_status" >&5
  1908. $as_echo "$as_me: failed program was:" >&5
  1909. sed 's/^/| /' conftest.$ac_ext >&5
  1910. ac_retval=$ac_status
  1911. fi
  1912. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. as_fn_set_status $ac_retval
  1915. } # ac_fn_c_try_run
  1916. # ac_fn_c_check_func LINENO FUNC VAR
  1917. # ----------------------------------
  1918. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1919. ac_fn_c_check_func ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1923. $as_echo_n "checking for $2... " >&6; }
  1924. if eval \${$3+:} false; then :
  1925. $as_echo_n "(cached) " >&6
  1926. else
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below.
  1934. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1935. <limits.h> exists even on freestanding compilers. */
  1936. #ifdef __STDC__
  1937. # include <limits.h>
  1938. #else
  1939. # include <assert.h>
  1940. #endif
  1941. #undef $2
  1942. /* Override any GCC internal prototype to avoid an error.
  1943. Use char because int might match the return type of a GCC
  1944. builtin and then its argument prototype would still apply. */
  1945. #ifdef __cplusplus
  1946. extern "C"
  1947. #endif
  1948. char $2 ();
  1949. /* The GNU C library defines this for functions which it implements
  1950. to always fail with ENOSYS. Some functions are actually named
  1951. something starting with __ and the normal name is an alias. */
  1952. #if defined __stub_$2 || defined __stub___$2
  1953. choke me
  1954. #endif
  1955. int
  1956. main ()
  1957. {
  1958. return $2 ();
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. if ac_fn_c_try_link "$LINENO"; then :
  1964. eval "$3=yes"
  1965. else
  1966. eval "$3=no"
  1967. fi
  1968. rm -f core conftest.err conftest.$ac_objext \
  1969. conftest$ac_exeext conftest.$ac_ext
  1970. fi
  1971. eval ac_res=\$$3
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1973. $as_echo "$ac_res" >&6; }
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. } # ac_fn_c_check_func
  1976. # ac_fn_cxx_try_compile LINENO
  1977. # ----------------------------
  1978. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1979. ac_fn_cxx_try_compile ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. rm -f conftest.$ac_objext
  1983. if { { ac_try="$ac_compile"
  1984. case "(($ac_try" in
  1985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1986. *) ac_try_echo=$ac_try;;
  1987. esac
  1988. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1989. $as_echo "$ac_try_echo"; } >&5
  1990. (eval "$ac_compile") 2>conftest.err
  1991. ac_status=$?
  1992. if test -s conftest.err; then
  1993. grep -v '^ *+' conftest.err >conftest.er1
  1994. cat conftest.er1 >&5
  1995. mv -f conftest.er1 conftest.err
  1996. fi
  1997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1998. test $ac_status = 0; } && {
  1999. test -z "$ac_cxx_werror_flag" ||
  2000. test ! -s conftest.err
  2001. } && test -s conftest.$ac_objext; then :
  2002. ac_retval=0
  2003. else
  2004. $as_echo "$as_me: failed program was:" >&5
  2005. sed 's/^/| /' conftest.$ac_ext >&5
  2006. ac_retval=1
  2007. fi
  2008. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009. as_fn_set_status $ac_retval
  2010. } # ac_fn_cxx_try_compile
  2011. # ac_fn_cxx_try_cpp LINENO
  2012. # ------------------------
  2013. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2014. ac_fn_cxx_try_cpp ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2018. case "(($ac_try" in
  2019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2020. *) ac_try_echo=$ac_try;;
  2021. esac
  2022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2023. $as_echo "$ac_try_echo"; } >&5
  2024. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2025. ac_status=$?
  2026. if test -s conftest.err; then
  2027. grep -v '^ *+' conftest.err >conftest.er1
  2028. cat conftest.er1 >&5
  2029. mv -f conftest.er1 conftest.err
  2030. fi
  2031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2032. test $ac_status = 0; } > conftest.i && {
  2033. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2034. test ! -s conftest.err
  2035. }; then :
  2036. ac_retval=0
  2037. else
  2038. $as_echo "$as_me: failed program was:" >&5
  2039. sed 's/^/| /' conftest.$ac_ext >&5
  2040. ac_retval=1
  2041. fi
  2042. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2043. as_fn_set_status $ac_retval
  2044. } # ac_fn_cxx_try_cpp
  2045. # ac_fn_cxx_try_link LINENO
  2046. # -------------------------
  2047. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2048. ac_fn_cxx_try_link ()
  2049. {
  2050. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2051. rm -f conftest.$ac_objext conftest$ac_exeext
  2052. if { { ac_try="$ac_link"
  2053. case "(($ac_try" in
  2054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2055. *) ac_try_echo=$ac_try;;
  2056. esac
  2057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2058. $as_echo "$ac_try_echo"; } >&5
  2059. (eval "$ac_link") 2>conftest.err
  2060. ac_status=$?
  2061. if test -s conftest.err; then
  2062. grep -v '^ *+' conftest.err >conftest.er1
  2063. cat conftest.er1 >&5
  2064. mv -f conftest.er1 conftest.err
  2065. fi
  2066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2067. test $ac_status = 0; } && {
  2068. test -z "$ac_cxx_werror_flag" ||
  2069. test ! -s conftest.err
  2070. } && test -s conftest$ac_exeext && {
  2071. test "$cross_compiling" = yes ||
  2072. test -x conftest$ac_exeext
  2073. }; then :
  2074. ac_retval=0
  2075. else
  2076. $as_echo "$as_me: failed program was:" >&5
  2077. sed 's/^/| /' conftest.$ac_ext >&5
  2078. ac_retval=1
  2079. fi
  2080. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2081. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2082. # interfere with the next link command; also delete a directory that is
  2083. # left behind by Apple's compiler. We do this before executing the actions.
  2084. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2085. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2086. as_fn_set_status $ac_retval
  2087. } # ac_fn_cxx_try_link
  2088. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2089. # -------------------------------------------------------
  2090. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2091. # the include files in INCLUDES and setting the cache variable VAR
  2092. # accordingly.
  2093. ac_fn_c_check_header_mongrel ()
  2094. {
  2095. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2096. if eval \${$3+:} false; then :
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2098. $as_echo_n "checking for $2... " >&6; }
  2099. if eval \${$3+:} false; then :
  2100. $as_echo_n "(cached) " >&6
  2101. fi
  2102. eval ac_res=\$$3
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2104. $as_echo "$ac_res" >&6; }
  2105. else
  2106. # Is the header compilable?
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2108. $as_echo_n "checking $2 usability... " >&6; }
  2109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2110. /* end confdefs.h. */
  2111. $4
  2112. #include <$2>
  2113. _ACEOF
  2114. if ac_fn_c_try_compile "$LINENO"; then :
  2115. ac_header_compiler=yes
  2116. else
  2117. ac_header_compiler=no
  2118. fi
  2119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2121. $as_echo "$ac_header_compiler" >&6; }
  2122. # Is the header present?
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2124. $as_echo_n "checking $2 presence... " >&6; }
  2125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2126. /* end confdefs.h. */
  2127. #include <$2>
  2128. _ACEOF
  2129. if ac_fn_c_try_cpp "$LINENO"; then :
  2130. ac_header_preproc=yes
  2131. else
  2132. ac_header_preproc=no
  2133. fi
  2134. rm -f conftest.err conftest.i conftest.$ac_ext
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2136. $as_echo "$ac_header_preproc" >&6; }
  2137. # So? What about this header?
  2138. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2139. yes:no: )
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2141. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2143. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2144. ;;
  2145. no:yes:* )
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2147. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2149. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2151. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2153. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2155. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2156. ;;
  2157. esac
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2159. $as_echo_n "checking for $2... " >&6; }
  2160. if eval \${$3+:} false; then :
  2161. $as_echo_n "(cached) " >&6
  2162. else
  2163. eval "$3=\$ac_header_compiler"
  2164. fi
  2165. eval ac_res=\$$3
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2167. $as_echo "$ac_res" >&6; }
  2168. fi
  2169. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2170. } # ac_fn_c_check_header_mongrel
  2171. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2172. # -------------------------------------------
  2173. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2174. # variable VAR accordingly.
  2175. ac_fn_c_check_type ()
  2176. {
  2177. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2179. $as_echo_n "checking for $2... " >&6; }
  2180. if eval \${$3+:} false; then :
  2181. $as_echo_n "(cached) " >&6
  2182. else
  2183. eval "$3=no"
  2184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2185. /* end confdefs.h. */
  2186. $4
  2187. int
  2188. main ()
  2189. {
  2190. if (sizeof ($2))
  2191. return 0;
  2192. ;
  2193. return 0;
  2194. }
  2195. _ACEOF
  2196. if ac_fn_c_try_compile "$LINENO"; then :
  2197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2198. /* end confdefs.h. */
  2199. $4
  2200. int
  2201. main ()
  2202. {
  2203. if (sizeof (($2)))
  2204. return 0;
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. if ac_fn_c_try_compile "$LINENO"; then :
  2210. else
  2211. eval "$3=yes"
  2212. fi
  2213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2214. fi
  2215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2216. fi
  2217. eval ac_res=\$$3
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2219. $as_echo "$ac_res" >&6; }
  2220. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2221. } # ac_fn_c_check_type
  2222. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2223. # ----------------------------------------------------
  2224. # Tries to find if the field MEMBER exists in type AGGR, after including
  2225. # INCLUDES, setting cache variable VAR accordingly.
  2226. ac_fn_c_check_member ()
  2227. {
  2228. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2230. $as_echo_n "checking for $2.$3... " >&6; }
  2231. if eval \${$4+:} false; then :
  2232. $as_echo_n "(cached) " >&6
  2233. else
  2234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2235. /* end confdefs.h. */
  2236. $5
  2237. int
  2238. main ()
  2239. {
  2240. static $2 ac_aggr;
  2241. if (ac_aggr.$3)
  2242. return 0;
  2243. ;
  2244. return 0;
  2245. }
  2246. _ACEOF
  2247. if ac_fn_c_try_compile "$LINENO"; then :
  2248. eval "$4=yes"
  2249. else
  2250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2251. /* end confdefs.h. */
  2252. $5
  2253. int
  2254. main ()
  2255. {
  2256. static $2 ac_aggr;
  2257. if (sizeof ac_aggr.$3)
  2258. return 0;
  2259. ;
  2260. return 0;
  2261. }
  2262. _ACEOF
  2263. if ac_fn_c_try_compile "$LINENO"; then :
  2264. eval "$4=yes"
  2265. else
  2266. eval "$4=no"
  2267. fi
  2268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2269. fi
  2270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2271. fi
  2272. eval ac_res=\$$4
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2274. $as_echo "$ac_res" >&6; }
  2275. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2276. } # ac_fn_c_check_member
  2277. cat >config.log <<_ACEOF
  2278. This file contains any messages produced by compilers while
  2279. running configure, to aid debugging if configure makes a mistake.
  2280. It was created by $as_me, which was
  2281. generated by GNU Autoconf 2.69. Invocation command line was
  2282. $ $0 $@
  2283. _ACEOF
  2284. exec 5>>config.log
  2285. {
  2286. cat <<_ASUNAME
  2287. ## --------- ##
  2288. ## Platform. ##
  2289. ## --------- ##
  2290. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2291. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2292. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2293. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2294. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2295. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2296. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2297. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2298. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2299. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2300. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2301. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2302. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2303. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2304. _ASUNAME
  2305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306. for as_dir in $PATH
  2307. do
  2308. IFS=$as_save_IFS
  2309. test -z "$as_dir" && as_dir=.
  2310. $as_echo "PATH: $as_dir"
  2311. done
  2312. IFS=$as_save_IFS
  2313. } >&5
  2314. cat >&5 <<_ACEOF
  2315. ## ----------- ##
  2316. ## Core tests. ##
  2317. ## ----------- ##
  2318. _ACEOF
  2319. # Keep a trace of the command line.
  2320. # Strip out --no-create and --no-recursion so they do not pile up.
  2321. # Strip out --silent because we don't want to record it for future runs.
  2322. # Also quote any args containing shell meta-characters.
  2323. # Make two passes to allow for proper duplicate-argument suppression.
  2324. ac_configure_args=
  2325. ac_configure_args0=
  2326. ac_configure_args1=
  2327. ac_must_keep_next=false
  2328. for ac_pass in 1 2
  2329. do
  2330. for ac_arg
  2331. do
  2332. case $ac_arg in
  2333. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2334. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2335. | -silent | --silent | --silen | --sile | --sil)
  2336. continue ;;
  2337. *\'*)
  2338. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2339. esac
  2340. case $ac_pass in
  2341. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2342. 2)
  2343. as_fn_append ac_configure_args1 " '$ac_arg'"
  2344. if test $ac_must_keep_next = true; then
  2345. ac_must_keep_next=false # Got value, back to normal.
  2346. else
  2347. case $ac_arg in
  2348. *=* | --config-cache | -C | -disable-* | --disable-* \
  2349. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2350. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2351. | -with-* | --with-* | -without-* | --without-* | --x)
  2352. case "$ac_configure_args0 " in
  2353. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2354. esac
  2355. ;;
  2356. -* ) ac_must_keep_next=true ;;
  2357. esac
  2358. fi
  2359. as_fn_append ac_configure_args " '$ac_arg'"
  2360. ;;
  2361. esac
  2362. done
  2363. done
  2364. { ac_configure_args0=; unset ac_configure_args0;}
  2365. { ac_configure_args1=; unset ac_configure_args1;}
  2366. # When interrupted or exit'd, cleanup temporary files, and complete
  2367. # config.log. We remove comments because anyway the quotes in there
  2368. # would cause problems or look ugly.
  2369. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2370. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2371. trap 'exit_status=$?
  2372. # Save into config.log some information that might help in debugging.
  2373. {
  2374. echo
  2375. $as_echo "## ---------------- ##
  2376. ## Cache variables. ##
  2377. ## ---------------- ##"
  2378. echo
  2379. # The following way of writing the cache mishandles newlines in values,
  2380. (
  2381. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2382. eval ac_val=\$$ac_var
  2383. case $ac_val in #(
  2384. *${as_nl}*)
  2385. case $ac_var in #(
  2386. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2387. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2388. esac
  2389. case $ac_var in #(
  2390. _ | IFS | as_nl) ;; #(
  2391. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2392. *) { eval $ac_var=; unset $ac_var;} ;;
  2393. esac ;;
  2394. esac
  2395. done
  2396. (set) 2>&1 |
  2397. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2398. *${as_nl}ac_space=\ *)
  2399. sed -n \
  2400. "s/'\''/'\''\\\\'\'''\''/g;
  2401. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2402. ;; #(
  2403. *)
  2404. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2405. ;;
  2406. esac |
  2407. sort
  2408. )
  2409. echo
  2410. $as_echo "## ----------------- ##
  2411. ## Output variables. ##
  2412. ## ----------------- ##"
  2413. echo
  2414. for ac_var in $ac_subst_vars
  2415. do
  2416. eval ac_val=\$$ac_var
  2417. case $ac_val in
  2418. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2419. esac
  2420. $as_echo "$ac_var='\''$ac_val'\''"
  2421. done | sort
  2422. echo
  2423. if test -n "$ac_subst_files"; then
  2424. $as_echo "## ------------------- ##
  2425. ## File substitutions. ##
  2426. ## ------------------- ##"
  2427. echo
  2428. for ac_var in $ac_subst_files
  2429. do
  2430. eval ac_val=\$$ac_var
  2431. case $ac_val in
  2432. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2433. esac
  2434. $as_echo "$ac_var='\''$ac_val'\''"
  2435. done | sort
  2436. echo
  2437. fi
  2438. if test -s confdefs.h; then
  2439. $as_echo "## ----------- ##
  2440. ## confdefs.h. ##
  2441. ## ----------- ##"
  2442. echo
  2443. cat confdefs.h
  2444. echo
  2445. fi
  2446. test "$ac_signal" != 0 &&
  2447. $as_echo "$as_me: caught signal $ac_signal"
  2448. $as_echo "$as_me: exit $exit_status"
  2449. } >&5
  2450. rm -f core *.core core.conftest.* &&
  2451. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2452. exit $exit_status
  2453. ' 0
  2454. for ac_signal in 1 2 13 15; do
  2455. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2456. done
  2457. ac_signal=0
  2458. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2459. rm -f -r conftest* confdefs.h
  2460. $as_echo "/* confdefs.h */" > confdefs.h
  2461. # Predefined preprocessor variables.
  2462. cat >>confdefs.h <<_ACEOF
  2463. #define PACKAGE_NAME "$PACKAGE_NAME"
  2464. _ACEOF
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_STRING "$PACKAGE_STRING"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_URL "$PACKAGE_URL"
  2479. _ACEOF
  2480. # Let the site file select an alternate cache file if it wants to.
  2481. # Prefer an explicitly selected file to automatically selected ones.
  2482. ac_site_file1=NONE
  2483. ac_site_file2=NONE
  2484. if test -n "$CONFIG_SITE"; then
  2485. # We do not want a PATH search for config.site.
  2486. case $CONFIG_SITE in #((
  2487. -*) ac_site_file1=./$CONFIG_SITE;;
  2488. */*) ac_site_file1=$CONFIG_SITE;;
  2489. *) ac_site_file1=./$CONFIG_SITE;;
  2490. esac
  2491. elif test "x$prefix" != xNONE; then
  2492. ac_site_file1=$prefix/share/config.site
  2493. ac_site_file2=$prefix/etc/config.site
  2494. else
  2495. ac_site_file1=$ac_default_prefix/share/config.site
  2496. ac_site_file2=$ac_default_prefix/etc/config.site
  2497. fi
  2498. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2499. do
  2500. test "x$ac_site_file" = xNONE && continue
  2501. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2503. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2504. sed 's/^/| /' "$ac_site_file" >&5
  2505. . "$ac_site_file" \
  2506. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2507. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2508. as_fn_error $? "failed to load site script $ac_site_file
  2509. See \`config.log' for more details" "$LINENO" 5; }
  2510. fi
  2511. done
  2512. if test -r "$cache_file"; then
  2513. # Some versions of bash will fail to source /dev/null (special files
  2514. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2515. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2517. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2518. case $cache_file in
  2519. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2520. *) . "./$cache_file";;
  2521. esac
  2522. fi
  2523. else
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2525. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2526. >$cache_file
  2527. fi
  2528. # Check that the precious variables saved in the cache have kept the same
  2529. # value.
  2530. ac_cache_corrupted=false
  2531. for ac_var in $ac_precious_vars; do
  2532. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2533. eval ac_new_set=\$ac_env_${ac_var}_set
  2534. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2535. eval ac_new_val=\$ac_env_${ac_var}_value
  2536. case $ac_old_set,$ac_new_set in
  2537. set,)
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2539. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2540. ac_cache_corrupted=: ;;
  2541. ,set)
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2543. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2544. ac_cache_corrupted=: ;;
  2545. ,);;
  2546. *)
  2547. if test "x$ac_old_val" != "x$ac_new_val"; then
  2548. # differences in whitespace do not lead to failure.
  2549. ac_old_val_w=`echo x $ac_old_val`
  2550. ac_new_val_w=`echo x $ac_new_val`
  2551. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2554. ac_cache_corrupted=:
  2555. else
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2557. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2558. eval $ac_var=\$ac_old_val
  2559. fi
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2561. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2563. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2564. fi;;
  2565. esac
  2566. # Pass precious variables to config.status.
  2567. if test "$ac_new_set" = set; then
  2568. case $ac_new_val in
  2569. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2570. *) ac_arg=$ac_var=$ac_new_val ;;
  2571. esac
  2572. case " $ac_configure_args " in
  2573. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2574. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2575. esac
  2576. fi
  2577. done
  2578. if $ac_cache_corrupted; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2580. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2582. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2583. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2584. fi
  2585. ## -------------------- ##
  2586. ## Main body of script. ##
  2587. ## -------------------- ##
  2588. ac_ext=c
  2589. ac_cpp='$CPP $CPPFLAGS'
  2590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2593. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2594. ac_aux_dir=
  2595. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2596. if 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/install.sh"; then
  2601. ac_aux_dir=$ac_dir
  2602. ac_install_sh="$ac_aux_dir/install.sh -c"
  2603. break
  2604. elif test -f "$ac_dir/shtool"; then
  2605. ac_aux_dir=$ac_dir
  2606. ac_install_sh="$ac_aux_dir/shtool install -c"
  2607. break
  2608. fi
  2609. done
  2610. if test -z "$ac_aux_dir"; then
  2611. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2612. fi
  2613. # These three variables are undocumented and unsupported,
  2614. # and are intended to be withdrawn in a future Autoconf release.
  2615. # They can cause serious problems if a builder's source tree is in a directory
  2616. # whose full name contains unusual characters.
  2617. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2618. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2619. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2620. orig_CFLAGS="$CFLAGS"
  2621. #
  2622. # Making releases:
  2623. # Edit include/SDL_version.h and change the version, then:
  2624. # SDL_MICRO_VERSION += 1;
  2625. # SDL_INTERFACE_AGE += 1;
  2626. # SDL_BINARY_AGE += 1;
  2627. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2628. # if backwards compatibility has been broken,
  2629. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2630. #
  2631. SDL_MAJOR_VERSION=2
  2632. SDL_MINOR_VERSION=0
  2633. SDL_MICRO_VERSION=21
  2634. SDL_INTERFACE_AGE=3
  2635. SDL_BINARY_AGE=21
  2636. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2637. # libtool versioning
  2638. case `pwd` in
  2639. *\ * | *\ *)
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2641. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2642. esac
  2643. macro_version='2.4.6'
  2644. macro_revision='2.4.6'
  2645. ltmain=$ac_aux_dir/ltmain.sh
  2646. # Make sure we can run config.sub.
  2647. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2648. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2650. $as_echo_n "checking build system type... " >&6; }
  2651. if ${ac_cv_build+:} false; then :
  2652. $as_echo_n "(cached) " >&6
  2653. else
  2654. ac_build_alias=$build_alias
  2655. test "x$ac_build_alias" = x &&
  2656. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2657. test "x$ac_build_alias" = x &&
  2658. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2659. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2660. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2663. $as_echo "$ac_cv_build" >&6; }
  2664. case $ac_cv_build in
  2665. *-*-*) ;;
  2666. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2667. esac
  2668. build=$ac_cv_build
  2669. ac_save_IFS=$IFS; IFS='-'
  2670. set x $ac_cv_build
  2671. shift
  2672. build_cpu=$1
  2673. build_vendor=$2
  2674. shift; shift
  2675. # Remember, the first character of IFS is used to create $*,
  2676. # except with old shells:
  2677. build_os=$*
  2678. IFS=$ac_save_IFS
  2679. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2681. $as_echo_n "checking host system type... " >&6; }
  2682. if ${ac_cv_host+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. if test "x$host_alias" = x; then
  2686. ac_cv_host=$ac_cv_build
  2687. else
  2688. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2689. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2690. fi
  2691. fi
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2693. $as_echo "$ac_cv_host" >&6; }
  2694. case $ac_cv_host in
  2695. *-*-*) ;;
  2696. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2697. esac
  2698. host=$ac_cv_host
  2699. ac_save_IFS=$IFS; IFS='-'
  2700. set x $ac_cv_host
  2701. shift
  2702. host_cpu=$1
  2703. host_vendor=$2
  2704. shift; shift
  2705. # Remember, the first character of IFS is used to create $*,
  2706. # except with old shells:
  2707. host_os=$*
  2708. IFS=$ac_save_IFS
  2709. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2710. # Backslashify metacharacters that are still active within
  2711. # double-quoted strings.
  2712. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2713. # Same as above, but do not quote variable references.
  2714. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2715. # Sed substitution to delay expansion of an escaped shell variable in a
  2716. # double_quote_subst'ed string.
  2717. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2718. # Sed substitution to delay expansion of an escaped single quote.
  2719. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2720. # Sed substitution to avoid accidental globbing in evaled expressions
  2721. no_glob_subst='s/\*/\\\*/g'
  2722. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2723. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2724. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2726. $as_echo_n "checking how to print strings... " >&6; }
  2727. # Test print first, because it will be a builtin if present.
  2728. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2729. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2730. ECHO='print -r --'
  2731. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2732. ECHO='printf %s\n'
  2733. else
  2734. # Use this function as a fallback that always works.
  2735. func_fallback_echo ()
  2736. {
  2737. eval 'cat <<_LTECHO_EOF
  2738. $1
  2739. _LTECHO_EOF'
  2740. }
  2741. ECHO='func_fallback_echo'
  2742. fi
  2743. # func_echo_all arg...
  2744. # Invoke $ECHO with all args, space-separated.
  2745. func_echo_all ()
  2746. {
  2747. $ECHO ""
  2748. }
  2749. case $ECHO in
  2750. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2751. $as_echo "printf" >&6; } ;;
  2752. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2753. $as_echo "print -r" >&6; } ;;
  2754. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2755. $as_echo "cat" >&6; } ;;
  2756. esac
  2757. ac_ext=c
  2758. ac_cpp='$CPP $CPPFLAGS'
  2759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2762. if test -n "$ac_tool_prefix"; then
  2763. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2764. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2766. $as_echo_n "checking for $ac_word... " >&6; }
  2767. if ${ac_cv_prog_CC+:} false; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if test -n "$CC"; then
  2771. ac_cv_prog_CC="$CC" # Let the user override the test.
  2772. else
  2773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2774. for as_dir in $PATH
  2775. do
  2776. IFS=$as_save_IFS
  2777. test -z "$as_dir" && as_dir=.
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2780. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2782. break 2
  2783. fi
  2784. done
  2785. done
  2786. IFS=$as_save_IFS
  2787. fi
  2788. fi
  2789. CC=$ac_cv_prog_CC
  2790. if test -n "$CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2792. $as_echo "$CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. fi
  2798. if test -z "$ac_cv_prog_CC"; then
  2799. ac_ct_CC=$CC
  2800. # Extract the first word of "gcc", so it can be a program name with args.
  2801. set dummy gcc; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$ac_ct_CC"; then
  2808. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2809. else
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2817. ac_cv_prog_ac_ct_CC="gcc"
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2819. break 2
  2820. fi
  2821. done
  2822. done
  2823. IFS=$as_save_IFS
  2824. fi
  2825. fi
  2826. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2827. if test -n "$ac_ct_CC"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2829. $as_echo "$ac_ct_CC" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. if test "x$ac_ct_CC" = x; then
  2835. CC=""
  2836. else
  2837. case $cross_compiling:$ac_tool_warned in
  2838. yes:)
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2841. ac_tool_warned=yes ;;
  2842. esac
  2843. CC=$ac_ct_CC
  2844. fi
  2845. else
  2846. CC="$ac_cv_prog_CC"
  2847. fi
  2848. if test -z "$CC"; then
  2849. if test -n "$ac_tool_prefix"; then
  2850. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2851. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2853. $as_echo_n "checking for $ac_word... " >&6; }
  2854. if ${ac_cv_prog_CC+:} false; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. if test -n "$CC"; then
  2858. ac_cv_prog_CC="$CC" # Let the user override the test.
  2859. else
  2860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2861. for as_dir in $PATH
  2862. do
  2863. IFS=$as_save_IFS
  2864. test -z "$as_dir" && as_dir=.
  2865. for ac_exec_ext in '' $ac_executable_extensions; do
  2866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2867. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2869. break 2
  2870. fi
  2871. done
  2872. done
  2873. IFS=$as_save_IFS
  2874. fi
  2875. fi
  2876. CC=$ac_cv_prog_CC
  2877. if test -n "$CC"; then
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2879. $as_echo "$CC" >&6; }
  2880. else
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2882. $as_echo "no" >&6; }
  2883. fi
  2884. fi
  2885. fi
  2886. if test -z "$CC"; then
  2887. # Extract the first word of "cc", so it can be a program name with args.
  2888. set dummy cc; ac_word=$2
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2890. $as_echo_n "checking for $ac_word... " >&6; }
  2891. if ${ac_cv_prog_CC+:} false; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. if test -n "$CC"; then
  2895. ac_cv_prog_CC="$CC" # Let the user override the test.
  2896. else
  2897. ac_prog_rejected=no
  2898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2899. for as_dir in $PATH
  2900. do
  2901. IFS=$as_save_IFS
  2902. test -z "$as_dir" && as_dir=.
  2903. for ac_exec_ext in '' $ac_executable_extensions; do
  2904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2905. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2906. ac_prog_rejected=yes
  2907. continue
  2908. fi
  2909. ac_cv_prog_CC="cc"
  2910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2911. break 2
  2912. fi
  2913. done
  2914. done
  2915. IFS=$as_save_IFS
  2916. if test $ac_prog_rejected = yes; then
  2917. # We found a bogon in the path, so make sure we never use it.
  2918. set dummy $ac_cv_prog_CC
  2919. shift
  2920. if test $# != 0; then
  2921. # We chose a different compiler from the bogus one.
  2922. # However, it has the same basename, so the bogon will be chosen
  2923. # first if we set CC to just the basename; use the full file name.
  2924. shift
  2925. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2926. fi
  2927. fi
  2928. fi
  2929. fi
  2930. CC=$ac_cv_prog_CC
  2931. if test -n "$CC"; then
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2933. $as_echo "$CC" >&6; }
  2934. else
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2936. $as_echo "no" >&6; }
  2937. fi
  2938. fi
  2939. if test -z "$CC"; then
  2940. if test -n "$ac_tool_prefix"; then
  2941. for ac_prog in cl.exe
  2942. do
  2943. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2944. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2946. $as_echo_n "checking for $ac_word... " >&6; }
  2947. if ${ac_cv_prog_CC+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. if test -n "$CC"; then
  2951. ac_cv_prog_CC="$CC" # Let the user override the test.
  2952. else
  2953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2954. for as_dir in $PATH
  2955. do
  2956. IFS=$as_save_IFS
  2957. test -z "$as_dir" && as_dir=.
  2958. for ac_exec_ext in '' $ac_executable_extensions; do
  2959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2960. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2962. break 2
  2963. fi
  2964. done
  2965. done
  2966. IFS=$as_save_IFS
  2967. fi
  2968. fi
  2969. CC=$ac_cv_prog_CC
  2970. if test -n "$CC"; then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2972. $as_echo "$CC" >&6; }
  2973. else
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. $as_echo "no" >&6; }
  2976. fi
  2977. test -n "$CC" && break
  2978. done
  2979. fi
  2980. if test -z "$CC"; then
  2981. ac_ct_CC=$CC
  2982. for ac_prog in cl.exe
  2983. do
  2984. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2985. set dummy $ac_prog; ac_word=$2
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2987. $as_echo_n "checking for $ac_word... " >&6; }
  2988. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2989. $as_echo_n "(cached) " >&6
  2990. else
  2991. if test -n "$ac_ct_CC"; then
  2992. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2993. else
  2994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2995. for as_dir in $PATH
  2996. do
  2997. IFS=$as_save_IFS
  2998. test -z "$as_dir" && as_dir=.
  2999. for ac_exec_ext in '' $ac_executable_extensions; do
  3000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3001. ac_cv_prog_ac_ct_CC="$ac_prog"
  3002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3003. break 2
  3004. fi
  3005. done
  3006. done
  3007. IFS=$as_save_IFS
  3008. fi
  3009. fi
  3010. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3011. if test -n "$ac_ct_CC"; then
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3013. $as_echo "$ac_ct_CC" >&6; }
  3014. else
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3016. $as_echo "no" >&6; }
  3017. fi
  3018. test -n "$ac_ct_CC" && break
  3019. done
  3020. if test "x$ac_ct_CC" = x; then
  3021. CC=""
  3022. else
  3023. case $cross_compiling:$ac_tool_warned in
  3024. yes:)
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3027. ac_tool_warned=yes ;;
  3028. esac
  3029. CC=$ac_ct_CC
  3030. fi
  3031. fi
  3032. fi
  3033. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error $? "no acceptable C compiler found in \$PATH
  3036. See \`config.log' for more details" "$LINENO" 5; }
  3037. # Provide some information about the compiler.
  3038. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3039. set X $ac_compile
  3040. ac_compiler=$2
  3041. for ac_option in --version -v -V -qversion; do
  3042. { { ac_try="$ac_compiler $ac_option >&5"
  3043. case "(($ac_try" in
  3044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3045. *) ac_try_echo=$ac_try;;
  3046. esac
  3047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3048. $as_echo "$ac_try_echo"; } >&5
  3049. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3050. ac_status=$?
  3051. if test -s conftest.err; then
  3052. sed '10a\
  3053. ... rest of stderr output deleted ...
  3054. 10q' conftest.err >conftest.er1
  3055. cat conftest.er1 >&5
  3056. fi
  3057. rm -f conftest.er1 conftest.err
  3058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3059. test $ac_status = 0; }
  3060. done
  3061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3062. /* end confdefs.h. */
  3063. int
  3064. main ()
  3065. {
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. ac_clean_files_save=$ac_clean_files
  3071. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3072. # Try to create an executable without -o first, disregard a.out.
  3073. # It will help us diagnose broken compilers, and finding out an intuition
  3074. # of exeext.
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3076. $as_echo_n "checking whether the C compiler works... " >&6; }
  3077. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3078. # The possible output files:
  3079. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3080. ac_rmfiles=
  3081. for ac_file in $ac_files
  3082. do
  3083. case $ac_file in
  3084. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3085. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3086. esac
  3087. done
  3088. rm -f $ac_rmfiles
  3089. if { { ac_try="$ac_link_default"
  3090. case "(($ac_try" in
  3091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092. *) ac_try_echo=$ac_try;;
  3093. esac
  3094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3095. $as_echo "$ac_try_echo"; } >&5
  3096. (eval "$ac_link_default") 2>&5
  3097. ac_status=$?
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3099. test $ac_status = 0; }; then :
  3100. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3101. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3102. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3103. # so that the user can short-circuit this test for compilers unknown to
  3104. # Autoconf.
  3105. for ac_file in $ac_files ''
  3106. do
  3107. test -f "$ac_file" || continue
  3108. case $ac_file in
  3109. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3110. ;;
  3111. [ab].out )
  3112. # We found the default executable, but exeext='' is most
  3113. # certainly right.
  3114. break;;
  3115. *.* )
  3116. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3117. then :; else
  3118. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3119. fi
  3120. # We set ac_cv_exeext here because the later test for it is not
  3121. # safe: cross compilers may not add the suffix if given an `-o'
  3122. # argument, so we may need to know it at that point already.
  3123. # Even if this section looks crufty: it has the advantage of
  3124. # actually working.
  3125. break;;
  3126. * )
  3127. break;;
  3128. esac
  3129. done
  3130. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3131. else
  3132. ac_file=''
  3133. fi
  3134. if test -z "$ac_file"; then :
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3136. $as_echo "no" >&6; }
  3137. $as_echo "$as_me: failed program was:" >&5
  3138. sed 's/^/| /' conftest.$ac_ext >&5
  3139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3141. as_fn_error 77 "C compiler cannot create executables
  3142. See \`config.log' for more details" "$LINENO" 5; }
  3143. else
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3145. $as_echo "yes" >&6; }
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3148. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3150. $as_echo "$ac_file" >&6; }
  3151. ac_exeext=$ac_cv_exeext
  3152. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3153. ac_clean_files=$ac_clean_files_save
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3155. $as_echo_n "checking for suffix of executables... " >&6; }
  3156. if { { ac_try="$ac_link"
  3157. case "(($ac_try" in
  3158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3159. *) ac_try_echo=$ac_try;;
  3160. esac
  3161. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3162. $as_echo "$ac_try_echo"; } >&5
  3163. (eval "$ac_link") 2>&5
  3164. ac_status=$?
  3165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3166. test $ac_status = 0; }; then :
  3167. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3168. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3169. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3170. # `rm'.
  3171. for ac_file in conftest.exe conftest conftest.*; do
  3172. test -f "$ac_file" || continue
  3173. case $ac_file in
  3174. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3175. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3176. break;;
  3177. * ) break;;
  3178. esac
  3179. done
  3180. else
  3181. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3182. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3183. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3184. See \`config.log' for more details" "$LINENO" 5; }
  3185. fi
  3186. rm -f conftest conftest$ac_cv_exeext
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3188. $as_echo "$ac_cv_exeext" >&6; }
  3189. rm -f conftest.$ac_ext
  3190. EXEEXT=$ac_cv_exeext
  3191. ac_exeext=$EXEEXT
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. #include <stdio.h>
  3195. int
  3196. main ()
  3197. {
  3198. FILE *f = fopen ("conftest.out", "w");
  3199. return ferror (f) || fclose (f) != 0;
  3200. ;
  3201. return 0;
  3202. }
  3203. _ACEOF
  3204. ac_clean_files="$ac_clean_files conftest.out"
  3205. # Check that the compiler produces executables we can run. If not, either
  3206. # the compiler is broken, or we cross compile.
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3208. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3209. if test "$cross_compiling" != yes; then
  3210. { { ac_try="$ac_link"
  3211. case "(($ac_try" in
  3212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3213. *) ac_try_echo=$ac_try;;
  3214. esac
  3215. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3216. $as_echo "$ac_try_echo"; } >&5
  3217. (eval "$ac_link") 2>&5
  3218. ac_status=$?
  3219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3220. test $ac_status = 0; }
  3221. if { ac_try='./conftest$ac_cv_exeext'
  3222. { { case "(($ac_try" in
  3223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3224. *) ac_try_echo=$ac_try;;
  3225. esac
  3226. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3227. $as_echo "$ac_try_echo"; } >&5
  3228. (eval "$ac_try") 2>&5
  3229. ac_status=$?
  3230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3231. test $ac_status = 0; }; }; then
  3232. cross_compiling=no
  3233. else
  3234. if test "$cross_compiling" = maybe; then
  3235. cross_compiling=yes
  3236. else
  3237. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3239. as_fn_error $? "cannot run C compiled programs.
  3240. If you meant to cross compile, use \`--host'.
  3241. See \`config.log' for more details" "$LINENO" 5; }
  3242. fi
  3243. fi
  3244. fi
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3246. $as_echo "$cross_compiling" >&6; }
  3247. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3248. ac_clean_files=$ac_clean_files_save
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3250. $as_echo_n "checking for suffix of object files... " >&6; }
  3251. if ${ac_cv_objext+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3255. /* end confdefs.h. */
  3256. int
  3257. main ()
  3258. {
  3259. ;
  3260. return 0;
  3261. }
  3262. _ACEOF
  3263. rm -f conftest.o conftest.obj
  3264. if { { ac_try="$ac_compile"
  3265. case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3270. $as_echo "$ac_try_echo"; } >&5
  3271. (eval "$ac_compile") 2>&5
  3272. ac_status=$?
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3274. test $ac_status = 0; }; then :
  3275. for ac_file in conftest.o conftest.obj conftest.*; do
  3276. test -f "$ac_file" || continue;
  3277. case $ac_file in
  3278. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3279. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3280. break;;
  3281. esac
  3282. done
  3283. else
  3284. $as_echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3288. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3289. See \`config.log' for more details" "$LINENO" 5; }
  3290. fi
  3291. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3292. fi
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3294. $as_echo "$ac_cv_objext" >&6; }
  3295. OBJEXT=$ac_cv_objext
  3296. ac_objext=$OBJEXT
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3298. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3299. if ${ac_cv_c_compiler_gnu+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3303. /* end confdefs.h. */
  3304. int
  3305. main ()
  3306. {
  3307. #ifndef __GNUC__
  3308. choke me
  3309. #endif
  3310. ;
  3311. return 0;
  3312. }
  3313. _ACEOF
  3314. if ac_fn_c_try_compile "$LINENO"; then :
  3315. ac_compiler_gnu=yes
  3316. else
  3317. ac_compiler_gnu=no
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3320. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3321. fi
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3323. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3324. if test $ac_compiler_gnu = yes; then
  3325. GCC=yes
  3326. else
  3327. GCC=
  3328. fi
  3329. ac_test_CFLAGS=${CFLAGS+set}
  3330. ac_save_CFLAGS=$CFLAGS
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3332. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3333. if ${ac_cv_prog_cc_g+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. ac_save_c_werror_flag=$ac_c_werror_flag
  3337. ac_c_werror_flag=yes
  3338. ac_cv_prog_cc_g=no
  3339. CFLAGS="-g"
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. int
  3343. main ()
  3344. {
  3345. ;
  3346. return 0;
  3347. }
  3348. _ACEOF
  3349. if ac_fn_c_try_compile "$LINENO"; then :
  3350. ac_cv_prog_cc_g=yes
  3351. else
  3352. CFLAGS=""
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. int
  3356. main ()
  3357. {
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. if ac_fn_c_try_compile "$LINENO"; then :
  3363. else
  3364. ac_c_werror_flag=$ac_save_c_werror_flag
  3365. CFLAGS="-g"
  3366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3367. /* end confdefs.h. */
  3368. int
  3369. main ()
  3370. {
  3371. ;
  3372. return 0;
  3373. }
  3374. _ACEOF
  3375. if ac_fn_c_try_compile "$LINENO"; then :
  3376. ac_cv_prog_cc_g=yes
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3383. ac_c_werror_flag=$ac_save_c_werror_flag
  3384. fi
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3386. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3387. if test "$ac_test_CFLAGS" = set; then
  3388. CFLAGS=$ac_save_CFLAGS
  3389. elif test $ac_cv_prog_cc_g = yes; then
  3390. if test "$GCC" = yes; then
  3391. CFLAGS="-g -O2"
  3392. else
  3393. CFLAGS="-g"
  3394. fi
  3395. else
  3396. if test "$GCC" = yes; then
  3397. CFLAGS="-O2"
  3398. else
  3399. CFLAGS=
  3400. fi
  3401. fi
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3403. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3404. if ${ac_cv_prog_cc_c89+:} false; then :
  3405. $as_echo_n "(cached) " >&6
  3406. else
  3407. ac_cv_prog_cc_c89=no
  3408. ac_save_CC=$CC
  3409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3410. /* end confdefs.h. */
  3411. #include <stdarg.h>
  3412. #include <stdio.h>
  3413. struct stat;
  3414. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3415. struct buf { int x; };
  3416. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3417. static char *e (p, i)
  3418. char **p;
  3419. int i;
  3420. {
  3421. return p[i];
  3422. }
  3423. static char *f (char * (*g) (char **, int), char **p, ...)
  3424. {
  3425. char *s;
  3426. va_list v;
  3427. va_start (v,p);
  3428. s = g (p, va_arg (v,int));
  3429. va_end (v);
  3430. return s;
  3431. }
  3432. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3433. function prototypes and stuff, but not '\xHH' hex character constants.
  3434. These don't provoke an error unfortunately, instead are silently treated
  3435. as 'x'. The following induces an error, until -std is added to get
  3436. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3437. array size at least. It's necessary to write '\x00'==0 to get something
  3438. that's true only with -std. */
  3439. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3440. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3441. inside strings and character constants. */
  3442. #define FOO(x) 'x'
  3443. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3444. int test (int i, double x);
  3445. struct s1 {int (*f) (int a);};
  3446. struct s2 {int (*f) (double a);};
  3447. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3448. int argc;
  3449. char **argv;
  3450. int
  3451. main ()
  3452. {
  3453. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3459. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3460. do
  3461. CC="$ac_save_CC $ac_arg"
  3462. if ac_fn_c_try_compile "$LINENO"; then :
  3463. ac_cv_prog_cc_c89=$ac_arg
  3464. fi
  3465. rm -f core conftest.err conftest.$ac_objext
  3466. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3467. done
  3468. rm -f conftest.$ac_ext
  3469. CC=$ac_save_CC
  3470. fi
  3471. # AC_CACHE_VAL
  3472. case "x$ac_cv_prog_cc_c89" in
  3473. x)
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3475. $as_echo "none needed" >&6; } ;;
  3476. xno)
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3478. $as_echo "unsupported" >&6; } ;;
  3479. *)
  3480. CC="$CC $ac_cv_prog_cc_c89"
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3482. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3483. esac
  3484. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3485. fi
  3486. ac_ext=c
  3487. ac_cpp='$CPP $CPPFLAGS'
  3488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3492. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3493. if ${ac_cv_path_SED+:} false; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3497. for ac_i in 1 2 3 4 5 6 7; do
  3498. ac_script="$ac_script$as_nl$ac_script"
  3499. done
  3500. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3501. { ac_script=; unset ac_script;}
  3502. if test -z "$SED"; then
  3503. ac_path_SED_found=false
  3504. # Loop through the user's path and test for each of PROGNAME-LIST
  3505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3506. for as_dir in $PATH
  3507. do
  3508. IFS=$as_save_IFS
  3509. test -z "$as_dir" && as_dir=.
  3510. for ac_prog in sed gsed; do
  3511. for ac_exec_ext in '' $ac_executable_extensions; do
  3512. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3513. as_fn_executable_p "$ac_path_SED" || continue
  3514. # Check for GNU ac_path_SED and select it if it is found.
  3515. # Check for GNU $ac_path_SED
  3516. case `"$ac_path_SED" --version 2>&1` in
  3517. *GNU*)
  3518. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3519. *)
  3520. ac_count=0
  3521. $as_echo_n 0123456789 >"conftest.in"
  3522. while :
  3523. do
  3524. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3525. mv "conftest.tmp" "conftest.in"
  3526. cp "conftest.in" "conftest.nl"
  3527. $as_echo '' >> "conftest.nl"
  3528. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3529. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3530. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3531. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3532. # Best one so far, save it but keep looking for a better one
  3533. ac_cv_path_SED="$ac_path_SED"
  3534. ac_path_SED_max=$ac_count
  3535. fi
  3536. # 10*(2^10) chars as input seems more than enough
  3537. test $ac_count -gt 10 && break
  3538. done
  3539. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3540. esac
  3541. $ac_path_SED_found && break 3
  3542. done
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. if test -z "$ac_cv_path_SED"; then
  3547. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3548. fi
  3549. else
  3550. ac_cv_path_SED=$SED
  3551. fi
  3552. fi
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3554. $as_echo "$ac_cv_path_SED" >&6; }
  3555. SED="$ac_cv_path_SED"
  3556. rm -f conftest.sed
  3557. test -z "$SED" && SED=sed
  3558. Xsed="$SED -e 1s/^X//"
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3560. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3561. if ${ac_cv_path_GREP+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. if test -z "$GREP"; then
  3565. ac_path_GREP_found=false
  3566. # Loop through the user's path and test for each of PROGNAME-LIST
  3567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3568. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3569. do
  3570. IFS=$as_save_IFS
  3571. test -z "$as_dir" && as_dir=.
  3572. for ac_prog in grep ggrep; do
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3575. as_fn_executable_p "$ac_path_GREP" || continue
  3576. # Check for GNU ac_path_GREP and select it if it is found.
  3577. # Check for GNU $ac_path_GREP
  3578. case `"$ac_path_GREP" --version 2>&1` in
  3579. *GNU*)
  3580. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3581. *)
  3582. ac_count=0
  3583. $as_echo_n 0123456789 >"conftest.in"
  3584. while :
  3585. do
  3586. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3587. mv "conftest.tmp" "conftest.in"
  3588. cp "conftest.in" "conftest.nl"
  3589. $as_echo 'GREP' >> "conftest.nl"
  3590. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3591. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3592. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3593. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3594. # Best one so far, save it but keep looking for a better one
  3595. ac_cv_path_GREP="$ac_path_GREP"
  3596. ac_path_GREP_max=$ac_count
  3597. fi
  3598. # 10*(2^10) chars as input seems more than enough
  3599. test $ac_count -gt 10 && break
  3600. done
  3601. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3602. esac
  3603. $ac_path_GREP_found && break 3
  3604. done
  3605. done
  3606. done
  3607. IFS=$as_save_IFS
  3608. if test -z "$ac_cv_path_GREP"; then
  3609. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3610. fi
  3611. else
  3612. ac_cv_path_GREP=$GREP
  3613. fi
  3614. fi
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3616. $as_echo "$ac_cv_path_GREP" >&6; }
  3617. GREP="$ac_cv_path_GREP"
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3619. $as_echo_n "checking for egrep... " >&6; }
  3620. if ${ac_cv_path_EGREP+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3624. then ac_cv_path_EGREP="$GREP -E"
  3625. else
  3626. if test -z "$EGREP"; then
  3627. ac_path_EGREP_found=false
  3628. # Loop through the user's path and test for each of PROGNAME-LIST
  3629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3630. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3631. do
  3632. IFS=$as_save_IFS
  3633. test -z "$as_dir" && as_dir=.
  3634. for ac_prog in egrep; do
  3635. for ac_exec_ext in '' $ac_executable_extensions; do
  3636. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3637. as_fn_executable_p "$ac_path_EGREP" || continue
  3638. # Check for GNU ac_path_EGREP and select it if it is found.
  3639. # Check for GNU $ac_path_EGREP
  3640. case `"$ac_path_EGREP" --version 2>&1` in
  3641. *GNU*)
  3642. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3643. *)
  3644. ac_count=0
  3645. $as_echo_n 0123456789 >"conftest.in"
  3646. while :
  3647. do
  3648. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3649. mv "conftest.tmp" "conftest.in"
  3650. cp "conftest.in" "conftest.nl"
  3651. $as_echo 'EGREP' >> "conftest.nl"
  3652. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3653. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3654. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3655. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3656. # Best one so far, save it but keep looking for a better one
  3657. ac_cv_path_EGREP="$ac_path_EGREP"
  3658. ac_path_EGREP_max=$ac_count
  3659. fi
  3660. # 10*(2^10) chars as input seems more than enough
  3661. test $ac_count -gt 10 && break
  3662. done
  3663. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3664. esac
  3665. $ac_path_EGREP_found && break 3
  3666. done
  3667. done
  3668. done
  3669. IFS=$as_save_IFS
  3670. if test -z "$ac_cv_path_EGREP"; then
  3671. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3672. fi
  3673. else
  3674. ac_cv_path_EGREP=$EGREP
  3675. fi
  3676. fi
  3677. fi
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3679. $as_echo "$ac_cv_path_EGREP" >&6; }
  3680. EGREP="$ac_cv_path_EGREP"
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3682. $as_echo_n "checking for fgrep... " >&6; }
  3683. if ${ac_cv_path_FGREP+:} false; then :
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3687. then ac_cv_path_FGREP="$GREP -F"
  3688. else
  3689. if test -z "$FGREP"; then
  3690. ac_path_FGREP_found=false
  3691. # Loop through the user's path and test for each of PROGNAME-LIST
  3692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3693. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3694. do
  3695. IFS=$as_save_IFS
  3696. test -z "$as_dir" && as_dir=.
  3697. for ac_prog in fgrep; do
  3698. for ac_exec_ext in '' $ac_executable_extensions; do
  3699. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3700. as_fn_executable_p "$ac_path_FGREP" || continue
  3701. # Check for GNU ac_path_FGREP and select it if it is found.
  3702. # Check for GNU $ac_path_FGREP
  3703. case `"$ac_path_FGREP" --version 2>&1` in
  3704. *GNU*)
  3705. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3706. *)
  3707. ac_count=0
  3708. $as_echo_n 0123456789 >"conftest.in"
  3709. while :
  3710. do
  3711. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3712. mv "conftest.tmp" "conftest.in"
  3713. cp "conftest.in" "conftest.nl"
  3714. $as_echo 'FGREP' >> "conftest.nl"
  3715. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3716. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3717. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3718. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3719. # Best one so far, save it but keep looking for a better one
  3720. ac_cv_path_FGREP="$ac_path_FGREP"
  3721. ac_path_FGREP_max=$ac_count
  3722. fi
  3723. # 10*(2^10) chars as input seems more than enough
  3724. test $ac_count -gt 10 && break
  3725. done
  3726. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3727. esac
  3728. $ac_path_FGREP_found && break 3
  3729. done
  3730. done
  3731. done
  3732. IFS=$as_save_IFS
  3733. if test -z "$ac_cv_path_FGREP"; then
  3734. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3735. fi
  3736. else
  3737. ac_cv_path_FGREP=$FGREP
  3738. fi
  3739. fi
  3740. fi
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3742. $as_echo "$ac_cv_path_FGREP" >&6; }
  3743. FGREP="$ac_cv_path_FGREP"
  3744. test -z "$GREP" && GREP=grep
  3745. # Check whether --with-gnu-ld was given.
  3746. if test "${with_gnu_ld+set}" = set; then :
  3747. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3748. else
  3749. with_gnu_ld=no
  3750. fi
  3751. ac_prog=ld
  3752. if test yes = "$GCC"; then
  3753. # Check if gcc -print-prog-name=ld gives a path.
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3755. $as_echo_n "checking for ld used by $CC... " >&6; }
  3756. case $host in
  3757. *-*-mingw*)
  3758. # gcc leaves a trailing carriage return, which upsets mingw
  3759. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3760. *)
  3761. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3762. esac
  3763. case $ac_prog in
  3764. # Accept absolute paths.
  3765. [\\/]* | ?:[\\/]*)
  3766. re_direlt='/[^/][^/]*/\.\./'
  3767. # Canonicalize the pathname of ld
  3768. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3769. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3770. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3771. done
  3772. test -z "$LD" && LD=$ac_prog
  3773. ;;
  3774. "")
  3775. # If it fails, then pretend we aren't using GCC.
  3776. ac_prog=ld
  3777. ;;
  3778. *)
  3779. # If it is relative, then search for the first ld in PATH.
  3780. with_gnu_ld=unknown
  3781. ;;
  3782. esac
  3783. elif test yes = "$with_gnu_ld"; then
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3785. $as_echo_n "checking for GNU ld... " >&6; }
  3786. else
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3788. $as_echo_n "checking for non-GNU ld... " >&6; }
  3789. fi
  3790. if ${lt_cv_path_LD+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. if test -z "$LD"; then
  3794. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3795. for ac_dir in $PATH; do
  3796. IFS=$lt_save_ifs
  3797. test -z "$ac_dir" && ac_dir=.
  3798. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3799. lt_cv_path_LD=$ac_dir/$ac_prog
  3800. # Check to see if the program is GNU ld. I'd rather use --version,
  3801. # but apparently some variants of GNU ld only accept -v.
  3802. # Break only if it was the GNU/non-GNU ld that we prefer.
  3803. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3804. *GNU* | *'with BFD'*)
  3805. test no != "$with_gnu_ld" && break
  3806. ;;
  3807. *)
  3808. test yes != "$with_gnu_ld" && break
  3809. ;;
  3810. esac
  3811. fi
  3812. done
  3813. IFS=$lt_save_ifs
  3814. else
  3815. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3816. fi
  3817. fi
  3818. LD=$lt_cv_path_LD
  3819. if test -n "$LD"; then
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3821. $as_echo "$LD" >&6; }
  3822. else
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3824. $as_echo "no" >&6; }
  3825. fi
  3826. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3828. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3829. if ${lt_cv_prog_gnu_ld+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3833. case `$LD -v 2>&1 </dev/null` in
  3834. *GNU* | *'with BFD'*)
  3835. lt_cv_prog_gnu_ld=yes
  3836. ;;
  3837. *)
  3838. lt_cv_prog_gnu_ld=no
  3839. ;;
  3840. esac
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3843. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3844. with_gnu_ld=$lt_cv_prog_gnu_ld
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3846. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3847. if ${lt_cv_path_NM+:} false; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. if test -n "$NM"; then
  3851. # Let the user override the test.
  3852. lt_cv_path_NM=$NM
  3853. else
  3854. lt_nm_to_check=${ac_tool_prefix}nm
  3855. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3856. lt_nm_to_check="$lt_nm_to_check nm"
  3857. fi
  3858. for lt_tmp_nm in $lt_nm_to_check; do
  3859. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3860. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3861. IFS=$lt_save_ifs
  3862. test -z "$ac_dir" && ac_dir=.
  3863. tmp_nm=$ac_dir/$lt_tmp_nm
  3864. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3865. # Check to see if the nm accepts a BSD-compat flag.
  3866. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3867. # nm: unknown option "B" ignored
  3868. # Tru64's nm complains that /dev/null is an invalid object file
  3869. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3870. case $build_os in
  3871. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3872. *) lt_bad_file=/dev/null ;;
  3873. esac
  3874. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3875. *$lt_bad_file* | *'Invalid file or object type'*)
  3876. lt_cv_path_NM="$tmp_nm -B"
  3877. break 2
  3878. ;;
  3879. *)
  3880. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3881. */dev/null*)
  3882. lt_cv_path_NM="$tmp_nm -p"
  3883. break 2
  3884. ;;
  3885. *)
  3886. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3887. continue # so that we can try to find one that supports BSD flags
  3888. ;;
  3889. esac
  3890. ;;
  3891. esac
  3892. fi
  3893. done
  3894. IFS=$lt_save_ifs
  3895. done
  3896. : ${lt_cv_path_NM=no}
  3897. fi
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3900. $as_echo "$lt_cv_path_NM" >&6; }
  3901. if test no != "$lt_cv_path_NM"; then
  3902. NM=$lt_cv_path_NM
  3903. else
  3904. # Didn't find any BSD compatible name lister, look for dumpbin.
  3905. if test -n "$DUMPBIN"; then :
  3906. # Let the user override the test.
  3907. else
  3908. if test -n "$ac_tool_prefix"; then
  3909. for ac_prog in dumpbin "link -dump"
  3910. do
  3911. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3912. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3914. $as_echo_n "checking for $ac_word... " >&6; }
  3915. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if test -n "$DUMPBIN"; then
  3919. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3920. else
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. for ac_exec_ext in '' $ac_executable_extensions; do
  3927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3928. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3930. break 2
  3931. fi
  3932. done
  3933. done
  3934. IFS=$as_save_IFS
  3935. fi
  3936. fi
  3937. DUMPBIN=$ac_cv_prog_DUMPBIN
  3938. if test -n "$DUMPBIN"; then
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3940. $as_echo "$DUMPBIN" >&6; }
  3941. else
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; }
  3944. fi
  3945. test -n "$DUMPBIN" && break
  3946. done
  3947. fi
  3948. if test -z "$DUMPBIN"; then
  3949. ac_ct_DUMPBIN=$DUMPBIN
  3950. for ac_prog in dumpbin "link -dump"
  3951. do
  3952. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3953. set dummy $ac_prog; ac_word=$2
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3955. $as_echo_n "checking for $ac_word... " >&6; }
  3956. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. if test -n "$ac_ct_DUMPBIN"; then
  3960. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3961. else
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_exec_ext in '' $ac_executable_extensions; do
  3968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3969. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3971. break 2
  3972. fi
  3973. done
  3974. done
  3975. IFS=$as_save_IFS
  3976. fi
  3977. fi
  3978. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3979. if test -n "$ac_ct_DUMPBIN"; then
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3981. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3982. else
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3984. $as_echo "no" >&6; }
  3985. fi
  3986. test -n "$ac_ct_DUMPBIN" && break
  3987. done
  3988. if test "x$ac_ct_DUMPBIN" = x; then
  3989. DUMPBIN=":"
  3990. else
  3991. case $cross_compiling:$ac_tool_warned in
  3992. yes:)
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3994. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3995. ac_tool_warned=yes ;;
  3996. esac
  3997. DUMPBIN=$ac_ct_DUMPBIN
  3998. fi
  3999. fi
  4000. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4001. *COFF*)
  4002. DUMPBIN="$DUMPBIN -symbols -headers"
  4003. ;;
  4004. *)
  4005. DUMPBIN=:
  4006. ;;
  4007. esac
  4008. fi
  4009. if test : != "$DUMPBIN"; then
  4010. NM=$DUMPBIN
  4011. fi
  4012. fi
  4013. test -z "$NM" && NM=nm
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4015. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4016. if ${lt_cv_nm_interface+:} false; then :
  4017. $as_echo_n "(cached) " >&6
  4018. else
  4019. lt_cv_nm_interface="BSD nm"
  4020. echo "int some_variable = 0;" > conftest.$ac_ext
  4021. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4022. (eval "$ac_compile" 2>conftest.err)
  4023. cat conftest.err >&5
  4024. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4025. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4026. cat conftest.err >&5
  4027. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4028. cat conftest.out >&5
  4029. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4030. lt_cv_nm_interface="MS dumpbin"
  4031. fi
  4032. rm -f conftest*
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4035. $as_echo "$lt_cv_nm_interface" >&6; }
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4037. $as_echo_n "checking whether ln -s works... " >&6; }
  4038. LN_S=$as_ln_s
  4039. if test "$LN_S" = "ln -s"; then
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4041. $as_echo "yes" >&6; }
  4042. else
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4044. $as_echo "no, using $LN_S" >&6; }
  4045. fi
  4046. # find the maximum length of command line arguments
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4048. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4049. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. i=0
  4053. teststring=ABCD
  4054. case $build_os in
  4055. msdosdjgpp*)
  4056. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4057. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4058. # during glob expansion). Even if it were fixed, the result of this
  4059. # check would be larger than it should be.
  4060. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4061. ;;
  4062. gnu*)
  4063. # Under GNU Hurd, this test is not required because there is
  4064. # no limit to the length of command line arguments.
  4065. # Libtool will interpret -1 as no limit whatsoever
  4066. lt_cv_sys_max_cmd_len=-1;
  4067. ;;
  4068. cygwin* | mingw* | cegcc*)
  4069. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4070. # about 5 minutes as the teststring grows exponentially.
  4071. # Worse, since 9x/ME are not pre-emptively multitasking,
  4072. # you end up with a "frozen" computer, even though with patience
  4073. # the test eventually succeeds (with a max line length of 256k).
  4074. # Instead, let's just punt: use the minimum linelength reported by
  4075. # all of the supported platforms: 8192 (on NT/2K/XP).
  4076. lt_cv_sys_max_cmd_len=8192;
  4077. ;;
  4078. mint*)
  4079. # On MiNT this can take a long time and run out of memory.
  4080. lt_cv_sys_max_cmd_len=8192;
  4081. ;;
  4082. amigaos*)
  4083. # On AmigaOS with pdksh, this test takes hours, literally.
  4084. # So we just punt and use a minimum line length of 8192.
  4085. lt_cv_sys_max_cmd_len=8192;
  4086. ;;
  4087. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4088. # This has been around since 386BSD, at least. Likely further.
  4089. if test -x /sbin/sysctl; then
  4090. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4091. elif test -x /usr/sbin/sysctl; then
  4092. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4093. else
  4094. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4095. fi
  4096. # And add a safety zone
  4097. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4098. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4099. ;;
  4100. interix*)
  4101. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4102. lt_cv_sys_max_cmd_len=196608
  4103. ;;
  4104. os2*)
  4105. # The test takes a long time on OS/2.
  4106. lt_cv_sys_max_cmd_len=8192
  4107. ;;
  4108. osf*)
  4109. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4110. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4111. # nice to cause kernel panics so lets avoid the loop below.
  4112. # First set a reasonable default.
  4113. lt_cv_sys_max_cmd_len=16384
  4114. #
  4115. if test -x /sbin/sysconfig; then
  4116. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4117. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4118. esac
  4119. fi
  4120. ;;
  4121. sco3.2v5*)
  4122. lt_cv_sys_max_cmd_len=102400
  4123. ;;
  4124. sysv5* | sco5v6* | sysv4.2uw2*)
  4125. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4126. if test -n "$kargmax"; then
  4127. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4128. else
  4129. lt_cv_sys_max_cmd_len=32768
  4130. fi
  4131. ;;
  4132. *)
  4133. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4134. if test -n "$lt_cv_sys_max_cmd_len" && \
  4135. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4136. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4137. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4138. else
  4139. # Make teststring a little bigger before we do anything with it.
  4140. # a 1K string should be a reasonable start.
  4141. for i in 1 2 3 4 5 6 7 8; do
  4142. teststring=$teststring$teststring
  4143. done
  4144. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4145. # If test is not a shell built-in, we'll probably end up computing a
  4146. # maximum length that is only half of the actual maximum length, but
  4147. # we can't tell.
  4148. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4149. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4150. test 17 != "$i" # 1/2 MB should be enough
  4151. do
  4152. i=`expr $i + 1`
  4153. teststring=$teststring$teststring
  4154. done
  4155. # Only check the string length outside the loop.
  4156. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4157. teststring=
  4158. # Add a significant safety factor because C++ compilers can tack on
  4159. # massive amounts of additional arguments before passing them to the
  4160. # linker. It appears as though 1/2 is a usable value.
  4161. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4162. fi
  4163. ;;
  4164. esac
  4165. fi
  4166. if test -n "$lt_cv_sys_max_cmd_len"; then
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4168. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4169. else
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4171. $as_echo "none" >&6; }
  4172. fi
  4173. max_cmd_len=$lt_cv_sys_max_cmd_len
  4174. : ${CP="cp -f"}
  4175. : ${MV="mv -f"}
  4176. : ${RM="rm -f"}
  4177. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4178. lt_unset=unset
  4179. else
  4180. lt_unset=false
  4181. fi
  4182. # test EBCDIC or ASCII
  4183. case `echo X|tr X '\101'` in
  4184. A) # ASCII based system
  4185. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4186. lt_SP2NL='tr \040 \012'
  4187. lt_NL2SP='tr \015\012 \040\040'
  4188. ;;
  4189. *) # EBCDIC based system
  4190. lt_SP2NL='tr \100 \n'
  4191. lt_NL2SP='tr \r\n \100\100'
  4192. ;;
  4193. esac
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4195. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4196. if ${lt_cv_to_host_file_cmd+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. case $host in
  4200. *-*-mingw* )
  4201. case $build in
  4202. *-*-mingw* ) # actually msys
  4203. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4204. ;;
  4205. *-*-cygwin* )
  4206. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4207. ;;
  4208. * ) # otherwise, assume *nix
  4209. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4210. ;;
  4211. esac
  4212. ;;
  4213. *-*-cygwin* )
  4214. case $build in
  4215. *-*-mingw* ) # actually msys
  4216. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4217. ;;
  4218. *-*-cygwin* )
  4219. lt_cv_to_host_file_cmd=func_convert_file_noop
  4220. ;;
  4221. * ) # otherwise, assume *nix
  4222. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4223. ;;
  4224. esac
  4225. ;;
  4226. * ) # unhandled hosts (and "normal" native builds)
  4227. lt_cv_to_host_file_cmd=func_convert_file_noop
  4228. ;;
  4229. esac
  4230. fi
  4231. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4233. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4235. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4236. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. #assume ordinary cross tools, or native build.
  4240. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4241. case $host in
  4242. *-*-mingw* )
  4243. case $build in
  4244. *-*-mingw* ) # actually msys
  4245. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4246. ;;
  4247. esac
  4248. ;;
  4249. esac
  4250. fi
  4251. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4253. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4255. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4256. if ${lt_cv_ld_reload_flag+:} false; then :
  4257. $as_echo_n "(cached) " >&6
  4258. else
  4259. lt_cv_ld_reload_flag='-r'
  4260. fi
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4262. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4263. reload_flag=$lt_cv_ld_reload_flag
  4264. case $reload_flag in
  4265. "" | " "*) ;;
  4266. *) reload_flag=" $reload_flag" ;;
  4267. esac
  4268. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4269. case $host_os in
  4270. cygwin* | mingw* | pw32* | cegcc*)
  4271. if test yes != "$GCC"; then
  4272. reload_cmds=false
  4273. fi
  4274. ;;
  4275. darwin*)
  4276. if test yes = "$GCC"; then
  4277. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4278. else
  4279. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4280. fi
  4281. ;;
  4282. esac
  4283. if test -n "$ac_tool_prefix"; then
  4284. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4285. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4287. $as_echo_n "checking for $ac_word... " >&6; }
  4288. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4289. $as_echo_n "(cached) " >&6
  4290. else
  4291. if test -n "$OBJDUMP"; then
  4292. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4293. else
  4294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. for as_dir in $PATH
  4296. do
  4297. IFS=$as_save_IFS
  4298. test -z "$as_dir" && as_dir=.
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4301. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4303. break 2
  4304. fi
  4305. done
  4306. done
  4307. IFS=$as_save_IFS
  4308. fi
  4309. fi
  4310. OBJDUMP=$ac_cv_prog_OBJDUMP
  4311. if test -n "$OBJDUMP"; then
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4313. $as_echo "$OBJDUMP" >&6; }
  4314. else
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4316. $as_echo "no" >&6; }
  4317. fi
  4318. fi
  4319. if test -z "$ac_cv_prog_OBJDUMP"; then
  4320. ac_ct_OBJDUMP=$OBJDUMP
  4321. # Extract the first word of "objdump", so it can be a program name with args.
  4322. set dummy objdump; ac_word=$2
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4324. $as_echo_n "checking for $ac_word... " >&6; }
  4325. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. if test -n "$ac_ct_OBJDUMP"; then
  4329. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4330. else
  4331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4332. for as_dir in $PATH
  4333. do
  4334. IFS=$as_save_IFS
  4335. test -z "$as_dir" && as_dir=.
  4336. for ac_exec_ext in '' $ac_executable_extensions; do
  4337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4338. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4340. break 2
  4341. fi
  4342. done
  4343. done
  4344. IFS=$as_save_IFS
  4345. fi
  4346. fi
  4347. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4348. if test -n "$ac_ct_OBJDUMP"; then
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4350. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4351. else
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4353. $as_echo "no" >&6; }
  4354. fi
  4355. if test "x$ac_ct_OBJDUMP" = x; then
  4356. OBJDUMP="false"
  4357. else
  4358. case $cross_compiling:$ac_tool_warned in
  4359. yes:)
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4361. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4362. ac_tool_warned=yes ;;
  4363. esac
  4364. OBJDUMP=$ac_ct_OBJDUMP
  4365. fi
  4366. else
  4367. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4368. fi
  4369. test -z "$OBJDUMP" && OBJDUMP=objdump
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4371. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4372. if ${lt_cv_deplibs_check_method+:} false; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4376. lt_cv_file_magic_test_file=
  4377. lt_cv_deplibs_check_method='unknown'
  4378. # Need to set the preceding variable on all platforms that support
  4379. # interlibrary dependencies.
  4380. # 'none' -- dependencies not supported.
  4381. # 'unknown' -- same as none, but documents that we really don't know.
  4382. # 'pass_all' -- all dependencies passed with no checks.
  4383. # 'test_compile' -- check by making test program.
  4384. # 'file_magic [[regex]]' -- check by looking for files in library path
  4385. # that responds to the $file_magic_cmd with a given extended regex.
  4386. # If you have 'file' or equivalent on your system and you're not sure
  4387. # whether 'pass_all' will *always* work, you probably want this one.
  4388. case $host_os in
  4389. aix[4-9]*)
  4390. lt_cv_deplibs_check_method=pass_all
  4391. ;;
  4392. beos*)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. bsdi[45]*)
  4396. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4397. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4398. lt_cv_file_magic_test_file=/shlib/libc.so
  4399. ;;
  4400. cygwin*)
  4401. # func_win32_libid is a shell function defined in ltmain.sh
  4402. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4403. lt_cv_file_magic_cmd='func_win32_libid'
  4404. lt_cv_deplibs_check_method=pass_all # SDL customization
  4405. ;;
  4406. mingw* | pw32*)
  4407. # Base MSYS/MinGW do not provide the 'file' command needed by
  4408. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4409. # unless we find 'file', for example because we are cross-compiling.
  4410. if ( file / ) >/dev/null 2>&1; then
  4411. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4412. lt_cv_file_magic_cmd='func_win32_libid'
  4413. else
  4414. # Keep this pattern in sync with the one in func_win32_libid.
  4415. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4416. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4417. fi
  4418. lt_cv_deplibs_check_method=pass_all # SDL customization
  4419. ;;
  4420. cegcc*)
  4421. # use the weaker test based on 'objdump'. See mingw*.
  4422. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4423. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4424. ;;
  4425. darwin* | rhapsody*)
  4426. lt_cv_deplibs_check_method=pass_all
  4427. ;;
  4428. freebsd* | dragonfly* | midnightbsd*)
  4429. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4430. case $host_cpu in
  4431. i*86 )
  4432. # Not sure whether the presence of OpenBSD here was a mistake.
  4433. # Let's accept both of them until this is cleared up.
  4434. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4435. lt_cv_file_magic_cmd=/usr/bin/file
  4436. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4437. ;;
  4438. esac
  4439. else
  4440. lt_cv_deplibs_check_method=pass_all
  4441. fi
  4442. ;;
  4443. haiku*)
  4444. lt_cv_deplibs_check_method=pass_all
  4445. ;;
  4446. hpux10.20* | hpux11*)
  4447. lt_cv_file_magic_cmd=/usr/bin/file
  4448. case $host_cpu in
  4449. ia64*)
  4450. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4451. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4452. ;;
  4453. hppa*64*)
  4454. 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]'
  4455. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4456. ;;
  4457. *)
  4458. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4459. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4460. ;;
  4461. esac
  4462. ;;
  4463. interix[3-9]*)
  4464. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4466. ;;
  4467. irix5* | irix6* | nonstopux*)
  4468. case $LD in
  4469. *-32|*"-32 ") libmagic=32-bit;;
  4470. *-n32|*"-n32 ") libmagic=N32;;
  4471. *-64|*"-64 ") libmagic=64-bit;;
  4472. *) libmagic=never-match;;
  4473. esac
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. # This must be glibc/ELF.
  4477. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4478. lt_cv_deplibs_check_method=pass_all
  4479. ;;
  4480. netbsd*)
  4481. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4483. else
  4484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4485. fi
  4486. ;;
  4487. newos6*)
  4488. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4489. lt_cv_file_magic_cmd=/usr/bin/file
  4490. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4491. ;;
  4492. *nto* | *qnx*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. openbsd* | bitrig*)
  4496. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4497. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4498. else
  4499. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4500. fi
  4501. ;;
  4502. osf3* | osf4* | osf5*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. rdos*)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. solaris*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. sysv4 | sysv4.3*)
  4515. case $host_vendor in
  4516. motorola)
  4517. 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]'
  4518. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4519. ;;
  4520. ncr)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. sequent)
  4524. lt_cv_file_magic_cmd='/bin/file'
  4525. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4526. ;;
  4527. sni)
  4528. lt_cv_file_magic_cmd='/bin/file'
  4529. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4530. lt_cv_file_magic_test_file=/lib/libc.so
  4531. ;;
  4532. siemens)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. pc)
  4536. lt_cv_deplibs_check_method=pass_all
  4537. ;;
  4538. esac
  4539. ;;
  4540. tpf*)
  4541. lt_cv_deplibs_check_method=pass_all
  4542. ;;
  4543. os2*)
  4544. lt_cv_deplibs_check_method=pass_all
  4545. ;;
  4546. esac
  4547. fi
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4549. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4550. file_magic_glob=
  4551. want_nocaseglob=no
  4552. if test "$build" = "$host"; then
  4553. case $host_os in
  4554. mingw* | pw32*)
  4555. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4556. want_nocaseglob=yes
  4557. else
  4558. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4559. fi
  4560. ;;
  4561. esac
  4562. fi
  4563. file_magic_cmd=$lt_cv_file_magic_cmd
  4564. deplibs_check_method=$lt_cv_deplibs_check_method
  4565. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4566. if test -n "$ac_tool_prefix"; then
  4567. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4568. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4570. $as_echo_n "checking for $ac_word... " >&6; }
  4571. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. if test -n "$DLLTOOL"; then
  4575. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4576. else
  4577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4578. for as_dir in $PATH
  4579. do
  4580. IFS=$as_save_IFS
  4581. test -z "$as_dir" && as_dir=.
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4584. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4586. break 2
  4587. fi
  4588. done
  4589. done
  4590. IFS=$as_save_IFS
  4591. fi
  4592. fi
  4593. DLLTOOL=$ac_cv_prog_DLLTOOL
  4594. if test -n "$DLLTOOL"; then
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4596. $as_echo "$DLLTOOL" >&6; }
  4597. else
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4599. $as_echo "no" >&6; }
  4600. fi
  4601. fi
  4602. if test -z "$ac_cv_prog_DLLTOOL"; then
  4603. ac_ct_DLLTOOL=$DLLTOOL
  4604. # Extract the first word of "dlltool", so it can be a program name with args.
  4605. set dummy dlltool; ac_word=$2
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4607. $as_echo_n "checking for $ac_word... " >&6; }
  4608. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$ac_ct_DLLTOOL"; then
  4612. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4621. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4623. break 2
  4624. fi
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. fi
  4629. fi
  4630. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4631. if test -n "$ac_ct_DLLTOOL"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4633. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4636. $as_echo "no" >&6; }
  4637. fi
  4638. if test "x$ac_ct_DLLTOOL" = x; then
  4639. DLLTOOL="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. DLLTOOL=$ac_ct_DLLTOOL
  4648. fi
  4649. else
  4650. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4651. fi
  4652. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4654. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4655. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4659. case $host_os in
  4660. cygwin* | mingw* | pw32* | cegcc*)
  4661. # two different shell functions defined in ltmain.sh;
  4662. # decide which one to use based on capabilities of $DLLTOOL
  4663. case `$DLLTOOL --help 2>&1` in
  4664. *--identify-strict*)
  4665. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4666. ;;
  4667. *)
  4668. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4669. ;;
  4670. esac
  4671. ;;
  4672. *)
  4673. # fallback: assume linklib IS sharedlib
  4674. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4675. ;;
  4676. esac
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4679. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4680. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4681. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4682. if test -n "$ac_tool_prefix"; then
  4683. for ac_prog in ar
  4684. do
  4685. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4686. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. $as_echo_n "checking for $ac_word... " >&6; }
  4689. if ${ac_cv_prog_AR+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$AR"; then
  4693. ac_cv_prog_AR="$AR" # Let the user override the test.
  4694. else
  4695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696. for as_dir in $PATH
  4697. do
  4698. IFS=$as_save_IFS
  4699. test -z "$as_dir" && as_dir=.
  4700. for ac_exec_ext in '' $ac_executable_extensions; do
  4701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4702. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704. break 2
  4705. fi
  4706. done
  4707. done
  4708. IFS=$as_save_IFS
  4709. fi
  4710. fi
  4711. AR=$ac_cv_prog_AR
  4712. if test -n "$AR"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4714. $as_echo "$AR" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. test -n "$AR" && break
  4720. done
  4721. fi
  4722. if test -z "$AR"; then
  4723. ac_ct_AR=$AR
  4724. for ac_prog in ar
  4725. do
  4726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4727. set dummy $ac_prog; ac_word=$2
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4729. $as_echo_n "checking for $ac_word... " >&6; }
  4730. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. if test -n "$ac_ct_AR"; then
  4734. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4735. else
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH
  4738. do
  4739. IFS=$as_save_IFS
  4740. test -z "$as_dir" && as_dir=.
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4743. ac_cv_prog_ac_ct_AR="$ac_prog"
  4744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4745. break 2
  4746. fi
  4747. done
  4748. done
  4749. IFS=$as_save_IFS
  4750. fi
  4751. fi
  4752. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4753. if test -n "$ac_ct_AR"; then
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4755. $as_echo "$ac_ct_AR" >&6; }
  4756. else
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4758. $as_echo "no" >&6; }
  4759. fi
  4760. test -n "$ac_ct_AR" && break
  4761. done
  4762. if test "x$ac_ct_AR" = x; then
  4763. AR="false"
  4764. else
  4765. case $cross_compiling:$ac_tool_warned in
  4766. yes:)
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4769. ac_tool_warned=yes ;;
  4770. esac
  4771. AR=$ac_ct_AR
  4772. fi
  4773. fi
  4774. : ${AR=ar}
  4775. : ${AR_FLAGS=cru}
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4777. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4778. if ${lt_cv_ar_at_file+:} false; then :
  4779. $as_echo_n "(cached) " >&6
  4780. else
  4781. lt_cv_ar_at_file=no
  4782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4783. /* end confdefs.h. */
  4784. int
  4785. main ()
  4786. {
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. if ac_fn_c_try_compile "$LINENO"; then :
  4792. echo conftest.$ac_objext > conftest.lst
  4793. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4794. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4795. (eval $lt_ar_try) 2>&5
  4796. ac_status=$?
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4798. test $ac_status = 0; }
  4799. if test 0 -eq "$ac_status"; then
  4800. # Ensure the archiver fails upon bogus file names.
  4801. rm -f conftest.$ac_objext libconftest.a
  4802. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4803. (eval $lt_ar_try) 2>&5
  4804. ac_status=$?
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4806. test $ac_status = 0; }
  4807. if test 0 -ne "$ac_status"; then
  4808. lt_cv_ar_at_file=@
  4809. fi
  4810. fi
  4811. rm -f conftest.* libconftest.a
  4812. fi
  4813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4816. $as_echo "$lt_cv_ar_at_file" >&6; }
  4817. if test no = "$lt_cv_ar_at_file"; then
  4818. archiver_list_spec=
  4819. else
  4820. archiver_list_spec=$lt_cv_ar_at_file
  4821. fi
  4822. if test -n "$ac_tool_prefix"; then
  4823. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4824. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4826. $as_echo_n "checking for $ac_word... " >&6; }
  4827. if ${ac_cv_prog_STRIP+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. if test -n "$STRIP"; then
  4831. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4832. else
  4833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4834. for as_dir in $PATH
  4835. do
  4836. IFS=$as_save_IFS
  4837. test -z "$as_dir" && as_dir=.
  4838. for ac_exec_ext in '' $ac_executable_extensions; do
  4839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4840. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4842. break 2
  4843. fi
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. fi
  4848. fi
  4849. STRIP=$ac_cv_prog_STRIP
  4850. if test -n "$STRIP"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4852. $as_echo "$STRIP" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. fi
  4858. if test -z "$ac_cv_prog_STRIP"; then
  4859. ac_ct_STRIP=$STRIP
  4860. # Extract the first word of "strip", so it can be a program name with args.
  4861. set dummy strip; ac_word=$2
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4863. $as_echo_n "checking for $ac_word... " >&6; }
  4864. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. if test -n "$ac_ct_STRIP"; then
  4868. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4869. else
  4870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4871. for as_dir in $PATH
  4872. do
  4873. IFS=$as_save_IFS
  4874. test -z "$as_dir" && as_dir=.
  4875. for ac_exec_ext in '' $ac_executable_extensions; do
  4876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4877. ac_cv_prog_ac_ct_STRIP="strip"
  4878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4879. break 2
  4880. fi
  4881. done
  4882. done
  4883. IFS=$as_save_IFS
  4884. fi
  4885. fi
  4886. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4887. if test -n "$ac_ct_STRIP"; then
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4889. $as_echo "$ac_ct_STRIP" >&6; }
  4890. else
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4892. $as_echo "no" >&6; }
  4893. fi
  4894. if test "x$ac_ct_STRIP" = x; then
  4895. STRIP=":"
  4896. else
  4897. case $cross_compiling:$ac_tool_warned in
  4898. yes:)
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4901. ac_tool_warned=yes ;;
  4902. esac
  4903. STRIP=$ac_ct_STRIP
  4904. fi
  4905. else
  4906. STRIP="$ac_cv_prog_STRIP"
  4907. fi
  4908. test -z "$STRIP" && STRIP=:
  4909. if test -n "$ac_tool_prefix"; then
  4910. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4911. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_RANLIB+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$RANLIB"; then
  4918. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. RANLIB=$ac_cv_prog_RANLIB
  4937. if test -n "$RANLIB"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4939. $as_echo "$RANLIB" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. fi
  4945. if test -z "$ac_cv_prog_RANLIB"; then
  4946. ac_ct_RANLIB=$RANLIB
  4947. # Extract the first word of "ranlib", so it can be a program name with args.
  4948. set dummy ranlib; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -n "$ac_ct_RANLIB"; then
  4955. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4956. else
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4964. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4974. if test -n "$ac_ct_RANLIB"; then
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4976. $as_echo "$ac_ct_RANLIB" >&6; }
  4977. else
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. $as_echo "no" >&6; }
  4980. fi
  4981. if test "x$ac_ct_RANLIB" = x; then
  4982. RANLIB=":"
  4983. else
  4984. case $cross_compiling:$ac_tool_warned in
  4985. yes:)
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4988. ac_tool_warned=yes ;;
  4989. esac
  4990. RANLIB=$ac_ct_RANLIB
  4991. fi
  4992. else
  4993. RANLIB="$ac_cv_prog_RANLIB"
  4994. fi
  4995. test -z "$RANLIB" && RANLIB=:
  4996. # Determine commands to create old-style static archives.
  4997. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4998. old_postinstall_cmds='chmod 644 $oldlib'
  4999. old_postuninstall_cmds=
  5000. if test -n "$RANLIB"; then
  5001. case $host_os in
  5002. bitrig* | openbsd*)
  5003. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5004. ;;
  5005. *)
  5006. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5007. ;;
  5008. esac
  5009. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5010. fi
  5011. case $host_os in
  5012. darwin*)
  5013. lock_old_archive_extraction=yes ;;
  5014. *)
  5015. lock_old_archive_extraction=no ;;
  5016. esac
  5017. for ac_prog in gawk mawk nawk awk
  5018. do
  5019. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5020. set dummy $ac_prog; ac_word=$2
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5022. $as_echo_n "checking for $ac_word... " >&6; }
  5023. if ${ac_cv_prog_AWK+:} false; then :
  5024. $as_echo_n "(cached) " >&6
  5025. else
  5026. if test -n "$AWK"; then
  5027. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5028. else
  5029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5030. for as_dir in $PATH
  5031. do
  5032. IFS=$as_save_IFS
  5033. test -z "$as_dir" && as_dir=.
  5034. for ac_exec_ext in '' $ac_executable_extensions; do
  5035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5036. ac_cv_prog_AWK="$ac_prog"
  5037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5038. break 2
  5039. fi
  5040. done
  5041. done
  5042. IFS=$as_save_IFS
  5043. fi
  5044. fi
  5045. AWK=$ac_cv_prog_AWK
  5046. if test -n "$AWK"; then
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5048. $as_echo "$AWK" >&6; }
  5049. else
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5051. $as_echo "no" >&6; }
  5052. fi
  5053. test -n "$AWK" && break
  5054. done
  5055. # If no C compiler was specified, use CC.
  5056. LTCC=${LTCC-"$CC"}
  5057. # If no C compiler flags were specified, use CFLAGS.
  5058. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5059. # Allow CC to be a program name with arguments.
  5060. compiler=$CC
  5061. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5063. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5064. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. # These are sane defaults that work on at least a few old systems.
  5068. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5069. # Character class describing NM global symbol codes.
  5070. symcode='[BCDEGRST]'
  5071. # Regexp to match symbols that can be accessed directly from C.
  5072. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5073. # Define system-specific variables.
  5074. case $host_os in
  5075. aix*)
  5076. symcode='[BCDT]'
  5077. ;;
  5078. cygwin* | mingw* | pw32* | cegcc*)
  5079. symcode='[ABCDGISTW]'
  5080. ;;
  5081. hpux*)
  5082. if test ia64 = "$host_cpu"; then
  5083. symcode='[ABCDEGRST]'
  5084. fi
  5085. ;;
  5086. irix* | nonstopux*)
  5087. symcode='[BCDEGRST]'
  5088. ;;
  5089. osf*)
  5090. symcode='[BCDEGQRST]'
  5091. ;;
  5092. solaris*)
  5093. symcode='[BCDRT]'
  5094. ;;
  5095. sco3.2v5*)
  5096. symcode='[DT]'
  5097. ;;
  5098. sysv4.2uw2*)
  5099. symcode='[DT]'
  5100. ;;
  5101. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5102. symcode='[ABDT]'
  5103. ;;
  5104. sysv4)
  5105. symcode='[DFNSTU]'
  5106. ;;
  5107. esac
  5108. # If we're using GNU nm, then use its standard symbol codes.
  5109. case `$NM -V 2>&1` in
  5110. *GNU* | *'with BFD'*)
  5111. symcode='[ABCDGIRSTW]' ;;
  5112. esac
  5113. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5114. # Gets list of data symbols to import.
  5115. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5116. # Adjust the below global symbol transforms to fixup imported variables.
  5117. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5118. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5119. lt_c_name_lib_hook="\
  5120. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5121. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5122. else
  5123. # Disable hooks by default.
  5124. lt_cv_sys_global_symbol_to_import=
  5125. lt_cdecl_hook=
  5126. lt_c_name_hook=
  5127. lt_c_name_lib_hook=
  5128. fi
  5129. # Transform an extracted symbol line into a proper C declaration.
  5130. # Some systems (esp. on ia64) link data and code symbols differently,
  5131. # so use this general approach.
  5132. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5133. $lt_cdecl_hook\
  5134. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5135. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5136. # Transform an extracted symbol line into symbol name and symbol address
  5137. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5138. $lt_c_name_hook\
  5139. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5140. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5141. # Transform an extracted symbol line into symbol name with lib prefix and
  5142. # symbol address.
  5143. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5144. $lt_c_name_lib_hook\
  5145. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5146. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5147. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5148. # Handle CRLF in mingw tool chain
  5149. opt_cr=
  5150. case $build_os in
  5151. mingw*)
  5152. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5153. ;;
  5154. esac
  5155. # Try without a prefix underscore, then with it.
  5156. for ac_symprfx in "" "_"; do
  5157. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5158. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5159. # Write the raw and C identifiers.
  5160. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5161. # Fake it for dumpbin and say T for any non-static function,
  5162. # D for any global variable and I for any imported variable.
  5163. # Also find C++ and __fastcall symbols from MSVC++,
  5164. # which start with @ or ?.
  5165. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5166. " {last_section=section; section=\$ 3};"\
  5167. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5168. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5169. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5170. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5171. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5172. " \$ 0!~/External *\|/{next};"\
  5173. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5174. " {if(hide[section]) next};"\
  5175. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5176. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5177. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5178. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5179. " ' prfx=^$ac_symprfx"
  5180. else
  5181. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5182. fi
  5183. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5184. # Check to see that the pipe works correctly.
  5185. pipe_works=no
  5186. rm -f conftest*
  5187. cat > conftest.$ac_ext <<_LT_EOF
  5188. #ifdef __cplusplus
  5189. extern "C" {
  5190. #endif
  5191. char nm_test_var;
  5192. void nm_test_func(void);
  5193. void nm_test_func(void){}
  5194. #ifdef __cplusplus
  5195. }
  5196. #endif
  5197. int main(){nm_test_var='a';nm_test_func();return(0);}
  5198. _LT_EOF
  5199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5200. (eval $ac_compile) 2>&5
  5201. ac_status=$?
  5202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5203. test $ac_status = 0; }; then
  5204. # Now try to grab the symbols.
  5205. nlist=conftest.nm
  5206. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5207. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5208. ac_status=$?
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5210. test $ac_status = 0; } && test -s "$nlist"; then
  5211. # Try sorting and uniquifying the output.
  5212. if sort "$nlist" | uniq > "$nlist"T; then
  5213. mv -f "$nlist"T "$nlist"
  5214. else
  5215. rm -f "$nlist"T
  5216. fi
  5217. # Make sure that we snagged all the symbols we need.
  5218. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5219. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5220. cat <<_LT_EOF > conftest.$ac_ext
  5221. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5222. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5223. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5224. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5225. # define LT_DLSYM_CONST
  5226. #elif defined __osf__
  5227. /* This system does not cope well with relocations in const data. */
  5228. # define LT_DLSYM_CONST
  5229. #else
  5230. # define LT_DLSYM_CONST const
  5231. #endif
  5232. #ifdef __cplusplus
  5233. extern "C" {
  5234. #endif
  5235. _LT_EOF
  5236. # Now generate the symbol file.
  5237. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5238. cat <<_LT_EOF >> conftest.$ac_ext
  5239. /* The mapping between symbol names and symbols. */
  5240. LT_DLSYM_CONST struct {
  5241. const char *name;
  5242. void *address;
  5243. }
  5244. lt__PROGRAM__LTX_preloaded_symbols[] =
  5245. {
  5246. { "@PROGRAM@", (void *) 0 },
  5247. _LT_EOF
  5248. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5249. cat <<\_LT_EOF >> conftest.$ac_ext
  5250. {0, (void *) 0}
  5251. };
  5252. /* This works around a problem in FreeBSD linker */
  5253. #ifdef FREEBSD_WORKAROUND
  5254. static const void *lt_preloaded_setup() {
  5255. return lt__PROGRAM__LTX_preloaded_symbols;
  5256. }
  5257. #endif
  5258. #ifdef __cplusplus
  5259. }
  5260. #endif
  5261. _LT_EOF
  5262. # Now try linking the two files.
  5263. mv conftest.$ac_objext conftstm.$ac_objext
  5264. lt_globsym_save_LIBS=$LIBS
  5265. lt_globsym_save_CFLAGS=$CFLAGS
  5266. LIBS=conftstm.$ac_objext
  5267. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5269. (eval $ac_link) 2>&5
  5270. ac_status=$?
  5271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5272. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5273. pipe_works=yes
  5274. fi
  5275. LIBS=$lt_globsym_save_LIBS
  5276. CFLAGS=$lt_globsym_save_CFLAGS
  5277. else
  5278. echo "cannot find nm_test_func in $nlist" >&5
  5279. fi
  5280. else
  5281. echo "cannot find nm_test_var in $nlist" >&5
  5282. fi
  5283. else
  5284. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5285. fi
  5286. else
  5287. echo "$progname: failed program was:" >&5
  5288. cat conftest.$ac_ext >&5
  5289. fi
  5290. rm -rf conftest* conftst*
  5291. # Do not use the global_symbol_pipe unless it works.
  5292. if test yes = "$pipe_works"; then
  5293. break
  5294. else
  5295. lt_cv_sys_global_symbol_pipe=
  5296. fi
  5297. done
  5298. fi
  5299. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5300. lt_cv_sys_global_symbol_to_cdecl=
  5301. fi
  5302. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5304. $as_echo "failed" >&6; }
  5305. else
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5307. $as_echo "ok" >&6; }
  5308. fi
  5309. # Response file support.
  5310. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5311. nm_file_list_spec='@'
  5312. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5313. nm_file_list_spec='@'
  5314. fi
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5316. $as_echo_n "checking for sysroot... " >&6; }
  5317. # Check whether --with-sysroot was given.
  5318. if test "${with_sysroot+set}" = set; then :
  5319. withval=$with_sysroot;
  5320. else
  5321. with_sysroot=no
  5322. fi
  5323. lt_sysroot=
  5324. case $with_sysroot in #(
  5325. yes)
  5326. if test yes = "$GCC"; then
  5327. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5328. fi
  5329. ;; #(
  5330. /*)
  5331. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5332. ;; #(
  5333. no|'')
  5334. ;; #(
  5335. *)
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5337. $as_echo "$with_sysroot" >&6; }
  5338. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5339. ;;
  5340. esac
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5342. $as_echo "${lt_sysroot:-no}" >&6; }
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5344. $as_echo_n "checking for a working dd... " >&6; }
  5345. if ${ac_cv_path_lt_DD+:} false; then :
  5346. $as_echo_n "(cached) " >&6
  5347. else
  5348. printf 0123456789abcdef0123456789abcdef >conftest.i
  5349. cat conftest.i conftest.i >conftest2.i
  5350. : ${lt_DD:=$DD}
  5351. if test -z "$lt_DD"; then
  5352. ac_path_lt_DD_found=false
  5353. # Loop through the user's path and test for each of PROGNAME-LIST
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_prog in dd; do
  5360. for ac_exec_ext in '' $ac_executable_extensions; do
  5361. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5362. as_fn_executable_p "$ac_path_lt_DD" || continue
  5363. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5364. cmp -s conftest.i conftest.out \
  5365. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5366. fi
  5367. $ac_path_lt_DD_found && break 3
  5368. done
  5369. done
  5370. done
  5371. IFS=$as_save_IFS
  5372. if test -z "$ac_cv_path_lt_DD"; then
  5373. :
  5374. fi
  5375. else
  5376. ac_cv_path_lt_DD=$lt_DD
  5377. fi
  5378. rm -f conftest.i conftest2.i conftest.out
  5379. fi
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5381. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5383. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5384. if ${lt_cv_truncate_bin+:} false; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. printf 0123456789abcdef0123456789abcdef >conftest.i
  5388. cat conftest.i conftest.i >conftest2.i
  5389. lt_cv_truncate_bin=
  5390. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5391. cmp -s conftest.i conftest.out \
  5392. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5393. fi
  5394. rm -f conftest.i conftest2.i conftest.out
  5395. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5396. fi
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5398. $as_echo "$lt_cv_truncate_bin" >&6; }
  5399. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5400. func_cc_basename ()
  5401. {
  5402. for cc_temp in $*""; do
  5403. case $cc_temp in
  5404. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5405. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5406. \-*) ;;
  5407. *) break;;
  5408. esac
  5409. done
  5410. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5411. }
  5412. # Check whether --enable-libtool-lock was given.
  5413. if test "${enable_libtool_lock+set}" = set; then :
  5414. enableval=$enable_libtool_lock;
  5415. fi
  5416. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5417. # Some flags need to be propagated to the compiler or linker for good
  5418. # libtool support.
  5419. case $host in
  5420. ia64-*-hpux*)
  5421. # Find out what ABI is being produced by ac_compile, and set mode
  5422. # options accordingly.
  5423. echo 'int i;' > conftest.$ac_ext
  5424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5425. (eval $ac_compile) 2>&5
  5426. ac_status=$?
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5428. test $ac_status = 0; }; then
  5429. case `/usr/bin/file conftest.$ac_objext` in
  5430. *ELF-32*)
  5431. HPUX_IA64_MODE=32
  5432. ;;
  5433. *ELF-64*)
  5434. HPUX_IA64_MODE=64
  5435. ;;
  5436. esac
  5437. fi
  5438. rm -rf conftest*
  5439. ;;
  5440. *-*-irix6*)
  5441. # Find out what ABI is being produced by ac_compile, and set linker
  5442. # options accordingly.
  5443. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5444. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5445. (eval $ac_compile) 2>&5
  5446. ac_status=$?
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5448. test $ac_status = 0; }; then
  5449. if test yes = "$lt_cv_prog_gnu_ld"; then
  5450. case `/usr/bin/file conftest.$ac_objext` in
  5451. *32-bit*)
  5452. LD="${LD-ld} -melf32bsmip"
  5453. ;;
  5454. *N32*)
  5455. LD="${LD-ld} -melf32bmipn32"
  5456. ;;
  5457. *64-bit*)
  5458. LD="${LD-ld} -melf64bmip"
  5459. ;;
  5460. esac
  5461. else
  5462. case `/usr/bin/file conftest.$ac_objext` in
  5463. *32-bit*)
  5464. LD="${LD-ld} -32"
  5465. ;;
  5466. *N32*)
  5467. LD="${LD-ld} -n32"
  5468. ;;
  5469. *64-bit*)
  5470. LD="${LD-ld} -64"
  5471. ;;
  5472. esac
  5473. fi
  5474. fi
  5475. rm -rf conftest*
  5476. ;;
  5477. mips64*-*linux*)
  5478. # Find out what ABI is being produced by ac_compile, and set linker
  5479. # options accordingly.
  5480. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5482. (eval $ac_compile) 2>&5
  5483. ac_status=$?
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5485. test $ac_status = 0; }; then
  5486. emul=elf
  5487. case `/usr/bin/file conftest.$ac_objext` in
  5488. *32-bit*)
  5489. emul="${emul}32"
  5490. ;;
  5491. *64-bit*)
  5492. emul="${emul}64"
  5493. ;;
  5494. esac
  5495. case `/usr/bin/file conftest.$ac_objext` in
  5496. *MSB*)
  5497. emul="${emul}btsmip"
  5498. ;;
  5499. *LSB*)
  5500. emul="${emul}ltsmip"
  5501. ;;
  5502. esac
  5503. case `/usr/bin/file conftest.$ac_objext` in
  5504. *N32*)
  5505. emul="${emul}n32"
  5506. ;;
  5507. esac
  5508. LD="${LD-ld} -m $emul"
  5509. fi
  5510. rm -rf conftest*
  5511. ;;
  5512. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5513. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5514. # Find out what ABI is being produced by ac_compile, and set linker
  5515. # options accordingly. Note that the listed cases only cover the
  5516. # situations where additional linker options are needed (such as when
  5517. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5518. # vice versa); the common cases where no linker options are needed do
  5519. # not appear in the list.
  5520. echo 'int i;' > conftest.$ac_ext
  5521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5522. (eval $ac_compile) 2>&5
  5523. ac_status=$?
  5524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5525. test $ac_status = 0; }; then
  5526. case `/usr/bin/file conftest.o` in
  5527. *32-bit*)
  5528. case $host in
  5529. x86_64-*kfreebsd*-gnu)
  5530. LD="${LD-ld} -m elf_i386_fbsd"
  5531. ;;
  5532. x86_64-*linux*)
  5533. case `/usr/bin/file conftest.o` in
  5534. *x86-64*)
  5535. LD="${LD-ld} -m elf32_x86_64"
  5536. ;;
  5537. *)
  5538. LD="${LD-ld} -m elf_i386"
  5539. ;;
  5540. esac
  5541. ;;
  5542. powerpc64le-*linux*)
  5543. LD="${LD-ld} -m elf32lppclinux"
  5544. ;;
  5545. powerpc64-*linux*)
  5546. LD="${LD-ld} -m elf32ppclinux"
  5547. ;;
  5548. s390x-*linux*)
  5549. LD="${LD-ld} -m elf_s390"
  5550. ;;
  5551. sparc64-*linux*)
  5552. LD="${LD-ld} -m elf32_sparc"
  5553. ;;
  5554. esac
  5555. ;;
  5556. *64-bit*)
  5557. case $host in
  5558. x86_64-*kfreebsd*-gnu)
  5559. LD="${LD-ld} -m elf_x86_64_fbsd"
  5560. ;;
  5561. x86_64-*linux*)
  5562. LD="${LD-ld} -m elf_x86_64"
  5563. ;;
  5564. powerpcle-*linux*|powerpc64le-*linux*)
  5565. LD="${LD-ld} -m elf64lppc"
  5566. ;;
  5567. powerpc-*linux*|powerpc64-*linux*)
  5568. LD="${LD-ld} -m elf64ppc"
  5569. ;;
  5570. s390*-*linux*|s390*-*tpf*)
  5571. LD="${LD-ld} -m elf64_s390"
  5572. ;;
  5573. sparc*-*linux*)
  5574. LD="${LD-ld} -m elf64_sparc"
  5575. ;;
  5576. esac
  5577. ;;
  5578. esac
  5579. fi
  5580. rm -rf conftest*
  5581. ;;
  5582. *-*-sco3.2v5*)
  5583. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5584. SAVE_CFLAGS=$CFLAGS
  5585. CFLAGS="$CFLAGS -belf"
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5587. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5588. if ${lt_cv_cc_needs_belf+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. ac_ext=c
  5592. ac_cpp='$CPP $CPPFLAGS'
  5593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5597. /* end confdefs.h. */
  5598. int
  5599. main ()
  5600. {
  5601. ;
  5602. return 0;
  5603. }
  5604. _ACEOF
  5605. if ac_fn_c_try_link "$LINENO"; then :
  5606. lt_cv_cc_needs_belf=yes
  5607. else
  5608. lt_cv_cc_needs_belf=no
  5609. fi
  5610. rm -f core conftest.err conftest.$ac_objext \
  5611. conftest$ac_exeext conftest.$ac_ext
  5612. ac_ext=c
  5613. ac_cpp='$CPP $CPPFLAGS'
  5614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5617. fi
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5619. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5620. if test yes != "$lt_cv_cc_needs_belf"; then
  5621. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5622. CFLAGS=$SAVE_CFLAGS
  5623. fi
  5624. ;;
  5625. *-*solaris*)
  5626. # Find out what ABI is being produced by ac_compile, and set linker
  5627. # options accordingly.
  5628. echo 'int i;' > conftest.$ac_ext
  5629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5630. (eval $ac_compile) 2>&5
  5631. ac_status=$?
  5632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5633. test $ac_status = 0; }; then
  5634. case `/usr/bin/file conftest.o` in
  5635. *64-bit*)
  5636. case $lt_cv_prog_gnu_ld in
  5637. yes*)
  5638. case $host in
  5639. i?86-*-solaris*|x86_64-*-solaris*)
  5640. LD="${LD-ld} -m elf_x86_64"
  5641. ;;
  5642. sparc*-*-solaris*)
  5643. LD="${LD-ld} -m elf64_sparc"
  5644. ;;
  5645. esac
  5646. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5647. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5648. LD=${LD-ld}_sol2
  5649. fi
  5650. ;;
  5651. *)
  5652. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5653. LD="${LD-ld} -64"
  5654. fi
  5655. ;;
  5656. esac
  5657. ;;
  5658. esac
  5659. fi
  5660. rm -rf conftest*
  5661. ;;
  5662. esac
  5663. need_locks=$enable_libtool_lock
  5664. if test -n "$ac_tool_prefix"; then
  5665. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5666. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5668. $as_echo_n "checking for $ac_word... " >&6; }
  5669. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5670. $as_echo_n "(cached) " >&6
  5671. else
  5672. if test -n "$MANIFEST_TOOL"; then
  5673. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5674. else
  5675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5676. for as_dir in $PATH
  5677. do
  5678. IFS=$as_save_IFS
  5679. test -z "$as_dir" && as_dir=.
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5682. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5684. break 2
  5685. fi
  5686. done
  5687. done
  5688. IFS=$as_save_IFS
  5689. fi
  5690. fi
  5691. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5692. if test -n "$MANIFEST_TOOL"; then
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5694. $as_echo "$MANIFEST_TOOL" >&6; }
  5695. else
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5697. $as_echo "no" >&6; }
  5698. fi
  5699. fi
  5700. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5701. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5702. # Extract the first word of "mt", so it can be a program name with args.
  5703. set dummy mt; ac_word=$2
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5705. $as_echo_n "checking for $ac_word... " >&6; }
  5706. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5707. $as_echo_n "(cached) " >&6
  5708. else
  5709. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5710. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5711. else
  5712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5713. for as_dir in $PATH
  5714. do
  5715. IFS=$as_save_IFS
  5716. test -z "$as_dir" && as_dir=.
  5717. for ac_exec_ext in '' $ac_executable_extensions; do
  5718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5719. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5721. break 2
  5722. fi
  5723. done
  5724. done
  5725. IFS=$as_save_IFS
  5726. fi
  5727. fi
  5728. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5729. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5731. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5732. else
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5734. $as_echo "no" >&6; }
  5735. fi
  5736. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5737. MANIFEST_TOOL=":"
  5738. else
  5739. case $cross_compiling:$ac_tool_warned in
  5740. yes:)
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5743. ac_tool_warned=yes ;;
  5744. esac
  5745. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5746. fi
  5747. else
  5748. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5749. fi
  5750. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5752. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5753. if ${lt_cv_path_mainfest_tool+:} false; then :
  5754. $as_echo_n "(cached) " >&6
  5755. else
  5756. lt_cv_path_mainfest_tool=no
  5757. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5758. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5759. cat conftest.err >&5
  5760. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5761. lt_cv_path_mainfest_tool=yes
  5762. fi
  5763. rm -f conftest*
  5764. fi
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5766. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5767. if test yes != "$lt_cv_path_mainfest_tool"; then
  5768. MANIFEST_TOOL=:
  5769. fi
  5770. case $host_os in
  5771. rhapsody* | darwin*)
  5772. if test -n "$ac_tool_prefix"; then
  5773. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5774. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5776. $as_echo_n "checking for $ac_word... " >&6; }
  5777. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5778. $as_echo_n "(cached) " >&6
  5779. else
  5780. if test -n "$DSYMUTIL"; then
  5781. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5782. else
  5783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5784. for as_dir in $PATH
  5785. do
  5786. IFS=$as_save_IFS
  5787. test -z "$as_dir" && as_dir=.
  5788. for ac_exec_ext in '' $ac_executable_extensions; do
  5789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5790. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5792. break 2
  5793. fi
  5794. done
  5795. done
  5796. IFS=$as_save_IFS
  5797. fi
  5798. fi
  5799. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5800. if test -n "$DSYMUTIL"; then
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5802. $as_echo "$DSYMUTIL" >&6; }
  5803. else
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5805. $as_echo "no" >&6; }
  5806. fi
  5807. fi
  5808. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5809. ac_ct_DSYMUTIL=$DSYMUTIL
  5810. # Extract the first word of "dsymutil", so it can be a program name with args.
  5811. set dummy dsymutil; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. if test -n "$ac_ct_DSYMUTIL"; then
  5818. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. test -z "$as_dir" && as_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5827. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829. break 2
  5830. fi
  5831. done
  5832. done
  5833. IFS=$as_save_IFS
  5834. fi
  5835. fi
  5836. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5837. if test -n "$ac_ct_DSYMUTIL"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5839. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. if test "x$ac_ct_DSYMUTIL" = x; then
  5845. DSYMUTIL=":"
  5846. else
  5847. case $cross_compiling:$ac_tool_warned in
  5848. yes:)
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5851. ac_tool_warned=yes ;;
  5852. esac
  5853. DSYMUTIL=$ac_ct_DSYMUTIL
  5854. fi
  5855. else
  5856. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5857. fi
  5858. if test -n "$ac_tool_prefix"; then
  5859. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5860. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. $as_echo_n "checking for $ac_word... " >&6; }
  5863. if ${ac_cv_prog_NMEDIT+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. if test -n "$NMEDIT"; then
  5867. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5868. else
  5869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5870. for as_dir in $PATH
  5871. do
  5872. IFS=$as_save_IFS
  5873. test -z "$as_dir" && as_dir=.
  5874. for ac_exec_ext in '' $ac_executable_extensions; do
  5875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5876. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5878. break 2
  5879. fi
  5880. done
  5881. done
  5882. IFS=$as_save_IFS
  5883. fi
  5884. fi
  5885. NMEDIT=$ac_cv_prog_NMEDIT
  5886. if test -n "$NMEDIT"; then
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5888. $as_echo "$NMEDIT" >&6; }
  5889. else
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5891. $as_echo "no" >&6; }
  5892. fi
  5893. fi
  5894. if test -z "$ac_cv_prog_NMEDIT"; then
  5895. ac_ct_NMEDIT=$NMEDIT
  5896. # Extract the first word of "nmedit", so it can be a program name with args.
  5897. set dummy nmedit; ac_word=$2
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5899. $as_echo_n "checking for $ac_word... " >&6; }
  5900. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. if test -n "$ac_ct_NMEDIT"; then
  5904. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5905. else
  5906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5907. for as_dir in $PATH
  5908. do
  5909. IFS=$as_save_IFS
  5910. test -z "$as_dir" && as_dir=.
  5911. for ac_exec_ext in '' $ac_executable_extensions; do
  5912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5913. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5915. break 2
  5916. fi
  5917. done
  5918. done
  5919. IFS=$as_save_IFS
  5920. fi
  5921. fi
  5922. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5923. if test -n "$ac_ct_NMEDIT"; then
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5925. $as_echo "$ac_ct_NMEDIT" >&6; }
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5928. $as_echo "no" >&6; }
  5929. fi
  5930. if test "x$ac_ct_NMEDIT" = x; then
  5931. NMEDIT=":"
  5932. else
  5933. case $cross_compiling:$ac_tool_warned in
  5934. yes:)
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5937. ac_tool_warned=yes ;;
  5938. esac
  5939. NMEDIT=$ac_ct_NMEDIT
  5940. fi
  5941. else
  5942. NMEDIT="$ac_cv_prog_NMEDIT"
  5943. fi
  5944. if test -n "$ac_tool_prefix"; then
  5945. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5946. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5948. $as_echo_n "checking for $ac_word... " >&6; }
  5949. if ${ac_cv_prog_LIPO+:} false; then :
  5950. $as_echo_n "(cached) " >&6
  5951. else
  5952. if test -n "$LIPO"; then
  5953. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5954. else
  5955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5956. for as_dir in $PATH
  5957. do
  5958. IFS=$as_save_IFS
  5959. test -z "$as_dir" && as_dir=.
  5960. for ac_exec_ext in '' $ac_executable_extensions; do
  5961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5962. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5964. break 2
  5965. fi
  5966. done
  5967. done
  5968. IFS=$as_save_IFS
  5969. fi
  5970. fi
  5971. LIPO=$ac_cv_prog_LIPO
  5972. if test -n "$LIPO"; then
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5974. $as_echo "$LIPO" >&6; }
  5975. else
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5977. $as_echo "no" >&6; }
  5978. fi
  5979. fi
  5980. if test -z "$ac_cv_prog_LIPO"; then
  5981. ac_ct_LIPO=$LIPO
  5982. # Extract the first word of "lipo", so it can be a program name with args.
  5983. set dummy lipo; ac_word=$2
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5985. $as_echo_n "checking for $ac_word... " >&6; }
  5986. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5987. $as_echo_n "(cached) " >&6
  5988. else
  5989. if test -n "$ac_ct_LIPO"; then
  5990. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5991. else
  5992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5993. for as_dir in $PATH
  5994. do
  5995. IFS=$as_save_IFS
  5996. test -z "$as_dir" && as_dir=.
  5997. for ac_exec_ext in '' $ac_executable_extensions; do
  5998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5999. ac_cv_prog_ac_ct_LIPO="lipo"
  6000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6001. break 2
  6002. fi
  6003. done
  6004. done
  6005. IFS=$as_save_IFS
  6006. fi
  6007. fi
  6008. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6009. if test -n "$ac_ct_LIPO"; then
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6011. $as_echo "$ac_ct_LIPO" >&6; }
  6012. else
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6014. $as_echo "no" >&6; }
  6015. fi
  6016. if test "x$ac_ct_LIPO" = x; then
  6017. LIPO=":"
  6018. else
  6019. case $cross_compiling:$ac_tool_warned in
  6020. yes:)
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6023. ac_tool_warned=yes ;;
  6024. esac
  6025. LIPO=$ac_ct_LIPO
  6026. fi
  6027. else
  6028. LIPO="$ac_cv_prog_LIPO"
  6029. fi
  6030. if test -n "$ac_tool_prefix"; then
  6031. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6032. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6034. $as_echo_n "checking for $ac_word... " >&6; }
  6035. if ${ac_cv_prog_OTOOL+:} false; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. if test -n "$OTOOL"; then
  6039. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6040. else
  6041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6042. for as_dir in $PATH
  6043. do
  6044. IFS=$as_save_IFS
  6045. test -z "$as_dir" && as_dir=.
  6046. for ac_exec_ext in '' $ac_executable_extensions; do
  6047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6048. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6050. break 2
  6051. fi
  6052. done
  6053. done
  6054. IFS=$as_save_IFS
  6055. fi
  6056. fi
  6057. OTOOL=$ac_cv_prog_OTOOL
  6058. if test -n "$OTOOL"; then
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6060. $as_echo "$OTOOL" >&6; }
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6063. $as_echo "no" >&6; }
  6064. fi
  6065. fi
  6066. if test -z "$ac_cv_prog_OTOOL"; then
  6067. ac_ct_OTOOL=$OTOOL
  6068. # Extract the first word of "otool", so it can be a program name with args.
  6069. set dummy otool; ac_word=$2
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6071. $as_echo_n "checking for $ac_word... " >&6; }
  6072. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. if test -n "$ac_ct_OTOOL"; then
  6076. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6077. else
  6078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6079. for as_dir in $PATH
  6080. do
  6081. IFS=$as_save_IFS
  6082. test -z "$as_dir" && as_dir=.
  6083. for ac_exec_ext in '' $ac_executable_extensions; do
  6084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6085. ac_cv_prog_ac_ct_OTOOL="otool"
  6086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6087. break 2
  6088. fi
  6089. done
  6090. done
  6091. IFS=$as_save_IFS
  6092. fi
  6093. fi
  6094. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6095. if test -n "$ac_ct_OTOOL"; then
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6097. $as_echo "$ac_ct_OTOOL" >&6; }
  6098. else
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6100. $as_echo "no" >&6; }
  6101. fi
  6102. if test "x$ac_ct_OTOOL" = x; then
  6103. OTOOL=":"
  6104. else
  6105. case $cross_compiling:$ac_tool_warned in
  6106. yes:)
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6109. ac_tool_warned=yes ;;
  6110. esac
  6111. OTOOL=$ac_ct_OTOOL
  6112. fi
  6113. else
  6114. OTOOL="$ac_cv_prog_OTOOL"
  6115. fi
  6116. if test -n "$ac_tool_prefix"; then
  6117. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6118. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6120. $as_echo_n "checking for $ac_word... " >&6; }
  6121. if ${ac_cv_prog_OTOOL64+:} false; then :
  6122. $as_echo_n "(cached) " >&6
  6123. else
  6124. if test -n "$OTOOL64"; then
  6125. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6126. else
  6127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6128. for as_dir in $PATH
  6129. do
  6130. IFS=$as_save_IFS
  6131. test -z "$as_dir" && as_dir=.
  6132. for ac_exec_ext in '' $ac_executable_extensions; do
  6133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6134. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6136. break 2
  6137. fi
  6138. done
  6139. done
  6140. IFS=$as_save_IFS
  6141. fi
  6142. fi
  6143. OTOOL64=$ac_cv_prog_OTOOL64
  6144. if test -n "$OTOOL64"; then
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6146. $as_echo "$OTOOL64" >&6; }
  6147. else
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6149. $as_echo "no" >&6; }
  6150. fi
  6151. fi
  6152. if test -z "$ac_cv_prog_OTOOL64"; then
  6153. ac_ct_OTOOL64=$OTOOL64
  6154. # Extract the first word of "otool64", so it can be a program name with args.
  6155. set dummy otool64; ac_word=$2
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6157. $as_echo_n "checking for $ac_word... " >&6; }
  6158. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. if test -n "$ac_ct_OTOOL64"; then
  6162. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6163. else
  6164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6165. for as_dir in $PATH
  6166. do
  6167. IFS=$as_save_IFS
  6168. test -z "$as_dir" && as_dir=.
  6169. for ac_exec_ext in '' $ac_executable_extensions; do
  6170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6171. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6173. break 2
  6174. fi
  6175. done
  6176. done
  6177. IFS=$as_save_IFS
  6178. fi
  6179. fi
  6180. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6181. if test -n "$ac_ct_OTOOL64"; then
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6183. $as_echo "$ac_ct_OTOOL64" >&6; }
  6184. else
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6186. $as_echo "no" >&6; }
  6187. fi
  6188. if test "x$ac_ct_OTOOL64" = x; then
  6189. OTOOL64=":"
  6190. else
  6191. case $cross_compiling:$ac_tool_warned in
  6192. yes:)
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6195. ac_tool_warned=yes ;;
  6196. esac
  6197. OTOOL64=$ac_ct_OTOOL64
  6198. fi
  6199. else
  6200. OTOOL64="$ac_cv_prog_OTOOL64"
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6203. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6204. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6205. $as_echo_n "(cached) " >&6
  6206. else
  6207. lt_cv_apple_cc_single_mod=no
  6208. if test -z "$LT_MULTI_MODULE"; then
  6209. # By default we will add the -single_module flag. You can override
  6210. # by either setting the environment variable LT_MULTI_MODULE
  6211. # non-empty at configure time, or by adding -multi_module to the
  6212. # link flags.
  6213. rm -rf libconftest.dylib*
  6214. echo "int foo(void){return 1;}" > conftest.c
  6215. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6216. -dynamiclib -Wl,-single_module conftest.c" >&5
  6217. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6218. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6219. _lt_result=$?
  6220. # If there is a non-empty error log, and "single_module"
  6221. # appears in it, assume the flag caused a linker warning
  6222. if test -s conftest.err && $GREP single_module conftest.err; then
  6223. cat conftest.err >&5
  6224. # Otherwise, if the output was created with a 0 exit code from
  6225. # the compiler, it worked.
  6226. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6227. lt_cv_apple_cc_single_mod=yes
  6228. else
  6229. cat conftest.err >&5
  6230. fi
  6231. rm -rf libconftest.dylib*
  6232. rm -f conftest.*
  6233. fi
  6234. fi
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6236. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6238. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6239. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6240. $as_echo_n "(cached) " >&6
  6241. else
  6242. lt_cv_ld_exported_symbols_list=no
  6243. save_LDFLAGS=$LDFLAGS
  6244. echo "_main" > conftest.sym
  6245. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. int
  6249. main ()
  6250. {
  6251. ;
  6252. return 0;
  6253. }
  6254. _ACEOF
  6255. if ac_fn_c_try_link "$LINENO"; then :
  6256. lt_cv_ld_exported_symbols_list=yes
  6257. else
  6258. lt_cv_ld_exported_symbols_list=no
  6259. fi
  6260. rm -f core conftest.err conftest.$ac_objext \
  6261. conftest$ac_exeext conftest.$ac_ext
  6262. LDFLAGS=$save_LDFLAGS
  6263. fi
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6265. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6267. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6268. if ${lt_cv_ld_force_load+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. lt_cv_ld_force_load=no
  6272. cat > conftest.c << _LT_EOF
  6273. int forced_loaded() { return 2;}
  6274. _LT_EOF
  6275. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6276. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6277. echo "$AR cru libconftest.a conftest.o" >&5
  6278. $AR cru libconftest.a conftest.o 2>&5
  6279. echo "$RANLIB libconftest.a" >&5
  6280. $RANLIB libconftest.a 2>&5
  6281. cat > conftest.c << _LT_EOF
  6282. int main() { return 0;}
  6283. _LT_EOF
  6284. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6285. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6286. _lt_result=$?
  6287. if test -s conftest.err && $GREP force_load conftest.err; then
  6288. cat conftest.err >&5
  6289. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6290. lt_cv_ld_force_load=yes
  6291. else
  6292. cat conftest.err >&5
  6293. fi
  6294. rm -f conftest.err libconftest.a conftest conftest.c
  6295. rm -rf conftest.dSYM
  6296. fi
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6298. $as_echo "$lt_cv_ld_force_load" >&6; }
  6299. case $host_os in
  6300. rhapsody* | darwin1.[012])
  6301. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6302. darwin1.*)
  6303. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6304. darwin*)
  6305. case ${MACOSX_DEPLOYMENT_TARGET},$host in
  6306. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6307. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6308. *)
  6309. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6310. esac
  6311. ;;
  6312. esac
  6313. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6314. _lt_dar_single_mod='$single_module'
  6315. fi
  6316. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6317. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6318. else
  6319. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6320. fi
  6321. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6322. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6323. else
  6324. _lt_dsymutil=
  6325. fi
  6326. ;;
  6327. esac
  6328. # func_munge_path_list VARIABLE PATH
  6329. # -----------------------------------
  6330. # VARIABLE is name of variable containing _space_ separated list of
  6331. # directories to be munged by the contents of PATH, which is string
  6332. # having a format:
  6333. # "DIR[:DIR]:"
  6334. # string "DIR[ DIR]" will be prepended to VARIABLE
  6335. # ":DIR[:DIR]"
  6336. # string "DIR[ DIR]" will be appended to VARIABLE
  6337. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6338. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6339. # "DIRA[ DIRA]" will be appended to VARIABLE
  6340. # "DIR[:DIR]"
  6341. # VARIABLE will be replaced by "DIR[ DIR]"
  6342. func_munge_path_list ()
  6343. {
  6344. case x$2 in
  6345. x)
  6346. ;;
  6347. *:)
  6348. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6349. ;;
  6350. x:*)
  6351. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6352. ;;
  6353. *::*)
  6354. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6355. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6356. ;;
  6357. *)
  6358. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6359. ;;
  6360. esac
  6361. }
  6362. ac_ext=c
  6363. ac_cpp='$CPP $CPPFLAGS'
  6364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6368. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6369. # On Suns, sometimes $CPP names a directory.
  6370. if test -n "$CPP" && test -d "$CPP"; then
  6371. CPP=
  6372. fi
  6373. if test -z "$CPP"; then
  6374. if ${ac_cv_prog_CPP+:} false; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. # Double quotes because CPP needs to be expanded
  6378. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6379. do
  6380. ac_preproc_ok=false
  6381. for ac_c_preproc_warn_flag in '' yes
  6382. do
  6383. # Use a header file that comes with gcc, so configuring glibc
  6384. # with a fresh cross-compiler works.
  6385. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6386. # <limits.h> exists even on freestanding compilers.
  6387. # On the NeXT, cc -E runs the code through the compiler's parser,
  6388. # not just through cpp. "Syntax error" is here to catch this case.
  6389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6390. /* end confdefs.h. */
  6391. #ifdef __STDC__
  6392. # include <limits.h>
  6393. #else
  6394. # include <assert.h>
  6395. #endif
  6396. Syntax error
  6397. _ACEOF
  6398. if ac_fn_c_try_cpp "$LINENO"; then :
  6399. else
  6400. # Broken: fails on valid input.
  6401. continue
  6402. fi
  6403. rm -f conftest.err conftest.i conftest.$ac_ext
  6404. # OK, works on sane cases. Now check whether nonexistent headers
  6405. # can be detected and how.
  6406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6407. /* end confdefs.h. */
  6408. #include <ac_nonexistent.h>
  6409. _ACEOF
  6410. if ac_fn_c_try_cpp "$LINENO"; then :
  6411. # Broken: success on invalid input.
  6412. continue
  6413. else
  6414. # Passes both tests.
  6415. ac_preproc_ok=:
  6416. break
  6417. fi
  6418. rm -f conftest.err conftest.i conftest.$ac_ext
  6419. done
  6420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6421. rm -f conftest.i conftest.err conftest.$ac_ext
  6422. if $ac_preproc_ok; then :
  6423. break
  6424. fi
  6425. done
  6426. ac_cv_prog_CPP=$CPP
  6427. fi
  6428. CPP=$ac_cv_prog_CPP
  6429. else
  6430. ac_cv_prog_CPP=$CPP
  6431. fi
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6433. $as_echo "$CPP" >&6; }
  6434. ac_preproc_ok=false
  6435. for ac_c_preproc_warn_flag in '' yes
  6436. do
  6437. # Use a header file that comes with gcc, so configuring glibc
  6438. # with a fresh cross-compiler works.
  6439. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6440. # <limits.h> exists even on freestanding compilers.
  6441. # On the NeXT, cc -E runs the code through the compiler's parser,
  6442. # not just through cpp. "Syntax error" is here to catch this case.
  6443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6444. /* end confdefs.h. */
  6445. #ifdef __STDC__
  6446. # include <limits.h>
  6447. #else
  6448. # include <assert.h>
  6449. #endif
  6450. Syntax error
  6451. _ACEOF
  6452. if ac_fn_c_try_cpp "$LINENO"; then :
  6453. else
  6454. # Broken: fails on valid input.
  6455. continue
  6456. fi
  6457. rm -f conftest.err conftest.i conftest.$ac_ext
  6458. # OK, works on sane cases. Now check whether nonexistent headers
  6459. # can be detected and how.
  6460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6461. /* end confdefs.h. */
  6462. #include <ac_nonexistent.h>
  6463. _ACEOF
  6464. if ac_fn_c_try_cpp "$LINENO"; then :
  6465. # Broken: success on invalid input.
  6466. continue
  6467. else
  6468. # Passes both tests.
  6469. ac_preproc_ok=:
  6470. break
  6471. fi
  6472. rm -f conftest.err conftest.i conftest.$ac_ext
  6473. done
  6474. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6475. rm -f conftest.i conftest.err conftest.$ac_ext
  6476. if $ac_preproc_ok; then :
  6477. else
  6478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6480. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6481. See \`config.log' for more details" "$LINENO" 5; }
  6482. fi
  6483. ac_ext=c
  6484. ac_cpp='$CPP $CPPFLAGS'
  6485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6489. $as_echo_n "checking for ANSI C header files... " >&6; }
  6490. if ${ac_cv_header_stdc+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6494. /* end confdefs.h. */
  6495. #include <stdlib.h>
  6496. #include <stdarg.h>
  6497. #include <string.h>
  6498. #include <float.h>
  6499. int
  6500. main ()
  6501. {
  6502. ;
  6503. return 0;
  6504. }
  6505. _ACEOF
  6506. if ac_fn_c_try_compile "$LINENO"; then :
  6507. ac_cv_header_stdc=yes
  6508. else
  6509. ac_cv_header_stdc=no
  6510. fi
  6511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6512. if test $ac_cv_header_stdc = yes; then
  6513. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6515. /* end confdefs.h. */
  6516. #include <string.h>
  6517. _ACEOF
  6518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6519. $EGREP "memchr" >/dev/null 2>&1; then :
  6520. else
  6521. ac_cv_header_stdc=no
  6522. fi
  6523. rm -f conftest*
  6524. fi
  6525. if test $ac_cv_header_stdc = yes; then
  6526. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6528. /* end confdefs.h. */
  6529. #include <stdlib.h>
  6530. _ACEOF
  6531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6532. $EGREP "free" >/dev/null 2>&1; then :
  6533. else
  6534. ac_cv_header_stdc=no
  6535. fi
  6536. rm -f conftest*
  6537. fi
  6538. if test $ac_cv_header_stdc = yes; then
  6539. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6540. if test "$cross_compiling" = yes; then :
  6541. :
  6542. else
  6543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6544. /* end confdefs.h. */
  6545. #include <ctype.h>
  6546. #include <stdlib.h>
  6547. #if ((' ' & 0x0FF) == 0x020)
  6548. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6549. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6550. #else
  6551. # define ISLOWER(c) \
  6552. (('a' <= (c) && (c) <= 'i') \
  6553. || ('j' <= (c) && (c) <= 'r') \
  6554. || ('s' <= (c) && (c) <= 'z'))
  6555. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6556. #endif
  6557. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6558. int
  6559. main ()
  6560. {
  6561. int i;
  6562. for (i = 0; i < 256; i++)
  6563. if (XOR (islower (i), ISLOWER (i))
  6564. || toupper (i) != TOUPPER (i))
  6565. return 2;
  6566. return 0;
  6567. }
  6568. _ACEOF
  6569. if ac_fn_c_try_run "$LINENO"; then :
  6570. else
  6571. ac_cv_header_stdc=no
  6572. fi
  6573. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6574. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6575. fi
  6576. fi
  6577. fi
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6579. $as_echo "$ac_cv_header_stdc" >&6; }
  6580. if test $ac_cv_header_stdc = yes; then
  6581. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6582. fi
  6583. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6584. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6585. inttypes.h stdint.h unistd.h
  6586. do :
  6587. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6588. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6589. "
  6590. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6591. cat >>confdefs.h <<_ACEOF
  6592. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6593. _ACEOF
  6594. fi
  6595. done
  6596. for ac_header in dlfcn.h
  6597. do :
  6598. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6599. "
  6600. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6601. cat >>confdefs.h <<_ACEOF
  6602. #define HAVE_DLFCN_H 1
  6603. _ACEOF
  6604. fi
  6605. done
  6606. # Set options
  6607. enable_win32_dll=yes
  6608. case $host in
  6609. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6610. if test -n "$ac_tool_prefix"; then
  6611. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6612. set dummy ${ac_tool_prefix}as; ac_word=$2
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6614. $as_echo_n "checking for $ac_word... " >&6; }
  6615. if ${ac_cv_prog_AS+:} false; then :
  6616. $as_echo_n "(cached) " >&6
  6617. else
  6618. if test -n "$AS"; then
  6619. ac_cv_prog_AS="$AS" # Let the user override the test.
  6620. else
  6621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6622. for as_dir in $PATH
  6623. do
  6624. IFS=$as_save_IFS
  6625. test -z "$as_dir" && as_dir=.
  6626. for ac_exec_ext in '' $ac_executable_extensions; do
  6627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6628. ac_cv_prog_AS="${ac_tool_prefix}as"
  6629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6630. break 2
  6631. fi
  6632. done
  6633. done
  6634. IFS=$as_save_IFS
  6635. fi
  6636. fi
  6637. AS=$ac_cv_prog_AS
  6638. if test -n "$AS"; then
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6640. $as_echo "$AS" >&6; }
  6641. else
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6643. $as_echo "no" >&6; }
  6644. fi
  6645. fi
  6646. if test -z "$ac_cv_prog_AS"; then
  6647. ac_ct_AS=$AS
  6648. # Extract the first word of "as", so it can be a program name with args.
  6649. set dummy as; ac_word=$2
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6651. $as_echo_n "checking for $ac_word... " >&6; }
  6652. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6653. $as_echo_n "(cached) " >&6
  6654. else
  6655. if test -n "$ac_ct_AS"; then
  6656. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6657. else
  6658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6659. for as_dir in $PATH
  6660. do
  6661. IFS=$as_save_IFS
  6662. test -z "$as_dir" && as_dir=.
  6663. for ac_exec_ext in '' $ac_executable_extensions; do
  6664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6665. ac_cv_prog_ac_ct_AS="as"
  6666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6667. break 2
  6668. fi
  6669. done
  6670. done
  6671. IFS=$as_save_IFS
  6672. fi
  6673. fi
  6674. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6675. if test -n "$ac_ct_AS"; then
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6677. $as_echo "$ac_ct_AS" >&6; }
  6678. else
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6680. $as_echo "no" >&6; }
  6681. fi
  6682. if test "x$ac_ct_AS" = x; then
  6683. AS="false"
  6684. else
  6685. case $cross_compiling:$ac_tool_warned in
  6686. yes:)
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6689. ac_tool_warned=yes ;;
  6690. esac
  6691. AS=$ac_ct_AS
  6692. fi
  6693. else
  6694. AS="$ac_cv_prog_AS"
  6695. fi
  6696. if test -n "$ac_tool_prefix"; then
  6697. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6698. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6700. $as_echo_n "checking for $ac_word... " >&6; }
  6701. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6702. $as_echo_n "(cached) " >&6
  6703. else
  6704. if test -n "$DLLTOOL"; then
  6705. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6706. else
  6707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6708. for as_dir in $PATH
  6709. do
  6710. IFS=$as_save_IFS
  6711. test -z "$as_dir" && as_dir=.
  6712. for ac_exec_ext in '' $ac_executable_extensions; do
  6713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6714. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6716. break 2
  6717. fi
  6718. done
  6719. done
  6720. IFS=$as_save_IFS
  6721. fi
  6722. fi
  6723. DLLTOOL=$ac_cv_prog_DLLTOOL
  6724. if test -n "$DLLTOOL"; then
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6726. $as_echo "$DLLTOOL" >&6; }
  6727. else
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6729. $as_echo "no" >&6; }
  6730. fi
  6731. fi
  6732. if test -z "$ac_cv_prog_DLLTOOL"; then
  6733. ac_ct_DLLTOOL=$DLLTOOL
  6734. # Extract the first word of "dlltool", so it can be a program name with args.
  6735. set dummy dlltool; ac_word=$2
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6737. $as_echo_n "checking for $ac_word... " >&6; }
  6738. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. if test -n "$ac_ct_DLLTOOL"; then
  6742. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6743. else
  6744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6745. for as_dir in $PATH
  6746. do
  6747. IFS=$as_save_IFS
  6748. test -z "$as_dir" && as_dir=.
  6749. for ac_exec_ext in '' $ac_executable_extensions; do
  6750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6751. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6753. break 2
  6754. fi
  6755. done
  6756. done
  6757. IFS=$as_save_IFS
  6758. fi
  6759. fi
  6760. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6761. if test -n "$ac_ct_DLLTOOL"; then
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6763. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6764. else
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6766. $as_echo "no" >&6; }
  6767. fi
  6768. if test "x$ac_ct_DLLTOOL" = x; then
  6769. DLLTOOL="false"
  6770. else
  6771. case $cross_compiling:$ac_tool_warned in
  6772. yes:)
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6775. ac_tool_warned=yes ;;
  6776. esac
  6777. DLLTOOL=$ac_ct_DLLTOOL
  6778. fi
  6779. else
  6780. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6781. fi
  6782. if test -n "$ac_tool_prefix"; then
  6783. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6784. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6786. $as_echo_n "checking for $ac_word... " >&6; }
  6787. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. if test -n "$OBJDUMP"; then
  6791. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6792. else
  6793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6794. for as_dir in $PATH
  6795. do
  6796. IFS=$as_save_IFS
  6797. test -z "$as_dir" && as_dir=.
  6798. for ac_exec_ext in '' $ac_executable_extensions; do
  6799. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6800. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6802. break 2
  6803. fi
  6804. done
  6805. done
  6806. IFS=$as_save_IFS
  6807. fi
  6808. fi
  6809. OBJDUMP=$ac_cv_prog_OBJDUMP
  6810. if test -n "$OBJDUMP"; then
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6812. $as_echo "$OBJDUMP" >&6; }
  6813. else
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6815. $as_echo "no" >&6; }
  6816. fi
  6817. fi
  6818. if test -z "$ac_cv_prog_OBJDUMP"; then
  6819. ac_ct_OBJDUMP=$OBJDUMP
  6820. # Extract the first word of "objdump", so it can be a program name with args.
  6821. set dummy objdump; ac_word=$2
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6823. $as_echo_n "checking for $ac_word... " >&6; }
  6824. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6825. $as_echo_n "(cached) " >&6
  6826. else
  6827. if test -n "$ac_ct_OBJDUMP"; then
  6828. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6829. else
  6830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6831. for as_dir in $PATH
  6832. do
  6833. IFS=$as_save_IFS
  6834. test -z "$as_dir" && as_dir=.
  6835. for ac_exec_ext in '' $ac_executable_extensions; do
  6836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6837. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6839. break 2
  6840. fi
  6841. done
  6842. done
  6843. IFS=$as_save_IFS
  6844. fi
  6845. fi
  6846. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6847. if test -n "$ac_ct_OBJDUMP"; then
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6849. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6850. else
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6852. $as_echo "no" >&6; }
  6853. fi
  6854. if test "x$ac_ct_OBJDUMP" = x; then
  6855. OBJDUMP="false"
  6856. else
  6857. case $cross_compiling:$ac_tool_warned in
  6858. yes:)
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6860. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6861. ac_tool_warned=yes ;;
  6862. esac
  6863. OBJDUMP=$ac_ct_OBJDUMP
  6864. fi
  6865. else
  6866. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6867. fi
  6868. ;;
  6869. esac
  6870. test -z "$AS" && AS=as
  6871. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6872. test -z "$OBJDUMP" && OBJDUMP=objdump
  6873. enable_dlopen=no
  6874. # Check whether --enable-shared was given.
  6875. if test "${enable_shared+set}" = set; then :
  6876. enableval=$enable_shared; p=${PACKAGE-default}
  6877. case $enableval in
  6878. yes) enable_shared=yes ;;
  6879. no) enable_shared=no ;;
  6880. *)
  6881. enable_shared=no
  6882. # Look at the argument we got. We use all the common list separators.
  6883. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6884. for pkg in $enableval; do
  6885. IFS=$lt_save_ifs
  6886. if test "X$pkg" = "X$p"; then
  6887. enable_shared=yes
  6888. fi
  6889. done
  6890. IFS=$lt_save_ifs
  6891. ;;
  6892. esac
  6893. else
  6894. enable_shared=yes
  6895. fi
  6896. # Check whether --enable-static was given.
  6897. if test "${enable_static+set}" = set; then :
  6898. enableval=$enable_static; p=${PACKAGE-default}
  6899. case $enableval in
  6900. yes) enable_static=yes ;;
  6901. no) enable_static=no ;;
  6902. *)
  6903. enable_static=no
  6904. # Look at the argument we got. We use all the common list separators.
  6905. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6906. for pkg in $enableval; do
  6907. IFS=$lt_save_ifs
  6908. if test "X$pkg" = "X$p"; then
  6909. enable_static=yes
  6910. fi
  6911. done
  6912. IFS=$lt_save_ifs
  6913. ;;
  6914. esac
  6915. else
  6916. enable_static=yes
  6917. fi
  6918. # Check whether --with-pic was given.
  6919. if test "${with_pic+set}" = set; then :
  6920. withval=$with_pic; lt_p=${PACKAGE-default}
  6921. case $withval in
  6922. yes|no) pic_mode=$withval ;;
  6923. *)
  6924. pic_mode=default
  6925. # Look at the argument we got. We use all the common list separators.
  6926. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6927. for lt_pkg in $withval; do
  6928. IFS=$lt_save_ifs
  6929. if test "X$lt_pkg" = "X$lt_p"; then
  6930. pic_mode=yes
  6931. fi
  6932. done
  6933. IFS=$lt_save_ifs
  6934. ;;
  6935. esac
  6936. else
  6937. pic_mode=default
  6938. fi
  6939. # Check whether --enable-fast-install was given.
  6940. if test "${enable_fast_install+set}" = set; then :
  6941. enableval=$enable_fast_install; p=${PACKAGE-default}
  6942. case $enableval in
  6943. yes) enable_fast_install=yes ;;
  6944. no) enable_fast_install=no ;;
  6945. *)
  6946. enable_fast_install=no
  6947. # Look at the argument we got. We use all the common list separators.
  6948. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6949. for pkg in $enableval; do
  6950. IFS=$lt_save_ifs
  6951. if test "X$pkg" = "X$p"; then
  6952. enable_fast_install=yes
  6953. fi
  6954. done
  6955. IFS=$lt_save_ifs
  6956. ;;
  6957. esac
  6958. else
  6959. enable_fast_install=yes
  6960. fi
  6961. shared_archive_member_spec=
  6962. case $host,$enable_shared in
  6963. power*-*-aix[5-9]*,yes)
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6965. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6966. # Check whether --with-aix-soname was given.
  6967. if test "${with_aix_soname+set}" = set; then :
  6968. withval=$with_aix_soname; case $withval in
  6969. aix|svr4|both)
  6970. ;;
  6971. *)
  6972. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6973. ;;
  6974. esac
  6975. lt_cv_with_aix_soname=$with_aix_soname
  6976. else
  6977. if ${lt_cv_with_aix_soname+:} false; then :
  6978. $as_echo_n "(cached) " >&6
  6979. else
  6980. lt_cv_with_aix_soname=aix
  6981. fi
  6982. with_aix_soname=$lt_cv_with_aix_soname
  6983. fi
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6985. $as_echo "$with_aix_soname" >&6; }
  6986. if test aix != "$with_aix_soname"; then
  6987. # For the AIX way of multilib, we name the shared archive member
  6988. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6989. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6990. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6991. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6992. if test 64 = "${OBJECT_MODE-32}"; then
  6993. shared_archive_member_spec=shr_64
  6994. else
  6995. shared_archive_member_spec=shr
  6996. fi
  6997. fi
  6998. ;;
  6999. *)
  7000. with_aix_soname=aix
  7001. ;;
  7002. esac
  7003. # This can be used to rebuild libtool when needed
  7004. LIBTOOL_DEPS=$ltmain
  7005. # Always use our own libtool.
  7006. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7007. test -z "$LN_S" && LN_S="ln -s"
  7008. if test -n "${ZSH_VERSION+set}"; then
  7009. setopt NO_GLOB_SUBST
  7010. fi
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7012. $as_echo_n "checking for objdir... " >&6; }
  7013. if ${lt_cv_objdir+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. rm -f .libs 2>/dev/null
  7017. mkdir .libs 2>/dev/null
  7018. if test -d .libs; then
  7019. lt_cv_objdir=.libs
  7020. else
  7021. # MS-DOS does not allow filenames that begin with a dot.
  7022. lt_cv_objdir=_libs
  7023. fi
  7024. rmdir .libs 2>/dev/null
  7025. fi
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7027. $as_echo "$lt_cv_objdir" >&6; }
  7028. objdir=$lt_cv_objdir
  7029. cat >>confdefs.h <<_ACEOF
  7030. #define LT_OBJDIR "$lt_cv_objdir/"
  7031. _ACEOF
  7032. case $host_os in
  7033. aix3*)
  7034. # AIX sometimes has problems with the GCC collect2 program. For some
  7035. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7036. # vanish in a puff of smoke.
  7037. if test set != "${COLLECT_NAMES+set}"; then
  7038. COLLECT_NAMES=
  7039. export COLLECT_NAMES
  7040. fi
  7041. ;;
  7042. esac
  7043. # Global variables:
  7044. ofile=libtool
  7045. can_build_shared=yes
  7046. # All known linkers require a '.a' archive for static linking (except MSVC,
  7047. # which needs '.lib').
  7048. libext=a
  7049. with_gnu_ld=$lt_cv_prog_gnu_ld
  7050. old_CC=$CC
  7051. old_CFLAGS=$CFLAGS
  7052. # Set sane defaults for various variables
  7053. test -z "$CC" && CC=cc
  7054. test -z "$LTCC" && LTCC=$CC
  7055. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7056. test -z "$LD" && LD=ld
  7057. test -z "$ac_objext" && ac_objext=o
  7058. func_cc_basename $compiler
  7059. cc_basename=$func_cc_basename_result
  7060. # Only perform the check for file, if the check method requires it
  7061. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7062. case $deplibs_check_method in
  7063. file_magic*)
  7064. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7066. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7067. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. case $MAGIC_CMD in
  7071. [\\/*] | ?:[\\/]*)
  7072. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7073. ;;
  7074. *)
  7075. lt_save_MAGIC_CMD=$MAGIC_CMD
  7076. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7077. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7078. for ac_dir in $ac_dummy; do
  7079. IFS=$lt_save_ifs
  7080. test -z "$ac_dir" && ac_dir=.
  7081. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7082. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7083. if test -n "$file_magic_test_file"; then
  7084. case $deplibs_check_method in
  7085. "file_magic "*)
  7086. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7087. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7088. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7089. $EGREP "$file_magic_regex" > /dev/null; then
  7090. :
  7091. else
  7092. cat <<_LT_EOF 1>&2
  7093. *** Warning: the command libtool uses to detect shared libraries,
  7094. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7095. *** The result is that libtool may fail to recognize shared libraries
  7096. *** as such. This will affect the creation of libtool libraries that
  7097. *** depend on shared libraries, but programs linked with such libtool
  7098. *** libraries will work regardless of this problem. Nevertheless, you
  7099. *** may want to report the problem to your system manager and/or to
  7100. *** bug-libtool@gnu.org
  7101. _LT_EOF
  7102. fi ;;
  7103. esac
  7104. fi
  7105. break
  7106. fi
  7107. done
  7108. IFS=$lt_save_ifs
  7109. MAGIC_CMD=$lt_save_MAGIC_CMD
  7110. ;;
  7111. esac
  7112. fi
  7113. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7114. if test -n "$MAGIC_CMD"; then
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7116. $as_echo "$MAGIC_CMD" >&6; }
  7117. else
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7122. if test -n "$ac_tool_prefix"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7124. $as_echo_n "checking for file... " >&6; }
  7125. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. case $MAGIC_CMD in
  7129. [\\/*] | ?:[\\/]*)
  7130. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7131. ;;
  7132. *)
  7133. lt_save_MAGIC_CMD=$MAGIC_CMD
  7134. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7135. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7136. for ac_dir in $ac_dummy; do
  7137. IFS=$lt_save_ifs
  7138. test -z "$ac_dir" && ac_dir=.
  7139. if test -f "$ac_dir/file"; then
  7140. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7141. if test -n "$file_magic_test_file"; then
  7142. case $deplibs_check_method in
  7143. "file_magic "*)
  7144. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7145. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7146. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7147. $EGREP "$file_magic_regex" > /dev/null; then
  7148. :
  7149. else
  7150. cat <<_LT_EOF 1>&2
  7151. *** Warning: the command libtool uses to detect shared libraries,
  7152. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7153. *** The result is that libtool may fail to recognize shared libraries
  7154. *** as such. This will affect the creation of libtool libraries that
  7155. *** depend on shared libraries, but programs linked with such libtool
  7156. *** libraries will work regardless of this problem. Nevertheless, you
  7157. *** may want to report the problem to your system manager and/or to
  7158. *** bug-libtool@gnu.org
  7159. _LT_EOF
  7160. fi ;;
  7161. esac
  7162. fi
  7163. break
  7164. fi
  7165. done
  7166. IFS=$lt_save_ifs
  7167. MAGIC_CMD=$lt_save_MAGIC_CMD
  7168. ;;
  7169. esac
  7170. fi
  7171. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7172. if test -n "$MAGIC_CMD"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7174. $as_echo "$MAGIC_CMD" >&6; }
  7175. else
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7177. $as_echo "no" >&6; }
  7178. fi
  7179. else
  7180. MAGIC_CMD=:
  7181. fi
  7182. fi
  7183. fi
  7184. ;;
  7185. esac
  7186. # Use C for the default configuration in the libtool script
  7187. lt_save_CC=$CC
  7188. ac_ext=c
  7189. ac_cpp='$CPP $CPPFLAGS'
  7190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7193. # Source file extension for C test sources.
  7194. ac_ext=c
  7195. # Object file extension for compiled C test sources.
  7196. objext=o
  7197. objext=$objext
  7198. # Code to be used in simple compile tests
  7199. lt_simple_compile_test_code="int some_variable = 0;"
  7200. # Code to be used in simple link tests
  7201. lt_simple_link_test_code='int main(){return(0);}'
  7202. # If no C compiler was specified, use CC.
  7203. LTCC=${LTCC-"$CC"}
  7204. # If no C compiler flags were specified, use CFLAGS.
  7205. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7206. # Allow CC to be a program name with arguments.
  7207. compiler=$CC
  7208. # Save the default compiler, since it gets overwritten when the other
  7209. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7210. compiler_DEFAULT=$CC
  7211. # save warnings/boilerplate of simple test code
  7212. ac_outfile=conftest.$ac_objext
  7213. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7214. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7215. _lt_compiler_boilerplate=`cat conftest.err`
  7216. $RM conftest*
  7217. ac_outfile=conftest.$ac_objext
  7218. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7219. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7220. _lt_linker_boilerplate=`cat conftest.err`
  7221. $RM -r conftest*
  7222. ## CAVEAT EMPTOR:
  7223. ## There is no encapsulation within the following macros, do not change
  7224. ## the running order or otherwise move them around unless you know exactly
  7225. ## what you are doing...
  7226. if test -n "$compiler"; then
  7227. lt_prog_compiler_no_builtin_flag=
  7228. if test yes = "$GCC"; then
  7229. case $cc_basename in
  7230. nvcc*)
  7231. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7232. *)
  7233. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7234. esac
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7236. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7237. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7238. $as_echo_n "(cached) " >&6
  7239. else
  7240. lt_cv_prog_compiler_rtti_exceptions=no
  7241. ac_outfile=conftest.$ac_objext
  7242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7243. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7244. # Insert the option either (1) after the last *FLAGS variable, or
  7245. # (2) before a word containing "conftest.", or (3) at the end.
  7246. # Note that $ac_compile itself does not contain backslashes and begins
  7247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7248. # The option is referenced via a variable to avoid confusing sed.
  7249. lt_compile=`echo "$ac_compile" | $SED \
  7250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7252. -e 's:$: $lt_compiler_flag:'`
  7253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7254. (eval "$lt_compile" 2>conftest.err)
  7255. ac_status=$?
  7256. cat conftest.err >&5
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. if (exit $ac_status) && test -s "$ac_outfile"; then
  7259. # The compiler can only warn and ignore the option if not recognized
  7260. # So say no if there are warnings other than the usual output.
  7261. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7262. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7263. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7264. lt_cv_prog_compiler_rtti_exceptions=yes
  7265. fi
  7266. fi
  7267. $RM conftest*
  7268. fi
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7270. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7271. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7272. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7273. else
  7274. :
  7275. fi
  7276. fi
  7277. lt_prog_compiler_wl=
  7278. lt_prog_compiler_pic=
  7279. lt_prog_compiler_static=
  7280. if test yes = "$GCC"; then
  7281. lt_prog_compiler_wl='-Wl,'
  7282. lt_prog_compiler_static='-static'
  7283. case $host_os in
  7284. aix*)
  7285. # All AIX code is PIC.
  7286. if test ia64 = "$host_cpu"; then
  7287. # AIX 5 now supports IA64 processor
  7288. lt_prog_compiler_static='-Bstatic'
  7289. fi
  7290. lt_prog_compiler_pic='-fPIC'
  7291. ;;
  7292. amigaos*)
  7293. case $host_cpu in
  7294. powerpc)
  7295. # see comment about AmigaOS4 .so support
  7296. lt_prog_compiler_pic='-fPIC'
  7297. ;;
  7298. m68k)
  7299. # FIXME: we need at least 68020 code to build shared libraries, but
  7300. # adding the '-m68020' flag to GCC prevents building anything better,
  7301. # like '-m68040'.
  7302. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7303. ;;
  7304. esac
  7305. ;;
  7306. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7307. # PIC is the default for these OSes.
  7308. ;;
  7309. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7310. # This hack is so that the source file can tell whether it is being
  7311. # built for inclusion in a dll (and should export symbols for example).
  7312. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7313. # (--disable-auto-import) libraries
  7314. lt_prog_compiler_pic='-DDLL_EXPORT'
  7315. case $host_os in
  7316. os2*)
  7317. lt_prog_compiler_static='$wl-static'
  7318. ;;
  7319. esac
  7320. ;;
  7321. darwin* | rhapsody*)
  7322. # PIC is the default on this platform
  7323. # Common symbols not allowed in MH_DYLIB files
  7324. lt_prog_compiler_pic='-fno-common'
  7325. ;;
  7326. haiku*)
  7327. # PIC is the default for Haiku.
  7328. # The "-static" flag exists, but is broken.
  7329. lt_prog_compiler_static=
  7330. ;;
  7331. hpux*)
  7332. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7333. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7334. # sets the default TLS model and affects inlining.
  7335. case $host_cpu in
  7336. hppa*64*)
  7337. # +Z the default
  7338. ;;
  7339. *)
  7340. lt_prog_compiler_pic='-fPIC'
  7341. ;;
  7342. esac
  7343. ;;
  7344. interix[3-9]*)
  7345. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7346. # Instead, we relocate shared libraries at runtime.
  7347. ;;
  7348. msdosdjgpp*)
  7349. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7350. # on systems that don't support them.
  7351. lt_prog_compiler_can_build_shared=no
  7352. enable_shared=no
  7353. ;;
  7354. *nto* | *qnx*)
  7355. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7356. # it will coredump.
  7357. lt_prog_compiler_pic='-fPIC -shared'
  7358. ;;
  7359. sysv4*MP*)
  7360. if test -d /usr/nec; then
  7361. lt_prog_compiler_pic=-Kconform_pic
  7362. fi
  7363. ;;
  7364. *)
  7365. lt_prog_compiler_pic='-fPIC'
  7366. ;;
  7367. esac
  7368. case $cc_basename in
  7369. nvcc*) # Cuda Compiler Driver 2.2
  7370. lt_prog_compiler_wl='-Xlinker '
  7371. if test -n "$lt_prog_compiler_pic"; then
  7372. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7373. fi
  7374. ;;
  7375. esac
  7376. else
  7377. # PORTME Check for flag to pass linker flags through the system compiler.
  7378. case $host_os in
  7379. aix*)
  7380. lt_prog_compiler_wl='-Wl,'
  7381. if test ia64 = "$host_cpu"; then
  7382. # AIX 5 now supports IA64 processor
  7383. lt_prog_compiler_static='-Bstatic'
  7384. else
  7385. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7386. fi
  7387. ;;
  7388. darwin* | rhapsody*)
  7389. # PIC is the default on this platform
  7390. # Common symbols not allowed in MH_DYLIB files
  7391. lt_prog_compiler_pic='-fno-common'
  7392. case $cc_basename in
  7393. nagfor*)
  7394. # NAG Fortran compiler
  7395. lt_prog_compiler_wl='-Wl,-Wl,,'
  7396. lt_prog_compiler_pic='-PIC'
  7397. lt_prog_compiler_static='-Bstatic'
  7398. ;;
  7399. esac
  7400. ;;
  7401. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7402. # This hack is so that the source file can tell whether it is being
  7403. # built for inclusion in a dll (and should export symbols for example).
  7404. lt_prog_compiler_pic='-DDLL_EXPORT'
  7405. case $host_os in
  7406. os2*)
  7407. lt_prog_compiler_static='$wl-static'
  7408. ;;
  7409. esac
  7410. ;;
  7411. hpux9* | hpux10* | hpux11*)
  7412. lt_prog_compiler_wl='-Wl,'
  7413. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7414. # not for PA HP-UX.
  7415. case $host_cpu in
  7416. hppa*64*|ia64*)
  7417. # +Z the default
  7418. ;;
  7419. *)
  7420. lt_prog_compiler_pic='+Z'
  7421. ;;
  7422. esac
  7423. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7424. lt_prog_compiler_static='$wl-a ${wl}archive'
  7425. ;;
  7426. irix5* | irix6* | nonstopux*)
  7427. lt_prog_compiler_wl='-Wl,'
  7428. # PIC (with -KPIC) is the default.
  7429. lt_prog_compiler_static='-non_shared'
  7430. ;;
  7431. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7432. case $cc_basename in
  7433. # old Intel for x86_64, which still supported -KPIC.
  7434. ecc*)
  7435. lt_prog_compiler_wl='-Wl,'
  7436. lt_prog_compiler_pic='-KPIC'
  7437. lt_prog_compiler_static='-static'
  7438. ;;
  7439. # icc used to be incompatible with GCC.
  7440. # ICC 10 doesn't accept -KPIC any more.
  7441. icc* | ifort*)
  7442. lt_prog_compiler_wl='-Wl,'
  7443. lt_prog_compiler_pic='-fPIC'
  7444. lt_prog_compiler_static='-static'
  7445. ;;
  7446. # Lahey Fortran 8.1.
  7447. lf95*)
  7448. lt_prog_compiler_wl='-Wl,'
  7449. lt_prog_compiler_pic='--shared'
  7450. lt_prog_compiler_static='--static'
  7451. ;;
  7452. nagfor*)
  7453. # NAG Fortran compiler
  7454. lt_prog_compiler_wl='-Wl,-Wl,,'
  7455. lt_prog_compiler_pic='-PIC'
  7456. lt_prog_compiler_static='-Bstatic'
  7457. ;;
  7458. tcc*)
  7459. # Fabrice Bellard et al's Tiny C Compiler
  7460. lt_prog_compiler_wl='-Wl,'
  7461. lt_prog_compiler_pic='-fPIC'
  7462. lt_prog_compiler_static='-static'
  7463. ;;
  7464. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7465. # Portland Group compilers (*not* the Pentium gcc compiler,
  7466. # which looks to be a dead project)
  7467. lt_prog_compiler_wl='-Wl,'
  7468. lt_prog_compiler_pic='-fpic'
  7469. lt_prog_compiler_static='-Bstatic'
  7470. ;;
  7471. ccc*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. # All Alpha code is PIC.
  7474. lt_prog_compiler_static='-non_shared'
  7475. ;;
  7476. xl* | bgxl* | bgf* | mpixl*)
  7477. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7478. lt_prog_compiler_wl='-Wl,'
  7479. lt_prog_compiler_pic='-qpic'
  7480. lt_prog_compiler_static='-qstaticlink'
  7481. ;;
  7482. *)
  7483. case `$CC -V 2>&1 | sed 5q` in
  7484. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7485. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7486. lt_prog_compiler_pic='-KPIC'
  7487. lt_prog_compiler_static='-Bstatic'
  7488. lt_prog_compiler_wl=''
  7489. ;;
  7490. *Sun\ F* | *Sun*Fortran*)
  7491. lt_prog_compiler_pic='-KPIC'
  7492. lt_prog_compiler_static='-Bstatic'
  7493. lt_prog_compiler_wl='-Qoption ld '
  7494. ;;
  7495. *Sun\ C*)
  7496. # Sun C 5.9
  7497. lt_prog_compiler_pic='-KPIC'
  7498. lt_prog_compiler_static='-Bstatic'
  7499. lt_prog_compiler_wl='-Wl,'
  7500. ;;
  7501. *Intel*\ [CF]*Compiler*)
  7502. lt_prog_compiler_wl='-Wl,'
  7503. lt_prog_compiler_pic='-fPIC'
  7504. lt_prog_compiler_static='-static'
  7505. ;;
  7506. *Portland\ Group*)
  7507. lt_prog_compiler_wl='-Wl,'
  7508. lt_prog_compiler_pic='-fpic'
  7509. lt_prog_compiler_static='-Bstatic'
  7510. ;;
  7511. esac
  7512. ;;
  7513. esac
  7514. ;;
  7515. newsos6)
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. *nto* | *qnx*)
  7520. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7521. # it will coredump.
  7522. lt_prog_compiler_pic='-fPIC -shared'
  7523. ;;
  7524. osf3* | osf4* | osf5*)
  7525. lt_prog_compiler_wl='-Wl,'
  7526. # All OSF/1 code is PIC.
  7527. lt_prog_compiler_static='-non_shared'
  7528. ;;
  7529. rdos*)
  7530. lt_prog_compiler_static='-non_shared'
  7531. ;;
  7532. solaris*)
  7533. lt_prog_compiler_pic='-KPIC'
  7534. lt_prog_compiler_static='-Bstatic'
  7535. case $cc_basename in
  7536. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7537. lt_prog_compiler_wl='-Qoption ld ';;
  7538. *)
  7539. lt_prog_compiler_wl='-Wl,';;
  7540. esac
  7541. ;;
  7542. sunos4*)
  7543. lt_prog_compiler_wl='-Qoption ld '
  7544. lt_prog_compiler_pic='-PIC'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. ;;
  7547. sysv4 | sysv4.2uw2* | sysv4.3*)
  7548. lt_prog_compiler_wl='-Wl,'
  7549. lt_prog_compiler_pic='-KPIC'
  7550. lt_prog_compiler_static='-Bstatic'
  7551. ;;
  7552. sysv4*MP*)
  7553. if test -d /usr/nec; then
  7554. lt_prog_compiler_pic='-Kconform_pic'
  7555. lt_prog_compiler_static='-Bstatic'
  7556. fi
  7557. ;;
  7558. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7559. lt_prog_compiler_wl='-Wl,'
  7560. lt_prog_compiler_pic='-KPIC'
  7561. lt_prog_compiler_static='-Bstatic'
  7562. ;;
  7563. unicos*)
  7564. lt_prog_compiler_wl='-Wl,'
  7565. lt_prog_compiler_can_build_shared=no
  7566. ;;
  7567. uts4*)
  7568. lt_prog_compiler_pic='-pic'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. *)
  7572. lt_prog_compiler_can_build_shared=no
  7573. ;;
  7574. esac
  7575. fi
  7576. case $host_os in
  7577. # For platforms that do not support PIC, -DPIC is meaningless:
  7578. *djgpp*)
  7579. lt_prog_compiler_pic=
  7580. ;;
  7581. *)
  7582. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7583. ;;
  7584. esac
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7586. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7587. if ${lt_cv_prog_compiler_pic+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7591. fi
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7593. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7594. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7595. #
  7596. # Check to make sure the PIC flag actually works.
  7597. #
  7598. if test -n "$lt_prog_compiler_pic"; then
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7600. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7601. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7602. $as_echo_n "(cached) " >&6
  7603. else
  7604. lt_cv_prog_compiler_pic_works=no
  7605. ac_outfile=conftest.$ac_objext
  7606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7607. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7608. # Insert the option either (1) after the last *FLAGS variable, or
  7609. # (2) before a word containing "conftest.", or (3) at the end.
  7610. # Note that $ac_compile itself does not contain backslashes and begins
  7611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7612. # The option is referenced via a variable to avoid confusing sed.
  7613. lt_compile=`echo "$ac_compile" | $SED \
  7614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7616. -e 's:$: $lt_compiler_flag:'`
  7617. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7618. (eval "$lt_compile" 2>conftest.err)
  7619. ac_status=$?
  7620. cat conftest.err >&5
  7621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7622. if (exit $ac_status) && test -s "$ac_outfile"; then
  7623. # The compiler can only warn and ignore the option if not recognized
  7624. # So say no if there are warnings other than the usual output.
  7625. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7626. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7627. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7628. lt_cv_prog_compiler_pic_works=yes
  7629. fi
  7630. fi
  7631. $RM conftest*
  7632. fi
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7634. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7635. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7636. case $lt_prog_compiler_pic in
  7637. "" | " "*) ;;
  7638. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7639. esac
  7640. else
  7641. lt_prog_compiler_pic=
  7642. lt_prog_compiler_can_build_shared=no
  7643. fi
  7644. fi
  7645. #
  7646. # Check to make sure the static flag actually works.
  7647. #
  7648. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7650. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7651. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. lt_cv_prog_compiler_static_works=no
  7655. save_LDFLAGS=$LDFLAGS
  7656. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7657. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7658. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7659. # The linker can only warn and ignore the option if not recognized
  7660. # So say no if there are warnings
  7661. if test -s conftest.err; then
  7662. # Append any errors to the config.log.
  7663. cat conftest.err 1>&5
  7664. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7665. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7666. if diff conftest.exp conftest.er2 >/dev/null; then
  7667. lt_cv_prog_compiler_static_works=yes
  7668. fi
  7669. else
  7670. lt_cv_prog_compiler_static_works=yes
  7671. fi
  7672. fi
  7673. $RM -r conftest*
  7674. LDFLAGS=$save_LDFLAGS
  7675. fi
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7677. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7678. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7679. :
  7680. else
  7681. lt_prog_compiler_static=
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7684. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7685. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. lt_cv_prog_compiler_c_o=no
  7689. $RM -r conftest 2>/dev/null
  7690. mkdir conftest
  7691. cd conftest
  7692. mkdir out
  7693. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7694. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7695. # Insert the option either (1) after the last *FLAGS variable, or
  7696. # (2) before a word containing "conftest.", or (3) at the end.
  7697. # Note that $ac_compile itself does not contain backslashes and begins
  7698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7699. lt_compile=`echo "$ac_compile" | $SED \
  7700. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7701. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7702. -e 's:$: $lt_compiler_flag:'`
  7703. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7704. (eval "$lt_compile" 2>out/conftest.err)
  7705. ac_status=$?
  7706. cat out/conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7709. then
  7710. # The compiler can only warn and ignore the option if not recognized
  7711. # So say no if there are warnings
  7712. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7713. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7714. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7715. lt_cv_prog_compiler_c_o=yes
  7716. fi
  7717. fi
  7718. chmod u+w . 2>&5
  7719. $RM conftest*
  7720. # SGI C++ compiler will create directory out/ii_files/ for
  7721. # template instantiation
  7722. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7723. $RM out/* && rmdir out
  7724. cd ..
  7725. $RM -r conftest
  7726. $RM conftest*
  7727. fi
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7729. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7731. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7732. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. lt_cv_prog_compiler_c_o=no
  7736. $RM -r conftest 2>/dev/null
  7737. mkdir conftest
  7738. cd conftest
  7739. mkdir out
  7740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7741. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7742. # Insert the option either (1) after the last *FLAGS variable, or
  7743. # (2) before a word containing "conftest.", or (3) at the end.
  7744. # Note that $ac_compile itself does not contain backslashes and begins
  7745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7746. lt_compile=`echo "$ac_compile" | $SED \
  7747. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7748. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7749. -e 's:$: $lt_compiler_flag:'`
  7750. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7751. (eval "$lt_compile" 2>out/conftest.err)
  7752. ac_status=$?
  7753. cat out/conftest.err >&5
  7754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7755. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7756. then
  7757. # The compiler can only warn and ignore the option if not recognized
  7758. # So say no if there are warnings
  7759. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7760. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7761. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7762. lt_cv_prog_compiler_c_o=yes
  7763. fi
  7764. fi
  7765. chmod u+w . 2>&5
  7766. $RM conftest*
  7767. # SGI C++ compiler will create directory out/ii_files/ for
  7768. # template instantiation
  7769. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7770. $RM out/* && rmdir out
  7771. cd ..
  7772. $RM -r conftest
  7773. $RM conftest*
  7774. fi
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7776. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7777. hard_links=nottested
  7778. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7779. # do not overwrite the value of need_locks provided by the user
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7781. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7782. hard_links=yes
  7783. $RM conftest*
  7784. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7785. touch conftest.a
  7786. ln conftest.a conftest.b 2>&5 || hard_links=no
  7787. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7789. $as_echo "$hard_links" >&6; }
  7790. if test no = "$hard_links"; then
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7792. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7793. need_locks=warn
  7794. fi
  7795. else
  7796. need_locks=no
  7797. fi
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7799. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7800. runpath_var=
  7801. allow_undefined_flag=
  7802. always_export_symbols=no
  7803. archive_cmds=
  7804. archive_expsym_cmds=
  7805. compiler_needs_object=no
  7806. enable_shared_with_static_runtimes=no
  7807. export_dynamic_flag_spec=
  7808. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7809. hardcode_automatic=no
  7810. hardcode_direct=no
  7811. hardcode_direct_absolute=no
  7812. hardcode_libdir_flag_spec=
  7813. hardcode_libdir_separator=
  7814. hardcode_minus_L=no
  7815. hardcode_shlibpath_var=unsupported
  7816. inherit_rpath=no
  7817. link_all_deplibs=unknown
  7818. module_cmds=
  7819. module_expsym_cmds=
  7820. old_archive_from_new_cmds=
  7821. old_archive_from_expsyms_cmds=
  7822. thread_safe_flag_spec=
  7823. whole_archive_flag_spec=
  7824. # include_expsyms should be a list of space-separated symbols to be *always*
  7825. # included in the symbol list
  7826. include_expsyms=
  7827. # exclude_expsyms can be an extended regexp of symbols to exclude
  7828. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7829. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7830. # as well as any symbol that contains 'd'.
  7831. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7832. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7833. # platforms (ab)use it in PIC code, but their linkers get confused if
  7834. # the symbol is explicitly referenced. Since portable code cannot
  7835. # rely on this symbol name, it's probably fine to never include it in
  7836. # preloaded symbol tables.
  7837. # Exclude shared library initialization/finalization symbols.
  7838. extract_expsyms_cmds=
  7839. case $host_os in
  7840. cygwin* | mingw* | pw32* | cegcc*)
  7841. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7842. # When not using gcc, we currently assume that we are using
  7843. # Microsoft Visual C++.
  7844. if test yes != "$GCC"; then
  7845. with_gnu_ld=no
  7846. fi
  7847. ;;
  7848. interix*)
  7849. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7850. with_gnu_ld=yes
  7851. ;;
  7852. openbsd* | bitrig*)
  7853. with_gnu_ld=no
  7854. ;;
  7855. esac
  7856. ld_shlibs=yes
  7857. # On some targets, GNU ld is compatible enough with the native linker
  7858. # that we're better off using the native interface for both.
  7859. lt_use_gnu_ld_interface=no
  7860. if test yes = "$with_gnu_ld"; then
  7861. case $host_os in
  7862. aix*)
  7863. # The AIX port of GNU ld has always aspired to compatibility
  7864. # with the native linker. However, as the warning in the GNU ld
  7865. # block says, versions before 2.19.5* couldn't really create working
  7866. # shared libraries, regardless of the interface used.
  7867. case `$LD -v 2>&1` in
  7868. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7869. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7870. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7871. *)
  7872. lt_use_gnu_ld_interface=yes
  7873. ;;
  7874. esac
  7875. ;;
  7876. *)
  7877. lt_use_gnu_ld_interface=yes
  7878. ;;
  7879. esac
  7880. fi
  7881. if test yes = "$lt_use_gnu_ld_interface"; then
  7882. # If archive_cmds runs LD, not CC, wlarc should be empty
  7883. wlarc='$wl'
  7884. # Set some defaults for GNU ld with shared library support. These
  7885. # are reset later if shared libraries are not supported. Putting them
  7886. # here allows them to be overridden if necessary.
  7887. runpath_var=LD_RUN_PATH
  7888. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7889. export_dynamic_flag_spec='$wl--export-dynamic'
  7890. # ancient GNU ld didn't support --whole-archive et. al.
  7891. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7892. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7893. else
  7894. whole_archive_flag_spec=
  7895. fi
  7896. supports_anon_versioning=no
  7897. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7898. *GNU\ gold*) supports_anon_versioning=yes ;;
  7899. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7900. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7901. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7902. *\ 2.11.*) ;; # other 2.11 versions
  7903. *) supports_anon_versioning=yes ;;
  7904. esac
  7905. # See if GNU ld supports shared libraries.
  7906. case $host_os in
  7907. aix[3-9]*)
  7908. # On AIX/PPC, the GNU linker is very broken
  7909. if test ia64 != "$host_cpu"; then
  7910. ld_shlibs=no
  7911. cat <<_LT_EOF 1>&2
  7912. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7913. *** to be unable to reliably create shared libraries on AIX.
  7914. *** Therefore, libtool is disabling shared libraries support. If you
  7915. *** really care for shared libraries, you may want to install binutils
  7916. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7917. *** You will then need to restart the configuration process.
  7918. _LT_EOF
  7919. fi
  7920. ;;
  7921. amigaos*)
  7922. case $host_cpu in
  7923. powerpc)
  7924. # see comment about AmigaOS4 .so support
  7925. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7926. archive_expsym_cmds=''
  7927. ;;
  7928. m68k)
  7929. 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)'
  7930. hardcode_libdir_flag_spec='-L$libdir'
  7931. hardcode_minus_L=yes
  7932. ;;
  7933. esac
  7934. ;;
  7935. beos*)
  7936. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7937. allow_undefined_flag=unsupported
  7938. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7939. # support --undefined. This deserves some investigation. FIXME
  7940. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7941. else
  7942. ld_shlibs=no
  7943. fi
  7944. ;;
  7945. cygwin* | mingw* | pw32* | cegcc*)
  7946. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7947. # as there is no search path for DLLs.
  7948. hardcode_libdir_flag_spec='-L$libdir'
  7949. export_dynamic_flag_spec='$wl--export-all-symbols'
  7950. allow_undefined_flag=unsupported
  7951. always_export_symbols=no
  7952. enable_shared_with_static_runtimes=yes
  7953. 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'
  7954. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7955. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7956. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7957. # If the export-symbols file already is a .def file, use it as
  7958. # is; otherwise, prepend EXPORTS...
  7959. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7960. cp $export_symbols $output_objdir/$soname.def;
  7961. else
  7962. echo EXPORTS > $output_objdir/$soname.def;
  7963. cat $export_symbols >> $output_objdir/$soname.def;
  7964. fi~
  7965. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7966. else
  7967. ld_shlibs=no
  7968. fi
  7969. ;;
  7970. haiku*)
  7971. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7972. link_all_deplibs=yes
  7973. ;;
  7974. os2*)
  7975. hardcode_libdir_flag_spec='-L$libdir'
  7976. hardcode_minus_L=yes
  7977. allow_undefined_flag=unsupported
  7978. shrext_cmds=.dll
  7979. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7980. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7981. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7982. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7983. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7984. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7985. emximp -o $lib $output_objdir/$libname.def'
  7986. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7987. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7988. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7989. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7990. prefix_cmds="$SED"~
  7991. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7992. prefix_cmds="$prefix_cmds -e 1d";
  7993. fi~
  7994. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7995. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7996. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7997. emximp -o $lib $output_objdir/$libname.def'
  7998. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7999. enable_shared_with_static_runtimes=yes
  8000. file_list_spec='@'
  8001. ;;
  8002. interix[3-9]*)
  8003. hardcode_direct=no
  8004. hardcode_shlibpath_var=no
  8005. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8006. export_dynamic_flag_spec='$wl-E'
  8007. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8008. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8009. # default) and relocated if they conflict, which is a slow very memory
  8010. # consuming and fragmenting process. To avoid this, we pick a random,
  8011. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8012. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8013. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8014. 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'
  8015. ;;
  8016. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8017. tmp_diet=no
  8018. if test linux-dietlibc = "$host_os"; then
  8019. case $cc_basename in
  8020. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8021. esac
  8022. fi
  8023. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8024. && test no = "$tmp_diet"
  8025. then
  8026. tmp_addflag=' $pic_flag'
  8027. tmp_sharedflag='-shared'
  8028. case $cc_basename,$host_cpu in
  8029. pgcc*) # Portland Group C compiler
  8030. 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'
  8031. tmp_addflag=' $pic_flag'
  8032. ;;
  8033. pgf77* | pgf90* | pgf95* | pgfortran*)
  8034. # Portland Group f77 and f90 compilers
  8035. 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'
  8036. tmp_addflag=' $pic_flag -Mnomain' ;;
  8037. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8038. tmp_addflag=' -i_dynamic' ;;
  8039. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8040. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8041. ifc* | ifort*) # Intel Fortran compiler
  8042. tmp_addflag=' -nofor_main' ;;
  8043. lf95*) # Lahey Fortran 8.1
  8044. whole_archive_flag_spec=
  8045. tmp_sharedflag='--shared' ;;
  8046. nagfor*) # NAGFOR 5.3
  8047. tmp_sharedflag='-Wl,-shared' ;;
  8048. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8049. tmp_sharedflag='-qmkshrobj'
  8050. tmp_addflag= ;;
  8051. nvcc*) # Cuda Compiler Driver 2.2
  8052. 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'
  8053. compiler_needs_object=yes
  8054. ;;
  8055. esac
  8056. case `$CC -V 2>&1 | sed 5q` in
  8057. *Sun\ C*) # Sun C 5.9
  8058. 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'
  8059. compiler_needs_object=yes
  8060. tmp_sharedflag='-G' ;;
  8061. *Sun\ F*) # Sun Fortran 8.3
  8062. tmp_sharedflag='-G' ;;
  8063. esac
  8064. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8065. if test yes = "$supports_anon_versioning"; then
  8066. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8067. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8068. echo "local: *; };" >> $output_objdir/$libname.ver~
  8069. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8070. fi
  8071. case $cc_basename in
  8072. tcc*)
  8073. export_dynamic_flag_spec='-rdynamic'
  8074. ;;
  8075. xlf* | bgf* | bgxlf* | mpixlf*)
  8076. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8077. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8078. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8079. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8080. if test yes = "$supports_anon_versioning"; then
  8081. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8082. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8083. echo "local: *; };" >> $output_objdir/$libname.ver~
  8084. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8085. fi
  8086. ;;
  8087. esac
  8088. else
  8089. ld_shlibs=no
  8090. fi
  8091. ;;
  8092. netbsd*)
  8093. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8094. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8095. wlarc=
  8096. else
  8097. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8098. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8099. fi
  8100. ;;
  8101. solaris*)
  8102. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8103. ld_shlibs=no
  8104. cat <<_LT_EOF 1>&2
  8105. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8106. *** create shared libraries on Solaris systems. Therefore, libtool
  8107. *** is disabling shared libraries support. We urge you to upgrade GNU
  8108. *** binutils to release 2.9.1 or newer. Another option is to modify
  8109. *** your PATH or compiler configuration so that the native linker is
  8110. *** used, and then restart.
  8111. _LT_EOF
  8112. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8113. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8114. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8115. else
  8116. ld_shlibs=no
  8117. fi
  8118. ;;
  8119. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8120. case `$LD -v 2>&1` in
  8121. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8122. ld_shlibs=no
  8123. cat <<_LT_EOF 1>&2
  8124. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8125. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8126. *** is disabling shared libraries support. We urge you to upgrade GNU
  8127. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8128. *** your PATH or compiler configuration so that the native linker is
  8129. *** used, and then restart.
  8130. _LT_EOF
  8131. ;;
  8132. *)
  8133. # For security reasons, it is highly recommended that you always
  8134. # use absolute paths for naming shared libraries, and exclude the
  8135. # DT_RUNPATH tag from executables and libraries. But doing so
  8136. # requires that you compile everything twice, which is a pain.
  8137. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8138. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8139. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8140. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8141. else
  8142. ld_shlibs=no
  8143. fi
  8144. ;;
  8145. esac
  8146. ;;
  8147. sunos4*)
  8148. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8149. wlarc=
  8150. hardcode_direct=yes
  8151. hardcode_shlibpath_var=no
  8152. ;;
  8153. *)
  8154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8155. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8156. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8157. else
  8158. ld_shlibs=no
  8159. fi
  8160. ;;
  8161. esac
  8162. if test no = "$ld_shlibs"; then
  8163. runpath_var=
  8164. hardcode_libdir_flag_spec=
  8165. export_dynamic_flag_spec=
  8166. whole_archive_flag_spec=
  8167. fi
  8168. else
  8169. # PORTME fill in a description of your system's linker (not GNU ld)
  8170. case $host_os in
  8171. aix3*)
  8172. allow_undefined_flag=unsupported
  8173. always_export_symbols=yes
  8174. 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'
  8175. # Note: this linker hardcodes the directories in LIBPATH if there
  8176. # are no directories specified by -L.
  8177. hardcode_minus_L=yes
  8178. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8179. # Neither direct hardcoding nor static linking is supported with a
  8180. # broken collect2.
  8181. hardcode_direct=unsupported
  8182. fi
  8183. ;;
  8184. aix[4-9]*)
  8185. if test ia64 = "$host_cpu"; then
  8186. # On IA64, the linker does run time linking by default, so we don't
  8187. # have to do anything special.
  8188. aix_use_runtimelinking=no
  8189. exp_sym_flag='-Bexport'
  8190. no_entry_flag=
  8191. else
  8192. # If we're using GNU nm, then we don't want the "-C" option.
  8193. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8194. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8195. # weak defined symbols like other global defined symbols, whereas
  8196. # GNU nm marks them as "W".
  8197. # While the 'weak' keyword is ignored in the Export File, we need
  8198. # it in the Import File for the 'aix-soname' feature, so we have
  8199. # to replace the "-B" option with "-P" for AIX nm.
  8200. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8201. 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'
  8202. else
  8203. 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'
  8204. fi
  8205. aix_use_runtimelinking=no
  8206. # Test if we are trying to use run time linking or normal
  8207. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8208. # have runtime linking enabled, and use it for executables.
  8209. # For shared libraries, we enable/disable runtime linking
  8210. # depending on the kind of the shared library created -
  8211. # when "with_aix_soname,aix_use_runtimelinking" is:
  8212. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8213. # "aix,yes" lib.so shared, rtl:yes, for executables
  8214. # lib.a static archive
  8215. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8216. # lib.a(lib.so.V) shared, rtl:no, for executables
  8217. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8218. # lib.a(lib.so.V) shared, rtl:no
  8219. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8220. # lib.a static archive
  8221. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8222. for ld_flag in $LDFLAGS; do
  8223. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8224. aix_use_runtimelinking=yes
  8225. break
  8226. fi
  8227. done
  8228. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8229. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8230. # so we don't have lib.a shared libs to link our executables.
  8231. # We have to force runtime linking in this case.
  8232. aix_use_runtimelinking=yes
  8233. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8234. fi
  8235. ;;
  8236. esac
  8237. exp_sym_flag='-bexport'
  8238. no_entry_flag='-bnoentry'
  8239. fi
  8240. # When large executables or shared objects are built, AIX ld can
  8241. # have problems creating the table of contents. If linking a library
  8242. # or program results in "error TOC overflow" add -mminimal-toc to
  8243. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8244. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8245. archive_cmds=''
  8246. hardcode_direct=yes
  8247. hardcode_direct_absolute=yes
  8248. hardcode_libdir_separator=':'
  8249. link_all_deplibs=yes
  8250. file_list_spec='$wl-f,'
  8251. case $with_aix_soname,$aix_use_runtimelinking in
  8252. aix,*) ;; # traditional, no import file
  8253. svr4,* | *,yes) # use import file
  8254. # The Import File defines what to hardcode.
  8255. hardcode_direct=no
  8256. hardcode_direct_absolute=no
  8257. ;;
  8258. esac
  8259. if test yes = "$GCC"; then
  8260. case $host_os in aix4.[012]|aix4.[012].*)
  8261. # We only want to do this on AIX 4.2 and lower, the check
  8262. # below for broken collect2 doesn't work under 4.3+
  8263. collect2name=`$CC -print-prog-name=collect2`
  8264. if test -f "$collect2name" &&
  8265. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8266. then
  8267. # We have reworked collect2
  8268. :
  8269. else
  8270. # We have old collect2
  8271. hardcode_direct=unsupported
  8272. # It fails to find uninstalled libraries when the uninstalled
  8273. # path is not listed in the libpath. Setting hardcode_minus_L
  8274. # to unsupported forces relinking
  8275. hardcode_minus_L=yes
  8276. hardcode_libdir_flag_spec='-L$libdir'
  8277. hardcode_libdir_separator=
  8278. fi
  8279. ;;
  8280. esac
  8281. shared_flag='-shared'
  8282. if test yes = "$aix_use_runtimelinking"; then
  8283. shared_flag="$shared_flag "'$wl-G'
  8284. fi
  8285. # Need to ensure runtime linking is disabled for the traditional
  8286. # shared library, or the linker may eventually find shared libraries
  8287. # /with/ Import File - we do not want to mix them.
  8288. shared_flag_aix='-shared'
  8289. shared_flag_svr4='-shared $wl-G'
  8290. else
  8291. # not using gcc
  8292. if test ia64 = "$host_cpu"; then
  8293. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8294. # chokes on -Wl,-G. The following line is correct:
  8295. shared_flag='-G'
  8296. else
  8297. if test yes = "$aix_use_runtimelinking"; then
  8298. shared_flag='$wl-G'
  8299. else
  8300. shared_flag='$wl-bM:SRE'
  8301. fi
  8302. shared_flag_aix='$wl-bM:SRE'
  8303. shared_flag_svr4='$wl-G'
  8304. fi
  8305. fi
  8306. export_dynamic_flag_spec='$wl-bexpall'
  8307. # It seems that -bexpall does not export symbols beginning with
  8308. # underscore (_), so it is better to generate a list of symbols to export.
  8309. always_export_symbols=yes
  8310. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8311. # Warning - without using the other runtime loading flags (-brtl),
  8312. # -berok will link without error, but may produce a broken library.
  8313. allow_undefined_flag='-berok'
  8314. # Determine the default libpath from the value encoded in an
  8315. # empty executable.
  8316. if test set = "${lt_cv_aix_libpath+set}"; then
  8317. aix_libpath=$lt_cv_aix_libpath
  8318. else
  8319. if ${lt_cv_aix_libpath_+:} false; then :
  8320. $as_echo_n "(cached) " >&6
  8321. else
  8322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8323. /* end confdefs.h. */
  8324. int
  8325. main ()
  8326. {
  8327. ;
  8328. return 0;
  8329. }
  8330. _ACEOF
  8331. if ac_fn_c_try_link "$LINENO"; then :
  8332. lt_aix_libpath_sed='
  8333. /Import File Strings/,/^$/ {
  8334. /^0/ {
  8335. s/^0 *\([^ ]*\) *$/\1/
  8336. p
  8337. }
  8338. }'
  8339. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8340. # Check for a 64-bit object if we didn't find anything.
  8341. if test -z "$lt_cv_aix_libpath_"; then
  8342. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8343. fi
  8344. fi
  8345. rm -f core conftest.err conftest.$ac_objext \
  8346. conftest$ac_exeext conftest.$ac_ext
  8347. if test -z "$lt_cv_aix_libpath_"; then
  8348. lt_cv_aix_libpath_=/usr/lib:/lib
  8349. fi
  8350. fi
  8351. aix_libpath=$lt_cv_aix_libpath_
  8352. fi
  8353. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8354. 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
  8355. else
  8356. if test ia64 = "$host_cpu"; then
  8357. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8358. allow_undefined_flag="-z nodefs"
  8359. 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"
  8360. else
  8361. # Determine the default libpath from the value encoded in an
  8362. # empty executable.
  8363. if test set = "${lt_cv_aix_libpath+set}"; then
  8364. aix_libpath=$lt_cv_aix_libpath
  8365. else
  8366. if ${lt_cv_aix_libpath_+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int
  8372. main ()
  8373. {
  8374. ;
  8375. return 0;
  8376. }
  8377. _ACEOF
  8378. if ac_fn_c_try_link "$LINENO"; then :
  8379. lt_aix_libpath_sed='
  8380. /Import File Strings/,/^$/ {
  8381. /^0/ {
  8382. s/^0 *\([^ ]*\) *$/\1/
  8383. p
  8384. }
  8385. }'
  8386. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8387. # Check for a 64-bit object if we didn't find anything.
  8388. if test -z "$lt_cv_aix_libpath_"; then
  8389. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8390. fi
  8391. fi
  8392. rm -f core conftest.err conftest.$ac_objext \
  8393. conftest$ac_exeext conftest.$ac_ext
  8394. if test -z "$lt_cv_aix_libpath_"; then
  8395. lt_cv_aix_libpath_=/usr/lib:/lib
  8396. fi
  8397. fi
  8398. aix_libpath=$lt_cv_aix_libpath_
  8399. fi
  8400. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8401. # Warning - without using the other run time loading flags,
  8402. # -berok will link without error, but may produce a broken library.
  8403. no_undefined_flag=' $wl-bernotok'
  8404. allow_undefined_flag=' $wl-berok'
  8405. if test yes = "$with_gnu_ld"; then
  8406. # We only use this code for GNU lds that support --whole-archive.
  8407. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8408. else
  8409. # Exported symbols can be pulled into shared objects from archives
  8410. whole_archive_flag_spec='$convenience'
  8411. fi
  8412. archive_cmds_need_lc=yes
  8413. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8414. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8415. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8416. if test svr4 != "$with_aix_soname"; then
  8417. # This is similar to how AIX traditionally builds its shared libraries.
  8418. 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'
  8419. fi
  8420. if test aix != "$with_aix_soname"; then
  8421. 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'
  8422. else
  8423. # used by -dlpreopen to get the symbols
  8424. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8425. fi
  8426. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8427. fi
  8428. fi
  8429. ;;
  8430. amigaos*)
  8431. case $host_cpu in
  8432. powerpc)
  8433. # see comment about AmigaOS4 .so support
  8434. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8435. archive_expsym_cmds=''
  8436. ;;
  8437. m68k)
  8438. 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)'
  8439. hardcode_libdir_flag_spec='-L$libdir'
  8440. hardcode_minus_L=yes
  8441. ;;
  8442. esac
  8443. ;;
  8444. bsdi[45]*)
  8445. export_dynamic_flag_spec=-rdynamic
  8446. ;;
  8447. cygwin* | mingw* | pw32* | cegcc*)
  8448. # When not using gcc, we currently assume that we are using
  8449. # Microsoft Visual C++.
  8450. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8451. # no search path for DLLs.
  8452. case $cc_basename in
  8453. cl*)
  8454. # Native MSVC
  8455. hardcode_libdir_flag_spec=' '
  8456. allow_undefined_flag=unsupported
  8457. always_export_symbols=yes
  8458. file_list_spec='@'
  8459. # Tell ltmain to make .lib files, not .a files.
  8460. libext=lib
  8461. # Tell ltmain to make .dll files, not .so files.
  8462. shrext_cmds=.dll
  8463. # FIXME: Setting linknames here is a bad hack.
  8464. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8465. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8466. cp "$export_symbols" "$output_objdir/$soname.def";
  8467. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8468. else
  8469. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8470. fi~
  8471. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8472. linknames='
  8473. # The linker will not automatically build a static lib if we build a DLL.
  8474. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8475. enable_shared_with_static_runtimes=yes
  8476. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8477. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8478. # Don't use ranlib
  8479. old_postinstall_cmds='chmod 644 $oldlib'
  8480. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8481. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8482. case $lt_outputfile in
  8483. *.exe|*.EXE) ;;
  8484. *)
  8485. lt_outputfile=$lt_outputfile.exe
  8486. lt_tool_outputfile=$lt_tool_outputfile.exe
  8487. ;;
  8488. esac~
  8489. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8490. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8491. $RM "$lt_outputfile.manifest";
  8492. fi'
  8493. ;;
  8494. *)
  8495. # Assume MSVC wrapper
  8496. hardcode_libdir_flag_spec=' '
  8497. allow_undefined_flag=unsupported
  8498. # Tell ltmain to make .lib files, not .a files.
  8499. libext=lib
  8500. # Tell ltmain to make .dll files, not .so files.
  8501. shrext_cmds=.dll
  8502. # FIXME: Setting linknames here is a bad hack.
  8503. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8504. # The linker will automatically build a .lib file if we build a DLL.
  8505. old_archive_from_new_cmds='true'
  8506. # FIXME: Should let the user specify the lib program.
  8507. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8508. enable_shared_with_static_runtimes=yes
  8509. ;;
  8510. esac
  8511. ;;
  8512. darwin* | rhapsody*)
  8513. archive_cmds_need_lc=no
  8514. hardcode_direct=no
  8515. hardcode_automatic=yes
  8516. hardcode_shlibpath_var=unsupported
  8517. if test yes = "$lt_cv_ld_force_load"; then
  8518. 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\"`'
  8519. else
  8520. whole_archive_flag_spec=''
  8521. fi
  8522. link_all_deplibs=yes
  8523. allow_undefined_flag=$_lt_dar_allow_undefined
  8524. case $cc_basename in
  8525. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8526. *) _lt_dar_can_shared=$GCC ;;
  8527. esac
  8528. if test yes = "$_lt_dar_can_shared"; then
  8529. output_verbose_link_cmd=func_echo_all
  8530. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8531. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8532. 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"
  8533. 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"
  8534. else
  8535. ld_shlibs=no
  8536. fi
  8537. ;;
  8538. dgux*)
  8539. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8540. hardcode_libdir_flag_spec='-L$libdir'
  8541. hardcode_shlibpath_var=no
  8542. ;;
  8543. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8544. # support. Future versions do this automatically, but an explicit c++rt0.o
  8545. # does not break anything, and helps significantly (at the cost of a little
  8546. # extra space).
  8547. freebsd2.2*)
  8548. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8549. hardcode_libdir_flag_spec='-R$libdir'
  8550. hardcode_direct=yes
  8551. hardcode_shlibpath_var=no
  8552. ;;
  8553. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8554. freebsd2.*)
  8555. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8556. hardcode_direct=yes
  8557. hardcode_minus_L=yes
  8558. hardcode_shlibpath_var=no
  8559. ;;
  8560. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8561. freebsd* | dragonfly* | midnightbsd*)
  8562. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8563. hardcode_libdir_flag_spec='-R$libdir'
  8564. hardcode_direct=yes
  8565. hardcode_shlibpath_var=no
  8566. ;;
  8567. hpux9*)
  8568. if test yes = "$GCC"; then
  8569. 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'
  8570. else
  8571. 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'
  8572. fi
  8573. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8574. hardcode_libdir_separator=:
  8575. hardcode_direct=yes
  8576. # hardcode_minus_L: Not really in the search PATH,
  8577. # but as the default location of the library.
  8578. hardcode_minus_L=yes
  8579. export_dynamic_flag_spec='$wl-E'
  8580. ;;
  8581. hpux10*)
  8582. if test yes,no = "$GCC,$with_gnu_ld"; then
  8583. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8584. else
  8585. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8586. fi
  8587. if test no = "$with_gnu_ld"; then
  8588. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8589. hardcode_libdir_separator=:
  8590. hardcode_direct=yes
  8591. hardcode_direct_absolute=yes
  8592. export_dynamic_flag_spec='$wl-E'
  8593. # hardcode_minus_L: Not really in the search PATH,
  8594. # but as the default location of the library.
  8595. hardcode_minus_L=yes
  8596. fi
  8597. ;;
  8598. hpux11*)
  8599. if test yes,no = "$GCC,$with_gnu_ld"; then
  8600. case $host_cpu in
  8601. hppa*64*)
  8602. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8603. ;;
  8604. ia64*)
  8605. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8606. ;;
  8607. *)
  8608. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8609. ;;
  8610. esac
  8611. else
  8612. case $host_cpu in
  8613. hppa*64*)
  8614. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8615. ;;
  8616. ia64*)
  8617. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8618. ;;
  8619. *)
  8620. # Older versions of the 11.00 compiler do not understand -b yet
  8621. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8623. $as_echo_n "checking if $CC understands -b... " >&6; }
  8624. if ${lt_cv_prog_compiler__b+:} false; then :
  8625. $as_echo_n "(cached) " >&6
  8626. else
  8627. lt_cv_prog_compiler__b=no
  8628. save_LDFLAGS=$LDFLAGS
  8629. LDFLAGS="$LDFLAGS -b"
  8630. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8631. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8632. # The linker can only warn and ignore the option if not recognized
  8633. # So say no if there are warnings
  8634. if test -s conftest.err; then
  8635. # Append any errors to the config.log.
  8636. cat conftest.err 1>&5
  8637. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8638. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8639. if diff conftest.exp conftest.er2 >/dev/null; then
  8640. lt_cv_prog_compiler__b=yes
  8641. fi
  8642. else
  8643. lt_cv_prog_compiler__b=yes
  8644. fi
  8645. fi
  8646. $RM -r conftest*
  8647. LDFLAGS=$save_LDFLAGS
  8648. fi
  8649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8650. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8651. if test yes = "$lt_cv_prog_compiler__b"; then
  8652. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8653. else
  8654. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8655. fi
  8656. ;;
  8657. esac
  8658. fi
  8659. if test no = "$with_gnu_ld"; then
  8660. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8661. hardcode_libdir_separator=:
  8662. case $host_cpu in
  8663. hppa*64*|ia64*)
  8664. hardcode_direct=no
  8665. hardcode_shlibpath_var=no
  8666. ;;
  8667. *)
  8668. hardcode_direct=yes
  8669. hardcode_direct_absolute=yes
  8670. export_dynamic_flag_spec='$wl-E'
  8671. # hardcode_minus_L: Not really in the search PATH,
  8672. # but as the default location of the library.
  8673. hardcode_minus_L=yes
  8674. ;;
  8675. esac
  8676. fi
  8677. ;;
  8678. irix5* | irix6* | nonstopux*)
  8679. if test yes = "$GCC"; then
  8680. 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'
  8681. # Try to use the -exported_symbol ld option, if it does not
  8682. # work, assume that -exports_file does not work either and
  8683. # implicitly export all symbols.
  8684. # This should be the same for all languages, so no per-tag cache variable.
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8686. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8687. if ${lt_cv_irix_exported_symbol+:} false; then :
  8688. $as_echo_n "(cached) " >&6
  8689. else
  8690. save_LDFLAGS=$LDFLAGS
  8691. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8693. /* end confdefs.h. */
  8694. int foo (void) { return 0; }
  8695. _ACEOF
  8696. if ac_fn_c_try_link "$LINENO"; then :
  8697. lt_cv_irix_exported_symbol=yes
  8698. else
  8699. lt_cv_irix_exported_symbol=no
  8700. fi
  8701. rm -f core conftest.err conftest.$ac_objext \
  8702. conftest$ac_exeext conftest.$ac_ext
  8703. LDFLAGS=$save_LDFLAGS
  8704. fi
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8706. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8707. if test yes = "$lt_cv_irix_exported_symbol"; then
  8708. 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'
  8709. fi
  8710. else
  8711. 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'
  8712. 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'
  8713. fi
  8714. archive_cmds_need_lc='no'
  8715. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8716. hardcode_libdir_separator=:
  8717. inherit_rpath=yes
  8718. link_all_deplibs=yes
  8719. ;;
  8720. linux*)
  8721. case $cc_basename in
  8722. tcc*)
  8723. # Fabrice Bellard et al's Tiny C Compiler
  8724. ld_shlibs=yes
  8725. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8726. ;;
  8727. esac
  8728. ;;
  8729. netbsd*)
  8730. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8731. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8732. else
  8733. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8734. fi
  8735. hardcode_libdir_flag_spec='-R$libdir'
  8736. hardcode_direct=yes
  8737. hardcode_shlibpath_var=no
  8738. ;;
  8739. newsos6)
  8740. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8741. hardcode_direct=yes
  8742. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8743. hardcode_libdir_separator=:
  8744. hardcode_shlibpath_var=no
  8745. ;;
  8746. *nto* | *qnx*)
  8747. ;;
  8748. openbsd* | bitrig*)
  8749. if test -f /usr/libexec/ld.so; then
  8750. hardcode_direct=yes
  8751. hardcode_shlibpath_var=no
  8752. hardcode_direct_absolute=yes
  8753. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8754. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8755. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8756. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8757. export_dynamic_flag_spec='$wl-E'
  8758. else
  8759. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8760. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8761. fi
  8762. else
  8763. ld_shlibs=no
  8764. fi
  8765. ;;
  8766. os2*)
  8767. hardcode_libdir_flag_spec='-L$libdir'
  8768. hardcode_minus_L=yes
  8769. allow_undefined_flag=unsupported
  8770. shrext_cmds=.dll
  8771. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8772. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8773. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8774. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8775. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8776. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8777. emximp -o $lib $output_objdir/$libname.def'
  8778. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8779. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8780. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8781. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8782. prefix_cmds="$SED"~
  8783. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8784. prefix_cmds="$prefix_cmds -e 1d";
  8785. fi~
  8786. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8787. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8788. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8789. emximp -o $lib $output_objdir/$libname.def'
  8790. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8791. enable_shared_with_static_runtimes=yes
  8792. file_list_spec='@'
  8793. ;;
  8794. osf3*)
  8795. if test yes = "$GCC"; then
  8796. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8797. 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'
  8798. else
  8799. allow_undefined_flag=' -expect_unresolved \*'
  8800. 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'
  8801. fi
  8802. archive_cmds_need_lc='no'
  8803. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8804. hardcode_libdir_separator=:
  8805. ;;
  8806. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8807. if test yes = "$GCC"; then
  8808. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8809. 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'
  8810. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8811. else
  8812. allow_undefined_flag=' -expect_unresolved \*'
  8813. 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'
  8814. 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~
  8815. $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'
  8816. # Both c and cxx compiler support -rpath directly
  8817. hardcode_libdir_flag_spec='-rpath $libdir'
  8818. fi
  8819. archive_cmds_need_lc='no'
  8820. hardcode_libdir_separator=:
  8821. ;;
  8822. solaris*)
  8823. no_undefined_flag=' -z defs'
  8824. if test yes = "$GCC"; then
  8825. wlarc='$wl'
  8826. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8827. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8828. $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'
  8829. else
  8830. case `$CC -V 2>&1` in
  8831. *"Compilers 5.0"*)
  8832. wlarc=''
  8833. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8834. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8835. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8836. ;;
  8837. *)
  8838. wlarc='$wl'
  8839. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8840. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8841. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8842. ;;
  8843. esac
  8844. fi
  8845. hardcode_libdir_flag_spec='-R$libdir'
  8846. hardcode_shlibpath_var=no
  8847. case $host_os in
  8848. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8849. *)
  8850. # The compiler driver will combine and reorder linker options,
  8851. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8852. # but is careful enough not to reorder.
  8853. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8854. if test yes = "$GCC"; then
  8855. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8856. else
  8857. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8858. fi
  8859. ;;
  8860. esac
  8861. link_all_deplibs=yes
  8862. ;;
  8863. sunos4*)
  8864. if test sequent = "$host_vendor"; then
  8865. # Use $CC to link under sequent, because it throws in some extra .o
  8866. # files that make .init and .fini sections work.
  8867. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8868. else
  8869. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8870. fi
  8871. hardcode_libdir_flag_spec='-L$libdir'
  8872. hardcode_direct=yes
  8873. hardcode_minus_L=yes
  8874. hardcode_shlibpath_var=no
  8875. ;;
  8876. sysv4)
  8877. case $host_vendor in
  8878. sni)
  8879. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8880. hardcode_direct=yes # is this really true???
  8881. ;;
  8882. siemens)
  8883. ## LD is ld it makes a PLAMLIB
  8884. ## CC just makes a GrossModule.
  8885. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8886. reload_cmds='$CC -r -o $output$reload_objs'
  8887. hardcode_direct=no
  8888. ;;
  8889. motorola)
  8890. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8891. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8892. ;;
  8893. esac
  8894. runpath_var='LD_RUN_PATH'
  8895. hardcode_shlibpath_var=no
  8896. ;;
  8897. sysv4.3*)
  8898. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8899. hardcode_shlibpath_var=no
  8900. export_dynamic_flag_spec='-Bexport'
  8901. ;;
  8902. sysv4*MP*)
  8903. if test -d /usr/nec; then
  8904. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8905. hardcode_shlibpath_var=no
  8906. runpath_var=LD_RUN_PATH
  8907. hardcode_runpath_var=yes
  8908. ld_shlibs=yes
  8909. fi
  8910. ;;
  8911. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8912. no_undefined_flag='$wl-z,text'
  8913. archive_cmds_need_lc=no
  8914. hardcode_shlibpath_var=no
  8915. runpath_var='LD_RUN_PATH'
  8916. if test yes = "$GCC"; then
  8917. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8918. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. else
  8920. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8921. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8922. fi
  8923. ;;
  8924. sysv5* | sco3.2v5* | sco5v6*)
  8925. # Note: We CANNOT use -z defs as we might desire, because we do not
  8926. # link with -lc, and that would cause any symbols used from libc to
  8927. # always be unresolved, which means just about no library would
  8928. # ever link correctly. If we're not using GNU ld we use -z text
  8929. # though, which does catch some bad symbols but isn't as heavy-handed
  8930. # as -z defs.
  8931. no_undefined_flag='$wl-z,text'
  8932. allow_undefined_flag='$wl-z,nodefs'
  8933. archive_cmds_need_lc=no
  8934. hardcode_shlibpath_var=no
  8935. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8936. hardcode_libdir_separator=':'
  8937. link_all_deplibs=yes
  8938. export_dynamic_flag_spec='$wl-Bexport'
  8939. runpath_var='LD_RUN_PATH'
  8940. if test yes = "$GCC"; then
  8941. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. else
  8944. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8946. fi
  8947. ;;
  8948. uts4*)
  8949. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8950. hardcode_libdir_flag_spec='-L$libdir'
  8951. hardcode_shlibpath_var=no
  8952. ;;
  8953. *)
  8954. ld_shlibs=no
  8955. ;;
  8956. esac
  8957. if test sni = "$host_vendor"; then
  8958. case $host in
  8959. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8960. export_dynamic_flag_spec='$wl-Blargedynsym'
  8961. ;;
  8962. esac
  8963. fi
  8964. fi
  8965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8966. $as_echo "$ld_shlibs" >&6; }
  8967. test no = "$ld_shlibs" && can_build_shared=no
  8968. with_gnu_ld=$with_gnu_ld
  8969. #
  8970. # Do we need to explicitly link libc?
  8971. #
  8972. case "x$archive_cmds_need_lc" in
  8973. x|xyes)
  8974. # Assume -lc should be added
  8975. archive_cmds_need_lc=yes
  8976. if test yes,yes = "$GCC,$enable_shared"; then
  8977. case $archive_cmds in
  8978. *'~'*)
  8979. # FIXME: we may have to deal with multi-command sequences.
  8980. ;;
  8981. '$CC '*)
  8982. # Test whether the compiler implicitly links with -lc since on some
  8983. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8984. # to ld, don't add -lc before -lgcc.
  8985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8986. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8987. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8988. $as_echo_n "(cached) " >&6
  8989. else
  8990. $RM conftest*
  8991. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8992. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8993. (eval $ac_compile) 2>&5
  8994. ac_status=$?
  8995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8996. test $ac_status = 0; } 2>conftest.err; then
  8997. soname=conftest
  8998. lib=conftest
  8999. libobjs=conftest.$ac_objext
  9000. deplibs=
  9001. wl=$lt_prog_compiler_wl
  9002. pic_flag=$lt_prog_compiler_pic
  9003. compiler_flags=-v
  9004. linker_flags=-v
  9005. verstring=
  9006. output_objdir=.
  9007. libname=conftest
  9008. lt_save_allow_undefined_flag=$allow_undefined_flag
  9009. allow_undefined_flag=
  9010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9011. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9012. ac_status=$?
  9013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9014. test $ac_status = 0; }
  9015. then
  9016. lt_cv_archive_cmds_need_lc=no
  9017. else
  9018. lt_cv_archive_cmds_need_lc=yes
  9019. fi
  9020. allow_undefined_flag=$lt_save_allow_undefined_flag
  9021. else
  9022. cat conftest.err 1>&5
  9023. fi
  9024. $RM conftest*
  9025. fi
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9027. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9028. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9029. ;;
  9030. esac
  9031. fi
  9032. ;;
  9033. esac
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9035. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9036. if test yes = "$GCC"; then
  9037. case $host_os in
  9038. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9039. *) lt_awk_arg='/^libraries:/' ;;
  9040. esac
  9041. case $host_os in
  9042. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9043. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9044. esac
  9045. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9046. case $lt_search_path_spec in
  9047. *\;*)
  9048. # if the path contains ";" then we assume it to be the separator
  9049. # otherwise default to the standard path separator (i.e. ":") - it is
  9050. # assumed that no part of a normal pathname contains ";" but that should
  9051. # okay in the real world where ";" in dirpaths is itself problematic.
  9052. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9053. ;;
  9054. *)
  9055. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9056. ;;
  9057. esac
  9058. # Ok, now we have the path, separated by spaces, we can step through it
  9059. # and add multilib dir if necessary...
  9060. lt_tmp_lt_search_path_spec=
  9061. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9062. # ...but if some path component already ends with the multilib dir we assume
  9063. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9064. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9065. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9066. lt_multi_os_dir=
  9067. ;;
  9068. esac
  9069. for lt_sys_path in $lt_search_path_spec; do
  9070. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9071. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9072. elif test -n "$lt_multi_os_dir"; then
  9073. test -d "$lt_sys_path" && \
  9074. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9075. fi
  9076. done
  9077. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9078. BEGIN {RS = " "; FS = "/|\n";} {
  9079. lt_foo = "";
  9080. lt_count = 0;
  9081. for (lt_i = NF; lt_i > 0; lt_i--) {
  9082. if ($lt_i != "" && $lt_i != ".") {
  9083. if ($lt_i == "..") {
  9084. lt_count++;
  9085. } else {
  9086. if (lt_count == 0) {
  9087. lt_foo = "/" $lt_i lt_foo;
  9088. } else {
  9089. lt_count--;
  9090. }
  9091. }
  9092. }
  9093. }
  9094. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9095. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9096. }'`
  9097. # AWK program above erroneously prepends '/' to C:/dos/paths
  9098. # for these hosts.
  9099. case $host_os in
  9100. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9101. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9102. esac
  9103. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9104. else
  9105. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9106. fi
  9107. library_names_spec=
  9108. libname_spec='lib$name'
  9109. soname_spec=
  9110. shrext_cmds=.so
  9111. postinstall_cmds=
  9112. postuninstall_cmds=
  9113. finish_cmds=
  9114. finish_eval=
  9115. shlibpath_var=
  9116. shlibpath_overrides_runpath=unknown
  9117. version_type=none
  9118. dynamic_linker="$host_os ld.so"
  9119. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9120. need_lib_prefix=unknown
  9121. hardcode_into_libs=no
  9122. # when you set need_version to no, make sure it does not cause -set_version
  9123. # flags to be left without arguments
  9124. need_version=unknown
  9125. case $host_os in
  9126. aix3*)
  9127. version_type=linux # correct to gnu/linux during the next big refactor
  9128. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9129. shlibpath_var=LIBPATH
  9130. # AIX 3 has no versioning support, so we append a major version to the name.
  9131. soname_spec='$libname$release$shared_ext$major'
  9132. ;;
  9133. aix[4-9]*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. hardcode_into_libs=yes
  9138. if test ia64 = "$host_cpu"; then
  9139. # AIX 5 supports IA64
  9140. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. else
  9143. # With GCC up to 2.95.x, collect2 would create an import file
  9144. # for dependence libraries. The import file would start with
  9145. # the line '#! .'. This would cause the generated library to
  9146. # depend on '.', always an invalid library. This was fixed in
  9147. # development snapshots of GCC prior to 3.0.
  9148. case $host_os in
  9149. aix4 | aix4.[01] | aix4.[01].*)
  9150. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9151. echo ' yes '
  9152. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9153. :
  9154. else
  9155. can_build_shared=no
  9156. fi
  9157. ;;
  9158. esac
  9159. # Using Import Files as archive members, it is possible to support
  9160. # filename-based versioning of shared library archives on AIX. While
  9161. # this would work for both with and without runtime linking, it will
  9162. # prevent static linking of such archives. So we do filename-based
  9163. # shared library versioning with .so extension only, which is used
  9164. # when both runtime linking and shared linking is enabled.
  9165. # Unfortunately, runtime linking may impact performance, so we do
  9166. # not want this to be the default eventually. Also, we use the
  9167. # versioned .so libs for executables only if there is the -brtl
  9168. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9169. # To allow for filename-based versioning support, we need to create
  9170. # libNAME.so.V as an archive file, containing:
  9171. # *) an Import File, referring to the versioned filename of the
  9172. # archive as well as the shared archive member, telling the
  9173. # bitwidth (32 or 64) of that shared object, and providing the
  9174. # list of exported symbols of that shared object, eventually
  9175. # decorated with the 'weak' keyword
  9176. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9177. # it being seen by the linker.
  9178. # At run time we better use the real file rather than another symlink,
  9179. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9180. case $with_aix_soname,$aix_use_runtimelinking in
  9181. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9182. # soname into executable. Probably we can add versioning support to
  9183. # collect2, so additional links can be useful in future.
  9184. aix,yes) # traditional libtool
  9185. dynamic_linker='AIX unversionable lib.so'
  9186. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9187. # instead of lib<name>.a to let people know that these are not
  9188. # typical AIX shared libraries.
  9189. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9190. ;;
  9191. aix,no) # traditional AIX only
  9192. dynamic_linker='AIX lib.a(lib.so.V)'
  9193. # We preserve .a as extension for shared libraries through AIX4.2
  9194. # and later when we are not doing run time linking.
  9195. library_names_spec='$libname$release.a $libname.a'
  9196. soname_spec='$libname$release$shared_ext$major'
  9197. ;;
  9198. svr4,*) # full svr4 only
  9199. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9200. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9201. # We do not specify a path in Import Files, so LIBPATH fires.
  9202. shlibpath_overrides_runpath=yes
  9203. ;;
  9204. *,yes) # both, prefer svr4
  9205. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9206. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9207. # unpreferred sharedlib libNAME.a needs extra handling
  9208. 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"'
  9209. 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"'
  9210. # We do not specify a path in Import Files, so LIBPATH fires.
  9211. shlibpath_overrides_runpath=yes
  9212. ;;
  9213. *,no) # both, prefer aix
  9214. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9215. library_names_spec='$libname$release.a $libname.a'
  9216. soname_spec='$libname$release$shared_ext$major'
  9217. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9218. 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)'
  9219. 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"'
  9220. ;;
  9221. esac
  9222. shlibpath_var=LIBPATH
  9223. fi
  9224. ;;
  9225. amigaos*)
  9226. case $host_cpu in
  9227. powerpc)
  9228. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9229. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9231. ;;
  9232. m68k)
  9233. library_names_spec='$libname.ixlibrary $libname.a'
  9234. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9235. 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'
  9236. ;;
  9237. esac
  9238. ;;
  9239. beos*)
  9240. library_names_spec='$libname$shared_ext'
  9241. dynamic_linker="$host_os ld.so"
  9242. shlibpath_var=LIBRARY_PATH
  9243. ;;
  9244. bsdi[45]*)
  9245. version_type=linux # correct to gnu/linux during the next big refactor
  9246. need_version=no
  9247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9248. soname_spec='$libname$release$shared_ext$major'
  9249. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9250. shlibpath_var=LD_LIBRARY_PATH
  9251. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9252. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9253. # the default ld.so.conf also contains /usr/contrib/lib and
  9254. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9255. # libtool to hard-code these into programs
  9256. ;;
  9257. cygwin* | mingw* | pw32* | cegcc*)
  9258. version_type=windows
  9259. shrext_cmds=.dll
  9260. need_version=no
  9261. need_lib_prefix=no
  9262. case $GCC,$cc_basename in
  9263. yes,*)
  9264. # gcc
  9265. library_names_spec='$libname.dll.a'
  9266. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9267. postinstall_cmds='base_file=`basename \$file`~
  9268. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9269. dldir=$destdir/`dirname \$dlpath`~
  9270. test -d \$dldir || mkdir -p \$dldir~
  9271. $install_prog $dir/$dlname \$dldir/$dlname~
  9272. chmod a+x \$dldir/$dlname~
  9273. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9274. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9275. fi'
  9276. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9277. dlpath=$dir/\$dldll~
  9278. $RM \$dlpath'
  9279. shlibpath_overrides_runpath=yes
  9280. case $host_os in
  9281. cygwin*)
  9282. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9283. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9284. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9285. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9286. ;;
  9287. mingw* | cegcc*)
  9288. # MinGW DLLs use traditional 'lib' prefix
  9289. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9290. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9291. ;;
  9292. pw32*)
  9293. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9294. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9295. ;;
  9296. esac
  9297. dynamic_linker='Win32 ld.exe'
  9298. ;;
  9299. *,cl*)
  9300. # Native MSVC
  9301. libname_spec='$name'
  9302. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9303. library_names_spec='$libname.dll.lib'
  9304. case $build_os in
  9305. mingw*)
  9306. sys_lib_search_path_spec=
  9307. lt_save_ifs=$IFS
  9308. IFS=';'
  9309. for lt_path in $LIB
  9310. do
  9311. IFS=$lt_save_ifs
  9312. # Let DOS variable expansion print the short 8.3 style file name.
  9313. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9314. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9315. done
  9316. IFS=$lt_save_ifs
  9317. # Convert to MSYS style.
  9318. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9319. ;;
  9320. cygwin*)
  9321. # Convert to unix form, then to dos form, then back to unix form
  9322. # but this time dos style (no spaces!) so that the unix form looks
  9323. # like /cygdrive/c/PROGRA~1:/cygdr...
  9324. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9325. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9326. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9327. ;;
  9328. *)
  9329. sys_lib_search_path_spec=$LIB
  9330. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9331. # It is most probably a Windows format PATH.
  9332. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9333. else
  9334. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9335. fi
  9336. # FIXME: find the short name or the path components, as spaces are
  9337. # common. (e.g. "Program Files" -> "PROGRA~1")
  9338. ;;
  9339. esac
  9340. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9341. postinstall_cmds='base_file=`basename \$file`~
  9342. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9343. dldir=$destdir/`dirname \$dlpath`~
  9344. test -d \$dldir || mkdir -p \$dldir~
  9345. $install_prog $dir/$dlname \$dldir/$dlname'
  9346. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9347. dlpath=$dir/\$dldll~
  9348. $RM \$dlpath'
  9349. shlibpath_overrides_runpath=yes
  9350. dynamic_linker='Win32 link.exe'
  9351. ;;
  9352. *)
  9353. # Assume MSVC wrapper
  9354. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9355. dynamic_linker='Win32 ld.exe'
  9356. ;;
  9357. esac
  9358. # FIXME: first we should search . and the directory the executable is in
  9359. shlibpath_var=PATH
  9360. ;;
  9361. darwin* | rhapsody*)
  9362. dynamic_linker="$host_os dyld"
  9363. version_type=darwin
  9364. need_lib_prefix=no
  9365. need_version=no
  9366. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9367. soname_spec='$libname$release$major$shared_ext'
  9368. shlibpath_overrides_runpath=yes
  9369. shlibpath_var=DYLD_LIBRARY_PATH
  9370. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9371. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9372. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9373. ;;
  9374. dgux*)
  9375. version_type=linux # correct to gnu/linux during the next big refactor
  9376. need_lib_prefix=no
  9377. need_version=no
  9378. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9379. soname_spec='$libname$release$shared_ext$major'
  9380. shlibpath_var=LD_LIBRARY_PATH
  9381. ;;
  9382. freebsd* | dragonfly* | midnightbsd*)
  9383. # DragonFly does not have aout. When/if they implement a new
  9384. # versioning mechanism, adjust this.
  9385. if test -x /usr/bin/objformat; then
  9386. objformat=`/usr/bin/objformat`
  9387. else
  9388. case $host_os in
  9389. freebsd[23].*) objformat=aout ;;
  9390. *) objformat=elf ;;
  9391. esac
  9392. fi
  9393. version_type=freebsd-$objformat
  9394. case $version_type in
  9395. freebsd-elf*)
  9396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9397. soname_spec='$libname$release$shared_ext$major'
  9398. need_version=no
  9399. need_lib_prefix=no
  9400. ;;
  9401. freebsd-*)
  9402. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9403. need_version=yes
  9404. ;;
  9405. esac
  9406. shlibpath_var=LD_LIBRARY_PATH
  9407. case $host_os in
  9408. freebsd2.*)
  9409. shlibpath_overrides_runpath=yes
  9410. ;;
  9411. freebsd3.[01]* | freebsdelf3.[01]*)
  9412. shlibpath_overrides_runpath=yes
  9413. hardcode_into_libs=yes
  9414. ;;
  9415. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9416. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9417. shlibpath_overrides_runpath=no
  9418. hardcode_into_libs=yes
  9419. ;;
  9420. *) # from 4.6 on, and DragonFly
  9421. shlibpath_overrides_runpath=yes
  9422. hardcode_into_libs=yes
  9423. ;;
  9424. esac
  9425. ;;
  9426. haiku*)
  9427. version_type=linux # correct to gnu/linux during the next big refactor
  9428. need_lib_prefix=no
  9429. need_version=no
  9430. dynamic_linker="$host_os runtime_loader"
  9431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9432. soname_spec='$libname$release$shared_ext$major'
  9433. shlibpath_var=LIBRARY_PATH
  9434. shlibpath_overrides_runpath=no
  9435. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9436. hardcode_into_libs=yes
  9437. ;;
  9438. hpux9* | hpux10* | hpux11*)
  9439. # Give a soname corresponding to the major version so that dld.sl refuses to
  9440. # link against other versions.
  9441. version_type=sunos
  9442. need_lib_prefix=no
  9443. need_version=no
  9444. case $host_cpu in
  9445. ia64*)
  9446. shrext_cmds='.so'
  9447. hardcode_into_libs=yes
  9448. dynamic_linker="$host_os dld.so"
  9449. shlibpath_var=LD_LIBRARY_PATH
  9450. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9451. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9452. soname_spec='$libname$release$shared_ext$major'
  9453. if test 32 = "$HPUX_IA64_MODE"; then
  9454. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9455. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9456. else
  9457. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9458. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9459. fi
  9460. ;;
  9461. hppa*64*)
  9462. shrext_cmds='.sl'
  9463. hardcode_into_libs=yes
  9464. dynamic_linker="$host_os dld.sl"
  9465. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9466. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9467. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9468. soname_spec='$libname$release$shared_ext$major'
  9469. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9470. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9471. ;;
  9472. *)
  9473. shrext_cmds='.sl'
  9474. dynamic_linker="$host_os dld.sl"
  9475. shlibpath_var=SHLIB_PATH
  9476. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9477. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9478. soname_spec='$libname$release$shared_ext$major'
  9479. ;;
  9480. esac
  9481. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9482. postinstall_cmds='chmod 555 $lib'
  9483. # or fails outright, so override atomically:
  9484. install_override_mode=555
  9485. ;;
  9486. interix[3-9]*)
  9487. version_type=linux # correct to gnu/linux during the next big refactor
  9488. need_lib_prefix=no
  9489. need_version=no
  9490. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9491. soname_spec='$libname$release$shared_ext$major'
  9492. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9493. shlibpath_var=LD_LIBRARY_PATH
  9494. shlibpath_overrides_runpath=no
  9495. hardcode_into_libs=yes
  9496. ;;
  9497. irix5* | irix6* | nonstopux*)
  9498. case $host_os in
  9499. nonstopux*) version_type=nonstopux ;;
  9500. *)
  9501. if test yes = "$lt_cv_prog_gnu_ld"; then
  9502. version_type=linux # correct to gnu/linux during the next big refactor
  9503. else
  9504. version_type=irix
  9505. fi ;;
  9506. esac
  9507. need_lib_prefix=no
  9508. need_version=no
  9509. soname_spec='$libname$release$shared_ext$major'
  9510. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9511. case $host_os in
  9512. irix5* | nonstopux*)
  9513. libsuff= shlibsuff=
  9514. ;;
  9515. *)
  9516. case $LD in # libtool.m4 will add one of these switches to LD
  9517. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9518. libsuff= shlibsuff= libmagic=32-bit;;
  9519. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9520. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9521. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9522. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9523. *) libsuff= shlibsuff= libmagic=never-match;;
  9524. esac
  9525. ;;
  9526. esac
  9527. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9528. shlibpath_overrides_runpath=no
  9529. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9530. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9531. hardcode_into_libs=yes
  9532. ;;
  9533. # No shared lib support for Linux oldld, aout, or coff.
  9534. linux*oldld* | linux*aout* | linux*coff*)
  9535. dynamic_linker=no
  9536. ;;
  9537. linux*android*)
  9538. version_type=none # Android doesn't support versioned libraries.
  9539. need_lib_prefix=no
  9540. need_version=no
  9541. library_names_spec='$libname$release$shared_ext'
  9542. soname_spec='$libname$release$shared_ext'
  9543. finish_cmds=
  9544. shlibpath_var=LD_LIBRARY_PATH
  9545. shlibpath_overrides_runpath=yes
  9546. # This implies no fast_install, which is unacceptable.
  9547. # Some rework will be needed to allow for fast_install
  9548. # before this can be enabled.
  9549. hardcode_into_libs=yes
  9550. dynamic_linker='Android linker'
  9551. # Don't embed -rpath directories since the linker doesn't support them.
  9552. hardcode_libdir_flag_spec='-L$libdir'
  9553. ;;
  9554. # This must be glibc/ELF.
  9555. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9556. version_type=linux # correct to gnu/linux during the next big refactor
  9557. need_lib_prefix=no
  9558. need_version=no
  9559. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9560. soname_spec='$libname$release$shared_ext$major'
  9561. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9562. shlibpath_var=LD_LIBRARY_PATH
  9563. shlibpath_overrides_runpath=no
  9564. # Some binutils ld are patched to set DT_RUNPATH
  9565. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9566. $as_echo_n "(cached) " >&6
  9567. else
  9568. lt_cv_shlibpath_overrides_runpath=no
  9569. save_LDFLAGS=$LDFLAGS
  9570. save_libdir=$libdir
  9571. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9572. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9574. /* end confdefs.h. */
  9575. int
  9576. main ()
  9577. {
  9578. ;
  9579. return 0;
  9580. }
  9581. _ACEOF
  9582. if ac_fn_c_try_link "$LINENO"; then :
  9583. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9584. lt_cv_shlibpath_overrides_runpath=yes
  9585. fi
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext \
  9588. conftest$ac_exeext conftest.$ac_ext
  9589. LDFLAGS=$save_LDFLAGS
  9590. libdir=$save_libdir
  9591. fi
  9592. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9593. # This implies no fast_install, which is unacceptable.
  9594. # Some rework will be needed to allow for fast_install
  9595. # before this can be enabled.
  9596. hardcode_into_libs=yes
  9597. # Add ABI-specific directories to the system library path.
  9598. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9599. # Ideally, we could use ldconfig to report *all* directores which are
  9600. # searched for libraries, however this is still not possible. Aside from not
  9601. # being certain /sbin/ldconfig is available, command
  9602. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9603. # even though it is searched at run-time. Try to do the best guess by
  9604. # appending ld.so.conf contents (and includes) to the search path.
  9605. if test -f /etc/ld.so.conf; then
  9606. 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' ' '`
  9607. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9608. fi
  9609. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9610. # powerpc, because MkLinux only supported shared libraries with the
  9611. # GNU dynamic linker. Since this was broken with cross compilers,
  9612. # most powerpc-linux boxes support dynamic linking these days and
  9613. # people can always --disable-shared, the test was removed, and we
  9614. # assume the GNU/Linux dynamic linker is in use.
  9615. dynamic_linker='GNU/Linux ld.so'
  9616. ;;
  9617. netbsd*)
  9618. version_type=sunos
  9619. need_lib_prefix=no
  9620. need_version=no
  9621. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9622. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9623. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9624. dynamic_linker='NetBSD (a.out) ld.so'
  9625. else
  9626. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9627. soname_spec='$libname$release$shared_ext$major'
  9628. dynamic_linker='NetBSD ld.elf_so'
  9629. fi
  9630. shlibpath_var=LD_LIBRARY_PATH
  9631. shlibpath_overrides_runpath=yes
  9632. hardcode_into_libs=yes
  9633. ;;
  9634. newsos6)
  9635. version_type=linux # correct to gnu/linux during the next big refactor
  9636. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9637. shlibpath_var=LD_LIBRARY_PATH
  9638. shlibpath_overrides_runpath=yes
  9639. ;;
  9640. *nto* | *qnx*)
  9641. version_type=qnx
  9642. need_lib_prefix=no
  9643. need_version=no
  9644. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9645. soname_spec='$libname$release$shared_ext$major'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. shlibpath_overrides_runpath=no
  9648. hardcode_into_libs=yes
  9649. dynamic_linker='ldqnx.so'
  9650. ;;
  9651. openbsd* | bitrig*)
  9652. version_type=sunos
  9653. sys_lib_dlsearch_path_spec=/usr/lib
  9654. need_lib_prefix=no
  9655. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9656. need_version=no
  9657. else
  9658. need_version=yes
  9659. fi
  9660. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9661. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. shlibpath_overrides_runpath=yes
  9664. ;;
  9665. os2*)
  9666. libname_spec='$name'
  9667. shrext_cmds=.dll
  9668. need_lib_prefix=no
  9669. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9670. # SDL customization: removed versioning support.
  9671. # version_type=windows
  9672. # need_version=no
  9673. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9674. # v=$($ECHO $release$versuffix | tr -d .-);
  9675. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9676. # $ECHO $n$v`$shared_ext'
  9677. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9678. library_names_spec='${libname}_dll.$libext'
  9679. dynamic_linker='OS/2 ld.exe'
  9680. shlibpath_var=BEGINLIBPATH
  9681. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9682. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9683. postinstall_cmds='base_file=`basename \$file`~
  9684. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9685. dldir=$destdir/`dirname \$dlpath`~
  9686. test -d \$dldir || mkdir -p \$dldir~
  9687. $install_prog $dir/$dlname \$dldir/$dlname~
  9688. chmod a+x \$dldir/$dlname~
  9689. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9690. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9691. fi'
  9692. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9693. dlpath=$dir/\$dldll~
  9694. $RM \$dlpath'
  9695. ;;
  9696. osf3* | osf4* | osf5*)
  9697. version_type=osf
  9698. need_lib_prefix=no
  9699. need_version=no
  9700. soname_spec='$libname$release$shared_ext$major'
  9701. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9702. shlibpath_var=LD_LIBRARY_PATH
  9703. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9704. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9705. ;;
  9706. rdos*)
  9707. dynamic_linker=no
  9708. ;;
  9709. solaris*)
  9710. version_type=linux # correct to gnu/linux during the next big refactor
  9711. need_lib_prefix=no
  9712. need_version=no
  9713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9714. soname_spec='$libname$release$shared_ext$major'
  9715. shlibpath_var=LD_LIBRARY_PATH
  9716. shlibpath_overrides_runpath=yes
  9717. hardcode_into_libs=yes
  9718. # ldd complains unless libraries are executable
  9719. postinstall_cmds='chmod +x $lib'
  9720. ;;
  9721. sunos4*)
  9722. version_type=sunos
  9723. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9724. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9725. shlibpath_var=LD_LIBRARY_PATH
  9726. shlibpath_overrides_runpath=yes
  9727. if test yes = "$with_gnu_ld"; then
  9728. need_lib_prefix=no
  9729. fi
  9730. need_version=yes
  9731. ;;
  9732. sysv4 | sysv4.3*)
  9733. version_type=linux # correct to gnu/linux during the next big refactor
  9734. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9735. soname_spec='$libname$release$shared_ext$major'
  9736. shlibpath_var=LD_LIBRARY_PATH
  9737. case $host_vendor in
  9738. sni)
  9739. shlibpath_overrides_runpath=no
  9740. need_lib_prefix=no
  9741. runpath_var=LD_RUN_PATH
  9742. ;;
  9743. siemens)
  9744. need_lib_prefix=no
  9745. ;;
  9746. motorola)
  9747. need_lib_prefix=no
  9748. need_version=no
  9749. shlibpath_overrides_runpath=no
  9750. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9751. ;;
  9752. esac
  9753. ;;
  9754. sysv4*MP*)
  9755. if test -d /usr/nec; then
  9756. version_type=linux # correct to gnu/linux during the next big refactor
  9757. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9758. soname_spec='$libname$shared_ext.$major'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. fi
  9761. ;;
  9762. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9763. version_type=sco
  9764. need_lib_prefix=no
  9765. need_version=no
  9766. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9767. soname_spec='$libname$release$shared_ext$major'
  9768. shlibpath_var=LD_LIBRARY_PATH
  9769. shlibpath_overrides_runpath=yes
  9770. hardcode_into_libs=yes
  9771. if test yes = "$with_gnu_ld"; then
  9772. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9773. else
  9774. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9775. case $host_os in
  9776. sco3.2v5*)
  9777. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9778. ;;
  9779. esac
  9780. fi
  9781. sys_lib_dlsearch_path_spec='/usr/lib'
  9782. ;;
  9783. tpf*)
  9784. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9785. version_type=linux # correct to gnu/linux during the next big refactor
  9786. need_lib_prefix=no
  9787. need_version=no
  9788. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9789. shlibpath_var=LD_LIBRARY_PATH
  9790. shlibpath_overrides_runpath=no
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. uts4*)
  9794. version_type=linux # correct to gnu/linux during the next big refactor
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9796. soname_spec='$libname$release$shared_ext$major'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. ;;
  9799. *)
  9800. dynamic_linker=no
  9801. ;;
  9802. esac
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9804. $as_echo "$dynamic_linker" >&6; }
  9805. test no = "$dynamic_linker" && can_build_shared=no
  9806. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9807. if test yes = "$GCC"; then
  9808. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9809. fi
  9810. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9811. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9812. fi
  9813. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9814. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9815. fi
  9816. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9817. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9818. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9819. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9820. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9821. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9823. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9824. hardcode_action=
  9825. if test -n "$hardcode_libdir_flag_spec" ||
  9826. test -n "$runpath_var" ||
  9827. test yes = "$hardcode_automatic"; then
  9828. # We can hardcode non-existent directories.
  9829. if test no != "$hardcode_direct" &&
  9830. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9831. # have to relink, otherwise we might link with an installed library
  9832. # when we should be linking with a yet-to-be-installed one
  9833. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9834. test no != "$hardcode_minus_L"; then
  9835. # Linking always hardcodes the temporary library directory.
  9836. hardcode_action=relink
  9837. else
  9838. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9839. hardcode_action=immediate
  9840. fi
  9841. else
  9842. # We cannot hardcode anything, or else we can only hardcode existing
  9843. # directories.
  9844. hardcode_action=unsupported
  9845. fi
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9847. $as_echo "$hardcode_action" >&6; }
  9848. if test relink = "$hardcode_action" ||
  9849. test yes = "$inherit_rpath"; then
  9850. # Fast installation is not supported
  9851. enable_fast_install=no
  9852. elif test yes = "$shlibpath_overrides_runpath" ||
  9853. test no = "$enable_shared"; then
  9854. # Fast installation is not necessary
  9855. enable_fast_install=needless
  9856. fi
  9857. if test yes != "$enable_dlopen"; then
  9858. enable_dlopen=unknown
  9859. enable_dlopen_self=unknown
  9860. enable_dlopen_self_static=unknown
  9861. else
  9862. lt_cv_dlopen=no
  9863. lt_cv_dlopen_libs=
  9864. case $host_os in
  9865. beos*)
  9866. lt_cv_dlopen=load_add_on
  9867. lt_cv_dlopen_libs=
  9868. lt_cv_dlopen_self=yes
  9869. ;;
  9870. mingw* | pw32* | cegcc*)
  9871. lt_cv_dlopen=LoadLibrary
  9872. lt_cv_dlopen_libs=
  9873. ;;
  9874. cygwin*)
  9875. lt_cv_dlopen=dlopen
  9876. lt_cv_dlopen_libs=
  9877. ;;
  9878. darwin*)
  9879. # if libdl is installed we need to link against it
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9881. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9882. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9883. $as_echo_n "(cached) " >&6
  9884. else
  9885. ac_check_lib_save_LIBS=$LIBS
  9886. LIBS="-ldl $LIBS"
  9887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9888. /* end confdefs.h. */
  9889. /* Override any GCC internal prototype to avoid an error.
  9890. Use char because int might match the return type of a GCC
  9891. builtin and then its argument prototype would still apply. */
  9892. #ifdef __cplusplus
  9893. extern "C"
  9894. #endif
  9895. char dlopen ();
  9896. int
  9897. main ()
  9898. {
  9899. return dlopen ();
  9900. ;
  9901. return 0;
  9902. }
  9903. _ACEOF
  9904. if ac_fn_c_try_link "$LINENO"; then :
  9905. ac_cv_lib_dl_dlopen=yes
  9906. else
  9907. ac_cv_lib_dl_dlopen=no
  9908. fi
  9909. rm -f core conftest.err conftest.$ac_objext \
  9910. conftest$ac_exeext conftest.$ac_ext
  9911. LIBS=$ac_check_lib_save_LIBS
  9912. fi
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9914. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9915. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9916. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9917. else
  9918. lt_cv_dlopen=dyld
  9919. lt_cv_dlopen_libs=
  9920. lt_cv_dlopen_self=yes
  9921. fi
  9922. ;;
  9923. tpf*)
  9924. # Don't try to run any link tests for TPF. We know it's impossible
  9925. # because TPF is a cross-compiler, and we know how we open DSOs.
  9926. lt_cv_dlopen=dlopen
  9927. lt_cv_dlopen_libs=
  9928. lt_cv_dlopen_self=no
  9929. ;;
  9930. *)
  9931. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9932. if test "x$ac_cv_func_shl_load" = xyes; then :
  9933. lt_cv_dlopen=shl_load
  9934. else
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9936. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9937. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9938. $as_echo_n "(cached) " >&6
  9939. else
  9940. ac_check_lib_save_LIBS=$LIBS
  9941. LIBS="-ldld $LIBS"
  9942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9943. /* end confdefs.h. */
  9944. /* Override any GCC internal prototype to avoid an error.
  9945. Use char because int might match the return type of a GCC
  9946. builtin and then its argument prototype would still apply. */
  9947. #ifdef __cplusplus
  9948. extern "C"
  9949. #endif
  9950. char shl_load ();
  9951. int
  9952. main ()
  9953. {
  9954. return shl_load ();
  9955. ;
  9956. return 0;
  9957. }
  9958. _ACEOF
  9959. if ac_fn_c_try_link "$LINENO"; then :
  9960. ac_cv_lib_dld_shl_load=yes
  9961. else
  9962. ac_cv_lib_dld_shl_load=no
  9963. fi
  9964. rm -f core conftest.err conftest.$ac_objext \
  9965. conftest$ac_exeext conftest.$ac_ext
  9966. LIBS=$ac_check_lib_save_LIBS
  9967. fi
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9969. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9970. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9971. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9972. else
  9973. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9974. if test "x$ac_cv_func_dlopen" = xyes; then :
  9975. lt_cv_dlopen=dlopen
  9976. else
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9978. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9979. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9980. $as_echo_n "(cached) " >&6
  9981. else
  9982. ac_check_lib_save_LIBS=$LIBS
  9983. LIBS="-ldl $LIBS"
  9984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9985. /* end confdefs.h. */
  9986. /* Override any GCC internal prototype to avoid an error.
  9987. Use char because int might match the return type of a GCC
  9988. builtin and then its argument prototype would still apply. */
  9989. #ifdef __cplusplus
  9990. extern "C"
  9991. #endif
  9992. char dlopen ();
  9993. int
  9994. main ()
  9995. {
  9996. return dlopen ();
  9997. ;
  9998. return 0;
  9999. }
  10000. _ACEOF
  10001. if ac_fn_c_try_link "$LINENO"; then :
  10002. ac_cv_lib_dl_dlopen=yes
  10003. else
  10004. ac_cv_lib_dl_dlopen=no
  10005. fi
  10006. rm -f core conftest.err conftest.$ac_objext \
  10007. conftest$ac_exeext conftest.$ac_ext
  10008. LIBS=$ac_check_lib_save_LIBS
  10009. fi
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10011. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10012. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10013. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10014. else
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10016. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10017. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10018. $as_echo_n "(cached) " >&6
  10019. else
  10020. ac_check_lib_save_LIBS=$LIBS
  10021. LIBS="-lsvld $LIBS"
  10022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10023. /* end confdefs.h. */
  10024. /* Override any GCC internal prototype to avoid an error.
  10025. Use char because int might match the return type of a GCC
  10026. builtin and then its argument prototype would still apply. */
  10027. #ifdef __cplusplus
  10028. extern "C"
  10029. #endif
  10030. char dlopen ();
  10031. int
  10032. main ()
  10033. {
  10034. return dlopen ();
  10035. ;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. if ac_fn_c_try_link "$LINENO"; then :
  10040. ac_cv_lib_svld_dlopen=yes
  10041. else
  10042. ac_cv_lib_svld_dlopen=no
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext \
  10045. conftest$ac_exeext conftest.$ac_ext
  10046. LIBS=$ac_check_lib_save_LIBS
  10047. fi
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10049. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10050. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10051. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10052. else
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10054. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10055. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10056. $as_echo_n "(cached) " >&6
  10057. else
  10058. ac_check_lib_save_LIBS=$LIBS
  10059. LIBS="-ldld $LIBS"
  10060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10061. /* end confdefs.h. */
  10062. /* Override any GCC internal prototype to avoid an error.
  10063. Use char because int might match the return type of a GCC
  10064. builtin and then its argument prototype would still apply. */
  10065. #ifdef __cplusplus
  10066. extern "C"
  10067. #endif
  10068. char dld_link ();
  10069. int
  10070. main ()
  10071. {
  10072. return dld_link ();
  10073. ;
  10074. return 0;
  10075. }
  10076. _ACEOF
  10077. if ac_fn_c_try_link "$LINENO"; then :
  10078. ac_cv_lib_dld_dld_link=yes
  10079. else
  10080. ac_cv_lib_dld_dld_link=no
  10081. fi
  10082. rm -f core conftest.err conftest.$ac_objext \
  10083. conftest$ac_exeext conftest.$ac_ext
  10084. LIBS=$ac_check_lib_save_LIBS
  10085. fi
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10087. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10088. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10089. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10090. fi
  10091. fi
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. ;;
  10097. esac
  10098. if test no = "$lt_cv_dlopen"; then
  10099. enable_dlopen=no
  10100. else
  10101. enable_dlopen=yes
  10102. fi
  10103. case $lt_cv_dlopen in
  10104. dlopen)
  10105. save_CPPFLAGS=$CPPFLAGS
  10106. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10107. save_LDFLAGS=$LDFLAGS
  10108. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10109. save_LIBS=$LIBS
  10110. LIBS="$lt_cv_dlopen_libs $LIBS"
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10112. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10113. if ${lt_cv_dlopen_self+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. if test yes = "$cross_compiling"; then :
  10117. lt_cv_dlopen_self=cross
  10118. else
  10119. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10120. lt_status=$lt_dlunknown
  10121. cat > conftest.$ac_ext <<_LT_EOF
  10122. #line $LINENO "configure"
  10123. #include "confdefs.h"
  10124. #if HAVE_DLFCN_H
  10125. #include <dlfcn.h>
  10126. #endif
  10127. #include <stdio.h>
  10128. #ifdef RTLD_GLOBAL
  10129. # define LT_DLGLOBAL RTLD_GLOBAL
  10130. #else
  10131. # ifdef DL_GLOBAL
  10132. # define LT_DLGLOBAL DL_GLOBAL
  10133. # else
  10134. # define LT_DLGLOBAL 0
  10135. # endif
  10136. #endif
  10137. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10138. find out it does not work in some platform. */
  10139. #ifndef LT_DLLAZY_OR_NOW
  10140. # ifdef RTLD_LAZY
  10141. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10142. # else
  10143. # ifdef DL_LAZY
  10144. # define LT_DLLAZY_OR_NOW DL_LAZY
  10145. # else
  10146. # ifdef RTLD_NOW
  10147. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10148. # else
  10149. # ifdef DL_NOW
  10150. # define LT_DLLAZY_OR_NOW DL_NOW
  10151. # else
  10152. # define LT_DLLAZY_OR_NOW 0
  10153. # endif
  10154. # endif
  10155. # endif
  10156. # endif
  10157. #endif
  10158. /* When -fvisibility=hidden is used, assume the code has been annotated
  10159. correspondingly for the symbols needed. */
  10160. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10161. int fnord () __attribute__((visibility("default")));
  10162. #endif
  10163. int fnord () { return 42; }
  10164. int main ()
  10165. {
  10166. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10167. int status = $lt_dlunknown;
  10168. if (self)
  10169. {
  10170. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10171. else
  10172. {
  10173. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10174. else puts (dlerror ());
  10175. }
  10176. /* dlclose (self); */
  10177. }
  10178. else
  10179. puts (dlerror ());
  10180. return status;
  10181. }
  10182. _LT_EOF
  10183. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10184. (eval $ac_link) 2>&5
  10185. ac_status=$?
  10186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10187. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10188. (./conftest; exit; ) >&5 2>/dev/null
  10189. lt_status=$?
  10190. case x$lt_status in
  10191. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10192. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10193. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10194. esac
  10195. else :
  10196. # compilation failed
  10197. lt_cv_dlopen_self=no
  10198. fi
  10199. fi
  10200. rm -fr conftest*
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10203. $as_echo "$lt_cv_dlopen_self" >&6; }
  10204. if test yes = "$lt_cv_dlopen_self"; then
  10205. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10207. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10208. if ${lt_cv_dlopen_self_static+:} false; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. if test yes = "$cross_compiling"; then :
  10212. lt_cv_dlopen_self_static=cross
  10213. else
  10214. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10215. lt_status=$lt_dlunknown
  10216. cat > conftest.$ac_ext <<_LT_EOF
  10217. #line $LINENO "configure"
  10218. #include "confdefs.h"
  10219. #if HAVE_DLFCN_H
  10220. #include <dlfcn.h>
  10221. #endif
  10222. #include <stdio.h>
  10223. #ifdef RTLD_GLOBAL
  10224. # define LT_DLGLOBAL RTLD_GLOBAL
  10225. #else
  10226. # ifdef DL_GLOBAL
  10227. # define LT_DLGLOBAL DL_GLOBAL
  10228. # else
  10229. # define LT_DLGLOBAL 0
  10230. # endif
  10231. #endif
  10232. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10233. find out it does not work in some platform. */
  10234. #ifndef LT_DLLAZY_OR_NOW
  10235. # ifdef RTLD_LAZY
  10236. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10237. # else
  10238. # ifdef DL_LAZY
  10239. # define LT_DLLAZY_OR_NOW DL_LAZY
  10240. # else
  10241. # ifdef RTLD_NOW
  10242. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10243. # else
  10244. # ifdef DL_NOW
  10245. # define LT_DLLAZY_OR_NOW DL_NOW
  10246. # else
  10247. # define LT_DLLAZY_OR_NOW 0
  10248. # endif
  10249. # endif
  10250. # endif
  10251. # endif
  10252. #endif
  10253. /* When -fvisibility=hidden is used, assume the code has been annotated
  10254. correspondingly for the symbols needed. */
  10255. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10256. int fnord () __attribute__((visibility("default")));
  10257. #endif
  10258. int fnord () { return 42; }
  10259. int main ()
  10260. {
  10261. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10262. int status = $lt_dlunknown;
  10263. if (self)
  10264. {
  10265. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10266. else
  10267. {
  10268. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10269. else puts (dlerror ());
  10270. }
  10271. /* dlclose (self); */
  10272. }
  10273. else
  10274. puts (dlerror ());
  10275. return status;
  10276. }
  10277. _LT_EOF
  10278. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10279. (eval $ac_link) 2>&5
  10280. ac_status=$?
  10281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10282. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10283. (./conftest; exit; ) >&5 2>/dev/null
  10284. lt_status=$?
  10285. case x$lt_status in
  10286. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10287. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10288. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10289. esac
  10290. else :
  10291. # compilation failed
  10292. lt_cv_dlopen_self_static=no
  10293. fi
  10294. fi
  10295. rm -fr conftest*
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10298. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10299. fi
  10300. CPPFLAGS=$save_CPPFLAGS
  10301. LDFLAGS=$save_LDFLAGS
  10302. LIBS=$save_LIBS
  10303. ;;
  10304. esac
  10305. case $lt_cv_dlopen_self in
  10306. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10307. *) enable_dlopen_self=unknown ;;
  10308. esac
  10309. case $lt_cv_dlopen_self_static in
  10310. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10311. *) enable_dlopen_self_static=unknown ;;
  10312. esac
  10313. fi
  10314. striplib=
  10315. old_striplib=
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10317. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10318. if test -z "$STRIP"; then
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10320. $as_echo "no" >&6; }
  10321. else
  10322. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10323. old_striplib="$STRIP --strip-debug"
  10324. striplib="$STRIP --strip-unneeded"
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10326. $as_echo "yes" >&6; }
  10327. else
  10328. case $host_os in
  10329. darwin*)
  10330. # FIXME - insert some real tests, host_os isn't really good enough
  10331. striplib="$STRIP -x"
  10332. old_striplib="$STRIP -S"
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10334. $as_echo "yes" >&6; }
  10335. ;;
  10336. freebsd*)
  10337. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10338. old_striplib="$STRIP --strip-debug"
  10339. striplib="$STRIP --strip-unneeded"
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10341. $as_echo "yes" >&6; }
  10342. else
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10344. $as_echo "no" >&6; }
  10345. fi
  10346. ;;
  10347. *)
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10349. $as_echo "no" >&6; }
  10350. ;;
  10351. esac
  10352. fi
  10353. fi
  10354. # Report what library types will actually be built
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10356. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10358. $as_echo "$can_build_shared" >&6; }
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10360. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10361. test no = "$can_build_shared" && enable_shared=no
  10362. # On AIX, shared libraries and static libraries use the same namespace, and
  10363. # are all built from PIC.
  10364. case $host_os in
  10365. aix3*)
  10366. test yes = "$enable_shared" && enable_static=no
  10367. if test -n "$RANLIB"; then
  10368. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10369. postinstall_cmds='$RANLIB $lib'
  10370. fi
  10371. ;;
  10372. aix[4-9]*)
  10373. if test ia64 != "$host_cpu"; then
  10374. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10375. yes,aix,yes) ;; # shared object as lib.so file only
  10376. yes,svr4,*) ;; # shared object as lib.so archive member only
  10377. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10378. esac
  10379. fi
  10380. ;;
  10381. esac
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10383. $as_echo "$enable_shared" >&6; }
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10385. $as_echo_n "checking whether to build static libraries... " >&6; }
  10386. # Make sure either enable_shared or enable_static is yes.
  10387. test yes = "$enable_shared" || enable_static=yes
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10389. $as_echo "$enable_static" >&6; }
  10390. fi
  10391. ac_ext=c
  10392. ac_cpp='$CPP $CPPFLAGS'
  10393. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10394. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10395. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10396. CC=$lt_save_CC
  10397. ac_config_commands="$ac_config_commands libtool"
  10398. # Only expand once:
  10399. if test -n "$ac_tool_prefix"; then
  10400. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10401. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10403. $as_echo_n "checking for $ac_word... " >&6; }
  10404. if ${ac_cv_prog_RC+:} false; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. if test -n "$RC"; then
  10408. ac_cv_prog_RC="$RC" # Let the user override the test.
  10409. else
  10410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10411. for as_dir in $PATH
  10412. do
  10413. IFS=$as_save_IFS
  10414. test -z "$as_dir" && as_dir=.
  10415. for ac_exec_ext in '' $ac_executable_extensions; do
  10416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10417. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10419. break 2
  10420. fi
  10421. done
  10422. done
  10423. IFS=$as_save_IFS
  10424. fi
  10425. fi
  10426. RC=$ac_cv_prog_RC
  10427. if test -n "$RC"; then
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10429. $as_echo "$RC" >&6; }
  10430. else
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10432. $as_echo "no" >&6; }
  10433. fi
  10434. fi
  10435. if test -z "$ac_cv_prog_RC"; then
  10436. ac_ct_RC=$RC
  10437. # Extract the first word of "windres", so it can be a program name with args.
  10438. set dummy windres; ac_word=$2
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10440. $as_echo_n "checking for $ac_word... " >&6; }
  10441. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10442. $as_echo_n "(cached) " >&6
  10443. else
  10444. if test -n "$ac_ct_RC"; then
  10445. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10446. else
  10447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10448. for as_dir in $PATH
  10449. do
  10450. IFS=$as_save_IFS
  10451. test -z "$as_dir" && as_dir=.
  10452. for ac_exec_ext in '' $ac_executable_extensions; do
  10453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10454. ac_cv_prog_ac_ct_RC="windres"
  10455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10456. break 2
  10457. fi
  10458. done
  10459. done
  10460. IFS=$as_save_IFS
  10461. fi
  10462. fi
  10463. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10464. if test -n "$ac_ct_RC"; then
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10466. $as_echo "$ac_ct_RC" >&6; }
  10467. else
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10469. $as_echo "no" >&6; }
  10470. fi
  10471. if test "x$ac_ct_RC" = x; then
  10472. RC=""
  10473. else
  10474. case $cross_compiling:$ac_tool_warned in
  10475. yes:)
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10478. ac_tool_warned=yes ;;
  10479. esac
  10480. RC=$ac_ct_RC
  10481. fi
  10482. else
  10483. RC="$ac_cv_prog_RC"
  10484. fi
  10485. # Source file extension for RC test sources.
  10486. ac_ext=rc
  10487. # Object file extension for compiled RC test sources.
  10488. objext=o
  10489. objext_RC=$objext
  10490. # Code to be used in simple compile tests
  10491. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10492. # Code to be used in simple link tests
  10493. lt_simple_link_test_code=$lt_simple_compile_test_code
  10494. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10495. # If no C compiler was specified, use CC.
  10496. LTCC=${LTCC-"$CC"}
  10497. # If no C compiler flags were specified, use CFLAGS.
  10498. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10499. # Allow CC to be a program name with arguments.
  10500. compiler=$CC
  10501. # save warnings/boilerplate of simple test code
  10502. ac_outfile=conftest.$ac_objext
  10503. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10504. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10505. _lt_compiler_boilerplate=`cat conftest.err`
  10506. $RM conftest*
  10507. ac_outfile=conftest.$ac_objext
  10508. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10509. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10510. _lt_linker_boilerplate=`cat conftest.err`
  10511. $RM -r conftest*
  10512. # Allow CC to be a program name with arguments.
  10513. lt_save_CC=$CC
  10514. lt_save_CFLAGS=$CFLAGS
  10515. lt_save_GCC=$GCC
  10516. GCC=
  10517. CC=${RC-"windres"}
  10518. CFLAGS=
  10519. compiler=$CC
  10520. compiler_RC=$CC
  10521. func_cc_basename $compiler
  10522. cc_basename=$func_cc_basename_result
  10523. lt_cv_prog_compiler_c_o_RC=yes
  10524. if test -n "$compiler"; then
  10525. :
  10526. fi
  10527. GCC=$lt_save_GCC
  10528. ac_ext=c
  10529. ac_cpp='$CPP $CPPFLAGS'
  10530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10533. CC=$lt_save_CC
  10534. CFLAGS=$lt_save_CFLAGS
  10535. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10536. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10537. LT_REVISION=$SDL_INTERFACE_AGE
  10538. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10539. ac_ext=c
  10540. ac_cpp='$CPP $CPPFLAGS'
  10541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10544. if test -n "$ac_tool_prefix"; then
  10545. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10546. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10548. $as_echo_n "checking for $ac_word... " >&6; }
  10549. if ${ac_cv_prog_CC+:} false; then :
  10550. $as_echo_n "(cached) " >&6
  10551. else
  10552. if test -n "$CC"; then
  10553. ac_cv_prog_CC="$CC" # Let the user override the test.
  10554. else
  10555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10556. for as_dir in $PATH
  10557. do
  10558. IFS=$as_save_IFS
  10559. test -z "$as_dir" && as_dir=.
  10560. for ac_exec_ext in '' $ac_executable_extensions; do
  10561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10562. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10564. break 2
  10565. fi
  10566. done
  10567. done
  10568. IFS=$as_save_IFS
  10569. fi
  10570. fi
  10571. CC=$ac_cv_prog_CC
  10572. if test -n "$CC"; then
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10574. $as_echo "$CC" >&6; }
  10575. else
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10577. $as_echo "no" >&6; }
  10578. fi
  10579. fi
  10580. if test -z "$ac_cv_prog_CC"; then
  10581. ac_ct_CC=$CC
  10582. # Extract the first word of "gcc", so it can be a program name with args.
  10583. set dummy gcc; ac_word=$2
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10585. $as_echo_n "checking for $ac_word... " >&6; }
  10586. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10587. $as_echo_n "(cached) " >&6
  10588. else
  10589. if test -n "$ac_ct_CC"; then
  10590. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10591. else
  10592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10593. for as_dir in $PATH
  10594. do
  10595. IFS=$as_save_IFS
  10596. test -z "$as_dir" && as_dir=.
  10597. for ac_exec_ext in '' $ac_executable_extensions; do
  10598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10599. ac_cv_prog_ac_ct_CC="gcc"
  10600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10601. break 2
  10602. fi
  10603. done
  10604. done
  10605. IFS=$as_save_IFS
  10606. fi
  10607. fi
  10608. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10609. if test -n "$ac_ct_CC"; then
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10611. $as_echo "$ac_ct_CC" >&6; }
  10612. else
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10614. $as_echo "no" >&6; }
  10615. fi
  10616. if test "x$ac_ct_CC" = x; then
  10617. CC=""
  10618. else
  10619. case $cross_compiling:$ac_tool_warned in
  10620. yes:)
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10622. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10623. ac_tool_warned=yes ;;
  10624. esac
  10625. CC=$ac_ct_CC
  10626. fi
  10627. else
  10628. CC="$ac_cv_prog_CC"
  10629. fi
  10630. if test -z "$CC"; then
  10631. if test -n "$ac_tool_prefix"; then
  10632. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10633. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10635. $as_echo_n "checking for $ac_word... " >&6; }
  10636. if ${ac_cv_prog_CC+:} false; then :
  10637. $as_echo_n "(cached) " >&6
  10638. else
  10639. if test -n "$CC"; then
  10640. ac_cv_prog_CC="$CC" # Let the user override the test.
  10641. else
  10642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10643. for as_dir in $PATH
  10644. do
  10645. IFS=$as_save_IFS
  10646. test -z "$as_dir" && as_dir=.
  10647. for ac_exec_ext in '' $ac_executable_extensions; do
  10648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10649. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10651. break 2
  10652. fi
  10653. done
  10654. done
  10655. IFS=$as_save_IFS
  10656. fi
  10657. fi
  10658. CC=$ac_cv_prog_CC
  10659. if test -n "$CC"; then
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10661. $as_echo "$CC" >&6; }
  10662. else
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10664. $as_echo "no" >&6; }
  10665. fi
  10666. fi
  10667. fi
  10668. if test -z "$CC"; then
  10669. # Extract the first word of "cc", so it can be a program name with args.
  10670. set dummy cc; ac_word=$2
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10672. $as_echo_n "checking for $ac_word... " >&6; }
  10673. if ${ac_cv_prog_CC+:} false; then :
  10674. $as_echo_n "(cached) " >&6
  10675. else
  10676. if test -n "$CC"; then
  10677. ac_cv_prog_CC="$CC" # Let the user override the test.
  10678. else
  10679. ac_prog_rejected=no
  10680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10681. for as_dir in $PATH
  10682. do
  10683. IFS=$as_save_IFS
  10684. test -z "$as_dir" && as_dir=.
  10685. for ac_exec_ext in '' $ac_executable_extensions; do
  10686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10687. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10688. ac_prog_rejected=yes
  10689. continue
  10690. fi
  10691. ac_cv_prog_CC="cc"
  10692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10693. break 2
  10694. fi
  10695. done
  10696. done
  10697. IFS=$as_save_IFS
  10698. if test $ac_prog_rejected = yes; then
  10699. # We found a bogon in the path, so make sure we never use it.
  10700. set dummy $ac_cv_prog_CC
  10701. shift
  10702. if test $# != 0; then
  10703. # We chose a different compiler from the bogus one.
  10704. # However, it has the same basename, so the bogon will be chosen
  10705. # first if we set CC to just the basename; use the full file name.
  10706. shift
  10707. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10708. fi
  10709. fi
  10710. fi
  10711. fi
  10712. CC=$ac_cv_prog_CC
  10713. if test -n "$CC"; then
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10715. $as_echo "$CC" >&6; }
  10716. else
  10717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10718. $as_echo "no" >&6; }
  10719. fi
  10720. fi
  10721. if test -z "$CC"; then
  10722. if test -n "$ac_tool_prefix"; then
  10723. for ac_prog in cl.exe
  10724. do
  10725. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10726. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10728. $as_echo_n "checking for $ac_word... " >&6; }
  10729. if ${ac_cv_prog_CC+:} false; then :
  10730. $as_echo_n "(cached) " >&6
  10731. else
  10732. if test -n "$CC"; then
  10733. ac_cv_prog_CC="$CC" # Let the user override the test.
  10734. else
  10735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10736. for as_dir in $PATH
  10737. do
  10738. IFS=$as_save_IFS
  10739. test -z "$as_dir" && as_dir=.
  10740. for ac_exec_ext in '' $ac_executable_extensions; do
  10741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10742. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10744. break 2
  10745. fi
  10746. done
  10747. done
  10748. IFS=$as_save_IFS
  10749. fi
  10750. fi
  10751. CC=$ac_cv_prog_CC
  10752. if test -n "$CC"; then
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10754. $as_echo "$CC" >&6; }
  10755. else
  10756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10757. $as_echo "no" >&6; }
  10758. fi
  10759. test -n "$CC" && break
  10760. done
  10761. fi
  10762. if test -z "$CC"; then
  10763. ac_ct_CC=$CC
  10764. for ac_prog in cl.exe
  10765. do
  10766. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10767. set dummy $ac_prog; ac_word=$2
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10769. $as_echo_n "checking for $ac_word... " >&6; }
  10770. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10771. $as_echo_n "(cached) " >&6
  10772. else
  10773. if test -n "$ac_ct_CC"; then
  10774. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10775. else
  10776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10777. for as_dir in $PATH
  10778. do
  10779. IFS=$as_save_IFS
  10780. test -z "$as_dir" && as_dir=.
  10781. for ac_exec_ext in '' $ac_executable_extensions; do
  10782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10783. ac_cv_prog_ac_ct_CC="$ac_prog"
  10784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10785. break 2
  10786. fi
  10787. done
  10788. done
  10789. IFS=$as_save_IFS
  10790. fi
  10791. fi
  10792. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10793. if test -n "$ac_ct_CC"; then
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10795. $as_echo "$ac_ct_CC" >&6; }
  10796. else
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10798. $as_echo "no" >&6; }
  10799. fi
  10800. test -n "$ac_ct_CC" && break
  10801. done
  10802. if test "x$ac_ct_CC" = x; then
  10803. CC=""
  10804. else
  10805. case $cross_compiling:$ac_tool_warned in
  10806. yes:)
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10809. ac_tool_warned=yes ;;
  10810. esac
  10811. CC=$ac_ct_CC
  10812. fi
  10813. fi
  10814. fi
  10815. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10816. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10817. as_fn_error $? "no acceptable C compiler found in \$PATH
  10818. See \`config.log' for more details" "$LINENO" 5; }
  10819. # Provide some information about the compiler.
  10820. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10821. set X $ac_compile
  10822. ac_compiler=$2
  10823. for ac_option in --version -v -V -qversion; do
  10824. { { ac_try="$ac_compiler $ac_option >&5"
  10825. case "(($ac_try" in
  10826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10827. *) ac_try_echo=$ac_try;;
  10828. esac
  10829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10830. $as_echo "$ac_try_echo"; } >&5
  10831. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10832. ac_status=$?
  10833. if test -s conftest.err; then
  10834. sed '10a\
  10835. ... rest of stderr output deleted ...
  10836. 10q' conftest.err >conftest.er1
  10837. cat conftest.er1 >&5
  10838. fi
  10839. rm -f conftest.er1 conftest.err
  10840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10841. test $ac_status = 0; }
  10842. done
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10844. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10845. if ${ac_cv_c_compiler_gnu+:} false; then :
  10846. $as_echo_n "(cached) " >&6
  10847. else
  10848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10849. /* end confdefs.h. */
  10850. int
  10851. main ()
  10852. {
  10853. #ifndef __GNUC__
  10854. choke me
  10855. #endif
  10856. ;
  10857. return 0;
  10858. }
  10859. _ACEOF
  10860. if ac_fn_c_try_compile "$LINENO"; then :
  10861. ac_compiler_gnu=yes
  10862. else
  10863. ac_compiler_gnu=no
  10864. fi
  10865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10866. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10867. fi
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10869. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10870. if test $ac_compiler_gnu = yes; then
  10871. GCC=yes
  10872. else
  10873. GCC=
  10874. fi
  10875. ac_test_CFLAGS=${CFLAGS+set}
  10876. ac_save_CFLAGS=$CFLAGS
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10878. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10879. if ${ac_cv_prog_cc_g+:} false; then :
  10880. $as_echo_n "(cached) " >&6
  10881. else
  10882. ac_save_c_werror_flag=$ac_c_werror_flag
  10883. ac_c_werror_flag=yes
  10884. ac_cv_prog_cc_g=no
  10885. CFLAGS="-g"
  10886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10887. /* end confdefs.h. */
  10888. int
  10889. main ()
  10890. {
  10891. ;
  10892. return 0;
  10893. }
  10894. _ACEOF
  10895. if ac_fn_c_try_compile "$LINENO"; then :
  10896. ac_cv_prog_cc_g=yes
  10897. else
  10898. CFLAGS=""
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. int
  10902. main ()
  10903. {
  10904. ;
  10905. return 0;
  10906. }
  10907. _ACEOF
  10908. if ac_fn_c_try_compile "$LINENO"; then :
  10909. else
  10910. ac_c_werror_flag=$ac_save_c_werror_flag
  10911. CFLAGS="-g"
  10912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10913. /* end confdefs.h. */
  10914. int
  10915. main ()
  10916. {
  10917. ;
  10918. return 0;
  10919. }
  10920. _ACEOF
  10921. if ac_fn_c_try_compile "$LINENO"; then :
  10922. ac_cv_prog_cc_g=yes
  10923. fi
  10924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10925. fi
  10926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10927. fi
  10928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10929. ac_c_werror_flag=$ac_save_c_werror_flag
  10930. fi
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10932. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10933. if test "$ac_test_CFLAGS" = set; then
  10934. CFLAGS=$ac_save_CFLAGS
  10935. elif test $ac_cv_prog_cc_g = yes; then
  10936. if test "$GCC" = yes; then
  10937. CFLAGS="-g -O2"
  10938. else
  10939. CFLAGS="-g"
  10940. fi
  10941. else
  10942. if test "$GCC" = yes; then
  10943. CFLAGS="-O2"
  10944. else
  10945. CFLAGS=
  10946. fi
  10947. fi
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10949. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10950. if ${ac_cv_prog_cc_c89+:} false; then :
  10951. $as_echo_n "(cached) " >&6
  10952. else
  10953. ac_cv_prog_cc_c89=no
  10954. ac_save_CC=$CC
  10955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10956. /* end confdefs.h. */
  10957. #include <stdarg.h>
  10958. #include <stdio.h>
  10959. struct stat;
  10960. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10961. struct buf { int x; };
  10962. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10963. static char *e (p, i)
  10964. char **p;
  10965. int i;
  10966. {
  10967. return p[i];
  10968. }
  10969. static char *f (char * (*g) (char **, int), char **p, ...)
  10970. {
  10971. char *s;
  10972. va_list v;
  10973. va_start (v,p);
  10974. s = g (p, va_arg (v,int));
  10975. va_end (v);
  10976. return s;
  10977. }
  10978. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10979. function prototypes and stuff, but not '\xHH' hex character constants.
  10980. These don't provoke an error unfortunately, instead are silently treated
  10981. as 'x'. The following induces an error, until -std is added to get
  10982. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10983. array size at least. It's necessary to write '\x00'==0 to get something
  10984. that's true only with -std. */
  10985. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10986. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10987. inside strings and character constants. */
  10988. #define FOO(x) 'x'
  10989. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10990. int test (int i, double x);
  10991. struct s1 {int (*f) (int a);};
  10992. struct s2 {int (*f) (double a);};
  10993. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10994. int argc;
  10995. char **argv;
  10996. int
  10997. main ()
  10998. {
  10999. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11000. ;
  11001. return 0;
  11002. }
  11003. _ACEOF
  11004. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11005. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11006. do
  11007. CC="$ac_save_CC $ac_arg"
  11008. if ac_fn_c_try_compile "$LINENO"; then :
  11009. ac_cv_prog_cc_c89=$ac_arg
  11010. fi
  11011. rm -f core conftest.err conftest.$ac_objext
  11012. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11013. done
  11014. rm -f conftest.$ac_ext
  11015. CC=$ac_save_CC
  11016. fi
  11017. # AC_CACHE_VAL
  11018. case "x$ac_cv_prog_cc_c89" in
  11019. x)
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11021. $as_echo "none needed" >&6; } ;;
  11022. xno)
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11024. $as_echo "unsupported" >&6; } ;;
  11025. *)
  11026. CC="$CC $ac_cv_prog_cc_c89"
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11028. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11029. esac
  11030. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11031. fi
  11032. ac_ext=c
  11033. ac_cpp='$CPP $CPPFLAGS'
  11034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11037. ac_ext=cpp
  11038. ac_cpp='$CXXCPP $CPPFLAGS'
  11039. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11040. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11041. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11042. if test -z "$CXX"; then
  11043. if test -n "$CCC"; then
  11044. CXX=$CCC
  11045. else
  11046. if test -n "$ac_tool_prefix"; then
  11047. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11048. do
  11049. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11050. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11052. $as_echo_n "checking for $ac_word... " >&6; }
  11053. if ${ac_cv_prog_CXX+:} false; then :
  11054. $as_echo_n "(cached) " >&6
  11055. else
  11056. if test -n "$CXX"; then
  11057. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11058. else
  11059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11060. for as_dir in $PATH
  11061. do
  11062. IFS=$as_save_IFS
  11063. test -z "$as_dir" && as_dir=.
  11064. for ac_exec_ext in '' $ac_executable_extensions; do
  11065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11066. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11068. break 2
  11069. fi
  11070. done
  11071. done
  11072. IFS=$as_save_IFS
  11073. fi
  11074. fi
  11075. CXX=$ac_cv_prog_CXX
  11076. if test -n "$CXX"; then
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11078. $as_echo "$CXX" >&6; }
  11079. else
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11081. $as_echo "no" >&6; }
  11082. fi
  11083. test -n "$CXX" && break
  11084. done
  11085. fi
  11086. if test -z "$CXX"; then
  11087. ac_ct_CXX=$CXX
  11088. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11089. do
  11090. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11091. set dummy $ac_prog; ac_word=$2
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11093. $as_echo_n "checking for $ac_word... " >&6; }
  11094. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11095. $as_echo_n "(cached) " >&6
  11096. else
  11097. if test -n "$ac_ct_CXX"; then
  11098. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11099. else
  11100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11101. for as_dir in $PATH
  11102. do
  11103. IFS=$as_save_IFS
  11104. test -z "$as_dir" && as_dir=.
  11105. for ac_exec_ext in '' $ac_executable_extensions; do
  11106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11107. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11109. break 2
  11110. fi
  11111. done
  11112. done
  11113. IFS=$as_save_IFS
  11114. fi
  11115. fi
  11116. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11117. if test -n "$ac_ct_CXX"; then
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11119. $as_echo "$ac_ct_CXX" >&6; }
  11120. else
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11122. $as_echo "no" >&6; }
  11123. fi
  11124. test -n "$ac_ct_CXX" && break
  11125. done
  11126. if test "x$ac_ct_CXX" = x; then
  11127. CXX="g++"
  11128. else
  11129. case $cross_compiling:$ac_tool_warned in
  11130. yes:)
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11132. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11133. ac_tool_warned=yes ;;
  11134. esac
  11135. CXX=$ac_ct_CXX
  11136. fi
  11137. fi
  11138. fi
  11139. fi
  11140. # Provide some information about the compiler.
  11141. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11142. set X $ac_compile
  11143. ac_compiler=$2
  11144. for ac_option in --version -v -V -qversion; do
  11145. { { ac_try="$ac_compiler $ac_option >&5"
  11146. case "(($ac_try" in
  11147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11148. *) ac_try_echo=$ac_try;;
  11149. esac
  11150. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11151. $as_echo "$ac_try_echo"; } >&5
  11152. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11153. ac_status=$?
  11154. if test -s conftest.err; then
  11155. sed '10a\
  11156. ... rest of stderr output deleted ...
  11157. 10q' conftest.err >conftest.er1
  11158. cat conftest.er1 >&5
  11159. fi
  11160. rm -f conftest.er1 conftest.err
  11161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11162. test $ac_status = 0; }
  11163. done
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11165. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11166. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11167. $as_echo_n "(cached) " >&6
  11168. else
  11169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11170. /* end confdefs.h. */
  11171. int
  11172. main ()
  11173. {
  11174. #ifndef __GNUC__
  11175. choke me
  11176. #endif
  11177. ;
  11178. return 0;
  11179. }
  11180. _ACEOF
  11181. if ac_fn_cxx_try_compile "$LINENO"; then :
  11182. ac_compiler_gnu=yes
  11183. else
  11184. ac_compiler_gnu=no
  11185. fi
  11186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11187. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11188. fi
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11190. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11191. if test $ac_compiler_gnu = yes; then
  11192. GXX=yes
  11193. else
  11194. GXX=
  11195. fi
  11196. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11197. ac_save_CXXFLAGS=$CXXFLAGS
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11199. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11200. if ${ac_cv_prog_cxx_g+:} false; then :
  11201. $as_echo_n "(cached) " >&6
  11202. else
  11203. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11204. ac_cxx_werror_flag=yes
  11205. ac_cv_prog_cxx_g=no
  11206. CXXFLAGS="-g"
  11207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11208. /* end confdefs.h. */
  11209. int
  11210. main ()
  11211. {
  11212. ;
  11213. return 0;
  11214. }
  11215. _ACEOF
  11216. if ac_fn_cxx_try_compile "$LINENO"; then :
  11217. ac_cv_prog_cxx_g=yes
  11218. else
  11219. CXXFLAGS=""
  11220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11221. /* end confdefs.h. */
  11222. int
  11223. main ()
  11224. {
  11225. ;
  11226. return 0;
  11227. }
  11228. _ACEOF
  11229. if ac_fn_cxx_try_compile "$LINENO"; then :
  11230. else
  11231. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11232. CXXFLAGS="-g"
  11233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11234. /* end confdefs.h. */
  11235. int
  11236. main ()
  11237. {
  11238. ;
  11239. return 0;
  11240. }
  11241. _ACEOF
  11242. if ac_fn_cxx_try_compile "$LINENO"; then :
  11243. ac_cv_prog_cxx_g=yes
  11244. fi
  11245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11246. fi
  11247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11248. fi
  11249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11250. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11251. fi
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11253. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11254. if test "$ac_test_CXXFLAGS" = set; then
  11255. CXXFLAGS=$ac_save_CXXFLAGS
  11256. elif test $ac_cv_prog_cxx_g = yes; then
  11257. if test "$GXX" = yes; then
  11258. CXXFLAGS="-g -O2"
  11259. else
  11260. CXXFLAGS="-g"
  11261. fi
  11262. else
  11263. if test "$GXX" = yes; then
  11264. CXXFLAGS="-O2"
  11265. else
  11266. CXXFLAGS=
  11267. fi
  11268. fi
  11269. ac_ext=c
  11270. ac_cpp='$CPP $CPPFLAGS'
  11271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11274. func_stripname_cnf ()
  11275. {
  11276. case $2 in
  11277. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11278. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11279. esac
  11280. } # func_stripname_cnf
  11281. if test -n "$CXX" && ( test no != "$CXX" &&
  11282. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11283. (test g++ != "$CXX"))); then
  11284. ac_ext=cpp
  11285. ac_cpp='$CXXCPP $CPPFLAGS'
  11286. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11287. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11288. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11290. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11291. if test -z "$CXXCPP"; then
  11292. if ${ac_cv_prog_CXXCPP+:} false; then :
  11293. $as_echo_n "(cached) " >&6
  11294. else
  11295. # Double quotes because CXXCPP needs to be expanded
  11296. for CXXCPP in "$CXX -E" "/lib/cpp"
  11297. do
  11298. ac_preproc_ok=false
  11299. for ac_cxx_preproc_warn_flag in '' yes
  11300. do
  11301. # Use a header file that comes with gcc, so configuring glibc
  11302. # with a fresh cross-compiler works.
  11303. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11304. # <limits.h> exists even on freestanding compilers.
  11305. # On the NeXT, cc -E runs the code through the compiler's parser,
  11306. # not just through cpp. "Syntax error" is here to catch this case.
  11307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11308. /* end confdefs.h. */
  11309. #ifdef __STDC__
  11310. # include <limits.h>
  11311. #else
  11312. # include <assert.h>
  11313. #endif
  11314. Syntax error
  11315. _ACEOF
  11316. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11317. else
  11318. # Broken: fails on valid input.
  11319. continue
  11320. fi
  11321. rm -f conftest.err conftest.i conftest.$ac_ext
  11322. # OK, works on sane cases. Now check whether nonexistent headers
  11323. # can be detected and how.
  11324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11325. /* end confdefs.h. */
  11326. #include <ac_nonexistent.h>
  11327. _ACEOF
  11328. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11329. # Broken: success on invalid input.
  11330. continue
  11331. else
  11332. # Passes both tests.
  11333. ac_preproc_ok=:
  11334. break
  11335. fi
  11336. rm -f conftest.err conftest.i conftest.$ac_ext
  11337. done
  11338. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11339. rm -f conftest.i conftest.err conftest.$ac_ext
  11340. if $ac_preproc_ok; then :
  11341. break
  11342. fi
  11343. done
  11344. ac_cv_prog_CXXCPP=$CXXCPP
  11345. fi
  11346. CXXCPP=$ac_cv_prog_CXXCPP
  11347. else
  11348. ac_cv_prog_CXXCPP=$CXXCPP
  11349. fi
  11350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11351. $as_echo "$CXXCPP" >&6; }
  11352. ac_preproc_ok=false
  11353. for ac_cxx_preproc_warn_flag in '' yes
  11354. do
  11355. # Use a header file that comes with gcc, so configuring glibc
  11356. # with a fresh cross-compiler works.
  11357. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11358. # <limits.h> exists even on freestanding compilers.
  11359. # On the NeXT, cc -E runs the code through the compiler's parser,
  11360. # not just through cpp. "Syntax error" is here to catch this case.
  11361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11362. /* end confdefs.h. */
  11363. #ifdef __STDC__
  11364. # include <limits.h>
  11365. #else
  11366. # include <assert.h>
  11367. #endif
  11368. Syntax error
  11369. _ACEOF
  11370. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11371. else
  11372. # Broken: fails on valid input.
  11373. continue
  11374. fi
  11375. rm -f conftest.err conftest.i conftest.$ac_ext
  11376. # OK, works on sane cases. Now check whether nonexistent headers
  11377. # can be detected and how.
  11378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11379. /* end confdefs.h. */
  11380. #include <ac_nonexistent.h>
  11381. _ACEOF
  11382. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11383. # Broken: success on invalid input.
  11384. continue
  11385. else
  11386. # Passes both tests.
  11387. ac_preproc_ok=:
  11388. break
  11389. fi
  11390. rm -f conftest.err conftest.i conftest.$ac_ext
  11391. done
  11392. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11393. rm -f conftest.i conftest.err conftest.$ac_ext
  11394. if $ac_preproc_ok; then :
  11395. else
  11396. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11398. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11399. See \`config.log' for more details" "$LINENO" 5; }
  11400. fi
  11401. ac_ext=c
  11402. ac_cpp='$CPP $CPPFLAGS'
  11403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11406. else
  11407. _lt_caught_CXX_error=yes
  11408. fi
  11409. ac_ext=cpp
  11410. ac_cpp='$CXXCPP $CPPFLAGS'
  11411. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11412. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11413. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11414. archive_cmds_need_lc_CXX=no
  11415. allow_undefined_flag_CXX=
  11416. always_export_symbols_CXX=no
  11417. archive_expsym_cmds_CXX=
  11418. compiler_needs_object_CXX=no
  11419. export_dynamic_flag_spec_CXX=
  11420. hardcode_direct_CXX=no
  11421. hardcode_direct_absolute_CXX=no
  11422. hardcode_libdir_flag_spec_CXX=
  11423. hardcode_libdir_separator_CXX=
  11424. hardcode_minus_L_CXX=no
  11425. hardcode_shlibpath_var_CXX=unsupported
  11426. hardcode_automatic_CXX=no
  11427. inherit_rpath_CXX=no
  11428. module_cmds_CXX=
  11429. module_expsym_cmds_CXX=
  11430. link_all_deplibs_CXX=unknown
  11431. old_archive_cmds_CXX=$old_archive_cmds
  11432. reload_flag_CXX=$reload_flag
  11433. reload_cmds_CXX=$reload_cmds
  11434. no_undefined_flag_CXX=
  11435. whole_archive_flag_spec_CXX=
  11436. enable_shared_with_static_runtimes_CXX=no
  11437. # Source file extension for C++ test sources.
  11438. ac_ext=cpp
  11439. # Object file extension for compiled C++ test sources.
  11440. objext=o
  11441. objext_CXX=$objext
  11442. # No sense in running all these tests if we already determined that
  11443. # the CXX compiler isn't working. Some variables (like enable_shared)
  11444. # are currently assumed to apply to all compilers on this platform,
  11445. # and will be corrupted by setting them based on a non-working compiler.
  11446. if test yes != "$_lt_caught_CXX_error"; then
  11447. # Code to be used in simple compile tests
  11448. lt_simple_compile_test_code="int some_variable = 0;"
  11449. # Code to be used in simple link tests
  11450. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11451. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11452. # If no C compiler was specified, use CC.
  11453. LTCC=${LTCC-"$CC"}
  11454. # If no C compiler flags were specified, use CFLAGS.
  11455. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11456. # Allow CC to be a program name with arguments.
  11457. compiler=$CC
  11458. # save warnings/boilerplate of simple test code
  11459. ac_outfile=conftest.$ac_objext
  11460. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11461. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11462. _lt_compiler_boilerplate=`cat conftest.err`
  11463. $RM conftest*
  11464. ac_outfile=conftest.$ac_objext
  11465. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11466. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11467. _lt_linker_boilerplate=`cat conftest.err`
  11468. $RM -r conftest*
  11469. # Allow CC to be a program name with arguments.
  11470. lt_save_CC=$CC
  11471. lt_save_CFLAGS=$CFLAGS
  11472. lt_save_LD=$LD
  11473. lt_save_GCC=$GCC
  11474. GCC=$GXX
  11475. lt_save_with_gnu_ld=$with_gnu_ld
  11476. lt_save_path_LD=$lt_cv_path_LD
  11477. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11478. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11479. else
  11480. $as_unset lt_cv_prog_gnu_ld
  11481. fi
  11482. if test -n "${lt_cv_path_LDCXX+set}"; then
  11483. lt_cv_path_LD=$lt_cv_path_LDCXX
  11484. else
  11485. $as_unset lt_cv_path_LD
  11486. fi
  11487. test -z "${LDCXX+set}" || LD=$LDCXX
  11488. CC=${CXX-"c++"}
  11489. CFLAGS=$CXXFLAGS
  11490. compiler=$CC
  11491. compiler_CXX=$CC
  11492. func_cc_basename $compiler
  11493. cc_basename=$func_cc_basename_result
  11494. if test -n "$compiler"; then
  11495. # We don't want -fno-exception when compiling C++ code, so set the
  11496. # no_builtin_flag separately
  11497. if test yes = "$GXX"; then
  11498. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11499. else
  11500. lt_prog_compiler_no_builtin_flag_CXX=
  11501. fi
  11502. if test yes = "$GXX"; then
  11503. # Set up default GNU C++ configuration
  11504. # Check whether --with-gnu-ld was given.
  11505. if test "${with_gnu_ld+set}" = set; then :
  11506. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11507. else
  11508. with_gnu_ld=no
  11509. fi
  11510. ac_prog=ld
  11511. if test yes = "$GCC"; then
  11512. # Check if gcc -print-prog-name=ld gives a path.
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11514. $as_echo_n "checking for ld used by $CC... " >&6; }
  11515. case $host in
  11516. *-*-mingw*)
  11517. # gcc leaves a trailing carriage return, which upsets mingw
  11518. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11519. *)
  11520. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11521. esac
  11522. case $ac_prog in
  11523. # Accept absolute paths.
  11524. [\\/]* | ?:[\\/]*)
  11525. re_direlt='/[^/][^/]*/\.\./'
  11526. # Canonicalize the pathname of ld
  11527. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11528. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11529. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11530. done
  11531. test -z "$LD" && LD=$ac_prog
  11532. ;;
  11533. "")
  11534. # If it fails, then pretend we aren't using GCC.
  11535. ac_prog=ld
  11536. ;;
  11537. *)
  11538. # If it is relative, then search for the first ld in PATH.
  11539. with_gnu_ld=unknown
  11540. ;;
  11541. esac
  11542. elif test yes = "$with_gnu_ld"; then
  11543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11544. $as_echo_n "checking for GNU ld... " >&6; }
  11545. else
  11546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11547. $as_echo_n "checking for non-GNU ld... " >&6; }
  11548. fi
  11549. if ${lt_cv_path_LD+:} false; then :
  11550. $as_echo_n "(cached) " >&6
  11551. else
  11552. if test -z "$LD"; then
  11553. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11554. for ac_dir in $PATH; do
  11555. IFS=$lt_save_ifs
  11556. test -z "$ac_dir" && ac_dir=.
  11557. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11558. lt_cv_path_LD=$ac_dir/$ac_prog
  11559. # Check to see if the program is GNU ld. I'd rather use --version,
  11560. # but apparently some variants of GNU ld only accept -v.
  11561. # Break only if it was the GNU/non-GNU ld that we prefer.
  11562. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11563. *GNU* | *'with BFD'*)
  11564. test no != "$with_gnu_ld" && break
  11565. ;;
  11566. *)
  11567. test yes != "$with_gnu_ld" && break
  11568. ;;
  11569. esac
  11570. fi
  11571. done
  11572. IFS=$lt_save_ifs
  11573. else
  11574. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11575. fi
  11576. fi
  11577. LD=$lt_cv_path_LD
  11578. if test -n "$LD"; then
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11580. $as_echo "$LD" >&6; }
  11581. else
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11583. $as_echo "no" >&6; }
  11584. fi
  11585. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11587. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11588. if ${lt_cv_prog_gnu_ld+:} false; then :
  11589. $as_echo_n "(cached) " >&6
  11590. else
  11591. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11592. case `$LD -v 2>&1 </dev/null` in
  11593. *GNU* | *'with BFD'*)
  11594. lt_cv_prog_gnu_ld=yes
  11595. ;;
  11596. *)
  11597. lt_cv_prog_gnu_ld=no
  11598. ;;
  11599. esac
  11600. fi
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11602. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11603. with_gnu_ld=$lt_cv_prog_gnu_ld
  11604. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11605. # archiving commands below assume that GNU ld is being used.
  11606. if test yes = "$with_gnu_ld"; then
  11607. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11608. 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'
  11609. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11610. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11611. # If archive_cmds runs LD, not CC, wlarc should be empty
  11612. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11613. # investigate it a little bit more. (MM)
  11614. wlarc='$wl'
  11615. # ancient GNU ld didn't support --whole-archive et. al.
  11616. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11617. $GREP 'no-whole-archive' > /dev/null; then
  11618. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11619. else
  11620. whole_archive_flag_spec_CXX=
  11621. fi
  11622. else
  11623. with_gnu_ld=no
  11624. wlarc=
  11625. # A generic and very simple default shared library creation
  11626. # command for GNU C++ for the case where it uses the native
  11627. # linker, instead of GNU ld. If possible, this setting should
  11628. # overridden to take advantage of the native linker features on
  11629. # the platform it is being used on.
  11630. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11631. fi
  11632. # Commands to make compiler produce verbose output that lists
  11633. # what "hidden" libraries, object files and flags are used when
  11634. # linking a shared library.
  11635. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11636. else
  11637. GXX=no
  11638. with_gnu_ld=no
  11639. wlarc=
  11640. fi
  11641. # PORTME: fill in a description of your system's C++ link characteristics
  11642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11643. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11644. ld_shlibs_CXX=yes
  11645. case $host_os in
  11646. aix3*)
  11647. # FIXME: insert proper C++ library support
  11648. ld_shlibs_CXX=no
  11649. ;;
  11650. aix[4-9]*)
  11651. if test ia64 = "$host_cpu"; then
  11652. # On IA64, the linker does run time linking by default, so we don't
  11653. # have to do anything special.
  11654. aix_use_runtimelinking=no
  11655. exp_sym_flag='-Bexport'
  11656. no_entry_flag=
  11657. else
  11658. aix_use_runtimelinking=no
  11659. # Test if we are trying to use run time linking or normal
  11660. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11661. # have runtime linking enabled, and use it for executables.
  11662. # For shared libraries, we enable/disable runtime linking
  11663. # depending on the kind of the shared library created -
  11664. # when "with_aix_soname,aix_use_runtimelinking" is:
  11665. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11666. # "aix,yes" lib.so shared, rtl:yes, for executables
  11667. # lib.a static archive
  11668. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11669. # lib.a(lib.so.V) shared, rtl:no, for executables
  11670. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11671. # lib.a(lib.so.V) shared, rtl:no
  11672. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11673. # lib.a static archive
  11674. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11675. for ld_flag in $LDFLAGS; do
  11676. case $ld_flag in
  11677. *-brtl*)
  11678. aix_use_runtimelinking=yes
  11679. break
  11680. ;;
  11681. esac
  11682. done
  11683. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11684. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11685. # so we don't have lib.a shared libs to link our executables.
  11686. # We have to force runtime linking in this case.
  11687. aix_use_runtimelinking=yes
  11688. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11689. fi
  11690. ;;
  11691. esac
  11692. exp_sym_flag='-bexport'
  11693. no_entry_flag='-bnoentry'
  11694. fi
  11695. # When large executables or shared objects are built, AIX ld can
  11696. # have problems creating the table of contents. If linking a library
  11697. # or program results in "error TOC overflow" add -mminimal-toc to
  11698. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11699. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11700. archive_cmds_CXX=''
  11701. hardcode_direct_CXX=yes
  11702. hardcode_direct_absolute_CXX=yes
  11703. hardcode_libdir_separator_CXX=':'
  11704. link_all_deplibs_CXX=yes
  11705. file_list_spec_CXX='$wl-f,'
  11706. case $with_aix_soname,$aix_use_runtimelinking in
  11707. aix,*) ;; # no import file
  11708. svr4,* | *,yes) # use import file
  11709. # The Import File defines what to hardcode.
  11710. hardcode_direct_CXX=no
  11711. hardcode_direct_absolute_CXX=no
  11712. ;;
  11713. esac
  11714. if test yes = "$GXX"; then
  11715. case $host_os in aix4.[012]|aix4.[012].*)
  11716. # We only want to do this on AIX 4.2 and lower, the check
  11717. # below for broken collect2 doesn't work under 4.3+
  11718. collect2name=`$CC -print-prog-name=collect2`
  11719. if test -f "$collect2name" &&
  11720. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11721. then
  11722. # We have reworked collect2
  11723. :
  11724. else
  11725. # We have old collect2
  11726. hardcode_direct_CXX=unsupported
  11727. # It fails to find uninstalled libraries when the uninstalled
  11728. # path is not listed in the libpath. Setting hardcode_minus_L
  11729. # to unsupported forces relinking
  11730. hardcode_minus_L_CXX=yes
  11731. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11732. hardcode_libdir_separator_CXX=
  11733. fi
  11734. esac
  11735. shared_flag='-shared'
  11736. if test yes = "$aix_use_runtimelinking"; then
  11737. shared_flag=$shared_flag' $wl-G'
  11738. fi
  11739. # Need to ensure runtime linking is disabled for the traditional
  11740. # shared library, or the linker may eventually find shared libraries
  11741. # /with/ Import File - we do not want to mix them.
  11742. shared_flag_aix='-shared'
  11743. shared_flag_svr4='-shared $wl-G'
  11744. else
  11745. # not using gcc
  11746. if test ia64 = "$host_cpu"; then
  11747. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11748. # chokes on -Wl,-G. The following line is correct:
  11749. shared_flag='-G'
  11750. else
  11751. if test yes = "$aix_use_runtimelinking"; then
  11752. shared_flag='$wl-G'
  11753. else
  11754. shared_flag='$wl-bM:SRE'
  11755. fi
  11756. shared_flag_aix='$wl-bM:SRE'
  11757. shared_flag_svr4='$wl-G'
  11758. fi
  11759. fi
  11760. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11761. # It seems that -bexpall does not export symbols beginning with
  11762. # underscore (_), so it is better to generate a list of symbols to
  11763. # export.
  11764. always_export_symbols_CXX=yes
  11765. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11766. # Warning - without using the other runtime loading flags (-brtl),
  11767. # -berok will link without error, but may produce a broken library.
  11768. # The "-G" linker flag allows undefined symbols.
  11769. no_undefined_flag_CXX='-bernotok'
  11770. # Determine the default libpath from the value encoded in an empty
  11771. # executable.
  11772. if test set = "${lt_cv_aix_libpath+set}"; then
  11773. aix_libpath=$lt_cv_aix_libpath
  11774. else
  11775. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11776. $as_echo_n "(cached) " >&6
  11777. else
  11778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11779. /* end confdefs.h. */
  11780. int
  11781. main ()
  11782. {
  11783. ;
  11784. return 0;
  11785. }
  11786. _ACEOF
  11787. if ac_fn_cxx_try_link "$LINENO"; then :
  11788. lt_aix_libpath_sed='
  11789. /Import File Strings/,/^$/ {
  11790. /^0/ {
  11791. s/^0 *\([^ ]*\) *$/\1/
  11792. p
  11793. }
  11794. }'
  11795. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11796. # Check for a 64-bit object if we didn't find anything.
  11797. if test -z "$lt_cv_aix_libpath__CXX"; then
  11798. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11799. fi
  11800. fi
  11801. rm -f core conftest.err conftest.$ac_objext \
  11802. conftest$ac_exeext conftest.$ac_ext
  11803. if test -z "$lt_cv_aix_libpath__CXX"; then
  11804. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11805. fi
  11806. fi
  11807. aix_libpath=$lt_cv_aix_libpath__CXX
  11808. fi
  11809. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11810. 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
  11811. else
  11812. if test ia64 = "$host_cpu"; then
  11813. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11814. allow_undefined_flag_CXX="-z nodefs"
  11815. 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"
  11816. else
  11817. # Determine the default libpath from the value encoded in an
  11818. # empty executable.
  11819. if test set = "${lt_cv_aix_libpath+set}"; then
  11820. aix_libpath=$lt_cv_aix_libpath
  11821. else
  11822. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11823. $as_echo_n "(cached) " >&6
  11824. else
  11825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11826. /* end confdefs.h. */
  11827. int
  11828. main ()
  11829. {
  11830. ;
  11831. return 0;
  11832. }
  11833. _ACEOF
  11834. if ac_fn_cxx_try_link "$LINENO"; then :
  11835. lt_aix_libpath_sed='
  11836. /Import File Strings/,/^$/ {
  11837. /^0/ {
  11838. s/^0 *\([^ ]*\) *$/\1/
  11839. p
  11840. }
  11841. }'
  11842. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11843. # Check for a 64-bit object if we didn't find anything.
  11844. if test -z "$lt_cv_aix_libpath__CXX"; then
  11845. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11846. fi
  11847. fi
  11848. rm -f core conftest.err conftest.$ac_objext \
  11849. conftest$ac_exeext conftest.$ac_ext
  11850. if test -z "$lt_cv_aix_libpath__CXX"; then
  11851. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11852. fi
  11853. fi
  11854. aix_libpath=$lt_cv_aix_libpath__CXX
  11855. fi
  11856. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11857. # Warning - without using the other run time loading flags,
  11858. # -berok will link without error, but may produce a broken library.
  11859. no_undefined_flag_CXX=' $wl-bernotok'
  11860. allow_undefined_flag_CXX=' $wl-berok'
  11861. if test yes = "$with_gnu_ld"; then
  11862. # We only use this code for GNU lds that support --whole-archive.
  11863. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11864. else
  11865. # Exported symbols can be pulled into shared objects from archives
  11866. whole_archive_flag_spec_CXX='$convenience'
  11867. fi
  11868. archive_cmds_need_lc_CXX=yes
  11869. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11870. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11871. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11872. if test svr4 != "$with_aix_soname"; then
  11873. # This is similar to how AIX traditionally builds its shared
  11874. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11875. 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'
  11876. fi
  11877. if test aix != "$with_aix_soname"; then
  11878. 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'
  11879. else
  11880. # used by -dlpreopen to get the symbols
  11881. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11882. fi
  11883. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11884. fi
  11885. fi
  11886. ;;
  11887. beos*)
  11888. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11889. allow_undefined_flag_CXX=unsupported
  11890. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11891. # support --undefined. This deserves some investigation. FIXME
  11892. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11893. else
  11894. ld_shlibs_CXX=no
  11895. fi
  11896. ;;
  11897. chorus*)
  11898. case $cc_basename in
  11899. *)
  11900. # FIXME: insert proper C++ library support
  11901. ld_shlibs_CXX=no
  11902. ;;
  11903. esac
  11904. ;;
  11905. cygwin* | mingw* | pw32* | cegcc*)
  11906. case $GXX,$cc_basename in
  11907. ,cl* | no,cl*)
  11908. # Native MSVC
  11909. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11910. # no search path for DLLs.
  11911. hardcode_libdir_flag_spec_CXX=' '
  11912. allow_undefined_flag_CXX=unsupported
  11913. always_export_symbols_CXX=yes
  11914. file_list_spec_CXX='@'
  11915. # Tell ltmain to make .lib files, not .a files.
  11916. libext=lib
  11917. # Tell ltmain to make .dll files, not .so files.
  11918. shrext_cmds=.dll
  11919. # FIXME: Setting linknames here is a bad hack.
  11920. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11921. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11922. cp "$export_symbols" "$output_objdir/$soname.def";
  11923. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11924. else
  11925. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11926. fi~
  11927. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11928. linknames='
  11929. # The linker will not automatically build a static lib if we build a DLL.
  11930. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11931. enable_shared_with_static_runtimes_CXX=yes
  11932. # Don't use ranlib
  11933. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11934. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11935. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11936. case $lt_outputfile in
  11937. *.exe|*.EXE) ;;
  11938. *)
  11939. lt_outputfile=$lt_outputfile.exe
  11940. lt_tool_outputfile=$lt_tool_outputfile.exe
  11941. ;;
  11942. esac~
  11943. func_to_tool_file "$lt_outputfile"~
  11944. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11945. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11946. $RM "$lt_outputfile.manifest";
  11947. fi'
  11948. ;;
  11949. *)
  11950. # g++
  11951. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11952. # as there is no search path for DLLs.
  11953. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11954. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11955. allow_undefined_flag_CXX=unsupported
  11956. always_export_symbols_CXX=no
  11957. enable_shared_with_static_runtimes_CXX=yes
  11958. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11959. 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'
  11960. # If the export-symbols file already is a .def file, use it as
  11961. # is; otherwise, prepend EXPORTS...
  11962. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11963. cp $export_symbols $output_objdir/$soname.def;
  11964. else
  11965. echo EXPORTS > $output_objdir/$soname.def;
  11966. cat $export_symbols >> $output_objdir/$soname.def;
  11967. fi~
  11968. $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'
  11969. else
  11970. ld_shlibs_CXX=no
  11971. fi
  11972. ;;
  11973. esac
  11974. ;;
  11975. darwin* | rhapsody*)
  11976. archive_cmds_need_lc_CXX=no
  11977. hardcode_direct_CXX=no
  11978. hardcode_automatic_CXX=yes
  11979. hardcode_shlibpath_var_CXX=unsupported
  11980. if test yes = "$lt_cv_ld_force_load"; then
  11981. 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\"`'
  11982. else
  11983. whole_archive_flag_spec_CXX=''
  11984. fi
  11985. link_all_deplibs_CXX=yes
  11986. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11987. case $cc_basename in
  11988. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11989. *) _lt_dar_can_shared=$GCC ;;
  11990. esac
  11991. if test yes = "$_lt_dar_can_shared"; then
  11992. output_verbose_link_cmd=func_echo_all
  11993. 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"
  11994. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11995. 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"
  11996. 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"
  11997. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11998. 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"
  11999. 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"
  12000. fi
  12001. else
  12002. ld_shlibs_CXX=no
  12003. fi
  12004. ;;
  12005. os2*)
  12006. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12007. hardcode_minus_L_CXX=yes
  12008. allow_undefined_flag_CXX=unsupported
  12009. shrext_cmds=.dll
  12010. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12011. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12012. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12013. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12014. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12015. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12016. emximp -o $lib $output_objdir/$libname.def'
  12017. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12018. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12019. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12020. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12021. prefix_cmds="$SED"~
  12022. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12023. prefix_cmds="$prefix_cmds -e 1d";
  12024. fi~
  12025. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12026. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12027. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12028. emximp -o $lib $output_objdir/$libname.def'
  12029. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12030. enable_shared_with_static_runtimes_CXX=yes
  12031. file_list_spec_CXX='@'
  12032. ;;
  12033. dgux*)
  12034. case $cc_basename in
  12035. ec++*)
  12036. # FIXME: insert proper C++ library support
  12037. ld_shlibs_CXX=no
  12038. ;;
  12039. ghcx*)
  12040. # Green Hills C++ Compiler
  12041. # FIXME: insert proper C++ library support
  12042. ld_shlibs_CXX=no
  12043. ;;
  12044. *)
  12045. # FIXME: insert proper C++ library support
  12046. ld_shlibs_CXX=no
  12047. ;;
  12048. esac
  12049. ;;
  12050. freebsd2.*)
  12051. # C++ shared libraries reported to be fairly broken before
  12052. # switch to ELF
  12053. ld_shlibs_CXX=no
  12054. ;;
  12055. freebsd-elf*)
  12056. archive_cmds_need_lc_CXX=no
  12057. ;;
  12058. freebsd* | dragonfly* | midnightbsd*)
  12059. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12060. # conventions
  12061. ld_shlibs_CXX=yes
  12062. ;;
  12063. haiku*)
  12064. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12065. link_all_deplibs_CXX=yes
  12066. ;;
  12067. hpux9*)
  12068. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12069. hardcode_libdir_separator_CXX=:
  12070. export_dynamic_flag_spec_CXX='$wl-E'
  12071. hardcode_direct_CXX=yes
  12072. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12073. # but as the default
  12074. # location of the library.
  12075. case $cc_basename in
  12076. CC*)
  12077. # FIXME: insert proper C++ library support
  12078. ld_shlibs_CXX=no
  12079. ;;
  12080. aCC*)
  12081. 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'
  12082. # Commands to make compiler produce verbose output that lists
  12083. # what "hidden" libraries, object files and flags are used when
  12084. # linking a shared library.
  12085. #
  12086. # There doesn't appear to be a way to prevent this compiler from
  12087. # explicitly linking system object files so we need to strip them
  12088. # from the output so that they don't get included in the library
  12089. # dependencies.
  12090. 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"'
  12091. ;;
  12092. *)
  12093. if test yes = "$GXX"; then
  12094. 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'
  12095. else
  12096. # FIXME: insert proper C++ library support
  12097. ld_shlibs_CXX=no
  12098. fi
  12099. ;;
  12100. esac
  12101. ;;
  12102. hpux10*|hpux11*)
  12103. if test no = "$with_gnu_ld"; then
  12104. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12105. hardcode_libdir_separator_CXX=:
  12106. case $host_cpu in
  12107. hppa*64*|ia64*)
  12108. ;;
  12109. *)
  12110. export_dynamic_flag_spec_CXX='$wl-E'
  12111. ;;
  12112. esac
  12113. fi
  12114. case $host_cpu in
  12115. hppa*64*|ia64*)
  12116. hardcode_direct_CXX=no
  12117. hardcode_shlibpath_var_CXX=no
  12118. ;;
  12119. *)
  12120. hardcode_direct_CXX=yes
  12121. hardcode_direct_absolute_CXX=yes
  12122. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12123. # but as the default
  12124. # location of the library.
  12125. ;;
  12126. esac
  12127. case $cc_basename in
  12128. CC*)
  12129. # FIXME: insert proper C++ library support
  12130. ld_shlibs_CXX=no
  12131. ;;
  12132. aCC*)
  12133. case $host_cpu in
  12134. hppa*64*)
  12135. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12136. ;;
  12137. ia64*)
  12138. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12139. ;;
  12140. *)
  12141. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12142. ;;
  12143. esac
  12144. # Commands to make compiler produce verbose output that lists
  12145. # what "hidden" libraries, object files and flags are used when
  12146. # linking a shared library.
  12147. #
  12148. # There doesn't appear to be a way to prevent this compiler from
  12149. # explicitly linking system object files so we need to strip them
  12150. # from the output so that they don't get included in the library
  12151. # dependencies.
  12152. 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"'
  12153. ;;
  12154. *)
  12155. if test yes = "$GXX"; then
  12156. if test no = "$with_gnu_ld"; then
  12157. case $host_cpu in
  12158. hppa*64*)
  12159. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12160. ;;
  12161. ia64*)
  12162. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12163. ;;
  12164. *)
  12165. 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'
  12166. ;;
  12167. esac
  12168. fi
  12169. else
  12170. # FIXME: insert proper C++ library support
  12171. ld_shlibs_CXX=no
  12172. fi
  12173. ;;
  12174. esac
  12175. ;;
  12176. interix[3-9]*)
  12177. hardcode_direct_CXX=no
  12178. hardcode_shlibpath_var_CXX=no
  12179. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12180. export_dynamic_flag_spec_CXX='$wl-E'
  12181. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12182. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12183. # default) and relocated if they conflict, which is a slow very memory
  12184. # consuming and fragmenting process. To avoid this, we pick a random,
  12185. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12186. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12187. 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'
  12188. 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'
  12189. ;;
  12190. irix5* | irix6*)
  12191. case $cc_basename in
  12192. CC*)
  12193. # SGI C++
  12194. 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'
  12195. # Archives containing C++ object files must be created using
  12196. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12197. # necessary to make sure instantiated templates are included
  12198. # in the archive.
  12199. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12200. ;;
  12201. *)
  12202. if test yes = "$GXX"; then
  12203. if test no = "$with_gnu_ld"; then
  12204. 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'
  12205. else
  12206. 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'
  12207. fi
  12208. fi
  12209. link_all_deplibs_CXX=yes
  12210. ;;
  12211. esac
  12212. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12213. hardcode_libdir_separator_CXX=:
  12214. inherit_rpath_CXX=yes
  12215. ;;
  12216. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12217. case $cc_basename in
  12218. KCC*)
  12219. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12220. # KCC will only create a shared library if the output file
  12221. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12222. # to its proper name (with version) after linking.
  12223. 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'
  12224. 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'
  12225. # Commands to make compiler produce verbose output that lists
  12226. # what "hidden" libraries, object files and flags are used when
  12227. # linking a shared library.
  12228. #
  12229. # There doesn't appear to be a way to prevent this compiler from
  12230. # explicitly linking system object files so we need to strip them
  12231. # from the output so that they don't get included in the library
  12232. # dependencies.
  12233. 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"'
  12234. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12235. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12236. # Archives containing C++ object files must be created using
  12237. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12238. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12239. ;;
  12240. icpc* | ecpc* )
  12241. # Intel C++
  12242. with_gnu_ld=yes
  12243. # version 8.0 and above of icpc choke on multiply defined symbols
  12244. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12245. # earlier do not add the objects themselves.
  12246. case `$CC -V 2>&1` in
  12247. *"Version 7."*)
  12248. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12249. 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'
  12250. ;;
  12251. *) # Version 8.0 or newer
  12252. tmp_idyn=
  12253. case $host_cpu in
  12254. ia64*) tmp_idyn=' -i_dynamic';;
  12255. esac
  12256. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12257. 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'
  12258. ;;
  12259. esac
  12260. archive_cmds_need_lc_CXX=no
  12261. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12262. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12263. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12264. ;;
  12265. pgCC* | pgcpp*)
  12266. # Portland Group C++ compiler
  12267. case `$CC -V` in
  12268. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12269. prelink_cmds_CXX='tpldir=Template.dir~
  12270. rm -rf $tpldir~
  12271. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12272. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12273. old_archive_cmds_CXX='tpldir=Template.dir~
  12274. rm -rf $tpldir~
  12275. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12276. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12277. $RANLIB $oldlib'
  12278. archive_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 -o $lib'
  12282. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12283. rm -rf $tpldir~
  12284. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12285. $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'
  12286. ;;
  12287. *) # Version 6 and above use weak symbols
  12288. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12289. 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'
  12290. ;;
  12291. esac
  12292. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12293. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12294. 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'
  12295. ;;
  12296. cxx*)
  12297. # Compaq C++
  12298. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12299. 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'
  12300. runpath_var=LD_RUN_PATH
  12301. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12302. hardcode_libdir_separator_CXX=:
  12303. # Commands to make compiler produce verbose output that lists
  12304. # what "hidden" libraries, object files and flags are used when
  12305. # linking a shared library.
  12306. #
  12307. # There doesn't appear to be a way to prevent this compiler from
  12308. # explicitly linking system object files so we need to strip them
  12309. # from the output so that they don't get included in the library
  12310. # dependencies.
  12311. 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'
  12312. ;;
  12313. xl* | mpixl* | bgxl*)
  12314. # IBM XL 8.0 on PPC, with GNU ld
  12315. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12316. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12317. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12318. if test yes = "$supports_anon_versioning"; then
  12319. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12320. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12321. echo "local: *; };" >> $output_objdir/$libname.ver~
  12322. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12323. fi
  12324. ;;
  12325. *)
  12326. case `$CC -V 2>&1 | sed 5q` in
  12327. *Sun\ C*)
  12328. # Sun C++ 5.9
  12329. no_undefined_flag_CXX=' -zdefs'
  12330. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12331. 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'
  12332. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12333. 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'
  12334. compiler_needs_object_CXX=yes
  12335. # Not sure whether something based on
  12336. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12337. # would be better.
  12338. output_verbose_link_cmd='func_echo_all'
  12339. # Archives containing C++ object files must be created using
  12340. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12341. # necessary to make sure instantiated templates are included
  12342. # in the archive.
  12343. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12344. ;;
  12345. esac
  12346. ;;
  12347. esac
  12348. ;;
  12349. lynxos*)
  12350. # FIXME: insert proper C++ library support
  12351. ld_shlibs_CXX=no
  12352. ;;
  12353. m88k*)
  12354. # FIXME: insert proper C++ library support
  12355. ld_shlibs_CXX=no
  12356. ;;
  12357. mvs*)
  12358. case $cc_basename in
  12359. cxx*)
  12360. # FIXME: insert proper C++ library support
  12361. ld_shlibs_CXX=no
  12362. ;;
  12363. *)
  12364. # FIXME: insert proper C++ library support
  12365. ld_shlibs_CXX=no
  12366. ;;
  12367. esac
  12368. ;;
  12369. netbsd*)
  12370. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12371. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12372. wlarc=
  12373. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12374. hardcode_direct_CXX=yes
  12375. hardcode_shlibpath_var_CXX=no
  12376. fi
  12377. # Workaround some broken pre-1.5 toolchains
  12378. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12379. ;;
  12380. *nto* | *qnx*)
  12381. ld_shlibs_CXX=yes
  12382. ;;
  12383. openbsd* | bitrig*)
  12384. if test -f /usr/libexec/ld.so; then
  12385. hardcode_direct_CXX=yes
  12386. hardcode_shlibpath_var_CXX=no
  12387. hardcode_direct_absolute_CXX=yes
  12388. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12389. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12390. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12391. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12392. export_dynamic_flag_spec_CXX='$wl-E'
  12393. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12394. fi
  12395. output_verbose_link_cmd=func_echo_all
  12396. else
  12397. ld_shlibs_CXX=no
  12398. fi
  12399. ;;
  12400. osf3* | osf4* | osf5*)
  12401. case $cc_basename in
  12402. KCC*)
  12403. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12404. # KCC will only create a shared library if the output file
  12405. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12406. # to its proper name (with version) after linking.
  12407. 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'
  12408. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12409. hardcode_libdir_separator_CXX=:
  12410. # Archives containing C++ object files must be created using
  12411. # the KAI C++ compiler.
  12412. case $host in
  12413. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12414. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12415. esac
  12416. ;;
  12417. RCC*)
  12418. # Rational C++ 2.4.1
  12419. # FIXME: insert proper C++ library support
  12420. ld_shlibs_CXX=no
  12421. ;;
  12422. cxx*)
  12423. case $host in
  12424. osf3*)
  12425. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12426. 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'
  12427. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12428. ;;
  12429. *)
  12430. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12431. 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'
  12432. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12433. echo "-hidden">> $lib.exp~
  12434. $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~
  12435. $RM $lib.exp'
  12436. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12437. ;;
  12438. esac
  12439. hardcode_libdir_separator_CXX=:
  12440. # Commands to make compiler produce verbose output that lists
  12441. # what "hidden" libraries, object files and flags are used when
  12442. # linking a shared library.
  12443. #
  12444. # There doesn't appear to be a way to prevent this compiler from
  12445. # explicitly linking system object files so we need to strip them
  12446. # from the output so that they don't get included in the library
  12447. # dependencies.
  12448. 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"'
  12449. ;;
  12450. *)
  12451. if test yes,no = "$GXX,$with_gnu_ld"; then
  12452. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12453. case $host in
  12454. osf3*)
  12455. 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'
  12456. ;;
  12457. *)
  12458. 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'
  12459. ;;
  12460. esac
  12461. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12462. hardcode_libdir_separator_CXX=:
  12463. # Commands to make compiler produce verbose output that lists
  12464. # what "hidden" libraries, object files and flags are used when
  12465. # linking a shared library.
  12466. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12467. else
  12468. # FIXME: insert proper C++ library support
  12469. ld_shlibs_CXX=no
  12470. fi
  12471. ;;
  12472. esac
  12473. ;;
  12474. psos*)
  12475. # FIXME: insert proper C++ library support
  12476. ld_shlibs_CXX=no
  12477. ;;
  12478. sunos4*)
  12479. case $cc_basename in
  12480. CC*)
  12481. # Sun C++ 4.x
  12482. # FIXME: insert proper C++ library support
  12483. ld_shlibs_CXX=no
  12484. ;;
  12485. lcc*)
  12486. # Lucid
  12487. # FIXME: insert proper C++ library support
  12488. ld_shlibs_CXX=no
  12489. ;;
  12490. *)
  12491. # FIXME: insert proper C++ library support
  12492. ld_shlibs_CXX=no
  12493. ;;
  12494. esac
  12495. ;;
  12496. solaris*)
  12497. case $cc_basename in
  12498. CC* | sunCC*)
  12499. # Sun C++ 4.2, 5.x and Centerline C++
  12500. archive_cmds_need_lc_CXX=yes
  12501. no_undefined_flag_CXX=' -zdefs'
  12502. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12503. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12504. $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'
  12505. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12506. hardcode_shlibpath_var_CXX=no
  12507. case $host_os in
  12508. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12509. *)
  12510. # The compiler driver will combine and reorder linker options,
  12511. # but understands '-z linker_flag'.
  12512. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12513. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12514. ;;
  12515. esac
  12516. link_all_deplibs_CXX=yes
  12517. output_verbose_link_cmd='func_echo_all'
  12518. # Archives containing C++ object files must be created using
  12519. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12520. # necessary to make sure instantiated templates are included
  12521. # in the archive.
  12522. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12523. ;;
  12524. gcx*)
  12525. # Green Hills C++ Compiler
  12526. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12527. # The C++ compiler must be used to create the archive.
  12528. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12529. ;;
  12530. *)
  12531. # GNU C++ compiler with Solaris linker
  12532. if test yes,no = "$GXX,$with_gnu_ld"; then
  12533. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12534. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12535. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12536. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12537. $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'
  12538. # Commands to make compiler produce verbose output that lists
  12539. # what "hidden" libraries, object files and flags are used when
  12540. # linking a shared library.
  12541. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12542. else
  12543. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12544. # platform.
  12545. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12546. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12547. $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'
  12548. # Commands to make compiler produce verbose output that lists
  12549. # what "hidden" libraries, object files and flags are used when
  12550. # linking a shared library.
  12551. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12552. fi
  12553. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12554. case $host_os in
  12555. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12556. *)
  12557. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12558. ;;
  12559. esac
  12560. fi
  12561. ;;
  12562. esac
  12563. ;;
  12564. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12565. no_undefined_flag_CXX='$wl-z,text'
  12566. archive_cmds_need_lc_CXX=no
  12567. hardcode_shlibpath_var_CXX=no
  12568. runpath_var='LD_RUN_PATH'
  12569. case $cc_basename in
  12570. CC*)
  12571. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12572. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12573. ;;
  12574. *)
  12575. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12576. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12577. ;;
  12578. esac
  12579. ;;
  12580. sysv5* | sco3.2v5* | sco5v6*)
  12581. # Note: We CANNOT use -z defs as we might desire, because we do not
  12582. # link with -lc, and that would cause any symbols used from libc to
  12583. # always be unresolved, which means just about no library would
  12584. # ever link correctly. If we're not using GNU ld we use -z text
  12585. # though, which does catch some bad symbols but isn't as heavy-handed
  12586. # as -z defs.
  12587. no_undefined_flag_CXX='$wl-z,text'
  12588. allow_undefined_flag_CXX='$wl-z,nodefs'
  12589. archive_cmds_need_lc_CXX=no
  12590. hardcode_shlibpath_var_CXX=no
  12591. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12592. hardcode_libdir_separator_CXX=':'
  12593. link_all_deplibs_CXX=yes
  12594. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12595. runpath_var='LD_RUN_PATH'
  12596. case $cc_basename in
  12597. CC*)
  12598. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12599. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12600. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12601. '"$old_archive_cmds_CXX"
  12602. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12603. '"$reload_cmds_CXX"
  12604. ;;
  12605. *)
  12606. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12607. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12608. ;;
  12609. esac
  12610. ;;
  12611. tandem*)
  12612. case $cc_basename in
  12613. NCC*)
  12614. # NonStop-UX NCC 3.20
  12615. # FIXME: insert proper C++ library support
  12616. ld_shlibs_CXX=no
  12617. ;;
  12618. *)
  12619. # FIXME: insert proper C++ library support
  12620. ld_shlibs_CXX=no
  12621. ;;
  12622. esac
  12623. ;;
  12624. vxworks*)
  12625. # FIXME: insert proper C++ library support
  12626. ld_shlibs_CXX=no
  12627. ;;
  12628. *)
  12629. # FIXME: insert proper C++ library support
  12630. ld_shlibs_CXX=no
  12631. ;;
  12632. esac
  12633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12634. $as_echo "$ld_shlibs_CXX" >&6; }
  12635. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12636. GCC_CXX=$GXX
  12637. LD_CXX=$LD
  12638. ## CAVEAT EMPTOR:
  12639. ## There is no encapsulation within the following macros, do not change
  12640. ## the running order or otherwise move them around unless you know exactly
  12641. ## what you are doing...
  12642. # Dependencies to place before and after the object being linked:
  12643. predep_objects_CXX=
  12644. postdep_objects_CXX=
  12645. predeps_CXX=
  12646. postdeps_CXX=
  12647. compiler_lib_search_path_CXX=
  12648. cat > conftest.$ac_ext <<_LT_EOF
  12649. class Foo
  12650. {
  12651. public:
  12652. Foo (void) { a = 0; }
  12653. private:
  12654. int a;
  12655. };
  12656. _LT_EOF
  12657. _lt_libdeps_save_CFLAGS=$CFLAGS
  12658. case "$CC $CFLAGS " in #(
  12659. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12660. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12661. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12662. esac
  12663. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12664. (eval $ac_compile) 2>&5
  12665. ac_status=$?
  12666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12667. test $ac_status = 0; }; then
  12668. # Parse the compiler output and extract the necessary
  12669. # objects, libraries and library flags.
  12670. # Sentinel used to keep track of whether or not we are before
  12671. # the conftest object file.
  12672. pre_test_object_deps_done=no
  12673. for p in `eval "$output_verbose_link_cmd"`; do
  12674. case $prev$p in
  12675. -L* | -R* | -l*)
  12676. # Some compilers place space between "-{L,R}" and the path.
  12677. # Remove the space.
  12678. if test x-L = "x$p" ||
  12679. test x-R = "x$p" ||
  12680. test x-l = "x$p"; then
  12681. prev=$p
  12682. continue
  12683. fi
  12684. # Expand the sysroot to ease extracting the directories later.
  12685. if test -z "$prev"; then
  12686. case $p in
  12687. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12688. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12689. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12690. esac
  12691. fi
  12692. case $p in
  12693. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12694. esac
  12695. if test no = "$pre_test_object_deps_done"; then
  12696. case $prev in
  12697. -L | -R)
  12698. # Internal compiler library paths should come after those
  12699. # provided the user. The postdeps already come after the
  12700. # user supplied libs so there is no need to process them.
  12701. if test -z "$compiler_lib_search_path_CXX"; then
  12702. compiler_lib_search_path_CXX=$prev$p
  12703. else
  12704. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12705. fi
  12706. ;;
  12707. # The "-l" case would never come before the object being
  12708. # linked, so don't bother handling this case.
  12709. esac
  12710. else
  12711. if test -z "$postdeps_CXX"; then
  12712. postdeps_CXX=$prev$p
  12713. else
  12714. postdeps_CXX="${postdeps_CXX} $prev$p"
  12715. fi
  12716. fi
  12717. prev=
  12718. ;;
  12719. *.lto.$objext) ;; # Ignore GCC LTO objects
  12720. *.$objext)
  12721. # This assumes that the test object file only shows up
  12722. # once in the compiler output.
  12723. if test "$p" = "conftest.$objext"; then
  12724. pre_test_object_deps_done=yes
  12725. continue
  12726. fi
  12727. if test no = "$pre_test_object_deps_done"; then
  12728. if test -z "$predep_objects_CXX"; then
  12729. predep_objects_CXX=$p
  12730. else
  12731. predep_objects_CXX="$predep_objects_CXX $p"
  12732. fi
  12733. else
  12734. if test -z "$postdep_objects_CXX"; then
  12735. postdep_objects_CXX=$p
  12736. else
  12737. postdep_objects_CXX="$postdep_objects_CXX $p"
  12738. fi
  12739. fi
  12740. ;;
  12741. *) ;; # Ignore the rest.
  12742. esac
  12743. done
  12744. # Clean up.
  12745. rm -f a.out a.exe
  12746. else
  12747. echo "libtool.m4: error: problem compiling CXX test program"
  12748. fi
  12749. $RM -f confest.$objext
  12750. CFLAGS=$_lt_libdeps_save_CFLAGS
  12751. # PORTME: override above test on systems where it is broken
  12752. case $host_os in
  12753. interix[3-9]*)
  12754. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12755. # hack all around it, let's just trust "g++" to DTRT.
  12756. predep_objects_CXX=
  12757. postdep_objects_CXX=
  12758. postdeps_CXX=
  12759. ;;
  12760. esac
  12761. case " $postdeps_CXX " in
  12762. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12763. esac
  12764. compiler_lib_search_dirs_CXX=
  12765. if test -n "${compiler_lib_search_path_CXX}"; then
  12766. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12767. fi
  12768. lt_prog_compiler_wl_CXX=
  12769. lt_prog_compiler_pic_CXX=
  12770. lt_prog_compiler_static_CXX=
  12771. # C++ specific cases for pic, static, wl, etc.
  12772. if test yes = "$GXX"; then
  12773. lt_prog_compiler_wl_CXX='-Wl,'
  12774. lt_prog_compiler_static_CXX='-static'
  12775. case $host_os in
  12776. aix*)
  12777. # All AIX code is PIC.
  12778. if test ia64 = "$host_cpu"; then
  12779. # AIX 5 now supports IA64 processor
  12780. lt_prog_compiler_static_CXX='-Bstatic'
  12781. fi
  12782. lt_prog_compiler_pic_CXX='-fPIC'
  12783. ;;
  12784. amigaos*)
  12785. case $host_cpu in
  12786. powerpc)
  12787. # see comment about AmigaOS4 .so support
  12788. lt_prog_compiler_pic_CXX='-fPIC'
  12789. ;;
  12790. m68k)
  12791. # FIXME: we need at least 68020 code to build shared libraries, but
  12792. # adding the '-m68020' flag to GCC prevents building anything better,
  12793. # like '-m68040'.
  12794. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12795. ;;
  12796. esac
  12797. ;;
  12798. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12799. # PIC is the default for these OSes.
  12800. ;;
  12801. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12802. # This hack is so that the source file can tell whether it is being
  12803. # built for inclusion in a dll (and should export symbols for example).
  12804. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12805. # (--disable-auto-import) libraries
  12806. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12807. case $host_os in
  12808. os2*)
  12809. lt_prog_compiler_static_CXX='$wl-static'
  12810. ;;
  12811. esac
  12812. ;;
  12813. darwin* | rhapsody*)
  12814. # PIC is the default on this platform
  12815. # Common symbols not allowed in MH_DYLIB files
  12816. lt_prog_compiler_pic_CXX='-fno-common'
  12817. ;;
  12818. *djgpp*)
  12819. # DJGPP does not support shared libraries at all
  12820. lt_prog_compiler_pic_CXX=
  12821. ;;
  12822. haiku*)
  12823. # PIC is the default for Haiku.
  12824. # The "-static" flag exists, but is broken.
  12825. lt_prog_compiler_static_CXX=
  12826. ;;
  12827. interix[3-9]*)
  12828. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12829. # Instead, we relocate shared libraries at runtime.
  12830. ;;
  12831. sysv4*MP*)
  12832. if test -d /usr/nec; then
  12833. lt_prog_compiler_pic_CXX=-Kconform_pic
  12834. fi
  12835. ;;
  12836. hpux*)
  12837. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12838. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12839. # sets the default TLS model and affects inlining.
  12840. case $host_cpu in
  12841. hppa*64*)
  12842. ;;
  12843. *)
  12844. lt_prog_compiler_pic_CXX='-fPIC'
  12845. ;;
  12846. esac
  12847. ;;
  12848. *qnx* | *nto*)
  12849. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12850. # it will coredump.
  12851. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12852. ;;
  12853. *)
  12854. lt_prog_compiler_pic_CXX='-fPIC'
  12855. ;;
  12856. esac
  12857. else
  12858. case $host_os in
  12859. aix[4-9]*)
  12860. # All AIX code is PIC.
  12861. if test ia64 = "$host_cpu"; then
  12862. # AIX 5 now supports IA64 processor
  12863. lt_prog_compiler_static_CXX='-Bstatic'
  12864. else
  12865. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12866. fi
  12867. ;;
  12868. chorus*)
  12869. case $cc_basename in
  12870. cxch68*)
  12871. # Green Hills C++ Compiler
  12872. # _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"
  12873. ;;
  12874. esac
  12875. ;;
  12876. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12877. # This hack is so that the source file can tell whether it is being
  12878. # built for inclusion in a dll (and should export symbols for example).
  12879. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12880. ;;
  12881. dgux*)
  12882. case $cc_basename in
  12883. ec++*)
  12884. lt_prog_compiler_pic_CXX='-KPIC'
  12885. ;;
  12886. ghcx*)
  12887. # Green Hills C++ Compiler
  12888. lt_prog_compiler_pic_CXX='-pic'
  12889. ;;
  12890. *)
  12891. ;;
  12892. esac
  12893. ;;
  12894. freebsd* | dragonfly* | midnightbsd*)
  12895. # FreeBSD uses GNU C++
  12896. ;;
  12897. hpux9* | hpux10* | hpux11*)
  12898. case $cc_basename in
  12899. CC*)
  12900. lt_prog_compiler_wl_CXX='-Wl,'
  12901. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12902. if test ia64 != "$host_cpu"; then
  12903. lt_prog_compiler_pic_CXX='+Z'
  12904. fi
  12905. ;;
  12906. aCC*)
  12907. lt_prog_compiler_wl_CXX='-Wl,'
  12908. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12909. case $host_cpu in
  12910. hppa*64*|ia64*)
  12911. # +Z the default
  12912. ;;
  12913. *)
  12914. lt_prog_compiler_pic_CXX='+Z'
  12915. ;;
  12916. esac
  12917. ;;
  12918. *)
  12919. ;;
  12920. esac
  12921. ;;
  12922. interix*)
  12923. # This is c89, which is MS Visual C++ (no shared libs)
  12924. # Anyone wants to do a port?
  12925. ;;
  12926. irix5* | irix6* | nonstopux*)
  12927. case $cc_basename in
  12928. CC*)
  12929. lt_prog_compiler_wl_CXX='-Wl,'
  12930. lt_prog_compiler_static_CXX='-non_shared'
  12931. # CC pic flag -KPIC is the default.
  12932. ;;
  12933. *)
  12934. ;;
  12935. esac
  12936. ;;
  12937. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12938. case $cc_basename in
  12939. KCC*)
  12940. # KAI C++ Compiler
  12941. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12942. lt_prog_compiler_pic_CXX='-fPIC'
  12943. ;;
  12944. ecpc* )
  12945. # old Intel C++ for x86_64, which still supported -KPIC.
  12946. lt_prog_compiler_wl_CXX='-Wl,'
  12947. lt_prog_compiler_pic_CXX='-KPIC'
  12948. lt_prog_compiler_static_CXX='-static'
  12949. ;;
  12950. icpc* )
  12951. # Intel C++, used to be incompatible with GCC.
  12952. # ICC 10 doesn't accept -KPIC any more.
  12953. lt_prog_compiler_wl_CXX='-Wl,'
  12954. lt_prog_compiler_pic_CXX='-fPIC'
  12955. lt_prog_compiler_static_CXX='-static'
  12956. ;;
  12957. pgCC* | pgcpp*)
  12958. # Portland Group C++ compiler
  12959. lt_prog_compiler_wl_CXX='-Wl,'
  12960. lt_prog_compiler_pic_CXX='-fpic'
  12961. lt_prog_compiler_static_CXX='-Bstatic'
  12962. ;;
  12963. cxx*)
  12964. # Compaq C++
  12965. # Make sure the PIC flag is empty. It appears that all Alpha
  12966. # Linux and Compaq Tru64 Unix objects are PIC.
  12967. lt_prog_compiler_pic_CXX=
  12968. lt_prog_compiler_static_CXX='-non_shared'
  12969. ;;
  12970. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12971. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12972. lt_prog_compiler_wl_CXX='-Wl,'
  12973. lt_prog_compiler_pic_CXX='-qpic'
  12974. lt_prog_compiler_static_CXX='-qstaticlink'
  12975. ;;
  12976. *)
  12977. case `$CC -V 2>&1 | sed 5q` in
  12978. *Sun\ C*)
  12979. # Sun C++ 5.9
  12980. lt_prog_compiler_pic_CXX='-KPIC'
  12981. lt_prog_compiler_static_CXX='-Bstatic'
  12982. lt_prog_compiler_wl_CXX='-Qoption ld '
  12983. ;;
  12984. esac
  12985. ;;
  12986. esac
  12987. ;;
  12988. lynxos*)
  12989. ;;
  12990. m88k*)
  12991. ;;
  12992. mvs*)
  12993. case $cc_basename in
  12994. cxx*)
  12995. lt_prog_compiler_pic_CXX='-W c,exportall'
  12996. ;;
  12997. *)
  12998. ;;
  12999. esac
  13000. ;;
  13001. netbsd*)
  13002. ;;
  13003. *qnx* | *nto*)
  13004. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13005. # it will coredump.
  13006. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13007. ;;
  13008. osf3* | osf4* | osf5*)
  13009. case $cc_basename in
  13010. KCC*)
  13011. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13012. ;;
  13013. RCC*)
  13014. # Rational C++ 2.4.1
  13015. lt_prog_compiler_pic_CXX='-pic'
  13016. ;;
  13017. cxx*)
  13018. # Digital/Compaq C++
  13019. lt_prog_compiler_wl_CXX='-Wl,'
  13020. # Make sure the PIC flag is empty. It appears that all Alpha
  13021. # Linux and Compaq Tru64 Unix objects are PIC.
  13022. lt_prog_compiler_pic_CXX=
  13023. lt_prog_compiler_static_CXX='-non_shared'
  13024. ;;
  13025. *)
  13026. ;;
  13027. esac
  13028. ;;
  13029. psos*)
  13030. ;;
  13031. solaris*)
  13032. case $cc_basename in
  13033. CC* | sunCC*)
  13034. # Sun C++ 4.2, 5.x and Centerline C++
  13035. lt_prog_compiler_pic_CXX='-KPIC'
  13036. lt_prog_compiler_static_CXX='-Bstatic'
  13037. lt_prog_compiler_wl_CXX='-Qoption ld '
  13038. ;;
  13039. gcx*)
  13040. # Green Hills C++ Compiler
  13041. lt_prog_compiler_pic_CXX='-PIC'
  13042. ;;
  13043. *)
  13044. ;;
  13045. esac
  13046. ;;
  13047. sunos4*)
  13048. case $cc_basename in
  13049. CC*)
  13050. # Sun C++ 4.x
  13051. lt_prog_compiler_pic_CXX='-pic'
  13052. lt_prog_compiler_static_CXX='-Bstatic'
  13053. ;;
  13054. lcc*)
  13055. # Lucid
  13056. lt_prog_compiler_pic_CXX='-pic'
  13057. ;;
  13058. *)
  13059. ;;
  13060. esac
  13061. ;;
  13062. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13063. case $cc_basename in
  13064. CC*)
  13065. lt_prog_compiler_wl_CXX='-Wl,'
  13066. lt_prog_compiler_pic_CXX='-KPIC'
  13067. lt_prog_compiler_static_CXX='-Bstatic'
  13068. ;;
  13069. esac
  13070. ;;
  13071. tandem*)
  13072. case $cc_basename in
  13073. NCC*)
  13074. # NonStop-UX NCC 3.20
  13075. lt_prog_compiler_pic_CXX='-KPIC'
  13076. ;;
  13077. *)
  13078. ;;
  13079. esac
  13080. ;;
  13081. vxworks*)
  13082. ;;
  13083. *)
  13084. lt_prog_compiler_can_build_shared_CXX=no
  13085. ;;
  13086. esac
  13087. fi
  13088. case $host_os in
  13089. # For platforms that do not support PIC, -DPIC is meaningless:
  13090. *djgpp*)
  13091. lt_prog_compiler_pic_CXX=
  13092. ;;
  13093. *)
  13094. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13095. ;;
  13096. esac
  13097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13098. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13099. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13100. $as_echo_n "(cached) " >&6
  13101. else
  13102. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13103. fi
  13104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13105. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13106. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13107. #
  13108. # Check to make sure the PIC flag actually works.
  13109. #
  13110. if test -n "$lt_prog_compiler_pic_CXX"; then
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13112. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13113. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13114. $as_echo_n "(cached) " >&6
  13115. else
  13116. lt_cv_prog_compiler_pic_works_CXX=no
  13117. ac_outfile=conftest.$ac_objext
  13118. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13119. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13120. # Insert the option either (1) after the last *FLAGS variable, or
  13121. # (2) before a word containing "conftest.", or (3) at the end.
  13122. # Note that $ac_compile itself does not contain backslashes and begins
  13123. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13124. # The option is referenced via a variable to avoid confusing sed.
  13125. lt_compile=`echo "$ac_compile" | $SED \
  13126. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13127. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13128. -e 's:$: $lt_compiler_flag:'`
  13129. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13130. (eval "$lt_compile" 2>conftest.err)
  13131. ac_status=$?
  13132. cat conftest.err >&5
  13133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13134. if (exit $ac_status) && test -s "$ac_outfile"; then
  13135. # The compiler can only warn and ignore the option if not recognized
  13136. # So say no if there are warnings other than the usual output.
  13137. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13138. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13139. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13140. lt_cv_prog_compiler_pic_works_CXX=yes
  13141. fi
  13142. fi
  13143. $RM conftest*
  13144. fi
  13145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13146. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13147. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13148. case $lt_prog_compiler_pic_CXX in
  13149. "" | " "*) ;;
  13150. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13151. esac
  13152. else
  13153. lt_prog_compiler_pic_CXX=
  13154. lt_prog_compiler_can_build_shared_CXX=no
  13155. fi
  13156. fi
  13157. #
  13158. # Check to make sure the static flag actually works.
  13159. #
  13160. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13162. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13163. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13164. $as_echo_n "(cached) " >&6
  13165. else
  13166. lt_cv_prog_compiler_static_works_CXX=no
  13167. save_LDFLAGS=$LDFLAGS
  13168. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13169. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13170. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13171. # The linker can only warn and ignore the option if not recognized
  13172. # So say no if there are warnings
  13173. if test -s conftest.err; then
  13174. # Append any errors to the config.log.
  13175. cat conftest.err 1>&5
  13176. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13177. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13178. if diff conftest.exp conftest.er2 >/dev/null; then
  13179. lt_cv_prog_compiler_static_works_CXX=yes
  13180. fi
  13181. else
  13182. lt_cv_prog_compiler_static_works_CXX=yes
  13183. fi
  13184. fi
  13185. $RM -r conftest*
  13186. LDFLAGS=$save_LDFLAGS
  13187. fi
  13188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13189. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13190. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13191. :
  13192. else
  13193. lt_prog_compiler_static_CXX=
  13194. fi
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13196. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13197. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13198. $as_echo_n "(cached) " >&6
  13199. else
  13200. lt_cv_prog_compiler_c_o_CXX=no
  13201. $RM -r conftest 2>/dev/null
  13202. mkdir conftest
  13203. cd conftest
  13204. mkdir out
  13205. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13206. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13207. # Insert the option either (1) after the last *FLAGS variable, or
  13208. # (2) before a word containing "conftest.", or (3) at the end.
  13209. # Note that $ac_compile itself does not contain backslashes and begins
  13210. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13211. lt_compile=`echo "$ac_compile" | $SED \
  13212. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13213. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13214. -e 's:$: $lt_compiler_flag:'`
  13215. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13216. (eval "$lt_compile" 2>out/conftest.err)
  13217. ac_status=$?
  13218. cat out/conftest.err >&5
  13219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13220. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13221. then
  13222. # The compiler can only warn and ignore the option if not recognized
  13223. # So say no if there are warnings
  13224. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13225. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13226. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13227. lt_cv_prog_compiler_c_o_CXX=yes
  13228. fi
  13229. fi
  13230. chmod u+w . 2>&5
  13231. $RM conftest*
  13232. # SGI C++ compiler will create directory out/ii_files/ for
  13233. # template instantiation
  13234. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13235. $RM out/* && rmdir out
  13236. cd ..
  13237. $RM -r conftest
  13238. $RM conftest*
  13239. fi
  13240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13241. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13243. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13244. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13245. $as_echo_n "(cached) " >&6
  13246. else
  13247. lt_cv_prog_compiler_c_o_CXX=no
  13248. $RM -r conftest 2>/dev/null
  13249. mkdir conftest
  13250. cd conftest
  13251. mkdir out
  13252. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13253. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13254. # Insert the option either (1) after the last *FLAGS variable, or
  13255. # (2) before a word containing "conftest.", or (3) at the end.
  13256. # Note that $ac_compile itself does not contain backslashes and begins
  13257. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13258. lt_compile=`echo "$ac_compile" | $SED \
  13259. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13260. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13261. -e 's:$: $lt_compiler_flag:'`
  13262. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13263. (eval "$lt_compile" 2>out/conftest.err)
  13264. ac_status=$?
  13265. cat out/conftest.err >&5
  13266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13267. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13268. then
  13269. # The compiler can only warn and ignore the option if not recognized
  13270. # So say no if there are warnings
  13271. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13272. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13273. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13274. lt_cv_prog_compiler_c_o_CXX=yes
  13275. fi
  13276. fi
  13277. chmod u+w . 2>&5
  13278. $RM conftest*
  13279. # SGI C++ compiler will create directory out/ii_files/ for
  13280. # template instantiation
  13281. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13282. $RM out/* && rmdir out
  13283. cd ..
  13284. $RM -r conftest
  13285. $RM conftest*
  13286. fi
  13287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13288. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13289. hard_links=nottested
  13290. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13291. # do not overwrite the value of need_locks provided by the user
  13292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13293. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13294. hard_links=yes
  13295. $RM conftest*
  13296. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13297. touch conftest.a
  13298. ln conftest.a conftest.b 2>&5 || hard_links=no
  13299. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13301. $as_echo "$hard_links" >&6; }
  13302. if test no = "$hard_links"; then
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13304. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13305. need_locks=warn
  13306. fi
  13307. else
  13308. need_locks=no
  13309. fi
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13311. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13312. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13313. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13314. case $host_os in
  13315. aix[4-9]*)
  13316. # If we're using GNU nm, then we don't want the "-C" option.
  13317. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13318. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13319. # weak defined symbols like other global defined symbols, whereas
  13320. # GNU nm marks them as "W".
  13321. # While the 'weak' keyword is ignored in the Export File, we need
  13322. # it in the Import File for the 'aix-soname' feature, so we have
  13323. # to replace the "-B" option with "-P" for AIX nm.
  13324. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13325. 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'
  13326. else
  13327. 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'
  13328. fi
  13329. ;;
  13330. pw32*)
  13331. export_symbols_cmds_CXX=$ltdll_cmds
  13332. ;;
  13333. cygwin* | mingw* | cegcc*)
  13334. case $cc_basename in
  13335. cl*)
  13336. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13337. ;;
  13338. *)
  13339. 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'
  13340. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13341. ;;
  13342. esac
  13343. ;;
  13344. *)
  13345. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13346. ;;
  13347. esac
  13348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13349. $as_echo "$ld_shlibs_CXX" >&6; }
  13350. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13351. with_gnu_ld_CXX=$with_gnu_ld
  13352. #
  13353. # Do we need to explicitly link libc?
  13354. #
  13355. case "x$archive_cmds_need_lc_CXX" in
  13356. x|xyes)
  13357. # Assume -lc should be added
  13358. archive_cmds_need_lc_CXX=yes
  13359. if test yes,yes = "$GCC,$enable_shared"; then
  13360. case $archive_cmds_CXX in
  13361. *'~'*)
  13362. # FIXME: we may have to deal with multi-command sequences.
  13363. ;;
  13364. '$CC '*)
  13365. # Test whether the compiler implicitly links with -lc since on some
  13366. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13367. # to ld, don't add -lc before -lgcc.
  13368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13369. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13370. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13371. $as_echo_n "(cached) " >&6
  13372. else
  13373. $RM conftest*
  13374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13375. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13376. (eval $ac_compile) 2>&5
  13377. ac_status=$?
  13378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13379. test $ac_status = 0; } 2>conftest.err; then
  13380. soname=conftest
  13381. lib=conftest
  13382. libobjs=conftest.$ac_objext
  13383. deplibs=
  13384. wl=$lt_prog_compiler_wl_CXX
  13385. pic_flag=$lt_prog_compiler_pic_CXX
  13386. compiler_flags=-v
  13387. linker_flags=-v
  13388. verstring=
  13389. output_objdir=.
  13390. libname=conftest
  13391. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13392. allow_undefined_flag_CXX=
  13393. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13394. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13395. ac_status=$?
  13396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13397. test $ac_status = 0; }
  13398. then
  13399. lt_cv_archive_cmds_need_lc_CXX=no
  13400. else
  13401. lt_cv_archive_cmds_need_lc_CXX=yes
  13402. fi
  13403. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13404. else
  13405. cat conftest.err 1>&5
  13406. fi
  13407. $RM conftest*
  13408. fi
  13409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13410. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13411. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13412. ;;
  13413. esac
  13414. fi
  13415. ;;
  13416. esac
  13417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13418. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13419. library_names_spec=
  13420. libname_spec='lib$name'
  13421. soname_spec=
  13422. shrext_cmds=.so
  13423. postinstall_cmds=
  13424. postuninstall_cmds=
  13425. finish_cmds=
  13426. finish_eval=
  13427. shlibpath_var=
  13428. shlibpath_overrides_runpath=unknown
  13429. version_type=none
  13430. dynamic_linker="$host_os ld.so"
  13431. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13432. need_lib_prefix=unknown
  13433. hardcode_into_libs=no
  13434. # when you set need_version to no, make sure it does not cause -set_version
  13435. # flags to be left without arguments
  13436. need_version=unknown
  13437. case $host_os in
  13438. aix3*)
  13439. version_type=linux # correct to gnu/linux during the next big refactor
  13440. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13441. shlibpath_var=LIBPATH
  13442. # AIX 3 has no versioning support, so we append a major version to the name.
  13443. soname_spec='$libname$release$shared_ext$major'
  13444. ;;
  13445. aix[4-9]*)
  13446. version_type=linux # correct to gnu/linux during the next big refactor
  13447. need_lib_prefix=no
  13448. need_version=no
  13449. hardcode_into_libs=yes
  13450. if test ia64 = "$host_cpu"; then
  13451. # AIX 5 supports IA64
  13452. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13453. shlibpath_var=LD_LIBRARY_PATH
  13454. else
  13455. # With GCC up to 2.95.x, collect2 would create an import file
  13456. # for dependence libraries. The import file would start with
  13457. # the line '#! .'. This would cause the generated library to
  13458. # depend on '.', always an invalid library. This was fixed in
  13459. # development snapshots of GCC prior to 3.0.
  13460. case $host_os in
  13461. aix4 | aix4.[01] | aix4.[01].*)
  13462. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13463. echo ' yes '
  13464. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13465. :
  13466. else
  13467. can_build_shared=no
  13468. fi
  13469. ;;
  13470. esac
  13471. # Using Import Files as archive members, it is possible to support
  13472. # filename-based versioning of shared library archives on AIX. While
  13473. # this would work for both with and without runtime linking, it will
  13474. # prevent static linking of such archives. So we do filename-based
  13475. # shared library versioning with .so extension only, which is used
  13476. # when both runtime linking and shared linking is enabled.
  13477. # Unfortunately, runtime linking may impact performance, so we do
  13478. # not want this to be the default eventually. Also, we use the
  13479. # versioned .so libs for executables only if there is the -brtl
  13480. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13481. # To allow for filename-based versioning support, we need to create
  13482. # libNAME.so.V as an archive file, containing:
  13483. # *) an Import File, referring to the versioned filename of the
  13484. # archive as well as the shared archive member, telling the
  13485. # bitwidth (32 or 64) of that shared object, and providing the
  13486. # list of exported symbols of that shared object, eventually
  13487. # decorated with the 'weak' keyword
  13488. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13489. # it being seen by the linker.
  13490. # At run time we better use the real file rather than another symlink,
  13491. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13492. case $with_aix_soname,$aix_use_runtimelinking in
  13493. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13494. # soname into executable. Probably we can add versioning support to
  13495. # collect2, so additional links can be useful in future.
  13496. aix,yes) # traditional libtool
  13497. dynamic_linker='AIX unversionable lib.so'
  13498. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13499. # instead of lib<name>.a to let people know that these are not
  13500. # typical AIX shared libraries.
  13501. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13502. ;;
  13503. aix,no) # traditional AIX only
  13504. dynamic_linker='AIX lib.a(lib.so.V)'
  13505. # We preserve .a as extension for shared libraries through AIX4.2
  13506. # and later when we are not doing run time linking.
  13507. library_names_spec='$libname$release.a $libname.a'
  13508. soname_spec='$libname$release$shared_ext$major'
  13509. ;;
  13510. svr4,*) # full svr4 only
  13511. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13512. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13513. # We do not specify a path in Import Files, so LIBPATH fires.
  13514. shlibpath_overrides_runpath=yes
  13515. ;;
  13516. *,yes) # both, prefer svr4
  13517. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13518. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13519. # unpreferred sharedlib libNAME.a needs extra handling
  13520. 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"'
  13521. 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"'
  13522. # We do not specify a path in Import Files, so LIBPATH fires.
  13523. shlibpath_overrides_runpath=yes
  13524. ;;
  13525. *,no) # both, prefer aix
  13526. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13527. library_names_spec='$libname$release.a $libname.a'
  13528. soname_spec='$libname$release$shared_ext$major'
  13529. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13530. 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)'
  13531. 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"'
  13532. ;;
  13533. esac
  13534. shlibpath_var=LIBPATH
  13535. fi
  13536. ;;
  13537. amigaos*)
  13538. case $host_cpu in
  13539. powerpc)
  13540. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13541. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13542. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13543. ;;
  13544. m68k)
  13545. library_names_spec='$libname.ixlibrary $libname.a'
  13546. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13547. 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'
  13548. ;;
  13549. esac
  13550. ;;
  13551. beos*)
  13552. library_names_spec='$libname$shared_ext'
  13553. dynamic_linker="$host_os ld.so"
  13554. shlibpath_var=LIBRARY_PATH
  13555. ;;
  13556. bsdi[45]*)
  13557. version_type=linux # correct to gnu/linux during the next big refactor
  13558. need_version=no
  13559. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13560. soname_spec='$libname$release$shared_ext$major'
  13561. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13562. shlibpath_var=LD_LIBRARY_PATH
  13563. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13564. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13565. # the default ld.so.conf also contains /usr/contrib/lib and
  13566. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13567. # libtool to hard-code these into programs
  13568. ;;
  13569. cygwin* | mingw* | pw32* | cegcc*)
  13570. version_type=windows
  13571. shrext_cmds=.dll
  13572. need_version=no
  13573. need_lib_prefix=no
  13574. case $GCC,$cc_basename in
  13575. yes,*)
  13576. # gcc
  13577. library_names_spec='$libname.dll.a'
  13578. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13579. postinstall_cmds='base_file=`basename \$file`~
  13580. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13581. dldir=$destdir/`dirname \$dlpath`~
  13582. test -d \$dldir || mkdir -p \$dldir~
  13583. $install_prog $dir/$dlname \$dldir/$dlname~
  13584. chmod a+x \$dldir/$dlname~
  13585. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13586. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13587. fi'
  13588. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13589. dlpath=$dir/\$dldll~
  13590. $RM \$dlpath'
  13591. shlibpath_overrides_runpath=yes
  13592. case $host_os in
  13593. cygwin*)
  13594. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13595. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13596. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13597. ;;
  13598. mingw* | cegcc*)
  13599. # MinGW DLLs use traditional 'lib' prefix
  13600. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13601. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13602. ;;
  13603. pw32*)
  13604. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13605. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13606. ;;
  13607. esac
  13608. dynamic_linker='Win32 ld.exe'
  13609. ;;
  13610. *,cl*)
  13611. # Native MSVC
  13612. libname_spec='$name'
  13613. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13614. library_names_spec='$libname.dll.lib'
  13615. case $build_os in
  13616. mingw*)
  13617. sys_lib_search_path_spec=
  13618. lt_save_ifs=$IFS
  13619. IFS=';'
  13620. for lt_path in $LIB
  13621. do
  13622. IFS=$lt_save_ifs
  13623. # Let DOS variable expansion print the short 8.3 style file name.
  13624. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13625. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13626. done
  13627. IFS=$lt_save_ifs
  13628. # Convert to MSYS style.
  13629. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13630. ;;
  13631. cygwin*)
  13632. # Convert to unix form, then to dos form, then back to unix form
  13633. # but this time dos style (no spaces!) so that the unix form looks
  13634. # like /cygdrive/c/PROGRA~1:/cygdr...
  13635. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13636. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13637. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13638. ;;
  13639. *)
  13640. sys_lib_search_path_spec=$LIB
  13641. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13642. # It is most probably a Windows format PATH.
  13643. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13644. else
  13645. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13646. fi
  13647. # FIXME: find the short name or the path components, as spaces are
  13648. # common. (e.g. "Program Files" -> "PROGRA~1")
  13649. ;;
  13650. esac
  13651. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13652. postinstall_cmds='base_file=`basename \$file`~
  13653. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13654. dldir=$destdir/`dirname \$dlpath`~
  13655. test -d \$dldir || mkdir -p \$dldir~
  13656. $install_prog $dir/$dlname \$dldir/$dlname'
  13657. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13658. dlpath=$dir/\$dldll~
  13659. $RM \$dlpath'
  13660. shlibpath_overrides_runpath=yes
  13661. dynamic_linker='Win32 link.exe'
  13662. ;;
  13663. *)
  13664. # Assume MSVC wrapper
  13665. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13666. dynamic_linker='Win32 ld.exe'
  13667. ;;
  13668. esac
  13669. # FIXME: first we should search . and the directory the executable is in
  13670. shlibpath_var=PATH
  13671. ;;
  13672. darwin* | rhapsody*)
  13673. dynamic_linker="$host_os dyld"
  13674. version_type=darwin
  13675. need_lib_prefix=no
  13676. need_version=no
  13677. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13678. soname_spec='$libname$release$major$shared_ext'
  13679. shlibpath_overrides_runpath=yes
  13680. shlibpath_var=DYLD_LIBRARY_PATH
  13681. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13682. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13683. ;;
  13684. dgux*)
  13685. version_type=linux # correct to gnu/linux during the next big refactor
  13686. need_lib_prefix=no
  13687. need_version=no
  13688. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13689. soname_spec='$libname$release$shared_ext$major'
  13690. shlibpath_var=LD_LIBRARY_PATH
  13691. ;;
  13692. freebsd* | dragonfly* | midnightbsd*)
  13693. # DragonFly does not have aout. When/if they implement a new
  13694. # versioning mechanism, adjust this.
  13695. if test -x /usr/bin/objformat; then
  13696. objformat=`/usr/bin/objformat`
  13697. else
  13698. case $host_os in
  13699. freebsd[23].*) objformat=aout ;;
  13700. *) objformat=elf ;;
  13701. esac
  13702. fi
  13703. version_type=freebsd-$objformat
  13704. case $version_type in
  13705. freebsd-elf*)
  13706. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13707. soname_spec='$libname$release$shared_ext$major'
  13708. need_version=no
  13709. need_lib_prefix=no
  13710. ;;
  13711. freebsd-*)
  13712. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13713. need_version=yes
  13714. ;;
  13715. esac
  13716. shlibpath_var=LD_LIBRARY_PATH
  13717. case $host_os in
  13718. freebsd2.*)
  13719. shlibpath_overrides_runpath=yes
  13720. ;;
  13721. freebsd3.[01]* | freebsdelf3.[01]*)
  13722. shlibpath_overrides_runpath=yes
  13723. hardcode_into_libs=yes
  13724. ;;
  13725. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13726. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13727. shlibpath_overrides_runpath=no
  13728. hardcode_into_libs=yes
  13729. ;;
  13730. *) # from 4.6 on, and DragonFly
  13731. shlibpath_overrides_runpath=yes
  13732. hardcode_into_libs=yes
  13733. ;;
  13734. esac
  13735. ;;
  13736. haiku*)
  13737. version_type=linux # correct to gnu/linux during the next big refactor
  13738. need_lib_prefix=no
  13739. need_version=no
  13740. dynamic_linker="$host_os runtime_loader"
  13741. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13742. soname_spec='$libname$release$shared_ext$major'
  13743. shlibpath_var=LIBRARY_PATH
  13744. shlibpath_overrides_runpath=no
  13745. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13746. hardcode_into_libs=yes
  13747. ;;
  13748. hpux9* | hpux10* | hpux11*)
  13749. # Give a soname corresponding to the major version so that dld.sl refuses to
  13750. # link against other versions.
  13751. version_type=sunos
  13752. need_lib_prefix=no
  13753. need_version=no
  13754. case $host_cpu in
  13755. ia64*)
  13756. shrext_cmds='.so'
  13757. hardcode_into_libs=yes
  13758. dynamic_linker="$host_os dld.so"
  13759. shlibpath_var=LD_LIBRARY_PATH
  13760. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13761. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13762. soname_spec='$libname$release$shared_ext$major'
  13763. if test 32 = "$HPUX_IA64_MODE"; then
  13764. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13765. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13766. else
  13767. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13768. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13769. fi
  13770. ;;
  13771. hppa*64*)
  13772. shrext_cmds='.sl'
  13773. hardcode_into_libs=yes
  13774. dynamic_linker="$host_os dld.sl"
  13775. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13776. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13777. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13778. soname_spec='$libname$release$shared_ext$major'
  13779. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13780. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13781. ;;
  13782. *)
  13783. shrext_cmds='.sl'
  13784. dynamic_linker="$host_os dld.sl"
  13785. shlibpath_var=SHLIB_PATH
  13786. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13787. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13788. soname_spec='$libname$release$shared_ext$major'
  13789. ;;
  13790. esac
  13791. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13792. postinstall_cmds='chmod 555 $lib'
  13793. # or fails outright, so override atomically:
  13794. install_override_mode=555
  13795. ;;
  13796. interix[3-9]*)
  13797. version_type=linux # correct to gnu/linux during the next big refactor
  13798. need_lib_prefix=no
  13799. need_version=no
  13800. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13801. soname_spec='$libname$release$shared_ext$major'
  13802. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13803. shlibpath_var=LD_LIBRARY_PATH
  13804. shlibpath_overrides_runpath=no
  13805. hardcode_into_libs=yes
  13806. ;;
  13807. irix5* | irix6* | nonstopux*)
  13808. case $host_os in
  13809. nonstopux*) version_type=nonstopux ;;
  13810. *)
  13811. if test yes = "$lt_cv_prog_gnu_ld"; then
  13812. version_type=linux # correct to gnu/linux during the next big refactor
  13813. else
  13814. version_type=irix
  13815. fi ;;
  13816. esac
  13817. need_lib_prefix=no
  13818. need_version=no
  13819. soname_spec='$libname$release$shared_ext$major'
  13820. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13821. case $host_os in
  13822. irix5* | nonstopux*)
  13823. libsuff= shlibsuff=
  13824. ;;
  13825. *)
  13826. case $LD in # libtool.m4 will add one of these switches to LD
  13827. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13828. libsuff= shlibsuff= libmagic=32-bit;;
  13829. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13830. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13831. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13832. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13833. *) libsuff= shlibsuff= libmagic=never-match;;
  13834. esac
  13835. ;;
  13836. esac
  13837. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13838. shlibpath_overrides_runpath=no
  13839. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13840. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13841. hardcode_into_libs=yes
  13842. ;;
  13843. # No shared lib support for Linux oldld, aout, or coff.
  13844. linux*oldld* | linux*aout* | linux*coff*)
  13845. dynamic_linker=no
  13846. ;;
  13847. linux*android*)
  13848. version_type=none # Android doesn't support versioned libraries.
  13849. need_lib_prefix=no
  13850. need_version=no
  13851. library_names_spec='$libname$release$shared_ext'
  13852. soname_spec='$libname$release$shared_ext'
  13853. finish_cmds=
  13854. shlibpath_var=LD_LIBRARY_PATH
  13855. shlibpath_overrides_runpath=yes
  13856. # This implies no fast_install, which is unacceptable.
  13857. # Some rework will be needed to allow for fast_install
  13858. # before this can be enabled.
  13859. hardcode_into_libs=yes
  13860. dynamic_linker='Android linker'
  13861. # Don't embed -rpath directories since the linker doesn't support them.
  13862. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13863. ;;
  13864. # This must be glibc/ELF.
  13865. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13866. version_type=linux # correct to gnu/linux during the next big refactor
  13867. need_lib_prefix=no
  13868. need_version=no
  13869. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13870. soname_spec='$libname$release$shared_ext$major'
  13871. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13872. shlibpath_var=LD_LIBRARY_PATH
  13873. shlibpath_overrides_runpath=no
  13874. # Some binutils ld are patched to set DT_RUNPATH
  13875. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13876. $as_echo_n "(cached) " >&6
  13877. else
  13878. lt_cv_shlibpath_overrides_runpath=no
  13879. save_LDFLAGS=$LDFLAGS
  13880. save_libdir=$libdir
  13881. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13882. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13884. /* end confdefs.h. */
  13885. int
  13886. main ()
  13887. {
  13888. ;
  13889. return 0;
  13890. }
  13891. _ACEOF
  13892. if ac_fn_cxx_try_link "$LINENO"; then :
  13893. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13894. lt_cv_shlibpath_overrides_runpath=yes
  13895. fi
  13896. fi
  13897. rm -f core conftest.err conftest.$ac_objext \
  13898. conftest$ac_exeext conftest.$ac_ext
  13899. LDFLAGS=$save_LDFLAGS
  13900. libdir=$save_libdir
  13901. fi
  13902. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13903. # This implies no fast_install, which is unacceptable.
  13904. # Some rework will be needed to allow for fast_install
  13905. # before this can be enabled.
  13906. hardcode_into_libs=yes
  13907. # Add ABI-specific directories to the system library path.
  13908. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13909. # Ideally, we could use ldconfig to report *all* directores which are
  13910. # searched for libraries, however this is still not possible. Aside from not
  13911. # being certain /sbin/ldconfig is available, command
  13912. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13913. # even though it is searched at run-time. Try to do the best guess by
  13914. # appending ld.so.conf contents (and includes) to the search path.
  13915. if test -f /etc/ld.so.conf; then
  13916. 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' ' '`
  13917. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13918. fi
  13919. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13920. # powerpc, because MkLinux only supported shared libraries with the
  13921. # GNU dynamic linker. Since this was broken with cross compilers,
  13922. # most powerpc-linux boxes support dynamic linking these days and
  13923. # people can always --disable-shared, the test was removed, and we
  13924. # assume the GNU/Linux dynamic linker is in use.
  13925. dynamic_linker='GNU/Linux ld.so'
  13926. ;;
  13927. netbsd*)
  13928. version_type=sunos
  13929. need_lib_prefix=no
  13930. need_version=no
  13931. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13932. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13933. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13934. dynamic_linker='NetBSD (a.out) ld.so'
  13935. else
  13936. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13937. soname_spec='$libname$release$shared_ext$major'
  13938. dynamic_linker='NetBSD ld.elf_so'
  13939. fi
  13940. shlibpath_var=LD_LIBRARY_PATH
  13941. shlibpath_overrides_runpath=yes
  13942. hardcode_into_libs=yes
  13943. ;;
  13944. newsos6)
  13945. version_type=linux # correct to gnu/linux during the next big refactor
  13946. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13947. shlibpath_var=LD_LIBRARY_PATH
  13948. shlibpath_overrides_runpath=yes
  13949. ;;
  13950. *nto* | *qnx*)
  13951. version_type=qnx
  13952. need_lib_prefix=no
  13953. need_version=no
  13954. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13955. soname_spec='$libname$release$shared_ext$major'
  13956. shlibpath_var=LD_LIBRARY_PATH
  13957. shlibpath_overrides_runpath=no
  13958. hardcode_into_libs=yes
  13959. dynamic_linker='ldqnx.so'
  13960. ;;
  13961. openbsd* | bitrig*)
  13962. version_type=sunos
  13963. sys_lib_dlsearch_path_spec=/usr/lib
  13964. need_lib_prefix=no
  13965. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13966. need_version=no
  13967. else
  13968. need_version=yes
  13969. fi
  13970. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13971. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13972. shlibpath_var=LD_LIBRARY_PATH
  13973. shlibpath_overrides_runpath=yes
  13974. ;;
  13975. os2*)
  13976. libname_spec='$name'
  13977. shrext_cmds=.dll
  13978. need_lib_prefix=no
  13979. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13980. # SDL customization: removed versioning support.
  13981. # version_type=windows
  13982. # need_version=no
  13983. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13984. # v=$($ECHO $release$versuffix | tr -d .-);
  13985. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13986. # $ECHO $n$v`$shared_ext'
  13987. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13988. library_names_spec='${libname}_dll.$libext'
  13989. dynamic_linker='OS/2 ld.exe'
  13990. shlibpath_var=BEGINLIBPATH
  13991. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13992. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13993. postinstall_cmds='base_file=`basename \$file`~
  13994. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13995. dldir=$destdir/`dirname \$dlpath`~
  13996. test -d \$dldir || mkdir -p \$dldir~
  13997. $install_prog $dir/$dlname \$dldir/$dlname~
  13998. chmod a+x \$dldir/$dlname~
  13999. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14000. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14001. fi'
  14002. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14003. dlpath=$dir/\$dldll~
  14004. $RM \$dlpath'
  14005. ;;
  14006. osf3* | osf4* | osf5*)
  14007. version_type=osf
  14008. need_lib_prefix=no
  14009. need_version=no
  14010. soname_spec='$libname$release$shared_ext$major'
  14011. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14012. shlibpath_var=LD_LIBRARY_PATH
  14013. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14014. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14015. ;;
  14016. rdos*)
  14017. dynamic_linker=no
  14018. ;;
  14019. solaris*)
  14020. version_type=linux # correct to gnu/linux during the next big refactor
  14021. need_lib_prefix=no
  14022. need_version=no
  14023. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14024. soname_spec='$libname$release$shared_ext$major'
  14025. shlibpath_var=LD_LIBRARY_PATH
  14026. shlibpath_overrides_runpath=yes
  14027. hardcode_into_libs=yes
  14028. # ldd complains unless libraries are executable
  14029. postinstall_cmds='chmod +x $lib'
  14030. ;;
  14031. sunos4*)
  14032. version_type=sunos
  14033. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14034. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14035. shlibpath_var=LD_LIBRARY_PATH
  14036. shlibpath_overrides_runpath=yes
  14037. if test yes = "$with_gnu_ld"; then
  14038. need_lib_prefix=no
  14039. fi
  14040. need_version=yes
  14041. ;;
  14042. sysv4 | sysv4.3*)
  14043. version_type=linux # correct to gnu/linux during the next big refactor
  14044. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14045. soname_spec='$libname$release$shared_ext$major'
  14046. shlibpath_var=LD_LIBRARY_PATH
  14047. case $host_vendor in
  14048. sni)
  14049. shlibpath_overrides_runpath=no
  14050. need_lib_prefix=no
  14051. runpath_var=LD_RUN_PATH
  14052. ;;
  14053. siemens)
  14054. need_lib_prefix=no
  14055. ;;
  14056. motorola)
  14057. need_lib_prefix=no
  14058. need_version=no
  14059. shlibpath_overrides_runpath=no
  14060. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14061. ;;
  14062. esac
  14063. ;;
  14064. sysv4*MP*)
  14065. if test -d /usr/nec; then
  14066. version_type=linux # correct to gnu/linux during the next big refactor
  14067. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14068. soname_spec='$libname$shared_ext.$major'
  14069. shlibpath_var=LD_LIBRARY_PATH
  14070. fi
  14071. ;;
  14072. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14073. version_type=sco
  14074. need_lib_prefix=no
  14075. need_version=no
  14076. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14077. soname_spec='$libname$release$shared_ext$major'
  14078. shlibpath_var=LD_LIBRARY_PATH
  14079. shlibpath_overrides_runpath=yes
  14080. hardcode_into_libs=yes
  14081. if test yes = "$with_gnu_ld"; then
  14082. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14083. else
  14084. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14085. case $host_os in
  14086. sco3.2v5*)
  14087. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14088. ;;
  14089. esac
  14090. fi
  14091. sys_lib_dlsearch_path_spec='/usr/lib'
  14092. ;;
  14093. tpf*)
  14094. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14095. version_type=linux # correct to gnu/linux during the next big refactor
  14096. need_lib_prefix=no
  14097. need_version=no
  14098. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14099. shlibpath_var=LD_LIBRARY_PATH
  14100. shlibpath_overrides_runpath=no
  14101. hardcode_into_libs=yes
  14102. ;;
  14103. uts4*)
  14104. version_type=linux # correct to gnu/linux during the next big refactor
  14105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14106. soname_spec='$libname$release$shared_ext$major'
  14107. shlibpath_var=LD_LIBRARY_PATH
  14108. ;;
  14109. *)
  14110. dynamic_linker=no
  14111. ;;
  14112. esac
  14113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14114. $as_echo "$dynamic_linker" >&6; }
  14115. test no = "$dynamic_linker" && can_build_shared=no
  14116. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14117. if test yes = "$GCC"; then
  14118. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14119. fi
  14120. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14121. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14122. fi
  14123. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14124. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14125. fi
  14126. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14127. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14128. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14129. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14130. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14131. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14133. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14134. hardcode_action_CXX=
  14135. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14136. test -n "$runpath_var_CXX" ||
  14137. test yes = "$hardcode_automatic_CXX"; then
  14138. # We can hardcode non-existent directories.
  14139. if test no != "$hardcode_direct_CXX" &&
  14140. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14141. # have to relink, otherwise we might link with an installed library
  14142. # when we should be linking with a yet-to-be-installed one
  14143. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14144. test no != "$hardcode_minus_L_CXX"; then
  14145. # Linking always hardcodes the temporary library directory.
  14146. hardcode_action_CXX=relink
  14147. else
  14148. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14149. hardcode_action_CXX=immediate
  14150. fi
  14151. else
  14152. # We cannot hardcode anything, or else we can only hardcode existing
  14153. # directories.
  14154. hardcode_action_CXX=unsupported
  14155. fi
  14156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14157. $as_echo "$hardcode_action_CXX" >&6; }
  14158. if test relink = "$hardcode_action_CXX" ||
  14159. test yes = "$inherit_rpath_CXX"; then
  14160. # Fast installation is not supported
  14161. enable_fast_install=no
  14162. elif test yes = "$shlibpath_overrides_runpath" ||
  14163. test no = "$enable_shared"; then
  14164. # Fast installation is not necessary
  14165. enable_fast_install=needless
  14166. fi
  14167. fi # test -n "$compiler"
  14168. CC=$lt_save_CC
  14169. CFLAGS=$lt_save_CFLAGS
  14170. LDCXX=$LD
  14171. LD=$lt_save_LD
  14172. GCC=$lt_save_GCC
  14173. with_gnu_ld=$lt_save_with_gnu_ld
  14174. lt_cv_path_LDCXX=$lt_cv_path_LD
  14175. lt_cv_path_LD=$lt_save_path_LD
  14176. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14177. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14178. fi # test yes != "$_lt_caught_CXX_error"
  14179. ac_ext=c
  14180. ac_cpp='$CPP $CPPFLAGS'
  14181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14184. # Find a good install program. We prefer a C program (faster),
  14185. # so one script is as good as another. But avoid the broken or
  14186. # incompatible versions:
  14187. # SysV /etc/install, /usr/sbin/install
  14188. # SunOS /usr/etc/install
  14189. # IRIX /sbin/install
  14190. # AIX /bin/install
  14191. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14192. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14193. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14194. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14195. # OS/2's system install, which has a completely different semantic
  14196. # ./install, which can be erroneously created by make from ./install.sh.
  14197. # Reject install programs that cannot install multiple files.
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14199. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14200. if test -z "$INSTALL"; then
  14201. if ${ac_cv_path_install+:} false; then :
  14202. $as_echo_n "(cached) " >&6
  14203. else
  14204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14205. for as_dir in $PATH
  14206. do
  14207. IFS=$as_save_IFS
  14208. test -z "$as_dir" && as_dir=.
  14209. # Account for people who put trailing slashes in PATH elements.
  14210. case $as_dir/ in #((
  14211. ./ | .// | /[cC]/* | \
  14212. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14213. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14214. /usr/ucb/* ) ;;
  14215. *)
  14216. # OSF1 and SCO ODT 3.0 have their own names for install.
  14217. # Don't use installbsd from OSF since it installs stuff as root
  14218. # by default.
  14219. for ac_prog in ginstall scoinst install; do
  14220. for ac_exec_ext in '' $ac_executable_extensions; do
  14221. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14222. if test $ac_prog = install &&
  14223. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14224. # AIX install. It has an incompatible calling convention.
  14225. :
  14226. elif test $ac_prog = install &&
  14227. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14228. # program-specific install script used by HP pwplus--don't use.
  14229. :
  14230. else
  14231. rm -rf conftest.one conftest.two conftest.dir
  14232. echo one > conftest.one
  14233. echo two > conftest.two
  14234. mkdir conftest.dir
  14235. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14236. test -s conftest.one && test -s conftest.two &&
  14237. test -s conftest.dir/conftest.one &&
  14238. test -s conftest.dir/conftest.two
  14239. then
  14240. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14241. break 3
  14242. fi
  14243. fi
  14244. fi
  14245. done
  14246. done
  14247. ;;
  14248. esac
  14249. done
  14250. IFS=$as_save_IFS
  14251. rm -rf conftest.one conftest.two conftest.dir
  14252. fi
  14253. if test "${ac_cv_path_install+set}" = set; then
  14254. INSTALL=$ac_cv_path_install
  14255. else
  14256. # As a last resort, use the slow shell script. Don't cache a
  14257. # value for INSTALL within a source directory, because that will
  14258. # break other packages using the cache if that directory is
  14259. # removed, or if the value is a relative name.
  14260. INSTALL=$ac_install_sh
  14261. fi
  14262. fi
  14263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14264. $as_echo "$INSTALL" >&6; }
  14265. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14266. # It thinks the first close brace ends the variable substitution.
  14267. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14268. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14269. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14271. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14272. set x ${MAKE-make}
  14273. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14274. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14275. $as_echo_n "(cached) " >&6
  14276. else
  14277. cat >conftest.make <<\_ACEOF
  14278. SHELL = /bin/sh
  14279. all:
  14280. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14281. _ACEOF
  14282. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14283. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14284. *@@@%%%=?*=@@@%%%*)
  14285. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14286. *)
  14287. eval ac_cv_prog_make_${ac_make}_set=no;;
  14288. esac
  14289. rm -f conftest.make
  14290. fi
  14291. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14293. $as_echo "yes" >&6; }
  14294. SET_MAKE=
  14295. else
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14297. $as_echo "no" >&6; }
  14298. SET_MAKE="MAKE=${MAKE-make}"
  14299. fi
  14300. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14301. if test -n "$ac_tool_prefix"; then
  14302. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14303. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14305. $as_echo_n "checking for $ac_word... " >&6; }
  14306. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14307. $as_echo_n "(cached) " >&6
  14308. else
  14309. case $PKG_CONFIG in
  14310. [\\/]* | ?:[\\/]*)
  14311. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14312. ;;
  14313. *)
  14314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14315. for as_dir in $PATH
  14316. do
  14317. IFS=$as_save_IFS
  14318. test -z "$as_dir" && as_dir=.
  14319. for ac_exec_ext in '' $ac_executable_extensions; do
  14320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14321. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14323. break 2
  14324. fi
  14325. done
  14326. done
  14327. IFS=$as_save_IFS
  14328. ;;
  14329. esac
  14330. fi
  14331. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14332. if test -n "$PKG_CONFIG"; then
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14334. $as_echo "$PKG_CONFIG" >&6; }
  14335. else
  14336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14337. $as_echo "no" >&6; }
  14338. fi
  14339. fi
  14340. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14341. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14342. # Extract the first word of "pkg-config", so it can be a program name with args.
  14343. set dummy pkg-config; ac_word=$2
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14345. $as_echo_n "checking for $ac_word... " >&6; }
  14346. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14347. $as_echo_n "(cached) " >&6
  14348. else
  14349. case $ac_pt_PKG_CONFIG in
  14350. [\\/]* | ?:[\\/]*)
  14351. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14352. ;;
  14353. *)
  14354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14355. for as_dir in $PATH
  14356. do
  14357. IFS=$as_save_IFS
  14358. test -z "$as_dir" && as_dir=.
  14359. for ac_exec_ext in '' $ac_executable_extensions; do
  14360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14361. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14363. break 2
  14364. fi
  14365. done
  14366. done
  14367. IFS=$as_save_IFS
  14368. ;;
  14369. esac
  14370. fi
  14371. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14372. if test -n "$ac_pt_PKG_CONFIG"; then
  14373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14374. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14375. else
  14376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14377. $as_echo "no" >&6; }
  14378. fi
  14379. if test "x$ac_pt_PKG_CONFIG" = x; then
  14380. PKG_CONFIG=""
  14381. else
  14382. case $cross_compiling:$ac_tool_warned in
  14383. yes:)
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14385. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14386. ac_tool_warned=yes ;;
  14387. esac
  14388. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14389. fi
  14390. else
  14391. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14392. fi
  14393. fi
  14394. if test -n "$PKG_CONFIG"; then
  14395. _pkg_min_version=0.9.0
  14396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14397. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14398. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14400. $as_echo "yes" >&6; }
  14401. else
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14403. $as_echo "no" >&6; }
  14404. PKG_CONFIG=""
  14405. fi
  14406. fi
  14407. case "$host" in
  14408. *-*-mingw*)
  14409. # Except on msys, where make can't handle full pathnames (bug 1972)
  14410. ;;
  14411. *)
  14412. srcdir=`cd $srcdir && pwd`
  14413. ;;
  14414. esac
  14415. INCLUDE="-I$srcdir/include"
  14416. case "$host" in
  14417. *-*-nto-qnx*)
  14418. ;;
  14419. *)
  14420. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14421. ;;
  14422. esac
  14423. case "$host" in
  14424. *-*-haiku*)
  14425. LINKER='$(CXX)'
  14426. LIBTOOLLINKERTAG='CXX'
  14427. ;;
  14428. *)
  14429. LINKER='$(CC)'
  14430. LIBTOOLLINKERTAG='CC'
  14431. ;;
  14432. esac
  14433. if test x$srcdir != x.; then
  14434. INCLUDE="-Iinclude $INCLUDE"
  14435. elif test -d .git; then
  14436. as_fn_error $? "
  14437. *** When building from a git clone you should configure and build in a
  14438. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14439. " "$LINENO" 5
  14440. fi
  14441. BASE_CFLAGS=""
  14442. BASE_LDFLAGS=""
  14443. case "$host" in
  14444. *-*-cygwin*)
  14445. # We build SDL on cygwin without the UNIX emulation layer
  14446. save_CFLAGS="$CFLAGS"
  14447. have_no_cygwin=no
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14449. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14450. CFLAGS="$save_CFLAGS -mno-cygwin"
  14451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14452. /* end confdefs.h. */
  14453. int
  14454. main ()
  14455. {
  14456. ;
  14457. return 0;
  14458. }
  14459. _ACEOF
  14460. if ac_fn_c_try_compile "$LINENO"; then :
  14461. have_no_cygwin=yes
  14462. fi
  14463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14465. $as_echo "$have_no_cygwin" >&6; }
  14466. CFLAGS="$save_CFLAGS"
  14467. if test x$have_no_cygwin = xyes; then
  14468. BASE_CFLAGS="-mno-cygwin"
  14469. BASE_LDFLAGS="-mno-cygwin"
  14470. fi
  14471. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14472. ;;
  14473. esac
  14474. # Uncomment the following line if you want to force SDL and applications
  14475. # built with it to be compiled for a particular architecture.
  14476. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14477. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14478. # The default optimization for SDL is -O3 (Bug #31)
  14479. if test "x$orig_CFLAGS" = x; then
  14480. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14481. fi
  14482. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14483. BUILD_LDFLAGS="$LDFLAGS"
  14484. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14485. ## These are common directories to find software packages
  14486. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14487. # if test -d $path/include; then
  14488. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14489. # fi
  14490. # if test -d $path/lib; then
  14491. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14492. # fi
  14493. #done
  14494. SDL_CFLAGS="$BASE_CFLAGS"
  14495. SDL_LIBS="-lSDL2"
  14496. if test "x$BASE_LDFLAGS" != x; then
  14497. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14498. fi
  14499. if test "x$EXTRA_CFLAGS" != x; then
  14500. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14501. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14502. fi
  14503. if test "x$EXTRA_LDFLAGS" != x; then
  14504. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14505. fi
  14506. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14507. find_lib()
  14508. {
  14509. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14510. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14511. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14512. if test "$cross_compiling" = yes; then
  14513. host_lib_path=""
  14514. else
  14515. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14516. fi
  14517. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14518. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14519. if test x$lib != x; then
  14520. echo $lib
  14521. return
  14522. fi
  14523. done
  14524. # Try again, this time allowing more than one version digit after the .so
  14525. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14526. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14527. if test x$lib != x; then
  14528. echo $lib
  14529. return
  14530. fi
  14531. done
  14532. }
  14533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14534. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14535. if ${ac_cv_c_const+:} false; then :
  14536. $as_echo_n "(cached) " >&6
  14537. else
  14538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14539. /* end confdefs.h. */
  14540. int
  14541. main ()
  14542. {
  14543. #ifndef __cplusplus
  14544. /* Ultrix mips cc rejects this sort of thing. */
  14545. typedef int charset[2];
  14546. const charset cs = { 0, 0 };
  14547. /* SunOS 4.1.1 cc rejects this. */
  14548. char const *const *pcpcc;
  14549. char **ppc;
  14550. /* NEC SVR4.0.2 mips cc rejects this. */
  14551. struct point {int x, y;};
  14552. static struct point const zero = {0,0};
  14553. /* AIX XL C 1.02.0.0 rejects this.
  14554. It does not let you subtract one const X* pointer from another in
  14555. an arm of an if-expression whose if-part is not a constant
  14556. expression */
  14557. const char *g = "string";
  14558. pcpcc = &g + (g ? g-g : 0);
  14559. /* HPUX 7.0 cc rejects these. */
  14560. ++pcpcc;
  14561. ppc = (char**) pcpcc;
  14562. pcpcc = (char const *const *) ppc;
  14563. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14564. char tx;
  14565. char *t = &tx;
  14566. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14567. *t++ = 0;
  14568. if (s) return 0;
  14569. }
  14570. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14571. int x[] = {25, 17};
  14572. const int *foo = &x[0];
  14573. ++foo;
  14574. }
  14575. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14576. typedef const int *iptr;
  14577. iptr p = 0;
  14578. ++p;
  14579. }
  14580. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14581. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14582. struct s { int j; const int *ap[3]; } bx;
  14583. struct s *b = &bx; b->j = 5;
  14584. }
  14585. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14586. const int foo = 10;
  14587. if (!foo) return 0;
  14588. }
  14589. return !cs[0] && !zero.x;
  14590. #endif
  14591. ;
  14592. return 0;
  14593. }
  14594. _ACEOF
  14595. if ac_fn_c_try_compile "$LINENO"; then :
  14596. ac_cv_c_const=yes
  14597. else
  14598. ac_cv_c_const=no
  14599. fi
  14600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14601. fi
  14602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14603. $as_echo "$ac_cv_c_const" >&6; }
  14604. if test $ac_cv_c_const = no; then
  14605. $as_echo "#define const /**/" >>confdefs.h
  14606. fi
  14607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14608. $as_echo_n "checking for inline... " >&6; }
  14609. if ${ac_cv_c_inline+:} false; then :
  14610. $as_echo_n "(cached) " >&6
  14611. else
  14612. ac_cv_c_inline=no
  14613. for ac_kw in inline __inline__ __inline; do
  14614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14615. /* end confdefs.h. */
  14616. #ifndef __cplusplus
  14617. typedef int foo_t;
  14618. static $ac_kw foo_t static_foo () {return 0; }
  14619. $ac_kw foo_t foo () {return 0; }
  14620. #endif
  14621. _ACEOF
  14622. if ac_fn_c_try_compile "$LINENO"; then :
  14623. ac_cv_c_inline=$ac_kw
  14624. fi
  14625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14626. test "$ac_cv_c_inline" != no && break
  14627. done
  14628. fi
  14629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14630. $as_echo "$ac_cv_c_inline" >&6; }
  14631. case $ac_cv_c_inline in
  14632. inline | yes) ;;
  14633. *)
  14634. case $ac_cv_c_inline in
  14635. no) ac_val=;;
  14636. *) ac_val=$ac_cv_c_inline;;
  14637. esac
  14638. cat >>confdefs.h <<_ACEOF
  14639. #ifndef __cplusplus
  14640. #define inline $ac_val
  14641. #endif
  14642. _ACEOF
  14643. ;;
  14644. esac
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14646. $as_echo_n "checking for working volatile... " >&6; }
  14647. if ${ac_cv_c_volatile+:} false; then :
  14648. $as_echo_n "(cached) " >&6
  14649. else
  14650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14651. /* end confdefs.h. */
  14652. int
  14653. main ()
  14654. {
  14655. volatile int x;
  14656. int * volatile y = (int *) 0;
  14657. return !x && !y;
  14658. ;
  14659. return 0;
  14660. }
  14661. _ACEOF
  14662. if ac_fn_c_try_compile "$LINENO"; then :
  14663. ac_cv_c_volatile=yes
  14664. else
  14665. ac_cv_c_volatile=no
  14666. fi
  14667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14668. fi
  14669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14670. $as_echo "$ac_cv_c_volatile" >&6; }
  14671. if test $ac_cv_c_volatile = no; then
  14672. $as_echo "#define volatile /**/" >>confdefs.h
  14673. fi
  14674. # Check whether --enable-assertions was given.
  14675. if test "${enable_assertions+set}" = set; then :
  14676. enableval=$enable_assertions;
  14677. else
  14678. enable_assertions=auto
  14679. fi
  14680. case "$enable_assertions" in
  14681. auto) # Use optimization settings to determine assertion level
  14682. ;;
  14683. disabled)
  14684. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14685. ;;
  14686. release)
  14687. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14688. ;;
  14689. enabled)
  14690. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14691. ;;
  14692. paranoid)
  14693. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14694. ;;
  14695. *)
  14696. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14697. ;;
  14698. esac
  14699. # Check whether --enable-dependency-tracking was given.
  14700. if test "${enable_dependency_tracking+set}" = set; then :
  14701. enableval=$enable_dependency_tracking;
  14702. else
  14703. enable_dependency_tracking=yes
  14704. fi
  14705. if test x$enable_dependency_tracking = xyes; then
  14706. have_gcc_mmd_mt=no
  14707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14708. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14710. /* end confdefs.h. */
  14711. #if !defined(__GNUC__) || __GNUC__ < 3
  14712. #error Dependency tracking requires GCC 3.0 or newer
  14713. #endif
  14714. int
  14715. main ()
  14716. {
  14717. ;
  14718. return 0;
  14719. }
  14720. _ACEOF
  14721. if ac_fn_c_try_compile "$LINENO"; then :
  14722. have_gcc_mmd_mt=yes
  14723. fi
  14724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14726. $as_echo "$have_gcc_mmd_mt" >&6; }
  14727. if test x$have_gcc_mmd_mt = xyes; then
  14728. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14729. fi
  14730. fi
  14731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14732. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14733. have_no_undefined=no
  14734. case "$host" in
  14735. *-*-openbsd*)
  14736. ;;
  14737. *)
  14738. save_LDFLAGS="$LDFLAGS"
  14739. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14741. /* end confdefs.h. */
  14742. int
  14743. main ()
  14744. {
  14745. ;
  14746. return 0;
  14747. }
  14748. _ACEOF
  14749. if ac_fn_c_try_link "$LINENO"; then :
  14750. have_no_undefined=yes
  14751. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14752. fi
  14753. rm -f core conftest.err conftest.$ac_objext \
  14754. conftest$ac_exeext conftest.$ac_ext
  14755. LDFLAGS="$save_LDFLAGS"
  14756. ;;
  14757. esac
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14759. $as_echo "$have_no_undefined" >&6; }
  14760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14761. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14762. have_dynamicbase=no
  14763. case "$host" in
  14764. *)
  14765. save_LDFLAGS="$LDFLAGS"
  14766. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14768. /* end confdefs.h. */
  14769. int
  14770. main ()
  14771. {
  14772. ;
  14773. return 0;
  14774. }
  14775. _ACEOF
  14776. if ac_fn_c_try_link "$LINENO"; then :
  14777. have_dynamicbase=yes
  14778. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14779. fi
  14780. rm -f core conftest.err conftest.$ac_objext \
  14781. conftest$ac_exeext conftest.$ac_ext
  14782. LDFLAGS="$save_LDFLAGS"
  14783. ;;
  14784. esac
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14786. $as_echo "$have_dynamicbase" >&6; }
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14788. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14789. have_nxcompat=no
  14790. case "$host" in
  14791. *)
  14792. save_LDFLAGS="$LDFLAGS"
  14793. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14795. /* end confdefs.h. */
  14796. int
  14797. main ()
  14798. {
  14799. ;
  14800. return 0;
  14801. }
  14802. _ACEOF
  14803. if ac_fn_c_try_link "$LINENO"; then :
  14804. have_nxcompat=yes
  14805. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14806. fi
  14807. rm -f core conftest.err conftest.$ac_objext \
  14808. conftest$ac_exeext conftest.$ac_ext
  14809. LDFLAGS="$save_LDFLAGS"
  14810. ;;
  14811. esac
  14812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14813. $as_echo "$have_nxcompat" >&6; }
  14814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14815. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14816. have_high_entropy_va=no
  14817. case "$host" in
  14818. *)
  14819. save_LDFLAGS="$LDFLAGS"
  14820. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14822. /* end confdefs.h. */
  14823. int
  14824. main ()
  14825. {
  14826. ;
  14827. return 0;
  14828. }
  14829. _ACEOF
  14830. if ac_fn_c_try_link "$LINENO"; then :
  14831. have_high_entropy_va=yes
  14832. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14833. fi
  14834. rm -f core conftest.err conftest.$ac_objext \
  14835. conftest$ac_exeext conftest.$ac_ext
  14836. LDFLAGS="$save_LDFLAGS"
  14837. ;;
  14838. esac
  14839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14840. $as_echo "$have_high_entropy_va" >&6; }
  14841. # Check whether --enable-libc was given.
  14842. if test "${enable_libc+set}" = set; then :
  14843. enableval=$enable_libc;
  14844. else
  14845. enable_libc=yes
  14846. fi
  14847. if test x$enable_libc = xyes; then
  14848. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14850. $as_echo_n "checking for ANSI C header files... " >&6; }
  14851. if ${ac_cv_header_stdc+:} false; then :
  14852. $as_echo_n "(cached) " >&6
  14853. else
  14854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14855. /* end confdefs.h. */
  14856. #include <stdlib.h>
  14857. #include <stdarg.h>
  14858. #include <string.h>
  14859. #include <float.h>
  14860. int
  14861. main ()
  14862. {
  14863. ;
  14864. return 0;
  14865. }
  14866. _ACEOF
  14867. if ac_fn_c_try_compile "$LINENO"; then :
  14868. ac_cv_header_stdc=yes
  14869. else
  14870. ac_cv_header_stdc=no
  14871. fi
  14872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14873. if test $ac_cv_header_stdc = yes; then
  14874. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14876. /* end confdefs.h. */
  14877. #include <string.h>
  14878. _ACEOF
  14879. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14880. $EGREP "memchr" >/dev/null 2>&1; then :
  14881. else
  14882. ac_cv_header_stdc=no
  14883. fi
  14884. rm -f conftest*
  14885. fi
  14886. if test $ac_cv_header_stdc = yes; then
  14887. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14889. /* end confdefs.h. */
  14890. #include <stdlib.h>
  14891. _ACEOF
  14892. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14893. $EGREP "free" >/dev/null 2>&1; then :
  14894. else
  14895. ac_cv_header_stdc=no
  14896. fi
  14897. rm -f conftest*
  14898. fi
  14899. if test $ac_cv_header_stdc = yes; then
  14900. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14901. if test "$cross_compiling" = yes; then :
  14902. :
  14903. else
  14904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14905. /* end confdefs.h. */
  14906. #include <ctype.h>
  14907. #include <stdlib.h>
  14908. #if ((' ' & 0x0FF) == 0x020)
  14909. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14910. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14911. #else
  14912. # define ISLOWER(c) \
  14913. (('a' <= (c) && (c) <= 'i') \
  14914. || ('j' <= (c) && (c) <= 'r') \
  14915. || ('s' <= (c) && (c) <= 'z'))
  14916. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14917. #endif
  14918. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14919. int
  14920. main ()
  14921. {
  14922. int i;
  14923. for (i = 0; i < 256; i++)
  14924. if (XOR (islower (i), ISLOWER (i))
  14925. || toupper (i) != TOUPPER (i))
  14926. return 2;
  14927. return 0;
  14928. }
  14929. _ACEOF
  14930. if ac_fn_c_try_run "$LINENO"; then :
  14931. else
  14932. ac_cv_header_stdc=no
  14933. fi
  14934. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14935. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14936. fi
  14937. fi
  14938. fi
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14940. $as_echo "$ac_cv_header_stdc" >&6; }
  14941. if test $ac_cv_header_stdc = yes; then
  14942. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14943. fi
  14944. 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
  14945. do :
  14946. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14947. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14948. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14949. cat >>confdefs.h <<_ACEOF
  14950. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14951. _ACEOF
  14952. fi
  14953. done
  14954. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14955. if test "x$ac_cv_type_size_t" = xyes; then :
  14956. else
  14957. cat >>confdefs.h <<_ACEOF
  14958. #define size_t unsigned int
  14959. _ACEOF
  14960. fi
  14961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14962. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14963. if ${ac_cv_define_M_PI+:} false; then :
  14964. $as_echo_n "(cached) " >&6
  14965. else
  14966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14967. /* end confdefs.h. */
  14968. #include <math.h>
  14969. #ifdef M_PI
  14970. YES_IS_DEFINED
  14971. #endif
  14972. _ACEOF
  14973. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14974. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14975. ac_cv_define_M_PI=yes
  14976. else
  14977. ac_cv_define_M_PI=no
  14978. fi
  14979. rm -f conftest*
  14980. fi
  14981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14982. $as_echo "$ac_cv_define_M_PI" >&6; }
  14983. if test "$ac_cv_define_M_PI" = "yes" ; then
  14984. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14985. fi
  14986. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14987. # for constant arguments. Useless!
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14989. $as_echo_n "checking for working alloca.h... " >&6; }
  14990. if ${ac_cv_working_alloca_h+:} false; then :
  14991. $as_echo_n "(cached) " >&6
  14992. else
  14993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14994. /* end confdefs.h. */
  14995. #include <alloca.h>
  14996. int
  14997. main ()
  14998. {
  14999. char *p = (char *) alloca (2 * sizeof (int));
  15000. if (p) return 0;
  15001. ;
  15002. return 0;
  15003. }
  15004. _ACEOF
  15005. if ac_fn_c_try_link "$LINENO"; then :
  15006. ac_cv_working_alloca_h=yes
  15007. else
  15008. ac_cv_working_alloca_h=no
  15009. fi
  15010. rm -f core conftest.err conftest.$ac_objext \
  15011. conftest$ac_exeext conftest.$ac_ext
  15012. fi
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15014. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15015. if test $ac_cv_working_alloca_h = yes; then
  15016. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15017. fi
  15018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15019. $as_echo_n "checking for alloca... " >&6; }
  15020. if ${ac_cv_func_alloca_works+:} false; then :
  15021. $as_echo_n "(cached) " >&6
  15022. else
  15023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15024. /* end confdefs.h. */
  15025. #ifdef __GNUC__
  15026. # define alloca __builtin_alloca
  15027. #else
  15028. # ifdef _MSC_VER
  15029. # include <malloc.h>
  15030. # define alloca _alloca
  15031. # else
  15032. # ifdef HAVE_ALLOCA_H
  15033. # include <alloca.h>
  15034. # else
  15035. # ifdef _AIX
  15036. #pragma alloca
  15037. # else
  15038. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15039. void *alloca (size_t);
  15040. # endif
  15041. # endif
  15042. # endif
  15043. # endif
  15044. #endif
  15045. int
  15046. main ()
  15047. {
  15048. char *p = (char *) alloca (1);
  15049. if (p) return 0;
  15050. ;
  15051. return 0;
  15052. }
  15053. _ACEOF
  15054. if ac_fn_c_try_link "$LINENO"; then :
  15055. ac_cv_func_alloca_works=yes
  15056. else
  15057. ac_cv_func_alloca_works=no
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext \
  15060. conftest$ac_exeext conftest.$ac_ext
  15061. fi
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15063. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15064. if test $ac_cv_func_alloca_works = yes; then
  15065. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15066. else
  15067. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15068. # that cause trouble. Some versions do not even contain alloca or
  15069. # contain a buggy version. If you still want to use their alloca,
  15070. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15071. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15072. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15074. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15075. if ${ac_cv_os_cray+:} false; then :
  15076. $as_echo_n "(cached) " >&6
  15077. else
  15078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15079. /* end confdefs.h. */
  15080. #if defined CRAY && ! defined CRAY2
  15081. webecray
  15082. #else
  15083. wenotbecray
  15084. #endif
  15085. _ACEOF
  15086. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15087. $EGREP "webecray" >/dev/null 2>&1; then :
  15088. ac_cv_os_cray=yes
  15089. else
  15090. ac_cv_os_cray=no
  15091. fi
  15092. rm -f conftest*
  15093. fi
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15095. $as_echo "$ac_cv_os_cray" >&6; }
  15096. if test $ac_cv_os_cray = yes; then
  15097. for ac_func in _getb67 GETB67 getb67; do
  15098. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15099. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15100. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15101. cat >>confdefs.h <<_ACEOF
  15102. #define CRAY_STACKSEG_END $ac_func
  15103. _ACEOF
  15104. break
  15105. fi
  15106. done
  15107. fi
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15109. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15110. if ${ac_cv_c_stack_direction+:} false; then :
  15111. $as_echo_n "(cached) " >&6
  15112. else
  15113. if test "$cross_compiling" = yes; then :
  15114. ac_cv_c_stack_direction=0
  15115. else
  15116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15117. /* end confdefs.h. */
  15118. $ac_includes_default
  15119. int
  15120. find_stack_direction (int *addr, int depth)
  15121. {
  15122. int dir, dummy = 0;
  15123. if (! addr)
  15124. addr = &dummy;
  15125. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15126. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15127. return dir + dummy;
  15128. }
  15129. int
  15130. main (int argc, char **argv)
  15131. {
  15132. return find_stack_direction (0, argc + !argv + 20) < 0;
  15133. }
  15134. _ACEOF
  15135. if ac_fn_c_try_run "$LINENO"; then :
  15136. ac_cv_c_stack_direction=1
  15137. else
  15138. ac_cv_c_stack_direction=-1
  15139. fi
  15140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15141. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15142. fi
  15143. fi
  15144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15145. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15146. cat >>confdefs.h <<_ACEOF
  15147. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15148. _ACEOF
  15149. fi
  15150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15151. $as_echo_n "checking for working memcmp... " >&6; }
  15152. if ${ac_cv_func_memcmp_working+:} false; then :
  15153. $as_echo_n "(cached) " >&6
  15154. else
  15155. if test "$cross_compiling" = yes; then :
  15156. ac_cv_func_memcmp_working=no
  15157. else
  15158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15159. /* end confdefs.h. */
  15160. $ac_includes_default
  15161. int
  15162. main ()
  15163. {
  15164. /* Some versions of memcmp are not 8-bit clean. */
  15165. char c0 = '\100', c1 = '\200', c2 = '\201';
  15166. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15167. return 1;
  15168. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15169. or more and with at least one buffer not starting on a 4-byte boundary.
  15170. William Lewis provided this test program. */
  15171. {
  15172. char foo[21];
  15173. char bar[21];
  15174. int i;
  15175. for (i = 0; i < 4; i++)
  15176. {
  15177. char *a = foo + i;
  15178. char *b = bar + i;
  15179. strcpy (a, "--------01111111");
  15180. strcpy (b, "--------10000000");
  15181. if (memcmp (a, b, 16) >= 0)
  15182. return 1;
  15183. }
  15184. return 0;
  15185. }
  15186. ;
  15187. return 0;
  15188. }
  15189. _ACEOF
  15190. if ac_fn_c_try_run "$LINENO"; then :
  15191. ac_cv_func_memcmp_working=yes
  15192. else
  15193. ac_cv_func_memcmp_working=no
  15194. fi
  15195. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15196. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15197. fi
  15198. fi
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15200. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15201. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15202. *" memcmp.$ac_objext "* ) ;;
  15203. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15204. ;;
  15205. esac
  15206. if test x$ac_cv_func_memcmp_working = xyes; then
  15207. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15208. fi
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15210. $as_echo_n "checking for working strtod... " >&6; }
  15211. if ${ac_cv_func_strtod+:} false; then :
  15212. $as_echo_n "(cached) " >&6
  15213. else
  15214. if test "$cross_compiling" = yes; then :
  15215. ac_cv_func_strtod=no
  15216. else
  15217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15218. /* end confdefs.h. */
  15219. $ac_includes_default
  15220. #ifndef strtod
  15221. double strtod ();
  15222. #endif
  15223. int
  15224. main()
  15225. {
  15226. {
  15227. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15228. char *string = " +69";
  15229. char *term;
  15230. double value;
  15231. value = strtod (string, &term);
  15232. if (value != 69 || term != (string + 4))
  15233. return 1;
  15234. }
  15235. {
  15236. /* Under Solaris 2.4, strtod returns the wrong value for the
  15237. terminating character under some conditions. */
  15238. char *string = "NaN";
  15239. char *term;
  15240. strtod (string, &term);
  15241. if (term != string && *(term - 1) == 0)
  15242. return 1;
  15243. }
  15244. return 0;
  15245. }
  15246. _ACEOF
  15247. if ac_fn_c_try_run "$LINENO"; then :
  15248. ac_cv_func_strtod=yes
  15249. else
  15250. ac_cv_func_strtod=no
  15251. fi
  15252. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15253. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15254. fi
  15255. fi
  15256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15257. $as_echo "$ac_cv_func_strtod" >&6; }
  15258. if test $ac_cv_func_strtod = no; then
  15259. case " $LIBOBJS " in
  15260. *" strtod.$ac_objext "* ) ;;
  15261. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15262. ;;
  15263. esac
  15264. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15265. if test "x$ac_cv_func_pow" = xyes; then :
  15266. fi
  15267. if test $ac_cv_func_pow = no; then
  15268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15269. $as_echo_n "checking for pow in -lm... " >&6; }
  15270. if ${ac_cv_lib_m_pow+:} false; then :
  15271. $as_echo_n "(cached) " >&6
  15272. else
  15273. ac_check_lib_save_LIBS=$LIBS
  15274. LIBS="-lm $LIBS"
  15275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15276. /* end confdefs.h. */
  15277. /* Override any GCC internal prototype to avoid an error.
  15278. Use char because int might match the return type of a GCC
  15279. builtin and then its argument prototype would still apply. */
  15280. #ifdef __cplusplus
  15281. extern "C"
  15282. #endif
  15283. char pow ();
  15284. int
  15285. main ()
  15286. {
  15287. return pow ();
  15288. ;
  15289. return 0;
  15290. }
  15291. _ACEOF
  15292. if ac_fn_c_try_link "$LINENO"; then :
  15293. ac_cv_lib_m_pow=yes
  15294. else
  15295. ac_cv_lib_m_pow=no
  15296. fi
  15297. rm -f core conftest.err conftest.$ac_objext \
  15298. conftest$ac_exeext conftest.$ac_ext
  15299. LIBS=$ac_check_lib_save_LIBS
  15300. fi
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15302. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15303. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15304. POW_LIB=-lm
  15305. else
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15307. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15308. fi
  15309. fi
  15310. fi
  15311. if test x$ac_cv_func_strtod = xyes; then
  15312. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15313. fi
  15314. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15315. if test "x$ac_cv_func_mprotect" = xyes; then :
  15316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15317. /* end confdefs.h. */
  15318. #include <sys/types.h>
  15319. #include <sys/mman.h>
  15320. int
  15321. main ()
  15322. {
  15323. ;
  15324. return 0;
  15325. }
  15326. _ACEOF
  15327. if ac_fn_c_try_compile "$LINENO"; then :
  15328. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15329. fi
  15330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15331. fi
  15332. 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
  15333. do :
  15334. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15335. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15336. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15337. cat >>confdefs.h <<_ACEOF
  15338. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15339. _ACEOF
  15340. fi
  15341. done
  15342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15343. $as_echo_n "checking for pow in -lm... " >&6; }
  15344. if ${ac_cv_lib_m_pow+:} false; then :
  15345. $as_echo_n "(cached) " >&6
  15346. else
  15347. ac_check_lib_save_LIBS=$LIBS
  15348. LIBS="-lm $LIBS"
  15349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15350. /* end confdefs.h. */
  15351. /* Override any GCC internal prototype to avoid an error.
  15352. Use char because int might match the return type of a GCC
  15353. builtin and then its argument prototype would still apply. */
  15354. #ifdef __cplusplus
  15355. extern "C"
  15356. #endif
  15357. char pow ();
  15358. int
  15359. main ()
  15360. {
  15361. return pow ();
  15362. ;
  15363. return 0;
  15364. }
  15365. _ACEOF
  15366. if ac_fn_c_try_link "$LINENO"; then :
  15367. ac_cv_lib_m_pow=yes
  15368. else
  15369. ac_cv_lib_m_pow=no
  15370. fi
  15371. rm -f core conftest.err conftest.$ac_objext \
  15372. conftest$ac_exeext conftest.$ac_ext
  15373. LIBS=$ac_check_lib_save_LIBS
  15374. fi
  15375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15376. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15377. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15378. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15379. fi
  15380. 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
  15381. do :
  15382. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15383. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15384. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15385. cat >>confdefs.h <<_ACEOF
  15386. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15387. _ACEOF
  15388. fi
  15389. done
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15391. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15392. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15393. $as_echo_n "(cached) " >&6
  15394. else
  15395. ac_check_lib_save_LIBS=$LIBS
  15396. LIBS="-liconv $LIBS"
  15397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15398. /* end confdefs.h. */
  15399. /* Override any GCC internal prototype to avoid an error.
  15400. Use char because int might match the return type of a GCC
  15401. builtin and then its argument prototype would still apply. */
  15402. #ifdef __cplusplus
  15403. extern "C"
  15404. #endif
  15405. char iconv_open ();
  15406. int
  15407. main ()
  15408. {
  15409. return iconv_open ();
  15410. ;
  15411. return 0;
  15412. }
  15413. _ACEOF
  15414. if ac_fn_c_try_link "$LINENO"; then :
  15415. ac_cv_lib_iconv_iconv_open=yes
  15416. else
  15417. ac_cv_lib_iconv_iconv_open=no
  15418. fi
  15419. rm -f core conftest.err conftest.$ac_objext \
  15420. conftest$ac_exeext conftest.$ac_ext
  15421. LIBS=$ac_check_lib_save_LIBS
  15422. fi
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15424. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15425. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15426. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15427. fi
  15428. for ac_func in iconv
  15429. do :
  15430. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15431. if test "x$ac_cv_func_iconv" = xyes; then :
  15432. cat >>confdefs.h <<_ACEOF
  15433. #define HAVE_ICONV 1
  15434. _ACEOF
  15435. fi
  15436. done
  15437. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15438. "
  15439. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15440. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15441. fi
  15442. for ac_header in libunwind.h
  15443. do :
  15444. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15445. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15446. cat >>confdefs.h <<_ACEOF
  15447. #define HAVE_LIBUNWIND_H 1
  15448. _ACEOF
  15449. fi
  15450. done
  15451. fi
  15452. # Check whether --enable-gcc-atomics was given.
  15453. if test "${enable_gcc_atomics+set}" = set; then :
  15454. enableval=$enable_gcc_atomics;
  15455. else
  15456. enable_gcc_atomics=yes
  15457. fi
  15458. if test x$enable_gcc_atomics = xyes; then
  15459. have_gcc_atomics=no
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15461. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15463. /* end confdefs.h. */
  15464. int
  15465. main ()
  15466. {
  15467. int a;
  15468. void *x, *y, *z;
  15469. __sync_lock_test_and_set(&a, 4);
  15470. __sync_lock_test_and_set(&x, y);
  15471. __sync_fetch_and_add(&a, 1);
  15472. __sync_bool_compare_and_swap(&a, 5, 10);
  15473. __sync_bool_compare_and_swap(&x, y, z);
  15474. ;
  15475. return 0;
  15476. }
  15477. _ACEOF
  15478. if ac_fn_c_try_link "$LINENO"; then :
  15479. have_gcc_atomics=yes
  15480. fi
  15481. rm -f core conftest.err conftest.$ac_objext \
  15482. conftest$ac_exeext conftest.$ac_ext
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15484. $as_echo "$have_gcc_atomics" >&6; }
  15485. if test x$have_gcc_atomics = xyes; then
  15486. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15487. else
  15488. # See if we have the minimum operation needed for GCC atomics
  15489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15490. /* end confdefs.h. */
  15491. int
  15492. main ()
  15493. {
  15494. int a;
  15495. __sync_lock_test_and_set(&a, 1);
  15496. __sync_lock_release(&a);
  15497. ;
  15498. return 0;
  15499. }
  15500. _ACEOF
  15501. if ac_fn_c_try_link "$LINENO"; then :
  15502. have_gcc_sync_lock_test_and_set=yes
  15503. fi
  15504. rm -f core conftest.err conftest.$ac_objext \
  15505. conftest$ac_exeext conftest.$ac_ext
  15506. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15507. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15508. fi
  15509. fi
  15510. fi
  15511. # Standard C sources
  15512. SOURCES="$SOURCES $srcdir/src/*.c"
  15513. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15514. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15515. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15516. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15517. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15518. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15519. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15520. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15521. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15522. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15523. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15524. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15525. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15526. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15527. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15528. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15532. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15535. # Check whether --enable-atomic was given.
  15536. if test "${enable_atomic+set}" = set; then :
  15537. enableval=$enable_atomic;
  15538. else
  15539. case "$host" in
  15540. *-*-emscripten*)
  15541. enable_atomic=no;;
  15542. *)
  15543. enable_atomic=yes;;
  15544. esac
  15545. fi
  15546. if test x$enable_atomic != xyes; then
  15547. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15548. else
  15549. SUMMARY_modules="${SUMMARY_modules} atomic"
  15550. fi
  15551. # Check whether --enable-audio was given.
  15552. if test "${enable_audio+set}" = set; then :
  15553. enableval=$enable_audio;
  15554. else
  15555. enable_audio=yes
  15556. fi
  15557. if test x$enable_audio != xyes; then
  15558. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15559. else
  15560. SUMMARY_modules="${SUMMARY_modules} audio"
  15561. fi
  15562. # Check whether --enable-video was given.
  15563. if test "${enable_video+set}" = set; then :
  15564. enableval=$enable_video;
  15565. else
  15566. enable_video=yes
  15567. fi
  15568. if test x$enable_video != xyes; then
  15569. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15570. else
  15571. SUMMARY_modules="${SUMMARY_modules} video"
  15572. fi
  15573. # Check whether --enable-render was given.
  15574. if test "${enable_render+set}" = set; then :
  15575. enableval=$enable_render;
  15576. else
  15577. enable_render=yes
  15578. fi
  15579. if test x$enable_render != xyes; then
  15580. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15581. else
  15582. SUMMARY_modules="${SUMMARY_modules} render"
  15583. fi
  15584. # Check whether --enable-events was given.
  15585. if test "${enable_events+set}" = set; then :
  15586. enableval=$enable_events;
  15587. else
  15588. enable_events=yes
  15589. fi
  15590. if test x$enable_events != xyes; then
  15591. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15592. else
  15593. SUMMARY_modules="${SUMMARY_modules} events"
  15594. fi
  15595. # Check whether --enable-joystick was given.
  15596. if test "${enable_joystick+set}" = set; then :
  15597. enableval=$enable_joystick;
  15598. else
  15599. enable_joystick=yes
  15600. fi
  15601. if test x$enable_joystick != xyes; then
  15602. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15603. else
  15604. SUMMARY_modules="${SUMMARY_modules} joystick"
  15605. fi
  15606. # Check whether --enable-haptic was given.
  15607. if test "${enable_haptic+set}" = set; then :
  15608. enableval=$enable_haptic;
  15609. else
  15610. enable_haptic=yes
  15611. fi
  15612. if test x$enable_haptic != xyes; then
  15613. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15614. else
  15615. SUMMARY_modules="${SUMMARY_modules} haptic"
  15616. fi
  15617. # Check whether --enable-hidapi was given.
  15618. if test "${enable_hidapi+set}" = set; then :
  15619. enableval=$enable_hidapi;
  15620. else
  15621. enable_hidapi=yes
  15622. fi
  15623. if test x$enable_hidapi != xyes; then
  15624. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15625. else
  15626. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15627. fi
  15628. # Check whether --enable-sensor was given.
  15629. if test "${enable_sensor+set}" = set; then :
  15630. enableval=$enable_sensor;
  15631. else
  15632. enable_sensor=yes
  15633. fi
  15634. if test x$enable_sensor != xyes; then
  15635. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15636. else
  15637. SUMMARY_modules="${SUMMARY_modules} sensor"
  15638. fi
  15639. # Check whether --enable-power was given.
  15640. if test "${enable_power+set}" = set; then :
  15641. enableval=$enable_power;
  15642. else
  15643. enable_power=yes
  15644. fi
  15645. if test x$enable_power != xyes; then
  15646. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15647. else
  15648. SUMMARY_modules="${SUMMARY_modules} power"
  15649. fi
  15650. # Check whether --enable-filesystem was given.
  15651. if test "${enable_filesystem+set}" = set; then :
  15652. enableval=$enable_filesystem;
  15653. else
  15654. enable_filesystem=yes
  15655. fi
  15656. if test x$enable_filesystem != xyes; then
  15657. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15658. else
  15659. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15660. fi
  15661. # Check whether --enable-misc was given.
  15662. if test "${enable_misc+set}" = set; then :
  15663. enableval=$enable_misc;
  15664. else
  15665. enable_misc=yes
  15666. fi
  15667. if test x$enable_misc != xyes; then
  15668. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15669. else
  15670. SUMMARY_modules="${SUMMARY_modules} misc"
  15671. fi
  15672. # Check whether --enable-locale was given.
  15673. if test "${enable_locale+set}" = set; then :
  15674. enableval=$enable_locale;
  15675. else
  15676. enable_locale=yes
  15677. fi
  15678. if test x$enable_locale != xyes; then
  15679. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15680. else
  15681. SUMMARY_modules="${SUMMARY_modules} locale"
  15682. fi
  15683. # Check whether --enable-threads was given.
  15684. if test "${enable_threads+set}" = set; then :
  15685. enableval=$enable_threads;
  15686. else
  15687. enable_threads=yes
  15688. fi
  15689. if test x$enable_threads != xyes; then
  15690. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15691. else
  15692. SUMMARY_modules="${SUMMARY_modules} threads"
  15693. fi
  15694. # Check whether --enable-timers was given.
  15695. if test "${enable_timers+set}" = set; then :
  15696. enableval=$enable_timers;
  15697. else
  15698. enable_timers=yes
  15699. fi
  15700. if test x$enable_timers != xyes; then
  15701. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15702. else
  15703. SUMMARY_modules="${SUMMARY_modules} timers"
  15704. fi
  15705. # Check whether --enable-file was given.
  15706. if test "${enable_file+set}" = set; then :
  15707. enableval=$enable_file;
  15708. else
  15709. enable_file=yes
  15710. fi
  15711. if test x$enable_file != xyes; then
  15712. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15713. else
  15714. SUMMARY_modules="${SUMMARY_modules} file"
  15715. fi
  15716. # Check whether --enable-loadso was given.
  15717. if test "${enable_loadso+set}" = set; then :
  15718. enableval=$enable_loadso;
  15719. else
  15720. enable_loadso=yes
  15721. fi
  15722. if test x$enable_loadso != xyes; then
  15723. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15724. else
  15725. SUMMARY_modules="${SUMMARY_modules} loadso"
  15726. fi
  15727. # Check whether --enable-cpuinfo was given.
  15728. if test "${enable_cpuinfo+set}" = set; then :
  15729. enableval=$enable_cpuinfo;
  15730. else
  15731. enable_cpuinfo=yes
  15732. fi
  15733. if test x$enable_cpuinfo != xyes; then
  15734. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15735. else
  15736. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15737. fi
  15738. # Check whether --enable-assembly was given.
  15739. if test "${enable_assembly+set}" = set; then :
  15740. enableval=$enable_assembly;
  15741. else
  15742. enable_assembly=yes
  15743. fi
  15744. if test x$enable_assembly = xyes; then
  15745. SUMMARY_modules="${SUMMARY_modules} assembly"
  15746. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15747. # Make sure that we don't generate floating point code that would
  15748. # cause illegal instruction exceptions on older processors
  15749. case "$host" in
  15750. *-*-darwin*)
  15751. # Don't need to worry about Apple hardware, it's all SSE capable
  15752. default_ssemath=yes
  15753. ;;
  15754. *64-*-*)
  15755. # x86 64-bit architectures all have SSE instructions
  15756. default_ssemath=yes
  15757. ;;
  15758. *)
  15759. default_ssemath=no
  15760. ;;
  15761. esac
  15762. # Check whether --enable-ssemath was given.
  15763. if test "${enable_ssemath+set}" = set; then :
  15764. enableval=$enable_ssemath;
  15765. else
  15766. enable_ssemath=$default_ssemath
  15767. fi
  15768. if test x$enable_ssemath = xno; then
  15769. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15770. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15771. fi
  15772. fi
  15773. # Check whether --enable-mmx was given.
  15774. if test "${enable_mmx+set}" = set; then :
  15775. enableval=$enable_mmx;
  15776. else
  15777. enable_mmx=yes
  15778. fi
  15779. if test x$enable_mmx = xyes; then
  15780. save_CFLAGS="$CFLAGS"
  15781. have_gcc_mmx=no
  15782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15783. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15784. mmx_CFLAGS="-mmmx"
  15785. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15787. /* end confdefs.h. */
  15788. #ifdef __MINGW32__
  15789. #include <_mingw.h>
  15790. #ifdef __MINGW64_VERSION_MAJOR
  15791. #include <intrin.h>
  15792. #else
  15793. #include <mmintrin.h>
  15794. #endif
  15795. #else
  15796. #include <mmintrin.h>
  15797. #endif
  15798. #ifndef __MMX__
  15799. #error Assembler CPP flag not enabled
  15800. #endif
  15801. int
  15802. main ()
  15803. {
  15804. ;
  15805. return 0;
  15806. }
  15807. _ACEOF
  15808. if ac_fn_c_try_compile "$LINENO"; then :
  15809. have_gcc_mmx=yes
  15810. fi
  15811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15813. $as_echo "$have_gcc_mmx" >&6; }
  15814. CFLAGS="$save_CFLAGS"
  15815. if test x$have_gcc_mmx = xyes; then
  15816. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15817. SUMMARY_math="${SUMMARY_math} mmx"
  15818. fi
  15819. fi
  15820. # Check whether --enable-3dnow was given.
  15821. if test "${enable_3dnow+set}" = set; then :
  15822. enableval=$enable_3dnow;
  15823. else
  15824. enable_3dnow=yes
  15825. fi
  15826. if test x$enable_3dnow = xyes; then
  15827. save_CFLAGS="$CFLAGS"
  15828. have_gcc_3dnow=no
  15829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15830. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15831. amd3dnow_CFLAGS="-m3dnow"
  15832. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15834. /* end confdefs.h. */
  15835. #include <mm3dnow.h>
  15836. #ifndef __3dNOW__
  15837. #error Assembler CPP flag not enabled
  15838. #endif
  15839. int
  15840. main ()
  15841. {
  15842. void *p = 0;
  15843. _m_prefetch(p);
  15844. ;
  15845. return 0;
  15846. }
  15847. _ACEOF
  15848. if ac_fn_c_try_link "$LINENO"; then :
  15849. have_gcc_3dnow=yes
  15850. fi
  15851. rm -f core conftest.err conftest.$ac_objext \
  15852. conftest$ac_exeext conftest.$ac_ext
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15854. $as_echo "$have_gcc_3dnow" >&6; }
  15855. CFLAGS="$save_CFLAGS"
  15856. if test x$have_gcc_3dnow = xyes; then
  15857. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15858. SUMMARY_math="${SUMMARY_math} 3dnow"
  15859. fi
  15860. fi
  15861. # Check whether --enable-sse was given.
  15862. if test "${enable_sse+set}" = set; then :
  15863. enableval=$enable_sse;
  15864. else
  15865. enable_sse=yes
  15866. fi
  15867. if test x$enable_sse = xyes; then
  15868. save_CFLAGS="$CFLAGS"
  15869. have_gcc_sse=no
  15870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15871. $as_echo_n "checking for GCC -msse option... " >&6; }
  15872. sse_CFLAGS="-msse"
  15873. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15875. /* end confdefs.h. */
  15876. #ifdef __MINGW32__
  15877. #include <_mingw.h>
  15878. #ifdef __MINGW64_VERSION_MAJOR
  15879. #include <intrin.h>
  15880. #else
  15881. #include <xmmintrin.h>
  15882. #endif
  15883. #else
  15884. #include <xmmintrin.h>
  15885. #endif
  15886. #ifndef __SSE__
  15887. #error Assembler CPP flag not enabled
  15888. #endif
  15889. int
  15890. main ()
  15891. {
  15892. ;
  15893. return 0;
  15894. }
  15895. _ACEOF
  15896. if ac_fn_c_try_compile "$LINENO"; then :
  15897. have_gcc_sse=yes
  15898. fi
  15899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15901. $as_echo "$have_gcc_sse" >&6; }
  15902. CFLAGS="$save_CFLAGS"
  15903. if test x$have_gcc_sse = xyes; then
  15904. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15905. SUMMARY_math="${SUMMARY_math} sse"
  15906. fi
  15907. fi
  15908. # Check whether --enable-sse2 was given.
  15909. if test "${enable_sse2+set}" = set; then :
  15910. enableval=$enable_sse2;
  15911. else
  15912. enable_sse2=$default_ssemath
  15913. fi
  15914. if test x$enable_sse2 = xyes; then
  15915. save_CFLAGS="$CFLAGS"
  15916. have_gcc_sse2=no
  15917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15918. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15919. sse2_CFLAGS="-msse2"
  15920. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15922. /* end confdefs.h. */
  15923. #ifdef __MINGW32__
  15924. #include <_mingw.h>
  15925. #ifdef __MINGW64_VERSION_MAJOR
  15926. #include <intrin.h>
  15927. #else
  15928. #include <emmintrin.h>
  15929. #endif
  15930. #else
  15931. #include <emmintrin.h>
  15932. #endif
  15933. #ifndef __SSE2__
  15934. #error Assembler CPP flag not enabled
  15935. #endif
  15936. int
  15937. main ()
  15938. {
  15939. ;
  15940. return 0;
  15941. }
  15942. _ACEOF
  15943. if ac_fn_c_try_compile "$LINENO"; then :
  15944. have_gcc_sse2=yes
  15945. fi
  15946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15948. $as_echo "$have_gcc_sse2" >&6; }
  15949. CFLAGS="$save_CFLAGS"
  15950. if test x$have_gcc_sse2 = xyes; then
  15951. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15952. SUMMARY_math="${SUMMARY_math} sse2"
  15953. fi
  15954. fi
  15955. # Check whether --enable-sse3 was given.
  15956. if test "${enable_sse3+set}" = set; then :
  15957. enableval=$enable_sse3;
  15958. else
  15959. enable_sse3=$default_ssemath
  15960. fi
  15961. if test x$enable_sse3 = xyes; then
  15962. save_CFLAGS="$CFLAGS"
  15963. have_gcc_sse3=no
  15964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15965. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15966. sse3_CFLAGS="-msse3"
  15967. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15969. /* end confdefs.h. */
  15970. #ifdef __MINGW32__
  15971. #include <_mingw.h>
  15972. #ifdef __MINGW64_VERSION_MAJOR
  15973. #include <intrin.h>
  15974. #else
  15975. #include <pmmintrin.h>
  15976. #endif
  15977. #else
  15978. #include <pmmintrin.h>
  15979. #endif
  15980. #ifndef __SSE2__
  15981. #error Assembler CPP flag not enabled
  15982. #endif
  15983. int
  15984. main ()
  15985. {
  15986. ;
  15987. return 0;
  15988. }
  15989. _ACEOF
  15990. if ac_fn_c_try_compile "$LINENO"; then :
  15991. have_gcc_sse3=yes
  15992. fi
  15993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15995. $as_echo "$have_gcc_sse3" >&6; }
  15996. CFLAGS="$save_CFLAGS"
  15997. if test x$have_gcc_sse3 = xyes; then
  15998. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15999. SUMMARY_math="${SUMMARY_math} sse3"
  16000. fi
  16001. fi
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16003. $as_echo_n "checking for immintrin.h... " >&6; }
  16004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16005. /* end confdefs.h. */
  16006. #include <immintrin.h>
  16007. int
  16008. main ()
  16009. {
  16010. ;
  16011. return 0;
  16012. }
  16013. _ACEOF
  16014. if ac_fn_c_try_compile "$LINENO"; then :
  16015. have_immintrin_h_hdr=yes
  16016. else
  16017. have_immintrin_h_hdr=no
  16018. fi
  16019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16021. $as_echo "$have_immintrin_h_hdr" >&6; }
  16022. if test x$have_immintrin_h_hdr = xyes; then
  16023. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16024. fi
  16025. # Check whether --enable-altivec was given.
  16026. if test "${enable_altivec+set}" = set; then :
  16027. enableval=$enable_altivec;
  16028. else
  16029. enable_altivec=yes
  16030. fi
  16031. if test x$enable_altivec = xyes; then
  16032. save_CFLAGS="$CFLAGS"
  16033. have_gcc_altivec=no
  16034. have_altivec_h_hdr=no
  16035. altivec_CFLAGS="-maltivec"
  16036. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16038. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16040. /* end confdefs.h. */
  16041. #include <altivec.h>
  16042. vector unsigned int vzero() {
  16043. return vec_splat_u32(0);
  16044. }
  16045. int
  16046. main ()
  16047. {
  16048. ;
  16049. return 0;
  16050. }
  16051. _ACEOF
  16052. if ac_fn_c_try_compile "$LINENO"; then :
  16053. have_gcc_altivec=yes
  16054. have_altivec_h_hdr=yes
  16055. fi
  16056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16058. $as_echo "$have_gcc_altivec" >&6; }
  16059. if test x$have_gcc_altivec = xno; then
  16060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16061. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16063. /* end confdefs.h. */
  16064. vector unsigned int vzero() {
  16065. return vec_splat_u32(0);
  16066. }
  16067. int
  16068. main ()
  16069. {
  16070. ;
  16071. return 0;
  16072. }
  16073. _ACEOF
  16074. if ac_fn_c_try_compile "$LINENO"; then :
  16075. have_gcc_altivec=yes
  16076. fi
  16077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16079. $as_echo "$have_gcc_altivec" >&6; }
  16080. fi
  16081. if test x$have_gcc_altivec = xno; then
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16083. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16084. altivec_CFLAGS="-faltivec"
  16085. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16087. /* end confdefs.h. */
  16088. #include <altivec.h>
  16089. vector unsigned int vzero() {
  16090. return vec_splat_u32(0);
  16091. }
  16092. int
  16093. main ()
  16094. {
  16095. ;
  16096. return 0;
  16097. }
  16098. _ACEOF
  16099. if ac_fn_c_try_compile "$LINENO"; then :
  16100. have_gcc_altivec=yes
  16101. have_altivec_h_hdr=yes
  16102. fi
  16103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16105. $as_echo "$have_gcc_altivec" >&6; }
  16106. fi
  16107. if test x$have_gcc_altivec = xno; then
  16108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16109. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16111. /* end confdefs.h. */
  16112. vector unsigned int vzero() {
  16113. return vec_splat_u32(0);
  16114. }
  16115. int
  16116. main ()
  16117. {
  16118. ;
  16119. return 0;
  16120. }
  16121. _ACEOF
  16122. if ac_fn_c_try_compile "$LINENO"; then :
  16123. have_gcc_altivec=yes
  16124. fi
  16125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16127. $as_echo "$have_gcc_altivec" >&6; }
  16128. fi
  16129. CFLAGS="$save_CFLAGS"
  16130. if test x$have_gcc_altivec = xyes; then
  16131. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16132. if test x$have_altivec_h_hdr = xyes; then
  16133. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16134. fi
  16135. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16136. SUMMARY_math="${SUMMARY_math} altivec"
  16137. fi
  16138. fi
  16139. fi
  16140. CheckOSS()
  16141. {
  16142. # Check whether --enable-oss was given.
  16143. if test "${enable_oss+set}" = set; then :
  16144. enableval=$enable_oss;
  16145. else
  16146. enable_oss=maybe
  16147. fi
  16148. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16149. # use sndio instead. So on there, we default to disabled. You can force
  16150. # it on if you really want, though.
  16151. if test x$enable_oss = xmaybe; then
  16152. enable_oss=yes
  16153. case "$host" in
  16154. *-*-openbsd*)
  16155. enable_oss=no;;
  16156. esac
  16157. fi
  16158. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16160. $as_echo_n "checking for OSS audio support... " >&6; }
  16161. have_oss=no
  16162. if test x$have_oss != xyes; then
  16163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16164. /* end confdefs.h. */
  16165. #include <sys/soundcard.h>
  16166. int
  16167. main ()
  16168. {
  16169. int arg = SNDCTL_DSP_SETFRAGMENT;
  16170. ;
  16171. return 0;
  16172. }
  16173. _ACEOF
  16174. if ac_fn_c_try_compile "$LINENO"; then :
  16175. have_oss=yes
  16176. fi
  16177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16178. fi
  16179. if test x$have_oss != xyes; then
  16180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16181. /* end confdefs.h. */
  16182. #include <soundcard.h>
  16183. int
  16184. main ()
  16185. {
  16186. int arg = SNDCTL_DSP_SETFRAGMENT;
  16187. ;
  16188. return 0;
  16189. }
  16190. _ACEOF
  16191. if ac_fn_c_try_compile "$LINENO"; then :
  16192. have_oss=yes
  16193. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16194. fi
  16195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16196. fi
  16197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16198. $as_echo "$have_oss" >&6; }
  16199. if test x$have_oss = xyes; then
  16200. SUMMARY_audio="${SUMMARY_audio} oss"
  16201. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16202. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16203. have_audio=yes
  16204. # We may need to link with ossaudio emulation library
  16205. case "$host" in
  16206. *-*-openbsd*|*-*-netbsd*)
  16207. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16208. esac
  16209. fi
  16210. fi
  16211. }
  16212. CheckALSA()
  16213. {
  16214. # Check whether --enable-alsa was given.
  16215. if test "${enable_alsa+set}" = set; then :
  16216. enableval=$enable_alsa;
  16217. else
  16218. enable_alsa=yes
  16219. fi
  16220. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16221. alsa_save_CFLAGS="$CFLAGS"
  16222. alsa_save_LDFLAGS="$LDFLAGS"
  16223. alsa_save_LIBS="$LIBS"
  16224. alsa_found=yes
  16225. # Check whether --with-alsa-prefix was given.
  16226. if test "${with_alsa_prefix+set}" = set; then :
  16227. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16228. else
  16229. alsa_prefix=""
  16230. fi
  16231. # Check whether --with-alsa-inc-prefix was given.
  16232. if test "${with_alsa_inc_prefix+set}" = set; then :
  16233. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16234. else
  16235. alsa_inc_prefix=""
  16236. fi
  16237. # Check whether --enable-alsatest was given.
  16238. if test "${enable_alsatest+set}" = set; then :
  16239. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16240. else
  16241. enable_alsatest=yes
  16242. fi
  16243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16244. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16245. if test "$alsa_inc_prefix" != "" ; then
  16246. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16247. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16248. fi
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16250. $as_echo "$ALSA_CFLAGS" >&6; }
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16252. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16253. if test "$alsa_prefix" != "" ; then
  16254. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16255. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16256. fi
  16257. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16258. LIBS=`echo $LIBS | sed 's/-lm//'`
  16259. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16260. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16261. LIBS=`echo $LIBS | sed 's/ //'`
  16262. LIBS="$ALSA_LIBS $LIBS"
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16264. $as_echo "$ALSA_LIBS" >&6; }
  16265. min_alsa_version=1.0.11
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16267. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16268. no_alsa=""
  16269. alsa_min_major_version=`echo $min_alsa_version | \
  16270. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16271. alsa_min_minor_version=`echo $min_alsa_version | \
  16272. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16273. alsa_min_micro_version=`echo $min_alsa_version | \
  16274. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16275. ac_ext=c
  16276. ac_cpp='$CPP $CPPFLAGS'
  16277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16281. /* end confdefs.h. */
  16282. #include <alsa/asoundlib.h>
  16283. int
  16284. main ()
  16285. {
  16286. /* ensure backward compatibility */
  16287. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16288. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16289. #endif
  16290. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16291. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16292. #endif
  16293. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16294. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16295. #endif
  16296. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16297. exit(0);
  16298. # else
  16299. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16300. # error not present
  16301. # endif
  16302. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16303. exit(0);
  16304. # else
  16305. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16306. # error not present
  16307. # endif
  16308. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16309. # error not present
  16310. # endif
  16311. # endif
  16312. # endif
  16313. exit(0);
  16314. ;
  16315. return 0;
  16316. }
  16317. _ACEOF
  16318. if ac_fn_c_try_compile "$LINENO"; then :
  16319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16320. $as_echo "found." >&6; }
  16321. else
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16323. $as_echo "not present." >&6; }
  16324. alsa_found=no
  16325. fi
  16326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16327. ac_ext=c
  16328. ac_cpp='$CPP $CPPFLAGS'
  16329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16332. if test "x$enable_alsatest" = "xyes"; then
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16334. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16335. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16336. $as_echo_n "(cached) " >&6
  16337. else
  16338. ac_check_lib_save_LIBS=$LIBS
  16339. LIBS="-lasound $LIBS"
  16340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16341. /* end confdefs.h. */
  16342. /* Override any GCC internal prototype to avoid an error.
  16343. Use char because int might match the return type of a GCC
  16344. builtin and then its argument prototype would still apply. */
  16345. #ifdef __cplusplus
  16346. extern "C"
  16347. #endif
  16348. char snd_ctl_open ();
  16349. int
  16350. main ()
  16351. {
  16352. return snd_ctl_open ();
  16353. ;
  16354. return 0;
  16355. }
  16356. _ACEOF
  16357. if ac_fn_c_try_link "$LINENO"; then :
  16358. ac_cv_lib_asound_snd_ctl_open=yes
  16359. else
  16360. ac_cv_lib_asound_snd_ctl_open=no
  16361. fi
  16362. rm -f core conftest.err conftest.$ac_objext \
  16363. conftest$ac_exeext conftest.$ac_ext
  16364. LIBS=$ac_check_lib_save_LIBS
  16365. fi
  16366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16367. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16368. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16369. cat >>confdefs.h <<_ACEOF
  16370. #define HAVE_LIBASOUND 1
  16371. _ACEOF
  16372. LIBS="-lasound $LIBS"
  16373. else
  16374. alsa_found=no
  16375. fi
  16376. fi
  16377. if test "x$alsa_found" = "xyes" ; then
  16378. have_alsa=yes
  16379. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16380. LIBS=`echo $LIBS | sed 's/ //'`
  16381. LIBS="-lasound $LIBS"
  16382. fi
  16383. if test "x$alsa_found" = "xno" ; then
  16384. have_alsa=no
  16385. CFLAGS="$alsa_save_CFLAGS"
  16386. LDFLAGS="$alsa_save_LDFLAGS"
  16387. LIBS="$alsa_save_LIBS"
  16388. ALSA_CFLAGS=""
  16389. ALSA_LIBS=""
  16390. fi
  16391. # Restore all flags from before the ALSA detection runs
  16392. CFLAGS="$alsa_save_CFLAGS"
  16393. LDFLAGS="$alsa_save_LDFLAGS"
  16394. LIBS="$alsa_save_LIBS"
  16395. if test x$have_alsa = xyes; then
  16396. # Check whether --enable-alsa-shared was given.
  16397. if test "${enable_alsa_shared+set}" = set; then :
  16398. enableval=$enable_alsa_shared;
  16399. else
  16400. enable_alsa_shared=yes
  16401. fi
  16402. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16403. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16404. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16405. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16406. if test x$have_loadso != xyes && \
  16407. test x$enable_alsa_shared = xyes; then
  16408. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16409. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16410. fi
  16411. if test x$have_loadso = xyes && \
  16412. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16413. echo "-- dynamic libasound -> $alsa_lib"
  16414. cat >>confdefs.h <<_ACEOF
  16415. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16416. _ACEOF
  16417. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16418. else
  16419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16420. SUMMARY_audio="${SUMMARY_audio} alsa"
  16421. fi
  16422. have_audio=yes
  16423. fi
  16424. fi
  16425. }
  16426. CheckJACK()
  16427. {
  16428. # Check whether --enable-jack was given.
  16429. if test "${enable_jack+set}" = set; then :
  16430. enableval=$enable_jack;
  16431. else
  16432. enable_jack=yes
  16433. fi
  16434. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16435. pkg_failed=no
  16436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16437. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16438. if test -n "$JACK_CFLAGS"; then
  16439. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16440. elif test -n "$PKG_CONFIG"; then
  16441. if test -n "$PKG_CONFIG" && \
  16442. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16443. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16444. ac_status=$?
  16445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16446. test $ac_status = 0; }; then
  16447. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16448. test "x$?" != "x0" && pkg_failed=yes
  16449. else
  16450. pkg_failed=yes
  16451. fi
  16452. else
  16453. pkg_failed=untried
  16454. fi
  16455. if test -n "$JACK_LIBS"; then
  16456. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16457. elif test -n "$PKG_CONFIG"; then
  16458. if test -n "$PKG_CONFIG" && \
  16459. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16460. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16461. ac_status=$?
  16462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16463. test $ac_status = 0; }; then
  16464. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16465. test "x$?" != "x0" && pkg_failed=yes
  16466. else
  16467. pkg_failed=yes
  16468. fi
  16469. else
  16470. pkg_failed=untried
  16471. fi
  16472. if test $pkg_failed = yes; then
  16473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16474. $as_echo "no" >&6; }
  16475. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16476. _pkg_short_errors_supported=yes
  16477. else
  16478. _pkg_short_errors_supported=no
  16479. fi
  16480. if test $_pkg_short_errors_supported = yes; then
  16481. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16482. else
  16483. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16484. fi
  16485. # Put the nasty error message in config.log where it belongs
  16486. echo "$JACK_PKG_ERRORS" >&5
  16487. audio_jack=no
  16488. elif test $pkg_failed = untried; then
  16489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16490. $as_echo "no" >&6; }
  16491. audio_jack=no
  16492. else
  16493. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16494. JACK_LIBS=$pkg_cv_JACK_LIBS
  16495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16496. $as_echo "yes" >&6; }
  16497. audio_jack=yes
  16498. fi
  16499. if test x$audio_jack = xyes; then
  16500. # Check whether --enable-jack-shared was given.
  16501. if test "${enable_jack_shared+set}" = set; then :
  16502. enableval=$enable_jack_shared;
  16503. else
  16504. enable_jack_shared=yes
  16505. fi
  16506. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16507. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16508. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16509. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16510. if test x$have_loadso != xyes && \
  16511. test x$enable_jack_shared = xyes; then
  16512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16513. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16514. fi
  16515. if test x$have_loadso = xyes && \
  16516. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16517. echo "-- dynamic libjack -> $jack_lib"
  16518. cat >>confdefs.h <<_ACEOF
  16519. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16520. _ACEOF
  16521. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16522. case "$host" in
  16523. # On Solaris, jack must be linked deferred explicitly
  16524. # to prevent undefined symbol failures.
  16525. *-*-solaris*)
  16526. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16527. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16528. esac
  16529. else
  16530. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16531. SUMMARY_audio="${SUMMARY_audio} jack"
  16532. fi
  16533. have_audio=yes
  16534. fi
  16535. fi
  16536. }
  16537. CheckESD()
  16538. {
  16539. # Check whether --enable-esd was given.
  16540. if test "${enable_esd+set}" = set; then :
  16541. enableval=$enable_esd;
  16542. else
  16543. enable_esd=yes
  16544. fi
  16545. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16546. # Check whether --with-esd-prefix was given.
  16547. if test "${with_esd_prefix+set}" = set; then :
  16548. withval=$with_esd_prefix; esd_prefix="$withval"
  16549. else
  16550. esd_prefix=""
  16551. fi
  16552. # Check whether --with-esd-exec-prefix was given.
  16553. if test "${with_esd_exec_prefix+set}" = set; then :
  16554. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16555. else
  16556. esd_exec_prefix=""
  16557. fi
  16558. # Check whether --enable-esdtest was given.
  16559. if test "${enable_esdtest+set}" = set; then :
  16560. enableval=$enable_esdtest;
  16561. else
  16562. enable_esdtest=yes
  16563. fi
  16564. if test x$esd_exec_prefix != x ; then
  16565. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16566. if test x${ESD_CONFIG+set} != xset ; then
  16567. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16568. fi
  16569. fi
  16570. if test x$esd_prefix != x ; then
  16571. esd_args="$esd_args --prefix=$esd_prefix"
  16572. if test x${ESD_CONFIG+set} != xset ; then
  16573. ESD_CONFIG=$esd_prefix/bin/esd-config
  16574. fi
  16575. fi
  16576. # Extract the first word of "esd-config", so it can be a program name with args.
  16577. set dummy esd-config; ac_word=$2
  16578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16579. $as_echo_n "checking for $ac_word... " >&6; }
  16580. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16581. $as_echo_n "(cached) " >&6
  16582. else
  16583. case $ESD_CONFIG in
  16584. [\\/]* | ?:[\\/]*)
  16585. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16586. ;;
  16587. *)
  16588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16589. for as_dir in $PATH
  16590. do
  16591. IFS=$as_save_IFS
  16592. test -z "$as_dir" && as_dir=.
  16593. for ac_exec_ext in '' $ac_executable_extensions; do
  16594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16595. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16597. break 2
  16598. fi
  16599. done
  16600. done
  16601. IFS=$as_save_IFS
  16602. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16603. ;;
  16604. esac
  16605. fi
  16606. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16607. if test -n "$ESD_CONFIG"; then
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16609. $as_echo "$ESD_CONFIG" >&6; }
  16610. else
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16612. $as_echo "no" >&6; }
  16613. fi
  16614. min_esd_version=0.2.8
  16615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16616. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16617. no_esd=""
  16618. if test "$ESD_CONFIG" = "no" ; then
  16619. no_esd=yes
  16620. else
  16621. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16622. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16623. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16624. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16625. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16626. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16627. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16628. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16629. if test "x$enable_esdtest" = "xyes" ; then
  16630. ac_ext=c
  16631. ac_cpp='$CPP $CPPFLAGS'
  16632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16635. ac_save_CFLAGS="$CFLAGS"
  16636. ac_save_LIBS="$LIBS"
  16637. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16638. LIBS="$LIBS $ESD_LIBS"
  16639. rm -f conf.esdtest
  16640. if test "$cross_compiling" = yes; then :
  16641. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16642. else
  16643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16644. /* end confdefs.h. */
  16645. #include <stdio.h>
  16646. #include <stdlib.h>
  16647. #include <esd.h>
  16648. int main (void)
  16649. {
  16650. int major, minor, micro;
  16651. FILE *fp = fopen("conf.esdtest", "w");
  16652. if (fp) fclose(fp);
  16653. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16654. printf("%s, bad version string\n", "$min_esd_version");
  16655. exit(1);
  16656. }
  16657. if (($esd_major_version > major) ||
  16658. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16659. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16660. {
  16661. return 0;
  16662. }
  16663. else
  16664. {
  16665. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16666. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16667. printf("*** best to upgrade to the required version.\n");
  16668. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16669. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16670. printf("*** config.cache before re-running configure\n");
  16671. return 1;
  16672. }
  16673. }
  16674. _ACEOF
  16675. if ac_fn_c_try_run "$LINENO"; then :
  16676. else
  16677. no_esd=yes
  16678. fi
  16679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16680. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16681. fi
  16682. CFLAGS="$ac_save_CFLAGS"
  16683. LIBS="$ac_save_LIBS"
  16684. ac_ext=c
  16685. ac_cpp='$CPP $CPPFLAGS'
  16686. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16687. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16688. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16689. fi
  16690. fi
  16691. if test "x$no_esd" = x ; then
  16692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16693. $as_echo "yes" >&6; }
  16694. have_esd=yes
  16695. else
  16696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16697. $as_echo "no" >&6; }
  16698. if test "$ESD_CONFIG" = "no" ; then
  16699. echo "*** The esd-config script installed by ESD could not be found"
  16700. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16701. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16702. echo "*** full path to esd-config."
  16703. else
  16704. if test -f conf.esdtest ; then
  16705. :
  16706. else
  16707. echo "*** Could not run ESD test program, checking why..."
  16708. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16709. LIBS="$LIBS $ESD_LIBS"
  16710. ac_ext=c
  16711. ac_cpp='$CPP $CPPFLAGS'
  16712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16716. /* end confdefs.h. */
  16717. #include <stdio.h>
  16718. #include <esd.h>
  16719. int
  16720. main ()
  16721. {
  16722. return 0;
  16723. ;
  16724. return 0;
  16725. }
  16726. _ACEOF
  16727. if ac_fn_c_try_link "$LINENO"; then :
  16728. echo "*** The test program compiled, but did not run. This usually means"
  16729. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16730. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16731. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16732. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16733. echo "*** is required on your system"
  16734. echo "***"
  16735. echo "*** If you have an old version installed, it is best to remove it, although"
  16736. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16737. else
  16738. echo "*** The test program failed to compile or link. See the file config.log for the"
  16739. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16740. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16741. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16742. fi
  16743. rm -f core conftest.err conftest.$ac_objext \
  16744. conftest$ac_exeext conftest.$ac_ext
  16745. CFLAGS="$ac_save_CFLAGS"
  16746. LIBS="$ac_save_LIBS"
  16747. ac_ext=c
  16748. ac_cpp='$CPP $CPPFLAGS'
  16749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16752. fi
  16753. fi
  16754. ESD_CFLAGS=""
  16755. ESD_LIBS=""
  16756. have_esd=no
  16757. fi
  16758. rm -f conf.esdtest
  16759. if test x$have_esd = xyes; then
  16760. # Check whether --enable-esd-shared was given.
  16761. if test "${enable_esd_shared+set}" = set; then :
  16762. enableval=$enable_esd_shared;
  16763. else
  16764. enable_esd_shared=yes
  16765. fi
  16766. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16767. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16768. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16769. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16770. if test x$have_loadso != xyes && \
  16771. test x$enable_esd_shared = xyes; then
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16773. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16774. fi
  16775. if test x$have_loadso = xyes && \
  16776. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16777. echo "-- dynamic libesd -> $esd_lib"
  16778. cat >>confdefs.h <<_ACEOF
  16779. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16780. _ACEOF
  16781. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16782. else
  16783. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16784. SUMMARY_audio="${SUMMARY_audio} esd"
  16785. fi
  16786. have_audio=yes
  16787. fi
  16788. fi
  16789. }
  16790. CheckPipewire()
  16791. {
  16792. # Check whether --enable-pipewire was given.
  16793. if test "${enable_pipewire+set}" = set; then :
  16794. enableval=$enable_pipewire;
  16795. else
  16796. enable_pipewire=yes
  16797. fi
  16798. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16799. pkg_failed=no
  16800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16801. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16802. if test -n "$PIPEWIRE_CFLAGS"; then
  16803. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16804. elif test -n "$PKG_CONFIG"; then
  16805. if test -n "$PKG_CONFIG" && \
  16806. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16807. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16808. ac_status=$?
  16809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16810. test $ac_status = 0; }; then
  16811. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16812. test "x$?" != "x0" && pkg_failed=yes
  16813. else
  16814. pkg_failed=yes
  16815. fi
  16816. else
  16817. pkg_failed=untried
  16818. fi
  16819. if test -n "$PIPEWIRE_LIBS"; then
  16820. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16821. elif test -n "$PKG_CONFIG"; then
  16822. if test -n "$PKG_CONFIG" && \
  16823. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16824. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16825. ac_status=$?
  16826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16827. test $ac_status = 0; }; then
  16828. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16829. test "x$?" != "x0" && pkg_failed=yes
  16830. else
  16831. pkg_failed=yes
  16832. fi
  16833. else
  16834. pkg_failed=untried
  16835. fi
  16836. if test $pkg_failed = yes; then
  16837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16838. $as_echo "no" >&6; }
  16839. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16840. _pkg_short_errors_supported=yes
  16841. else
  16842. _pkg_short_errors_supported=no
  16843. fi
  16844. if test $_pkg_short_errors_supported = yes; then
  16845. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16846. else
  16847. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16848. fi
  16849. # Put the nasty error message in config.log where it belongs
  16850. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16851. audio_pipewire=no
  16852. elif test $pkg_failed = untried; then
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16854. $as_echo "no" >&6; }
  16855. audio_pipewire=no
  16856. else
  16857. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16858. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16860. $as_echo "yes" >&6; }
  16861. audio_pipewire=yes
  16862. fi
  16863. if test x$audio_pipewire = xyes; then
  16864. # Check whether --enable-pipewire-shared was given.
  16865. if test "${enable_pipewire_shared+set}" = set; then :
  16866. enableval=$enable_pipewire_shared;
  16867. else
  16868. enable_pipewire_shared=yes
  16869. fi
  16870. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16871. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16872. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16873. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16874. if test x$have_loadso != xyes && \
  16875. test x$enable_pipewire_shared = xyes; then
  16876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16877. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16878. fi
  16879. if test x$have_loadso = xyes && \
  16880. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16881. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16882. cat >>confdefs.h <<_ACEOF
  16883. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16884. _ACEOF
  16885. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16886. else
  16887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16888. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16889. fi
  16890. have_audio=yes
  16891. fi
  16892. fi
  16893. }
  16894. CheckPulseAudio()
  16895. {
  16896. # Check whether --enable-pulseaudio was given.
  16897. if test "${enable_pulseaudio+set}" = set; then :
  16898. enableval=$enable_pulseaudio;
  16899. else
  16900. enable_pulseaudio=yes
  16901. fi
  16902. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16903. pkg_failed=no
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16905. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16906. if test -n "$PULSEAUDIO_CFLAGS"; then
  16907. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16908. elif test -n "$PKG_CONFIG"; then
  16909. if test -n "$PKG_CONFIG" && \
  16910. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16911. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16912. ac_status=$?
  16913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16914. test $ac_status = 0; }; then
  16915. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16916. test "x$?" != "x0" && pkg_failed=yes
  16917. else
  16918. pkg_failed=yes
  16919. fi
  16920. else
  16921. pkg_failed=untried
  16922. fi
  16923. if test -n "$PULSEAUDIO_LIBS"; then
  16924. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16925. elif test -n "$PKG_CONFIG"; then
  16926. if test -n "$PKG_CONFIG" && \
  16927. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16928. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16929. ac_status=$?
  16930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16931. test $ac_status = 0; }; then
  16932. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16933. test "x$?" != "x0" && pkg_failed=yes
  16934. else
  16935. pkg_failed=yes
  16936. fi
  16937. else
  16938. pkg_failed=untried
  16939. fi
  16940. if test $pkg_failed = yes; then
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16942. $as_echo "no" >&6; }
  16943. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16944. _pkg_short_errors_supported=yes
  16945. else
  16946. _pkg_short_errors_supported=no
  16947. fi
  16948. if test $_pkg_short_errors_supported = yes; then
  16949. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16950. else
  16951. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16952. fi
  16953. # Put the nasty error message in config.log where it belongs
  16954. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16955. audio_pulseaudio=no
  16956. elif test $pkg_failed = untried; then
  16957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16958. $as_echo "no" >&6; }
  16959. audio_pulseaudio=no
  16960. else
  16961. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16962. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16964. $as_echo "yes" >&6; }
  16965. audio_pulseaudio=yes
  16966. fi
  16967. if test x$audio_pulseaudio = xyes; then
  16968. # Check whether --enable-pulseaudio-shared was given.
  16969. if test "${enable_pulseaudio_shared+set}" = set; then :
  16970. enableval=$enable_pulseaudio_shared;
  16971. else
  16972. enable_pulseaudio_shared=yes
  16973. fi
  16974. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16975. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16976. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16977. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16978. if test x$have_loadso != xyes && \
  16979. test x$enable_pulseaudio_shared = xyes; then
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16981. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16982. fi
  16983. if test x$have_loadso = xyes && \
  16984. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16985. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16986. cat >>confdefs.h <<_ACEOF
  16987. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16988. _ACEOF
  16989. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16990. case "$host" in
  16991. # On Solaris, pulseaudio must be linked deferred explicitly
  16992. # to prevent undefined symbol failures.
  16993. *-*-solaris*)
  16994. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16996. esac
  16997. else
  16998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16999. SUMMARY_audio="${SUMMARY_audio} pulse"
  17000. fi
  17001. have_audio=yes
  17002. fi
  17003. fi
  17004. }
  17005. CheckARTSC()
  17006. {
  17007. # Check whether --enable-arts was given.
  17008. if test "${enable_arts+set}" = set; then :
  17009. enableval=$enable_arts;
  17010. else
  17011. enable_arts=yes
  17012. fi
  17013. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17014. # Extract the first word of "artsc-config", so it can be a program name with args.
  17015. set dummy artsc-config; ac_word=$2
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17017. $as_echo_n "checking for $ac_word... " >&6; }
  17018. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17019. $as_echo_n "(cached) " >&6
  17020. else
  17021. case $ARTSCONFIG in
  17022. [\\/]* | ?:[\\/]*)
  17023. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17024. ;;
  17025. *)
  17026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17027. for as_dir in $PATH
  17028. do
  17029. IFS=$as_save_IFS
  17030. test -z "$as_dir" && as_dir=.
  17031. for ac_exec_ext in '' $ac_executable_extensions; do
  17032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17033. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17035. break 2
  17036. fi
  17037. done
  17038. done
  17039. IFS=$as_save_IFS
  17040. ;;
  17041. esac
  17042. fi
  17043. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17044. if test -n "$ARTSCONFIG"; then
  17045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17046. $as_echo "$ARTSCONFIG" >&6; }
  17047. else
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17049. $as_echo "no" >&6; }
  17050. fi
  17051. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17052. : # arts isn't installed
  17053. else
  17054. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17055. ARTS_LIBS=`$ARTSCONFIG --libs`
  17056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17057. $as_echo_n "checking for aRts development environment... " >&6; }
  17058. audio_arts=no
  17059. save_CFLAGS="$CFLAGS"
  17060. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17062. /* end confdefs.h. */
  17063. #include <artsc.h>
  17064. int
  17065. main ()
  17066. {
  17067. arts_stream_t stream;
  17068. ;
  17069. return 0;
  17070. }
  17071. _ACEOF
  17072. if ac_fn_c_try_compile "$LINENO"; then :
  17073. audio_arts=yes
  17074. fi
  17075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17076. CFLAGS="$save_CFLAGS"
  17077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17078. $as_echo "$audio_arts" >&6; }
  17079. if test x$audio_arts = xyes; then
  17080. # Check whether --enable-arts-shared was given.
  17081. if test "${enable_arts_shared+set}" = set; then :
  17082. enableval=$enable_arts_shared;
  17083. else
  17084. enable_arts_shared=yes
  17085. fi
  17086. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17087. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17088. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17089. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17090. if test x$have_loadso != xyes && \
  17091. test x$enable_arts_shared = xyes; then
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17093. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17094. fi
  17095. if test x$have_loadso = xyes && \
  17096. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17097. echo "-- dynamic libartsc -> $arts_lib"
  17098. cat >>confdefs.h <<_ACEOF
  17099. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17100. _ACEOF
  17101. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17102. else
  17103. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17104. SUMMARY_audio="${SUMMARY_audio} arts"
  17105. fi
  17106. have_audio=yes
  17107. fi
  17108. fi
  17109. fi
  17110. }
  17111. CheckNAS()
  17112. {
  17113. # Check whether --enable-nas was given.
  17114. if test "${enable_nas+set}" = set; then :
  17115. enableval=$enable_nas;
  17116. else
  17117. enable_nas=yes
  17118. fi
  17119. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17120. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17121. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17122. have_nas_hdr=yes
  17123. fi
  17124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17125. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17126. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17127. $as_echo_n "(cached) " >&6
  17128. else
  17129. ac_check_lib_save_LIBS=$LIBS
  17130. LIBS="-laudio $LIBS"
  17131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17132. /* end confdefs.h. */
  17133. /* Override any GCC internal prototype to avoid an error.
  17134. Use char because int might match the return type of a GCC
  17135. builtin and then its argument prototype would still apply. */
  17136. #ifdef __cplusplus
  17137. extern "C"
  17138. #endif
  17139. char AuOpenServer ();
  17140. int
  17141. main ()
  17142. {
  17143. return AuOpenServer ();
  17144. ;
  17145. return 0;
  17146. }
  17147. _ACEOF
  17148. if ac_fn_c_try_link "$LINENO"; then :
  17149. ac_cv_lib_audio_AuOpenServer=yes
  17150. else
  17151. ac_cv_lib_audio_AuOpenServer=no
  17152. fi
  17153. rm -f core conftest.err conftest.$ac_objext \
  17154. conftest$ac_exeext conftest.$ac_ext
  17155. LIBS=$ac_check_lib_save_LIBS
  17156. fi
  17157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17158. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17159. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17160. have_nas_lib=yes
  17161. fi
  17162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17163. $as_echo_n "checking for NAS audio support... " >&6; }
  17164. have_nas=no
  17165. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17166. have_nas=yes
  17167. NAS_LIBS="-laudio"
  17168. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17169. have_nas=yes
  17170. NAS_CFLAGS="-I/usr/X11R6/include/"
  17171. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17172. fi
  17173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17174. $as_echo "$have_nas" >&6; }
  17175. if test x$have_nas = xyes; then
  17176. # Check whether --enable-nas-shared was given.
  17177. if test "${enable_nas_shared+set}" = set; then :
  17178. enableval=$enable_nas_shared;
  17179. else
  17180. enable_nas_shared=yes
  17181. fi
  17182. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17183. if test x$have_loadso != xyes && \
  17184. test x$enable_nas_shared = xyes; then
  17185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17186. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17187. fi
  17188. if test x$have_loadso = xyes && \
  17189. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17190. echo "-- dynamic libaudio -> $nas_lib"
  17191. cat >>confdefs.h <<_ACEOF
  17192. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17193. _ACEOF
  17194. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17195. else
  17196. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17197. SUMMARY_audio="${SUMMARY_audio} nas"
  17198. fi
  17199. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17200. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17201. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17202. have_audio=yes
  17203. fi
  17204. fi
  17205. }
  17206. CheckSNDIO()
  17207. {
  17208. # Check whether --enable-sndio was given.
  17209. if test "${enable_sndio+set}" = set; then :
  17210. enableval=$enable_sndio;
  17211. else
  17212. enable_sndio=yes
  17213. fi
  17214. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17215. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17216. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17217. have_sndio_hdr=yes
  17218. fi
  17219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17220. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17221. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17222. $as_echo_n "(cached) " >&6
  17223. else
  17224. ac_check_lib_save_LIBS=$LIBS
  17225. LIBS="-lsndio $LIBS"
  17226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17227. /* end confdefs.h. */
  17228. /* Override any GCC internal prototype to avoid an error.
  17229. Use char because int might match the return type of a GCC
  17230. builtin and then its argument prototype would still apply. */
  17231. #ifdef __cplusplus
  17232. extern "C"
  17233. #endif
  17234. char sio_open ();
  17235. int
  17236. main ()
  17237. {
  17238. return sio_open ();
  17239. ;
  17240. return 0;
  17241. }
  17242. _ACEOF
  17243. if ac_fn_c_try_link "$LINENO"; then :
  17244. ac_cv_lib_sndio_sio_open=yes
  17245. else
  17246. ac_cv_lib_sndio_sio_open=no
  17247. fi
  17248. rm -f core conftest.err conftest.$ac_objext \
  17249. conftest$ac_exeext conftest.$ac_ext
  17250. LIBS=$ac_check_lib_save_LIBS
  17251. fi
  17252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17253. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17254. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17255. have_sndio_lib=yes
  17256. fi
  17257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17258. $as_echo_n "checking for sndio audio support... " >&6; }
  17259. have_sndio=no
  17260. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17261. have_sndio=yes
  17262. SNDIO_LIBS="-lsndio"
  17263. fi
  17264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17265. $as_echo "$have_sndio" >&6; }
  17266. if test x$have_sndio = xyes; then
  17267. # Check whether --enable-sndio-shared was given.
  17268. if test "${enable_sndio_shared+set}" = set; then :
  17269. enableval=$enable_sndio_shared;
  17270. else
  17271. enable_sndio_shared=yes
  17272. fi
  17273. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17274. if test x$have_loadso != xyes && \
  17275. test x$enable_sndio_shared = xyes; then
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17277. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17278. fi
  17279. if test x$have_loadso = xyes && \
  17280. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17281. echo "-- dynamic libsndio -> $sndio_lib"
  17282. cat >>confdefs.h <<_ACEOF
  17283. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17284. _ACEOF
  17285. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17286. else
  17287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17288. SUMMARY_audio="${SUMMARY_audio} sndio"
  17289. fi
  17290. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17291. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17292. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17293. have_audio=yes
  17294. fi
  17295. fi
  17296. }
  17297. CheckFusionSound()
  17298. {
  17299. # Check whether --enable-fusionsound was given.
  17300. if test "${enable_fusionsound+set}" = set; then :
  17301. enableval=$enable_fusionsound;
  17302. else
  17303. enable_fusionsound=no
  17304. fi
  17305. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17306. pkg_failed=no
  17307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17308. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17309. if test -n "$FUSIONSOUND_CFLAGS"; then
  17310. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17311. elif test -n "$PKG_CONFIG"; then
  17312. if test -n "$PKG_CONFIG" && \
  17313. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17314. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17315. ac_status=$?
  17316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17317. test $ac_status = 0; }; then
  17318. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17319. test "x$?" != "x0" && pkg_failed=yes
  17320. else
  17321. pkg_failed=yes
  17322. fi
  17323. else
  17324. pkg_failed=untried
  17325. fi
  17326. if test -n "$FUSIONSOUND_LIBS"; then
  17327. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17328. elif test -n "$PKG_CONFIG"; then
  17329. if test -n "$PKG_CONFIG" && \
  17330. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17331. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17332. ac_status=$?
  17333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17334. test $ac_status = 0; }; then
  17335. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17336. test "x$?" != "x0" && pkg_failed=yes
  17337. else
  17338. pkg_failed=yes
  17339. fi
  17340. else
  17341. pkg_failed=untried
  17342. fi
  17343. if test $pkg_failed = yes; then
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17345. $as_echo "no" >&6; }
  17346. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17347. _pkg_short_errors_supported=yes
  17348. else
  17349. _pkg_short_errors_supported=no
  17350. fi
  17351. if test $_pkg_short_errors_supported = yes; then
  17352. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17353. else
  17354. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17355. fi
  17356. # Put the nasty error message in config.log where it belongs
  17357. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17358. fusionsound=no
  17359. elif test $pkg_failed = untried; then
  17360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17361. $as_echo "no" >&6; }
  17362. fusionsound=no
  17363. else
  17364. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17365. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17367. $as_echo "yes" >&6; }
  17368. fusionsound=yes
  17369. fi
  17370. if test x$fusionsound = xyes; then
  17371. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17372. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17373. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17374. # Check whether --enable-fusionsound-shared was given.
  17375. if test "${enable_fusionsound_shared+set}" = set; then :
  17376. enableval=$enable_fusionsound_shared;
  17377. else
  17378. enable_fusionsound_shared=yes
  17379. fi
  17380. fusionsound_shared=no
  17381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17382. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17383. if test x$have_loadso != xyes && \
  17384. test x$enable_fusionsound_shared = xyes; then
  17385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17386. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17387. fi
  17388. if test x$have_loadso = xyes && \
  17389. test x$enable_fusionsound_shared = xyes; then
  17390. cat >>confdefs.h <<_ACEOF
  17391. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17392. _ACEOF
  17393. fusionsound_shared=yes
  17394. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17395. else
  17396. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17397. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17398. fi
  17399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17400. $as_echo "$fusionsound_shared" >&6; }
  17401. have_audio=yes
  17402. fi
  17403. fi
  17404. }
  17405. CheckDiskAudio()
  17406. {
  17407. # Check whether --enable-diskaudio was given.
  17408. if test "${enable_diskaudio+set}" = set; then :
  17409. enableval=$enable_diskaudio;
  17410. else
  17411. enable_diskaudio=yes
  17412. fi
  17413. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17414. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17415. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17416. SUMMARY_audio="${SUMMARY_audio} disk"
  17417. have_audio=yes
  17418. fi
  17419. }
  17420. CheckDummyAudio()
  17421. {
  17422. # Check whether --enable-dummyaudio was given.
  17423. if test "${enable_dummyaudio+set}" = set; then :
  17424. enableval=$enable_dummyaudio;
  17425. else
  17426. enable_dummyaudio=yes
  17427. fi
  17428. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17429. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17430. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17431. SUMMARY_audio="${SUMMARY_audio} dummy"
  17432. have_audio=yes
  17433. fi
  17434. }
  17435. CheckLibSampleRate()
  17436. {
  17437. # Check whether --enable-libsamplerate was given.
  17438. if test "${enable_libsamplerate+set}" = set; then :
  17439. enableval=$enable_libsamplerate;
  17440. else
  17441. enable_libsamplerate=yes
  17442. fi
  17443. if test x$enable_libsamplerate = xyes; then
  17444. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17445. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17446. have_samplerate_h_hdr=yes
  17447. else
  17448. have_samplerate_h_hdr=no
  17449. fi
  17450. if test x$have_samplerate_h_hdr = xyes; then
  17451. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17452. # Check whether --enable-libsamplerate-shared was given.
  17453. if test "${enable_libsamplerate_shared+set}" = set; then :
  17454. enableval=$enable_libsamplerate_shared;
  17455. else
  17456. enable_libsamplerate_shared=yes
  17457. fi
  17458. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17459. if test x$have_loadso != xyes && \
  17460. test x$enable_libsamplerate_shared = xyes; then
  17461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17462. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17463. fi
  17464. if test x$have_loadso = xyes && \
  17465. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17466. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17467. cat >>confdefs.h <<_ACEOF
  17468. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17469. _ACEOF
  17470. else
  17471. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17472. fi
  17473. fi
  17474. fi
  17475. }
  17476. CheckARM()
  17477. {
  17478. # Check whether --enable-arm-simd was given.
  17479. if test "${enable_arm_simd+set}" = set; then :
  17480. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17481. else
  17482. enable_arm_simd=no
  17483. fi
  17484. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17485. save_CFLAGS="$CFLAGS"
  17486. have_arm_simd=no
  17487. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17489. $as_echo_n "checking for ARM SIMD... " >&6; }
  17490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17491. /* end confdefs.h. */
  17492. .text
  17493. .arch armv6
  17494. .object_arch armv4
  17495. .arm
  17496. .altmacro
  17497. #ifndef __ARM_EABI__
  17498. #error EABI is required (to be sure that calling conventions are compatible)
  17499. #endif
  17500. pld [r0]
  17501. uqadd8 r0, r0, r0
  17502. _ACEOF
  17503. if ac_fn_c_try_compile "$LINENO"; then :
  17504. have_arm_simd=yes
  17505. fi
  17506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17508. $as_echo "$have_arm_simd" >&6; }
  17509. CFLAGS="$save_CFLAGS"
  17510. if test x$have_arm_simd = xyes; then
  17511. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17512. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17513. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17514. fi
  17515. fi
  17516. }
  17517. CheckNEON()
  17518. {
  17519. # Check whether --enable-arm-neon was given.
  17520. if test "${enable_arm_neon+set}" = set; then :
  17521. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17522. else
  17523. enable_arm_neon=no
  17524. fi
  17525. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17526. save_CFLAGS="$CFLAGS"
  17527. have_arm_neon=no
  17528. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17530. $as_echo_n "checking for ARM NEON... " >&6; }
  17531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17532. /* end confdefs.h. */
  17533. .text
  17534. .fpu neon
  17535. .arch armv7a
  17536. .object_arch armv4
  17537. .eabi_attribute 10, 0
  17538. .arm
  17539. .altmacro
  17540. #ifndef __ARM_EABI__
  17541. #error EABI is required (to be sure that calling conventions are compatible)
  17542. #endif
  17543. pld [r0]
  17544. vmovn.u16 d0, q0
  17545. _ACEOF
  17546. if ac_fn_c_try_compile "$LINENO"; then :
  17547. have_arm_neon=yes
  17548. fi
  17549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17551. $as_echo "$have_arm_neon" >&6; }
  17552. CFLAGS="$save_CFLAGS"
  17553. if test x$have_arm_neon = xyes; then
  17554. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17555. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17556. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17557. fi
  17558. fi
  17559. }
  17560. CheckVisibilityHidden()
  17561. {
  17562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17563. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17564. have_gcc_fvisibility=no
  17565. visibility_CFLAGS="-fvisibility=hidden"
  17566. save_CFLAGS="$CFLAGS"
  17567. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17569. /* end confdefs.h. */
  17570. #if !defined(__GNUC__) || __GNUC__ < 4
  17571. #error SDL only uses visibility attributes in GCC 4 or newer
  17572. #endif
  17573. int
  17574. main ()
  17575. {
  17576. ;
  17577. return 0;
  17578. }
  17579. _ACEOF
  17580. if ac_fn_c_try_compile "$LINENO"; then :
  17581. have_gcc_fvisibility=yes
  17582. fi
  17583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17585. $as_echo "$have_gcc_fvisibility" >&6; }
  17586. CFLAGS="$save_CFLAGS"
  17587. if test x$have_gcc_fvisibility = xyes; then
  17588. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17589. fi
  17590. }
  17591. CheckNoStrictAliasing()
  17592. {
  17593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17594. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17595. have_gcc_no_strict_aliasing=no
  17596. save_CFLAGS="$CFLAGS"
  17597. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17599. /* end confdefs.h. */
  17600. int x = 0;
  17601. int
  17602. main ()
  17603. {
  17604. ;
  17605. return 0;
  17606. }
  17607. _ACEOF
  17608. if ac_fn_c_try_compile "$LINENO"; then :
  17609. have_gcc_no_strict_aliasing=yes
  17610. fi
  17611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17613. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17614. CFLAGS="$save_CFLAGS"
  17615. if test x$have_gcc_no_strict_aliasing = xyes; then
  17616. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17617. fi
  17618. }
  17619. CheckStackBoundary()
  17620. {
  17621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17622. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17623. have_gcc_preferred_stack_boundary=no
  17624. save_CFLAGS="$CFLAGS"
  17625. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17627. /* end confdefs.h. */
  17628. int x = 0;
  17629. int
  17630. main ()
  17631. {
  17632. ;
  17633. return 0;
  17634. }
  17635. _ACEOF
  17636. if ac_fn_c_try_compile "$LINENO"; then :
  17637. have_gcc_preferred_stack_boundary=yes
  17638. fi
  17639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17641. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17642. CFLAGS="$save_CFLAGS"
  17643. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17644. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17645. fi
  17646. }
  17647. CheckDeclarationAfterStatement()
  17648. {
  17649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17650. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17651. have_gcc_declaration_after_statement=no
  17652. save_CFLAGS="$CFLAGS"
  17653. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17655. /* end confdefs.h. */
  17656. int x = 0;
  17657. int
  17658. main ()
  17659. {
  17660. ;
  17661. return 0;
  17662. }
  17663. _ACEOF
  17664. if ac_fn_c_try_compile "$LINENO"; then :
  17665. have_gcc_declaration_after_statement=yes
  17666. fi
  17667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17669. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17670. CFLAGS="$save_CFLAGS"
  17671. if test x$have_gcc_declaration_after_statement = xyes; then
  17672. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17673. fi
  17674. }
  17675. CheckWarnAll()
  17676. {
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17678. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17679. have_gcc_Wall=no
  17680. save_CFLAGS="$CFLAGS"
  17681. CFLAGS="$save_CFLAGS -Wall"
  17682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17683. /* end confdefs.h. */
  17684. int x = 0;
  17685. int
  17686. main ()
  17687. {
  17688. ;
  17689. return 0;
  17690. }
  17691. _ACEOF
  17692. if ac_fn_c_try_compile "$LINENO"; then :
  17693. have_gcc_Wall=yes
  17694. fi
  17695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17697. $as_echo "$have_gcc_Wall" >&6; }
  17698. CFLAGS="$save_CFLAGS"
  17699. if test x$have_gcc_Wall = xyes; then
  17700. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17702. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17703. need_gcc_Wno_multichar=no
  17704. case "$host" in
  17705. *-*-haiku*)
  17706. need_gcc_Wno_multichar=yes
  17707. ;;
  17708. esac
  17709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17710. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17711. if test x$need_gcc_Wno_multichar = xyes; then
  17712. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17713. fi
  17714. fi
  17715. }
  17716. CheckWayland()
  17717. {
  17718. # Check whether --enable-video-wayland was given.
  17719. if test "${enable_video_wayland+set}" = set; then :
  17720. enableval=$enable_video_wayland;
  17721. else
  17722. enable_video_wayland=yes
  17723. fi
  17724. # Check whether --enable-video-wayland-qt-touch was given.
  17725. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17726. enableval=$enable_video_wayland_qt_touch;
  17727. else
  17728. enable_video_wayland_qt_touch=yes
  17729. fi
  17730. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17732. $as_echo_n "checking for Wayland support... " >&6; }
  17733. video_wayland=no
  17734. if test x$video_opengl_egl = xyes && \
  17735. test x$video_opengles_v2 = xyes; then
  17736. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17737. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17738. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17739. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17740. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17741. WAYLAND_SCANNER_CODE_MODE=private-code
  17742. else
  17743. WAYLAND_SCANNER_CODE_MODE=code
  17744. fi
  17745. video_wayland=yes
  17746. fi
  17747. fi
  17748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17749. $as_echo "$video_wayland" >&6; }
  17750. if test x$video_wayland = xyes; then
  17751. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17752. if test x$enable_video_wayland_qt_touch = xyes; then
  17753. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17754. fi
  17755. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17756. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17757. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17758. # Check whether --enable-wayland-shared was given.
  17759. if test "${enable_wayland_shared+set}" = set; then :
  17760. enableval=$enable_wayland_shared;
  17761. else
  17762. enable_wayland_shared=maybe
  17763. fi
  17764. case "$host" in
  17765. *)
  17766. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17767. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17768. if test x$wayland_egl_lib = x; then
  17769. # This works in Ubuntu 13.10, maybe others
  17770. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17771. fi
  17772. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17773. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17774. ;;
  17775. esac
  17776. if test x$enable_wayland_shared = xmaybe; then
  17777. enable_wayland_shared=yes
  17778. fi
  17779. if test x$have_loadso != xyes && \
  17780. test x$enable_wayland_shared = xyes; then
  17781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17782. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17783. enable_wayland_shared=no
  17784. fi
  17785. if test x$have_loadso = xyes && \
  17786. test x$enable_wayland_shared = xyes && \
  17787. test x$wayland_client_lib != x && \
  17788. test x$wayland_egl_lib != x && \
  17789. test x$wayland_cursor_lib != x && \
  17790. test x$xkbcommon_lib != x; then
  17791. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17792. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17793. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17794. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17795. cat >>confdefs.h <<_ACEOF
  17796. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17797. _ACEOF
  17798. cat >>confdefs.h <<_ACEOF
  17799. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17800. _ACEOF
  17801. cat >>confdefs.h <<_ACEOF
  17802. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17803. _ACEOF
  17804. cat >>confdefs.h <<_ACEOF
  17805. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17806. _ACEOF
  17807. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17808. else
  17809. enable_wayland_shared=no
  17810. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17811. SUMMARY_video="${SUMMARY_video} wayland"
  17812. fi
  17813. have_video=yes
  17814. # Check whether --enable-libdecor was given.
  17815. if test "${enable_libdecor+set}" = set; then :
  17816. enableval=$enable_libdecor;
  17817. else
  17818. enable_libdecor=yes
  17819. fi
  17820. if test x$enable_libdecor = xyes; then
  17821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17822. $as_echo_n "checking for libdecor support... " >&6; }
  17823. if $PKG_CONFIG --exists libdecor-0; then :
  17824. video_libdecor=yes
  17825. else
  17826. video_libdecor=no
  17827. fi
  17828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17829. $as_echo "$video_libdecor" >&6; }
  17830. if test x$video_libdecor = xyes; then
  17831. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17832. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17833. # Check whether --enable-libdecor-shared was given.
  17834. if test "${enable_libdecor_shared+set}" = set; then :
  17835. enableval=$enable_libdecor_shared;
  17836. else
  17837. enable_libdecor_shared=yes
  17838. fi
  17839. if test x$enable_wayland_shared != xyes; then
  17840. enable_libdecor_shared=no
  17841. fi
  17842. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17843. if test x$have_loadso != xyes && \
  17844. test x$enable_libdecor_shared = xyes; then
  17845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17846. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17847. fi
  17848. if test x$have_loadso = xyes && \
  17849. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17850. echo "-- dynamic libdecor -> $decor_lib"
  17851. cat >>confdefs.h <<_ACEOF
  17852. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17853. _ACEOF
  17854. else
  17855. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17856. fi
  17857. fi
  17858. fi
  17859. fi
  17860. fi
  17861. }
  17862. CheckNativeClient()
  17863. {
  17864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17865. /* end confdefs.h. */
  17866. #if !defined(__native_client__)
  17867. #error "NO NACL"
  17868. #endif
  17869. int
  17870. main ()
  17871. {
  17872. ;
  17873. return 0;
  17874. }
  17875. _ACEOF
  17876. if ac_fn_c_try_compile "$LINENO"; then :
  17877. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17878. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17879. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17880. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17881. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17882. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17883. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17884. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17885. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17886. SUMMARY_audio="${SUMMARY_audio} nacl"
  17887. have_audio=yes
  17888. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17889. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17890. have_video=yes
  17891. fi
  17892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17893. }
  17894. CheckRPI()
  17895. {
  17896. # Check whether --enable-video-rpi was given.
  17897. if test "${enable_video_rpi+set}" = set; then :
  17898. enableval=$enable_video_rpi;
  17899. else
  17900. enable_video_rpi=yes
  17901. fi
  17902. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17903. pkg_failed=no
  17904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17905. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17906. if test -n "$RPI_CFLAGS"; then
  17907. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17908. elif test -n "$PKG_CONFIG"; then
  17909. if test -n "$PKG_CONFIG" && \
  17910. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17911. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17912. ac_status=$?
  17913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17914. test $ac_status = 0; }; then
  17915. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17916. test "x$?" != "x0" && pkg_failed=yes
  17917. else
  17918. pkg_failed=yes
  17919. fi
  17920. else
  17921. pkg_failed=untried
  17922. fi
  17923. if test -n "$RPI_LIBS"; then
  17924. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17925. elif test -n "$PKG_CONFIG"; then
  17926. if test -n "$PKG_CONFIG" && \
  17927. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17928. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17929. ac_status=$?
  17930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17931. test $ac_status = 0; }; then
  17932. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17933. test "x$?" != "x0" && pkg_failed=yes
  17934. else
  17935. pkg_failed=yes
  17936. fi
  17937. else
  17938. pkg_failed=untried
  17939. fi
  17940. if test $pkg_failed = yes; then
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17942. $as_echo "no" >&6; }
  17943. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17944. _pkg_short_errors_supported=yes
  17945. else
  17946. _pkg_short_errors_supported=no
  17947. fi
  17948. if test $_pkg_short_errors_supported = yes; then
  17949. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17950. else
  17951. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17952. fi
  17953. # Put the nasty error message in config.log where it belongs
  17954. echo "$RPI_PKG_ERRORS" >&5
  17955. video_rpi=no
  17956. elif test $pkg_failed = untried; then
  17957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17958. $as_echo "no" >&6; }
  17959. video_rpi=no
  17960. else
  17961. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17962. RPI_LIBS=$pkg_cv_RPI_LIBS
  17963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17964. $as_echo "yes" >&6; }
  17965. video_rpi=yes
  17966. fi
  17967. if test x$video_rpi = xno; then
  17968. if test x$ARCH = xnetbsd; then
  17969. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17970. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17971. else
  17972. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17973. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17974. fi
  17975. fi
  17976. # Save the original compiler flags and libraries
  17977. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17978. # Add the Raspberry Pi compiler flags and libraries
  17979. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  17981. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  17982. have_video_rpi=no
  17983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17984. /* end confdefs.h. */
  17985. #include <bcm_host.h>
  17986. #include <EGL/eglplatform.h>
  17987. int
  17988. main ()
  17989. {
  17990. EGL_DISPMANX_WINDOW_T window;
  17991. bcm_host_init();
  17992. ;
  17993. return 0;
  17994. }
  17995. _ACEOF
  17996. if ac_fn_c_try_link "$LINENO"; then :
  17997. have_video_rpi=yes
  17998. fi
  17999. rm -f core conftest.err conftest.$ac_objext \
  18000. conftest$ac_exeext conftest.$ac_ext
  18001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18002. $as_echo "$have_video_rpi" >&6; }
  18003. # Restore the compiler flags and libraries
  18004. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18005. if test x$have_video_rpi = xyes; then
  18006. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18007. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18008. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18009. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18010. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18011. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18012. SUMMARY_video="${SUMMARY_video} rpi"
  18013. have_video=yes
  18014. fi
  18015. fi
  18016. }
  18017. CheckX11()
  18018. {
  18019. # Check whether --enable-video-x11 was given.
  18020. if test "${enable_video_x11+set}" = set; then :
  18021. enableval=$enable_video_x11;
  18022. else
  18023. enable_video_x11=yes
  18024. fi
  18025. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18026. case "$host" in
  18027. *-*-darwin*)
  18028. # This isn't necessary for X11, but fixes GLX detection
  18029. if test "x$x_includes" = xNONE && \
  18030. test "x$x_libraries" = xNONE && \
  18031. test -d /opt/X11/include && \
  18032. test -d /opt/X11/lib; then
  18033. x_includes="/opt/X11/include"
  18034. x_libraries="/opt/X11/lib"
  18035. fi
  18036. ;;
  18037. esac
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18039. $as_echo_n "checking for X... " >&6; }
  18040. # Check whether --with-x was given.
  18041. if test "${with_x+set}" = set; then :
  18042. withval=$with_x;
  18043. fi
  18044. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18045. if test "x$with_x" = xno; then
  18046. # The user explicitly disabled X.
  18047. have_x=disabled
  18048. else
  18049. case $x_includes,$x_libraries in #(
  18050. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18051. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18052. $as_echo_n "(cached) " >&6
  18053. else
  18054. # One or both of the vars are not set, and there is no cached value.
  18055. ac_x_includes=no
  18056. ac_x_libraries=no
  18057. # Do we need to do anything special at all?
  18058. ac_save_LIBS=$LIBS
  18059. LIBS="-lX11 $LIBS"
  18060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18061. /* end confdefs.h. */
  18062. #include <X11/Xlib.h>
  18063. int
  18064. main ()
  18065. {
  18066. XrmInitialize ()
  18067. ;
  18068. return 0;
  18069. }
  18070. _ACEOF
  18071. if ac_fn_c_try_link "$LINENO"; then :
  18072. # We can compile and link X programs with no special options.
  18073. ac_x_includes=
  18074. ac_x_libraries=
  18075. fi
  18076. rm -f core conftest.err conftest.$ac_objext \
  18077. conftest$ac_exeext conftest.$ac_ext
  18078. LIBS="$ac_save_LIBS"
  18079. # If that didn't work, only try xmkmf and filesystem searches
  18080. # for native compilation.
  18081. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18082. rm -f -r conftest.dir
  18083. if mkdir conftest.dir; then
  18084. cd conftest.dir
  18085. cat >Imakefile <<'_ACEOF'
  18086. incroot:
  18087. @echo incroot='${INCROOT}'
  18088. usrlibdir:
  18089. @echo usrlibdir='${USRLIBDIR}'
  18090. libdir:
  18091. @echo libdir='${LIBDIR}'
  18092. _ACEOF
  18093. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18094. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18095. for ac_var in incroot usrlibdir libdir; do
  18096. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18097. done
  18098. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18099. for ac_extension in a so sl dylib la dll; do
  18100. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18101. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18102. ac_im_usrlibdir=$ac_im_libdir; break
  18103. fi
  18104. done
  18105. # Screen out bogus values from the imake configuration. They are
  18106. # bogus both because they are the default anyway, and because
  18107. # using them would break gcc on systems where it needs fixed includes.
  18108. case $ac_im_incroot in
  18109. /usr/include) ac_x_includes= ;;
  18110. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18111. esac
  18112. case $ac_im_usrlibdir in
  18113. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18114. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18115. esac
  18116. fi
  18117. cd ..
  18118. rm -f -r conftest.dir
  18119. fi
  18120. # Standard set of common directories for X headers.
  18121. # Check X11 before X11Rn because it is often a symlink to the current release.
  18122. ac_x_header_dirs='
  18123. /usr/X11/include
  18124. /usr/X11R7/include
  18125. /usr/X11R6/include
  18126. /usr/X11R5/include
  18127. /usr/X11R4/include
  18128. /usr/include/X11
  18129. /usr/include/X11R7
  18130. /usr/include/X11R6
  18131. /usr/include/X11R5
  18132. /usr/include/X11R4
  18133. /usr/local/X11/include
  18134. /usr/local/X11R7/include
  18135. /usr/local/X11R6/include
  18136. /usr/local/X11R5/include
  18137. /usr/local/X11R4/include
  18138. /usr/local/include/X11
  18139. /usr/local/include/X11R7
  18140. /usr/local/include/X11R6
  18141. /usr/local/include/X11R5
  18142. /usr/local/include/X11R4
  18143. /opt/X11/include
  18144. /usr/X386/include
  18145. /usr/x386/include
  18146. /usr/XFree86/include/X11
  18147. /usr/include
  18148. /usr/local/include
  18149. /usr/unsupported/include
  18150. /usr/athena/include
  18151. /usr/local/x11r5/include
  18152. /usr/lpp/Xamples/include
  18153. /usr/openwin/include
  18154. /usr/openwin/share/include'
  18155. if test "$ac_x_includes" = no; then
  18156. # Guess where to find include files, by looking for Xlib.h.
  18157. # First, try using that file with no special directory specified.
  18158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18159. /* end confdefs.h. */
  18160. #include <X11/Xlib.h>
  18161. _ACEOF
  18162. if ac_fn_c_try_cpp "$LINENO"; then :
  18163. # We can compile using X headers with no special include directory.
  18164. ac_x_includes=
  18165. else
  18166. for ac_dir in $ac_x_header_dirs; do
  18167. if test -r "$ac_dir/X11/Xlib.h"; then
  18168. ac_x_includes=$ac_dir
  18169. break
  18170. fi
  18171. done
  18172. fi
  18173. rm -f conftest.err conftest.i conftest.$ac_ext
  18174. fi # $ac_x_includes = no
  18175. if test "$ac_x_libraries" = no; then
  18176. # Check for the libraries.
  18177. # See if we find them without any special options.
  18178. # Don't add to $LIBS permanently.
  18179. ac_save_LIBS=$LIBS
  18180. LIBS="-lX11 $LIBS"
  18181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18182. /* end confdefs.h. */
  18183. #include <X11/Xlib.h>
  18184. int
  18185. main ()
  18186. {
  18187. XrmInitialize ()
  18188. ;
  18189. return 0;
  18190. }
  18191. _ACEOF
  18192. if ac_fn_c_try_link "$LINENO"; then :
  18193. LIBS=$ac_save_LIBS
  18194. # We can link X programs with no special library path.
  18195. ac_x_libraries=
  18196. else
  18197. LIBS=$ac_save_LIBS
  18198. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18199. do
  18200. # Don't even attempt the hair of trying to link an X program!
  18201. for ac_extension in a so sl dylib la dll; do
  18202. if test -r "$ac_dir/libX11.$ac_extension"; then
  18203. ac_x_libraries=$ac_dir
  18204. break 2
  18205. fi
  18206. done
  18207. done
  18208. fi
  18209. rm -f core conftest.err conftest.$ac_objext \
  18210. conftest$ac_exeext conftest.$ac_ext
  18211. fi # $ac_x_libraries = no
  18212. fi
  18213. # Record the results.
  18214. case $ac_x_includes,$ac_x_libraries in #(
  18215. no,* | *,no | *\'*) :
  18216. # Didn't find X, or a directory has "'" in its name.
  18217. ac_cv_have_x="have_x=no" ;; #(
  18218. *) :
  18219. # Record where we found X for the cache.
  18220. ac_cv_have_x="have_x=yes\
  18221. ac_x_includes='$ac_x_includes'\
  18222. ac_x_libraries='$ac_x_libraries'" ;;
  18223. esac
  18224. fi
  18225. ;; #(
  18226. *) have_x=yes;;
  18227. esac
  18228. eval "$ac_cv_have_x"
  18229. fi # $with_x != no
  18230. if test "$have_x" != yes; then
  18231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18232. $as_echo "$have_x" >&6; }
  18233. no_x=yes
  18234. else
  18235. # If each of the values was on the command line, it overrides each guess.
  18236. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18237. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18238. # Update the cache value to reflect the command line values.
  18239. ac_cv_have_x="have_x=yes\
  18240. ac_x_includes='$x_includes'\
  18241. ac_x_libraries='$x_libraries'"
  18242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18243. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18244. fi
  18245. if test "$no_x" = yes; then
  18246. # Not all programs may use this symbol, but it does not hurt to define it.
  18247. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18248. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18249. else
  18250. if test -n "$x_includes"; then
  18251. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18252. fi
  18253. # It would also be nice to do this for all -L options, not just this one.
  18254. if test -n "$x_libraries"; then
  18255. X_LIBS="$X_LIBS -L$x_libraries"
  18256. # For Solaris; some versions of Sun CC require a space after -R and
  18257. # others require no space. Words are not sufficient . . . .
  18258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18259. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18260. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18261. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18262. ac_c_werror_flag=yes
  18263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18264. /* end confdefs.h. */
  18265. int
  18266. main ()
  18267. {
  18268. ;
  18269. return 0;
  18270. }
  18271. _ACEOF
  18272. if ac_fn_c_try_link "$LINENO"; then :
  18273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18274. $as_echo "no" >&6; }
  18275. X_LIBS="$X_LIBS -R$x_libraries"
  18276. else
  18277. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18279. /* end confdefs.h. */
  18280. int
  18281. main ()
  18282. {
  18283. ;
  18284. return 0;
  18285. }
  18286. _ACEOF
  18287. if ac_fn_c_try_link "$LINENO"; then :
  18288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18289. $as_echo "yes" >&6; }
  18290. X_LIBS="$X_LIBS -R $x_libraries"
  18291. else
  18292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18293. $as_echo "neither works" >&6; }
  18294. fi
  18295. rm -f core conftest.err conftest.$ac_objext \
  18296. conftest$ac_exeext conftest.$ac_ext
  18297. fi
  18298. rm -f core conftest.err conftest.$ac_objext \
  18299. conftest$ac_exeext conftest.$ac_ext
  18300. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18301. LIBS=$ac_xsave_LIBS
  18302. fi
  18303. # Check for system-dependent libraries X programs must link with.
  18304. # Do this before checking for the system-independent R6 libraries
  18305. # (-lICE), since we may need -lsocket or whatever for X linking.
  18306. if test "$ISC" = yes; then
  18307. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18308. else
  18309. # Martyn Johnson says this is needed for Ultrix, if the X
  18310. # libraries were built with DECnet support. And Karl Berry says
  18311. # the Alpha needs dnet_stub (dnet does not exist).
  18312. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18314. /* end confdefs.h. */
  18315. /* Override any GCC internal prototype to avoid an error.
  18316. Use char because int might match the return type of a GCC
  18317. builtin and then its argument prototype would still apply. */
  18318. #ifdef __cplusplus
  18319. extern "C"
  18320. #endif
  18321. char XOpenDisplay ();
  18322. int
  18323. main ()
  18324. {
  18325. return XOpenDisplay ();
  18326. ;
  18327. return 0;
  18328. }
  18329. _ACEOF
  18330. if ac_fn_c_try_link "$LINENO"; then :
  18331. else
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18333. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18334. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18335. $as_echo_n "(cached) " >&6
  18336. else
  18337. ac_check_lib_save_LIBS=$LIBS
  18338. LIBS="-ldnet $LIBS"
  18339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18340. /* end confdefs.h. */
  18341. /* Override any GCC internal prototype to avoid an error.
  18342. Use char because int might match the return type of a GCC
  18343. builtin and then its argument prototype would still apply. */
  18344. #ifdef __cplusplus
  18345. extern "C"
  18346. #endif
  18347. char dnet_ntoa ();
  18348. int
  18349. main ()
  18350. {
  18351. return dnet_ntoa ();
  18352. ;
  18353. return 0;
  18354. }
  18355. _ACEOF
  18356. if ac_fn_c_try_link "$LINENO"; then :
  18357. ac_cv_lib_dnet_dnet_ntoa=yes
  18358. else
  18359. ac_cv_lib_dnet_dnet_ntoa=no
  18360. fi
  18361. rm -f core conftest.err conftest.$ac_objext \
  18362. conftest$ac_exeext conftest.$ac_ext
  18363. LIBS=$ac_check_lib_save_LIBS
  18364. fi
  18365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18366. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18367. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18368. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18369. fi
  18370. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18372. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18373. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18374. $as_echo_n "(cached) " >&6
  18375. else
  18376. ac_check_lib_save_LIBS=$LIBS
  18377. LIBS="-ldnet_stub $LIBS"
  18378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18379. /* end confdefs.h. */
  18380. /* Override any GCC internal prototype to avoid an error.
  18381. Use char because int might match the return type of a GCC
  18382. builtin and then its argument prototype would still apply. */
  18383. #ifdef __cplusplus
  18384. extern "C"
  18385. #endif
  18386. char dnet_ntoa ();
  18387. int
  18388. main ()
  18389. {
  18390. return dnet_ntoa ();
  18391. ;
  18392. return 0;
  18393. }
  18394. _ACEOF
  18395. if ac_fn_c_try_link "$LINENO"; then :
  18396. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18397. else
  18398. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18399. fi
  18400. rm -f core conftest.err conftest.$ac_objext \
  18401. conftest$ac_exeext conftest.$ac_ext
  18402. LIBS=$ac_check_lib_save_LIBS
  18403. fi
  18404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18405. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18406. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18407. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18408. fi
  18409. fi
  18410. fi
  18411. rm -f core conftest.err conftest.$ac_objext \
  18412. conftest$ac_exeext conftest.$ac_ext
  18413. LIBS="$ac_xsave_LIBS"
  18414. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18415. # to get the SysV transport functions.
  18416. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18417. # needs -lnsl.
  18418. # The nsl library prevents programs from opening the X display
  18419. # on Irix 5.2, according to T.E. Dickey.
  18420. # The functions gethostbyname, getservbyname, and inet_addr are
  18421. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18422. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18423. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18424. fi
  18425. if test $ac_cv_func_gethostbyname = no; then
  18426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18427. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18428. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18429. $as_echo_n "(cached) " >&6
  18430. else
  18431. ac_check_lib_save_LIBS=$LIBS
  18432. LIBS="-lnsl $LIBS"
  18433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18434. /* end confdefs.h. */
  18435. /* Override any GCC internal prototype to avoid an error.
  18436. Use char because int might match the return type of a GCC
  18437. builtin and then its argument prototype would still apply. */
  18438. #ifdef __cplusplus
  18439. extern "C"
  18440. #endif
  18441. char gethostbyname ();
  18442. int
  18443. main ()
  18444. {
  18445. return gethostbyname ();
  18446. ;
  18447. return 0;
  18448. }
  18449. _ACEOF
  18450. if ac_fn_c_try_link "$LINENO"; then :
  18451. ac_cv_lib_nsl_gethostbyname=yes
  18452. else
  18453. ac_cv_lib_nsl_gethostbyname=no
  18454. fi
  18455. rm -f core conftest.err conftest.$ac_objext \
  18456. conftest$ac_exeext conftest.$ac_ext
  18457. LIBS=$ac_check_lib_save_LIBS
  18458. fi
  18459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18460. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18461. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18462. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18463. fi
  18464. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18466. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18467. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18468. $as_echo_n "(cached) " >&6
  18469. else
  18470. ac_check_lib_save_LIBS=$LIBS
  18471. LIBS="-lbsd $LIBS"
  18472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18473. /* end confdefs.h. */
  18474. /* Override any GCC internal prototype to avoid an error.
  18475. Use char because int might match the return type of a GCC
  18476. builtin and then its argument prototype would still apply. */
  18477. #ifdef __cplusplus
  18478. extern "C"
  18479. #endif
  18480. char gethostbyname ();
  18481. int
  18482. main ()
  18483. {
  18484. return gethostbyname ();
  18485. ;
  18486. return 0;
  18487. }
  18488. _ACEOF
  18489. if ac_fn_c_try_link "$LINENO"; then :
  18490. ac_cv_lib_bsd_gethostbyname=yes
  18491. else
  18492. ac_cv_lib_bsd_gethostbyname=no
  18493. fi
  18494. rm -f core conftest.err conftest.$ac_objext \
  18495. conftest$ac_exeext conftest.$ac_ext
  18496. LIBS=$ac_check_lib_save_LIBS
  18497. fi
  18498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18499. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18500. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18501. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18502. fi
  18503. fi
  18504. fi
  18505. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18506. # socket/setsockopt and other routines are undefined under SCO ODT
  18507. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18508. # on later versions), says Simon Leinen: it contains gethostby*
  18509. # variants that don't use the name server (or something). -lsocket
  18510. # must be given before -lnsl if both are needed. We assume that
  18511. # if connect needs -lnsl, so does gethostbyname.
  18512. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18513. if test "x$ac_cv_func_connect" = xyes; then :
  18514. fi
  18515. if test $ac_cv_func_connect = no; then
  18516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18517. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18518. if ${ac_cv_lib_socket_connect+:} false; then :
  18519. $as_echo_n "(cached) " >&6
  18520. else
  18521. ac_check_lib_save_LIBS=$LIBS
  18522. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18524. /* end confdefs.h. */
  18525. /* Override any GCC internal prototype to avoid an error.
  18526. Use char because int might match the return type of a GCC
  18527. builtin and then its argument prototype would still apply. */
  18528. #ifdef __cplusplus
  18529. extern "C"
  18530. #endif
  18531. char connect ();
  18532. int
  18533. main ()
  18534. {
  18535. return connect ();
  18536. ;
  18537. return 0;
  18538. }
  18539. _ACEOF
  18540. if ac_fn_c_try_link "$LINENO"; then :
  18541. ac_cv_lib_socket_connect=yes
  18542. else
  18543. ac_cv_lib_socket_connect=no
  18544. fi
  18545. rm -f core conftest.err conftest.$ac_objext \
  18546. conftest$ac_exeext conftest.$ac_ext
  18547. LIBS=$ac_check_lib_save_LIBS
  18548. fi
  18549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18550. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18551. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18552. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18553. fi
  18554. fi
  18555. # Guillermo Gomez says -lposix is necessary on A/UX.
  18556. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18557. if test "x$ac_cv_func_remove" = xyes; then :
  18558. fi
  18559. if test $ac_cv_func_remove = no; then
  18560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18561. $as_echo_n "checking for remove in -lposix... " >&6; }
  18562. if ${ac_cv_lib_posix_remove+:} false; then :
  18563. $as_echo_n "(cached) " >&6
  18564. else
  18565. ac_check_lib_save_LIBS=$LIBS
  18566. LIBS="-lposix $LIBS"
  18567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18568. /* end confdefs.h. */
  18569. /* Override any GCC internal prototype to avoid an error.
  18570. Use char because int might match the return type of a GCC
  18571. builtin and then its argument prototype would still apply. */
  18572. #ifdef __cplusplus
  18573. extern "C"
  18574. #endif
  18575. char remove ();
  18576. int
  18577. main ()
  18578. {
  18579. return remove ();
  18580. ;
  18581. return 0;
  18582. }
  18583. _ACEOF
  18584. if ac_fn_c_try_link "$LINENO"; then :
  18585. ac_cv_lib_posix_remove=yes
  18586. else
  18587. ac_cv_lib_posix_remove=no
  18588. fi
  18589. rm -f core conftest.err conftest.$ac_objext \
  18590. conftest$ac_exeext conftest.$ac_ext
  18591. LIBS=$ac_check_lib_save_LIBS
  18592. fi
  18593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18594. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18595. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18596. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18597. fi
  18598. fi
  18599. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18600. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18601. if test "x$ac_cv_func_shmat" = xyes; then :
  18602. fi
  18603. if test $ac_cv_func_shmat = no; then
  18604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18605. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18606. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18607. $as_echo_n "(cached) " >&6
  18608. else
  18609. ac_check_lib_save_LIBS=$LIBS
  18610. LIBS="-lipc $LIBS"
  18611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18612. /* end confdefs.h. */
  18613. /* Override any GCC internal prototype to avoid an error.
  18614. Use char because int might match the return type of a GCC
  18615. builtin and then its argument prototype would still apply. */
  18616. #ifdef __cplusplus
  18617. extern "C"
  18618. #endif
  18619. char shmat ();
  18620. int
  18621. main ()
  18622. {
  18623. return shmat ();
  18624. ;
  18625. return 0;
  18626. }
  18627. _ACEOF
  18628. if ac_fn_c_try_link "$LINENO"; then :
  18629. ac_cv_lib_ipc_shmat=yes
  18630. else
  18631. ac_cv_lib_ipc_shmat=no
  18632. fi
  18633. rm -f core conftest.err conftest.$ac_objext \
  18634. conftest$ac_exeext conftest.$ac_ext
  18635. LIBS=$ac_check_lib_save_LIBS
  18636. fi
  18637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18638. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18639. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18640. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18641. fi
  18642. fi
  18643. fi
  18644. # Check for libraries that X11R6 Xt/Xaw programs need.
  18645. ac_save_LDFLAGS=$LDFLAGS
  18646. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18647. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18648. # check for ICE first), but we must link in the order -lSM -lICE or
  18649. # we get undefined symbols. So assume we have SM if we have ICE.
  18650. # These have to be linked with before -lX11, unlike the other
  18651. # libraries we check for below, so use a different variable.
  18652. # John Interrante, Karl Berry
  18653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18654. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18655. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18656. $as_echo_n "(cached) " >&6
  18657. else
  18658. ac_check_lib_save_LIBS=$LIBS
  18659. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18661. /* end confdefs.h. */
  18662. /* Override any GCC internal prototype to avoid an error.
  18663. Use char because int might match the return type of a GCC
  18664. builtin and then its argument prototype would still apply. */
  18665. #ifdef __cplusplus
  18666. extern "C"
  18667. #endif
  18668. char IceConnectionNumber ();
  18669. int
  18670. main ()
  18671. {
  18672. return IceConnectionNumber ();
  18673. ;
  18674. return 0;
  18675. }
  18676. _ACEOF
  18677. if ac_fn_c_try_link "$LINENO"; then :
  18678. ac_cv_lib_ICE_IceConnectionNumber=yes
  18679. else
  18680. ac_cv_lib_ICE_IceConnectionNumber=no
  18681. fi
  18682. rm -f core conftest.err conftest.$ac_objext \
  18683. conftest$ac_exeext conftest.$ac_ext
  18684. LIBS=$ac_check_lib_save_LIBS
  18685. fi
  18686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18687. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18688. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18689. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18690. fi
  18691. LDFLAGS=$ac_save_LDFLAGS
  18692. fi
  18693. if test x$have_x = xyes; then
  18694. # Check whether --enable-x11-shared was given.
  18695. if test "${enable_x11_shared+set}" = set; then :
  18696. enableval=$enable_x11_shared;
  18697. else
  18698. enable_x11_shared=maybe
  18699. fi
  18700. case "$host" in
  18701. *-*-darwin*)
  18702. # Apple now puts this in /opt/X11
  18703. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18704. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18705. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18706. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18707. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18708. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18709. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18710. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18711. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18712. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18713. ;;
  18714. *-*-openbsd*)
  18715. x11_lib='libX11.so'
  18716. x11ext_lib='libXext.so'
  18717. xcursor_lib='libXcursor.so'
  18718. xinerama_lib='libXinerama.so'
  18719. xinput_lib='libXi.so'
  18720. xfixes_lib='libXfixes.so'
  18721. xrandr_lib='libXrandr.so'
  18722. xrender_lib='libXrender.so'
  18723. xss_lib='libXss.so'
  18724. xvidmode_lib='libXxf86vm.so'
  18725. ;;
  18726. *)
  18727. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18728. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18729. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18730. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18731. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18732. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18733. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18734. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18735. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18736. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18737. ;;
  18738. esac
  18739. if test x$ac_cv_func_shmat != xyes; then
  18740. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18741. fi
  18742. CFLAGS="$CFLAGS $X_CFLAGS"
  18743. LDFLAGS="$LDFLAGS $X_LIBS"
  18744. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18745. #include <X11/Xproto.h>
  18746. "
  18747. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18748. have_xext_h_hdr=yes
  18749. else
  18750. have_xext_h_hdr=no
  18751. fi
  18752. if test x$have_xext_h_hdr != xyes; then
  18753. as_fn_error $? "
  18754. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18755. " "$LINENO" 5
  18756. fi
  18757. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18758. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18759. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18760. # Needed so SDL applications can include SDL_syswm.h
  18761. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18762. if test x$enable_x11_shared = xmaybe; then
  18763. enable_x11_shared=yes
  18764. fi
  18765. if test x$have_loadso != xyes && \
  18766. test x$enable_x11_shared = xyes; then
  18767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18768. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18769. enable_x11_shared=no
  18770. fi
  18771. if test x$have_loadso = xyes && \
  18772. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18773. echo "-- dynamic libX11 -> $x11_lib"
  18774. echo "-- dynamic libX11ext -> $x11ext_lib"
  18775. cat >>confdefs.h <<_ACEOF
  18776. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18777. _ACEOF
  18778. cat >>confdefs.h <<_ACEOF
  18779. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18780. _ACEOF
  18781. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18782. else
  18783. enable_x11_shared=no
  18784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18785. SUMMARY_video="${SUMMARY_video} x11"
  18786. fi
  18787. have_video=yes
  18788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18789. $as_echo_n "checking for XGenericEvent... " >&6; }
  18790. have_XGenericEvent=no
  18791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18792. /* end confdefs.h. */
  18793. #include <X11/Xlib.h>
  18794. int
  18795. main ()
  18796. {
  18797. Display *display;
  18798. XEvent event;
  18799. XGenericEventCookie *cookie = &event.xcookie;
  18800. XNextEvent(display, &event);
  18801. XGetEventData(display, cookie);
  18802. XFreeEventData(display, cookie);
  18803. ;
  18804. return 0;
  18805. }
  18806. _ACEOF
  18807. if ac_fn_c_try_compile "$LINENO"; then :
  18808. have_XGenericEvent=yes
  18809. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18810. fi
  18811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18813. $as_echo "$have_XGenericEvent" >&6; }
  18814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18815. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18816. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18817. $as_echo_n "(cached) " >&6
  18818. else
  18819. ac_check_lib_save_LIBS=$LIBS
  18820. LIBS="-lX11 $LIBS"
  18821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18822. /* end confdefs.h. */
  18823. /* Override any GCC internal prototype to avoid an error.
  18824. Use char because int might match the return type of a GCC
  18825. builtin and then its argument prototype would still apply. */
  18826. #ifdef __cplusplus
  18827. extern "C"
  18828. #endif
  18829. char XkbKeycodeToKeysym ();
  18830. int
  18831. main ()
  18832. {
  18833. return XkbKeycodeToKeysym ();
  18834. ;
  18835. return 0;
  18836. }
  18837. _ACEOF
  18838. if ac_fn_c_try_link "$LINENO"; then :
  18839. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18840. else
  18841. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18842. fi
  18843. rm -f core conftest.err conftest.$ac_objext \
  18844. conftest$ac_exeext conftest.$ac_ext
  18845. LIBS=$ac_check_lib_save_LIBS
  18846. fi
  18847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18848. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18849. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18850. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18851. fi
  18852. # Check whether --enable-video-x11-xcursor was given.
  18853. if test "${enable_video_x11_xcursor+set}" = set; then :
  18854. enableval=$enable_video_x11_xcursor;
  18855. else
  18856. enable_video_x11_xcursor=yes
  18857. fi
  18858. if test x$enable_video_x11_xcursor = xyes; then
  18859. definitely_enable_video_x11_xcursor=no
  18860. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18861. "
  18862. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18863. have_xcursor_h_hdr=yes
  18864. else
  18865. have_xcursor_h_hdr=no
  18866. fi
  18867. if test x$have_xcursor_h_hdr = xyes; then
  18868. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18869. echo "-- dynamic libXcursor -> $xcursor_lib"
  18870. cat >>confdefs.h <<_ACEOF
  18871. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18872. _ACEOF
  18873. definitely_enable_video_x11_xcursor=yes
  18874. else
  18875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18876. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18877. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18878. $as_echo_n "(cached) " >&6
  18879. else
  18880. ac_check_lib_save_LIBS=$LIBS
  18881. LIBS="-lXcursor $LIBS"
  18882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18883. /* end confdefs.h. */
  18884. /* Override any GCC internal prototype to avoid an error.
  18885. Use char because int might match the return type of a GCC
  18886. builtin and then its argument prototype would still apply. */
  18887. #ifdef __cplusplus
  18888. extern "C"
  18889. #endif
  18890. char XcursorImageCreate ();
  18891. int
  18892. main ()
  18893. {
  18894. return XcursorImageCreate ();
  18895. ;
  18896. return 0;
  18897. }
  18898. _ACEOF
  18899. if ac_fn_c_try_link "$LINENO"; then :
  18900. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18901. else
  18902. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18903. fi
  18904. rm -f core conftest.err conftest.$ac_objext \
  18905. conftest$ac_exeext conftest.$ac_ext
  18906. LIBS=$ac_check_lib_save_LIBS
  18907. fi
  18908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18909. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18910. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18911. have_xcursor_lib=yes
  18912. fi
  18913. if test x$have_xcursor_lib = xyes ; then
  18914. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18915. definitely_enable_video_x11_xcursor=yes
  18916. fi
  18917. fi
  18918. fi
  18919. fi
  18920. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18921. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18922. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18923. fi
  18924. # Check whether --enable-video-x11-xdbe was given.
  18925. if test "${enable_video_x11_xdbe+set}" = set; then :
  18926. enableval=$enable_video_x11_xdbe;
  18927. else
  18928. enable_video_x11_xdbe=yes
  18929. fi
  18930. if test x$enable_video_x11_xdbe = xyes; then
  18931. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18932. "
  18933. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18934. have_dbe_h_hdr=yes
  18935. else
  18936. have_dbe_h_hdr=no
  18937. fi
  18938. if test x$have_dbe_h_hdr = xyes; then
  18939. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18940. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18941. fi
  18942. fi
  18943. # Check whether --enable-video-x11-xinerama was given.
  18944. if test "${enable_video_x11_xinerama+set}" = set; then :
  18945. enableval=$enable_video_x11_xinerama;
  18946. else
  18947. enable_video_x11_xinerama=yes
  18948. fi
  18949. if test x$enable_video_x11_xinerama = xyes; then
  18950. definitely_enable_video_x11_xinerama=no
  18951. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18952. "
  18953. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18954. have_xinerama_h_hdr=yes
  18955. else
  18956. have_xinerama_h_hdr=no
  18957. fi
  18958. if test x$have_xinerama_h_hdr = xyes; then
  18959. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18960. echo "-- dynamic libXinerama -> $xinerama_lib"
  18961. cat >>confdefs.h <<_ACEOF
  18962. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18963. _ACEOF
  18964. definitely_enable_video_x11_xinerama=yes
  18965. else
  18966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18967. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18968. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18969. $as_echo_n "(cached) " >&6
  18970. else
  18971. ac_check_lib_save_LIBS=$LIBS
  18972. LIBS="-lXinerama $LIBS"
  18973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18974. /* end confdefs.h. */
  18975. /* Override any GCC internal prototype to avoid an error.
  18976. Use char because int might match the return type of a GCC
  18977. builtin and then its argument prototype would still apply. */
  18978. #ifdef __cplusplus
  18979. extern "C"
  18980. #endif
  18981. char XineramaQueryExtension ();
  18982. int
  18983. main ()
  18984. {
  18985. return XineramaQueryExtension ();
  18986. ;
  18987. return 0;
  18988. }
  18989. _ACEOF
  18990. if ac_fn_c_try_link "$LINENO"; then :
  18991. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18992. else
  18993. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18994. fi
  18995. rm -f core conftest.err conftest.$ac_objext \
  18996. conftest$ac_exeext conftest.$ac_ext
  18997. LIBS=$ac_check_lib_save_LIBS
  18998. fi
  18999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  19000. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  19001. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  19002. have_xinerama_lib=yes
  19003. fi
  19004. if test x$have_xinerama_lib = xyes ; then
  19005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  19006. definitely_enable_video_x11_xinerama=yes
  19007. fi
  19008. fi
  19009. fi
  19010. fi
  19011. if test x$definitely_enable_video_x11_xinerama = xyes; then
  19012. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  19013. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  19014. fi
  19015. # Check whether --enable-video-x11-xinput was given.
  19016. if test "${enable_video_x11_xinput+set}" = set; then :
  19017. enableval=$enable_video_x11_xinput;
  19018. else
  19019. enable_video_x11_xinput=yes
  19020. fi
  19021. if test x$enable_video_x11_xinput = xyes; then
  19022. definitely_enable_video_x11_xinput=no
  19023. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19024. "
  19025. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19026. have_xinput_h_hdr=yes
  19027. else
  19028. have_xinput_h_hdr=no
  19029. fi
  19030. if test x$have_xinput_h_hdr = xyes; then
  19031. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19032. echo "-- dynamic libXi -> $xinput_lib"
  19033. cat >>confdefs.h <<_ACEOF
  19034. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19035. _ACEOF
  19036. definitely_enable_video_x11_xinput=yes
  19037. else
  19038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19039. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19040. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19041. $as_echo_n "(cached) " >&6
  19042. else
  19043. ac_check_lib_save_LIBS=$LIBS
  19044. LIBS="-lXi $LIBS"
  19045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19046. /* end confdefs.h. */
  19047. /* Override any GCC internal prototype to avoid an error.
  19048. Use char because int might match the return type of a GCC
  19049. builtin and then its argument prototype would still apply. */
  19050. #ifdef __cplusplus
  19051. extern "C"
  19052. #endif
  19053. char XOpenDevice ();
  19054. int
  19055. main ()
  19056. {
  19057. return XOpenDevice ();
  19058. ;
  19059. return 0;
  19060. }
  19061. _ACEOF
  19062. if ac_fn_c_try_link "$LINENO"; then :
  19063. ac_cv_lib_Xi_XOpenDevice=yes
  19064. else
  19065. ac_cv_lib_Xi_XOpenDevice=no
  19066. fi
  19067. rm -f core conftest.err conftest.$ac_objext \
  19068. conftest$ac_exeext conftest.$ac_ext
  19069. LIBS=$ac_check_lib_save_LIBS
  19070. fi
  19071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19072. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19073. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19074. have_xinput_lib=yes
  19075. fi
  19076. if test x$have_xinput_lib = xyes ; then
  19077. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19078. definitely_enable_video_x11_xinput=yes
  19079. fi
  19080. fi
  19081. fi
  19082. fi
  19083. if test x$definitely_enable_video_x11_xinput = xyes; then
  19084. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19085. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19087. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19088. have_xinput2_multitouch=no
  19089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19090. /* end confdefs.h. */
  19091. #include <X11/Xlib.h>
  19092. #include <X11/Xproto.h>
  19093. #include <X11/extensions/XInput2.h>
  19094. int
  19095. main ()
  19096. {
  19097. int event_type = XI_TouchBegin;
  19098. XITouchClassInfo *t;
  19099. ;
  19100. return 0;
  19101. }
  19102. _ACEOF
  19103. if ac_fn_c_try_compile "$LINENO"; then :
  19104. have_xinput2_multitouch=yes
  19105. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19106. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19107. fi
  19108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19110. $as_echo "$have_xinput2_multitouch" >&6; }
  19111. fi
  19112. # Check whether --enable-video-x11-xfixes was given.
  19113. if test "${enable_video_x11_xfixes+set}" = set; then :
  19114. enableval=$enable_video_x11_xfixes;
  19115. else
  19116. enable_video_x11_xfixes=yes
  19117. fi
  19118. if test x$enable_video_x11_xfixes = xyes; then
  19119. definitely_enable_video_x11_xfixes=no
  19120. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19122. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19124. /* end confdefs.h. */
  19125. #include <X11/Xlib.h>
  19126. #include <X11/Xproto.h>
  19127. #include <X11/extensions/XInput2.h>
  19128. #include <X11/extensions/Xfixes.h>
  19129. int
  19130. main ()
  19131. {
  19132. BarrierEventID b;
  19133. ;
  19134. return 0;
  19135. }
  19136. _ACEOF
  19137. if ac_fn_c_try_compile "$LINENO"; then :
  19138. have_xfixes_h_hdr=yes
  19139. else
  19140. have_xfixes_h_hdr=no
  19141. fi
  19142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19144. $as_echo "$have_xfixes_h_hdr" >&6; }
  19145. if test x$have_xfixes_h_hdr = xyes; then
  19146. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19147. echo "-- dynamic libXfixes -> $xfixes_lib"
  19148. cat >>confdefs.h <<_ACEOF
  19149. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19150. _ACEOF
  19151. definitely_enable_video_x11_xfixes=yes
  19152. else
  19153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19154. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19155. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19156. $as_echo_n "(cached) " >&6
  19157. else
  19158. ac_check_lib_save_LIBS=$LIBS
  19159. LIBS="-lXfixes $LIBS"
  19160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19161. /* end confdefs.h. */
  19162. /* Override any GCC internal prototype to avoid an error.
  19163. Use char because int might match the return type of a GCC
  19164. builtin and then its argument prototype would still apply. */
  19165. #ifdef __cplusplus
  19166. extern "C"
  19167. #endif
  19168. char XFixesCreatePointerBarrier ();
  19169. int
  19170. main ()
  19171. {
  19172. return XFixesCreatePointerBarrier ();
  19173. ;
  19174. return 0;
  19175. }
  19176. _ACEOF
  19177. if ac_fn_c_try_link "$LINENO"; then :
  19178. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19179. else
  19180. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19181. fi
  19182. rm -f core conftest.err conftest.$ac_objext \
  19183. conftest$ac_exeext conftest.$ac_ext
  19184. LIBS=$ac_check_lib_save_LIBS
  19185. fi
  19186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19187. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19188. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19189. have_xfixes_lib=yes
  19190. fi
  19191. if test x$have_xfixes_lib = xyes ; then
  19192. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19193. definitely_enable_video_x11_xfixes=yes
  19194. fi
  19195. fi
  19196. fi
  19197. fi
  19198. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19199. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19200. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19201. fi
  19202. # Check whether --enable-video-x11-xrandr was given.
  19203. if test "${enable_video_x11_xrandr+set}" = set; then :
  19204. enableval=$enable_video_x11_xrandr;
  19205. else
  19206. enable_video_x11_xrandr=yes
  19207. fi
  19208. if test x$enable_video_x11_xrandr = xyes; then
  19209. definitely_enable_video_x11_xrandr=no
  19210. have_xrandr_h_hdr=no
  19211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19212. /* end confdefs.h. */
  19213. #include <X11/Xlib.h>
  19214. #include <X11/extensions/Xrandr.h>
  19215. int
  19216. main ()
  19217. {
  19218. XRRScreenResources *res = NULL;
  19219. ;
  19220. return 0;
  19221. }
  19222. _ACEOF
  19223. if ac_fn_c_try_compile "$LINENO"; then :
  19224. have_xrandr_h_hdr=yes
  19225. fi
  19226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19227. if test x$have_xrandr_h_hdr = xyes; then
  19228. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19229. echo "-- dynamic libXrandr -> $xrandr_lib"
  19230. cat >>confdefs.h <<_ACEOF
  19231. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19232. _ACEOF
  19233. definitely_enable_video_x11_xrandr=yes
  19234. else
  19235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19236. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19237. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19238. $as_echo_n "(cached) " >&6
  19239. else
  19240. ac_check_lib_save_LIBS=$LIBS
  19241. LIBS="-lXrandr $LIBS"
  19242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19243. /* end confdefs.h. */
  19244. /* Override any GCC internal prototype to avoid an error.
  19245. Use char because int might match the return type of a GCC
  19246. builtin and then its argument prototype would still apply. */
  19247. #ifdef __cplusplus
  19248. extern "C"
  19249. #endif
  19250. char XRRQueryExtension ();
  19251. int
  19252. main ()
  19253. {
  19254. return XRRQueryExtension ();
  19255. ;
  19256. return 0;
  19257. }
  19258. _ACEOF
  19259. if ac_fn_c_try_link "$LINENO"; then :
  19260. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19261. else
  19262. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19263. fi
  19264. rm -f core conftest.err conftest.$ac_objext \
  19265. conftest$ac_exeext conftest.$ac_ext
  19266. LIBS=$ac_check_lib_save_LIBS
  19267. fi
  19268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19269. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19270. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19271. have_xrandr_lib=yes
  19272. fi
  19273. if test x$have_xrandr_lib = xyes ; then
  19274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19275. definitely_enable_video_x11_xrandr=yes
  19276. fi
  19277. fi
  19278. fi
  19279. fi
  19280. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19281. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19282. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19283. fi
  19284. # Check whether --enable-video-x11-scrnsaver was given.
  19285. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19286. enableval=$enable_video_x11_scrnsaver;
  19287. else
  19288. enable_video_x11_scrnsaver=yes
  19289. fi
  19290. if test x$enable_video_x11_scrnsaver = xyes; then
  19291. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19292. "
  19293. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19294. have_scrnsaver_h_hdr=yes
  19295. else
  19296. have_scrnsaver_h_hdr=no
  19297. fi
  19298. if test x$have_scrnsaver_h_hdr = xyes; then
  19299. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19300. echo "-- dynamic libXss -> $xss_lib"
  19301. cat >>confdefs.h <<_ACEOF
  19302. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19303. _ACEOF
  19304. definitely_enable_video_x11_scrnsaver=yes
  19305. else
  19306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19307. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19308. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19309. $as_echo_n "(cached) " >&6
  19310. else
  19311. ac_check_lib_save_LIBS=$LIBS
  19312. LIBS="-lXss $LIBS"
  19313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19314. /* end confdefs.h. */
  19315. /* Override any GCC internal prototype to avoid an error.
  19316. Use char because int might match the return type of a GCC
  19317. builtin and then its argument prototype would still apply. */
  19318. #ifdef __cplusplus
  19319. extern "C"
  19320. #endif
  19321. char XScreenSaverSuspend ();
  19322. int
  19323. main ()
  19324. {
  19325. return XScreenSaverSuspend ();
  19326. ;
  19327. return 0;
  19328. }
  19329. _ACEOF
  19330. if ac_fn_c_try_link "$LINENO"; then :
  19331. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19332. else
  19333. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19334. fi
  19335. rm -f core conftest.err conftest.$ac_objext \
  19336. conftest$ac_exeext conftest.$ac_ext
  19337. LIBS=$ac_check_lib_save_LIBS
  19338. fi
  19339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19340. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19341. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19342. have_xss_lib=yes
  19343. fi
  19344. if test x$have_xss_lib = xyes ; then
  19345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19346. definitely_enable_video_x11_scrnsaver=yes
  19347. fi
  19348. fi
  19349. fi
  19350. fi
  19351. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19352. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19353. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19354. fi
  19355. # Check whether --enable-video-x11-xshape was given.
  19356. if test "${enable_video_x11_xshape+set}" = set; then :
  19357. enableval=$enable_video_x11_xshape;
  19358. else
  19359. enable_video_x11_xshape=yes
  19360. fi
  19361. if test x$enable_video_x11_xshape = xyes; then
  19362. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19363. "
  19364. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19365. have_shape_h_hdr=yes
  19366. else
  19367. have_shape_h_hdr=no
  19368. fi
  19369. if test x$have_shape_h_hdr = xyes; then
  19370. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19371. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19372. fi
  19373. fi
  19374. # Check whether --enable-video-x11-vm was given.
  19375. if test "${enable_video_x11_vm+set}" = set; then :
  19376. enableval=$enable_video_x11_vm;
  19377. else
  19378. enable_video_x11_vm=yes
  19379. fi
  19380. if test x$enable_video_x11_vm = xyes; then
  19381. definitely_enable_video_x11_vm=no
  19382. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  19383. "
  19384. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  19385. have_vm_h_hdr=yes
  19386. else
  19387. have_vm_h_hdr=no
  19388. fi
  19389. if test x$have_vm_h_hdr = xyes; then
  19390. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  19391. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  19392. cat >>confdefs.h <<_ACEOF
  19393. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  19394. _ACEOF
  19395. definitely_enable_video_x11_vm=yes
  19396. else
  19397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  19398. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  19399. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  19400. $as_echo_n "(cached) " >&6
  19401. else
  19402. ac_check_lib_save_LIBS=$LIBS
  19403. LIBS="-lXxf86vm $LIBS"
  19404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19405. /* end confdefs.h. */
  19406. /* Override any GCC internal prototype to avoid an error.
  19407. Use char because int might match the return type of a GCC
  19408. builtin and then its argument prototype would still apply. */
  19409. #ifdef __cplusplus
  19410. extern "C"
  19411. #endif
  19412. char XF86VidModeQueryVersion ();
  19413. int
  19414. main ()
  19415. {
  19416. return XF86VidModeQueryVersion ();
  19417. ;
  19418. return 0;
  19419. }
  19420. _ACEOF
  19421. if ac_fn_c_try_link "$LINENO"; then :
  19422. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  19423. else
  19424. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  19425. fi
  19426. rm -f core conftest.err conftest.$ac_objext \
  19427. conftest$ac_exeext conftest.$ac_ext
  19428. LIBS=$ac_check_lib_save_LIBS
  19429. fi
  19430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  19431. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  19432. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  19433. have_vm_lib=yes
  19434. fi
  19435. if test x$have_vm_lib = xyes ; then
  19436. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  19437. definitely_enable_video_x11_vm=yes
  19438. fi
  19439. fi
  19440. fi
  19441. fi
  19442. if test x$definitely_enable_video_x11_vm = xyes; then
  19443. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  19444. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  19445. fi
  19446. fi
  19447. fi
  19448. if test x$have_x != xyes; then
  19449. # Prevent Mesa from including X11 headers
  19450. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19451. fi
  19452. }
  19453. CheckVivanteVideo()
  19454. {
  19455. # Check whether --enable-video-vivante was given.
  19456. if test "${enable_video_vivante+set}" = set; then :
  19457. enableval=$enable_video_vivante;
  19458. else
  19459. enable_video_vivante=yes
  19460. fi
  19461. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19463. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19464. have_vivante_vdk=no
  19465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19466. /* end confdefs.h. */
  19467. #define LINUX
  19468. #define EGL_API_FB
  19469. #include <gc_vdk.h>
  19470. int
  19471. main ()
  19472. {
  19473. ;
  19474. return 0;
  19475. }
  19476. _ACEOF
  19477. if ac_fn_c_try_compile "$LINENO"; then :
  19478. have_vivante_vdk=yes
  19479. fi
  19480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19482. $as_echo "$have_vivante_vdk" >&6; }
  19483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19484. $as_echo_n "checking for Vivante FB API... " >&6; }
  19485. have_vivante_egl=no
  19486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19487. /* end confdefs.h. */
  19488. #define LINUX
  19489. #define EGL_API_FB
  19490. #include <EGL/eglvivante.h>
  19491. int
  19492. main ()
  19493. {
  19494. ;
  19495. return 0;
  19496. }
  19497. _ACEOF
  19498. if ac_fn_c_try_compile "$LINENO"; then :
  19499. have_vivante_egl=yes
  19500. fi
  19501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19503. $as_echo "$have_vivante_egl" >&6; }
  19504. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19505. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19506. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19507. if test x$have_vivante_vdk = xyes; then
  19508. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19510. fi
  19511. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19512. SUMMARY_video="${SUMMARY_video} vivante"
  19513. have_video=yes
  19514. fi
  19515. fi
  19516. }
  19517. CheckHaikuVideo()
  19518. {
  19519. if test x$enable_video = xyes; then
  19520. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19521. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19522. have_video=yes
  19523. SUMMARY_video="${SUMMARY_video} haiku"
  19524. fi
  19525. }
  19526. CheckCOCOA()
  19527. {
  19528. # Check whether --enable-video-cocoa was given.
  19529. if test "${enable_video_cocoa+set}" = set; then :
  19530. enableval=$enable_video_cocoa;
  19531. else
  19532. enable_video_cocoa=yes
  19533. fi
  19534. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19535. save_CFLAGS="$CFLAGS"
  19536. CFLAGS="$CFLAGS -x objective-c"
  19537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19538. $as_echo_n "checking for Cocoa framework... " >&6; }
  19539. have_cocoa=no
  19540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19541. /* end confdefs.h. */
  19542. #import <Cocoa/Cocoa.h>
  19543. int
  19544. main ()
  19545. {
  19546. ;
  19547. return 0;
  19548. }
  19549. _ACEOF
  19550. if ac_fn_c_try_compile "$LINENO"; then :
  19551. have_cocoa=yes
  19552. fi
  19553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19555. $as_echo "$have_cocoa" >&6; }
  19556. CFLAGS="$save_CFLAGS"
  19557. if test x$have_cocoa = xyes; then
  19558. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19559. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19560. SUMMARY_video="${SUMMARY_video} cocoa"
  19561. have_video=yes
  19562. fi
  19563. fi
  19564. }
  19565. CheckMETAL()
  19566. {
  19567. # Check whether --enable-video-metal was given.
  19568. if test "${enable_video_metal+set}" = set; then :
  19569. enableval=$enable_video_metal;
  19570. else
  19571. enable_video_metal=yes
  19572. fi
  19573. # Check whether --enable-render-metal was given.
  19574. if test "${enable_render_metal+set}" = set; then :
  19575. enableval=$enable_render_metal;
  19576. else
  19577. enable_render_metal=yes
  19578. fi
  19579. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19580. save_CFLAGS="$CFLAGS"
  19581. CFLAGS="$CFLAGS -x objective-c"
  19582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19583. $as_echo_n "checking for Metal framework... " >&6; }
  19584. have_metal=no
  19585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19586. /* end confdefs.h. */
  19587. #import <Cocoa/Cocoa.h>
  19588. #import <Metal/Metal.h>
  19589. #import <QuartzCore/CAMetalLayer.h>
  19590. #if TARGET_CPU_X86
  19591. #error Metal doesn't work on this configuration
  19592. #endif
  19593. int
  19594. main ()
  19595. {
  19596. ;
  19597. return 0;
  19598. }
  19599. _ACEOF
  19600. if ac_fn_c_try_compile "$LINENO"; then :
  19601. have_metal=yes
  19602. fi
  19603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19604. CFLAGS="$save_CFLAGS"
  19605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19606. $as_echo "$have_metal" >&6; }
  19607. if test x$have_metal = xyes; then
  19608. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19609. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19610. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19611. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19612. fi
  19613. SUMMARY_video="${SUMMARY_video} metal"
  19614. else
  19615. enable_video_metal=no
  19616. enable_render_metal=no
  19617. fi
  19618. fi
  19619. }
  19620. CheckDirectFB()
  19621. {
  19622. # Check whether --enable-video-directfb was given.
  19623. if test "${enable_video_directfb+set}" = set; then :
  19624. enableval=$enable_video_directfb;
  19625. else
  19626. enable_video_directfb=no
  19627. fi
  19628. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19629. pkg_failed=no
  19630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19631. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19632. if test -n "$DIRECTFB_CFLAGS"; then
  19633. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19634. elif test -n "$PKG_CONFIG"; then
  19635. if test -n "$PKG_CONFIG" && \
  19636. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19637. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19638. ac_status=$?
  19639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19640. test $ac_status = 0; }; then
  19641. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19642. test "x$?" != "x0" && pkg_failed=yes
  19643. else
  19644. pkg_failed=yes
  19645. fi
  19646. else
  19647. pkg_failed=untried
  19648. fi
  19649. if test -n "$DIRECTFB_LIBS"; then
  19650. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19651. elif test -n "$PKG_CONFIG"; then
  19652. if test -n "$PKG_CONFIG" && \
  19653. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19654. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19655. ac_status=$?
  19656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19657. test $ac_status = 0; }; then
  19658. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19659. test "x$?" != "x0" && pkg_failed=yes
  19660. else
  19661. pkg_failed=yes
  19662. fi
  19663. else
  19664. pkg_failed=untried
  19665. fi
  19666. if test $pkg_failed = yes; then
  19667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19668. $as_echo "no" >&6; }
  19669. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19670. _pkg_short_errors_supported=yes
  19671. else
  19672. _pkg_short_errors_supported=no
  19673. fi
  19674. if test $_pkg_short_errors_supported = yes; then
  19675. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19676. else
  19677. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19678. fi
  19679. # Put the nasty error message in config.log where it belongs
  19680. echo "$DIRECTFB_PKG_ERRORS" >&5
  19681. video_directfb=no
  19682. elif test $pkg_failed = untried; then
  19683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19684. $as_echo "no" >&6; }
  19685. video_directfb=no
  19686. else
  19687. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19688. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19690. $as_echo "yes" >&6; }
  19691. video_directfb=yes
  19692. fi
  19693. if test x$video_directfb = xyes; then
  19694. # SuSE 11.1 installs directfb-config without directfb-devel
  19695. save_CPPFLAGS="$CPPFLAGS"
  19696. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19697. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19698. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19699. have_directfb_hdr=yes
  19700. else
  19701. have_directfb_hdr=no
  19702. fi
  19703. CPPFLAGS="$save_CPPFLAGS"
  19704. video_directfb=$have_directfb_hdr
  19705. fi
  19706. if test x$video_directfb = xyes; then
  19707. # Check whether --enable-directfb-shared was given.
  19708. if test "${enable_directfb_shared+set}" = set; then :
  19709. enableval=$enable_directfb_shared;
  19710. else
  19711. enable_directfb_shared=yes
  19712. fi
  19713. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19714. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19715. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19716. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19717. directfb_shared=no
  19718. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19719. if test x$have_loadso != xyes && \
  19720. test x$enable_directfb_shared = xyes; then
  19721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19722. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19723. fi
  19724. if test x$have_loadso = xyes && \
  19725. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19726. directfb_shared=yes
  19727. echo "-- dynamic libdirectfb -> $directfb_lib"
  19728. cat >>confdefs.h <<_ACEOF
  19729. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19730. _ACEOF
  19731. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19732. else
  19733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19734. SUMMARY_video="${SUMMARY_video} directfb"
  19735. fi
  19736. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19737. have_video=yes
  19738. fi
  19739. fi
  19740. }
  19741. CheckKMSDRM()
  19742. {
  19743. # Check whether --enable-video-kmsdrm was given.
  19744. if test "${enable_video_kmsdrm+set}" = set; then :
  19745. enableval=$enable_video_kmsdrm;
  19746. else
  19747. enable_video_kmsdrm=yes
  19748. fi
  19749. if test x$enable_video = xyes && \
  19750. test x$enable_video_kmsdrm = xyes && \
  19751. test x$video_opengl_egl = xyes; then
  19752. video_kmsdrm=no
  19753. pkg_failed=no
  19754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19755. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19756. if test -n "$LIBDRM_CFLAGS"; then
  19757. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19758. elif test -n "$PKG_CONFIG"; then
  19759. if test -n "$PKG_CONFIG" && \
  19760. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19761. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19762. ac_status=$?
  19763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19764. test $ac_status = 0; }; then
  19765. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19766. test "x$?" != "x0" && pkg_failed=yes
  19767. else
  19768. pkg_failed=yes
  19769. fi
  19770. else
  19771. pkg_failed=untried
  19772. fi
  19773. if test -n "$LIBDRM_LIBS"; then
  19774. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19775. elif test -n "$PKG_CONFIG"; then
  19776. if test -n "$PKG_CONFIG" && \
  19777. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19778. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19779. ac_status=$?
  19780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19781. test $ac_status = 0; }; then
  19782. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19783. test "x$?" != "x0" && pkg_failed=yes
  19784. else
  19785. pkg_failed=yes
  19786. fi
  19787. else
  19788. pkg_failed=untried
  19789. fi
  19790. if test $pkg_failed = yes; then
  19791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19792. $as_echo "no" >&6; }
  19793. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19794. _pkg_short_errors_supported=yes
  19795. else
  19796. _pkg_short_errors_supported=no
  19797. fi
  19798. if test $_pkg_short_errors_supported = yes; then
  19799. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19800. else
  19801. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19802. fi
  19803. # Put the nasty error message in config.log where it belongs
  19804. echo "$LIBDRM_PKG_ERRORS" >&5
  19805. libdrm_avail=no
  19806. elif test $pkg_failed = untried; then
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19808. $as_echo "no" >&6; }
  19809. libdrm_avail=no
  19810. else
  19811. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19812. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19814. $as_echo "yes" >&6; }
  19815. libdrm_avail=yes
  19816. fi
  19817. pkg_failed=no
  19818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19819. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19820. if test -n "$LIBGBM_CFLAGS"; then
  19821. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19822. elif test -n "$PKG_CONFIG"; then
  19823. if test -n "$PKG_CONFIG" && \
  19824. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19825. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19826. ac_status=$?
  19827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19828. test $ac_status = 0; }; then
  19829. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19830. test "x$?" != "x0" && pkg_failed=yes
  19831. else
  19832. pkg_failed=yes
  19833. fi
  19834. else
  19835. pkg_failed=untried
  19836. fi
  19837. if test -n "$LIBGBM_LIBS"; then
  19838. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19839. elif test -n "$PKG_CONFIG"; then
  19840. if test -n "$PKG_CONFIG" && \
  19841. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19842. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19843. ac_status=$?
  19844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19845. test $ac_status = 0; }; then
  19846. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19847. test "x$?" != "x0" && pkg_failed=yes
  19848. else
  19849. pkg_failed=yes
  19850. fi
  19851. else
  19852. pkg_failed=untried
  19853. fi
  19854. if test $pkg_failed = yes; then
  19855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19856. $as_echo "no" >&6; }
  19857. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19858. _pkg_short_errors_supported=yes
  19859. else
  19860. _pkg_short_errors_supported=no
  19861. fi
  19862. if test $_pkg_short_errors_supported = yes; then
  19863. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19864. else
  19865. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19866. fi
  19867. # Put the nasty error message in config.log where it belongs
  19868. echo "$LIBGBM_PKG_ERRORS" >&5
  19869. libgbm_avail=no
  19870. elif test $pkg_failed = untried; then
  19871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19872. $as_echo "no" >&6; }
  19873. libgbm_avail=no
  19874. else
  19875. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19876. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19878. $as_echo "yes" >&6; }
  19879. libgbm_avail=yes
  19880. fi
  19881. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19882. video_kmsdrm=yes
  19883. fi
  19884. if test x$video_kmsdrm = xyes; then
  19885. # Check whether --enable-kmsdrm-shared was given.
  19886. if test "${enable_kmsdrm_shared+set}" = set; then :
  19887. enableval=$enable_kmsdrm_shared;
  19888. else
  19889. enable_kmsdrm_shared=yes
  19890. fi
  19891. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19892. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19893. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19895. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19896. kmsdrm_shared=no
  19897. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19898. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19899. if test x$have_loadso != xyes && \
  19900. test x$enable_kmsdrm_shared = xyes; then
  19901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19902. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19903. fi
  19904. if test x$have_loadso = xyes && \
  19905. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19906. kmsdrm_shared=yes
  19907. cat >>confdefs.h <<_ACEOF
  19908. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19909. _ACEOF
  19910. cat >>confdefs.h <<_ACEOF
  19911. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19912. _ACEOF
  19913. cat >>confdefs.h <<_ACEOF
  19914. #define HAVE_KMSDRM_SHARED "TRUE"
  19915. _ACEOF
  19916. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19917. else
  19918. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19919. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19920. fi
  19921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19922. $as_echo "$kmsdrm_shared" >&6; }
  19923. if test x$kmsdrm_shared = xyes; then
  19924. echo "-- dynamic libdrm -> $drm_lib"
  19925. echo "-- dynamic libgbm -> $gbm_lib"
  19926. fi
  19927. have_video=yes
  19928. fi
  19929. fi
  19930. }
  19931. CheckDummyVideo()
  19932. {
  19933. # Check whether --enable-video-dummy was given.
  19934. if test "${enable_video_dummy+set}" = set; then :
  19935. enableval=$enable_video_dummy;
  19936. else
  19937. enable_video_dummy=yes
  19938. fi
  19939. if test x$enable_video_dummy = xyes; then
  19940. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19941. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19942. have_video=yes
  19943. SUMMARY_video="${SUMMARY_video} dummy"
  19944. fi
  19945. }
  19946. CheckOffscreenVideo()
  19947. {
  19948. # Check whether --enable-video-offscreen was given.
  19949. if test "${enable_video_offscreen+set}" = set; then :
  19950. enableval=$enable_video_offscreen;
  19951. else
  19952. enable_video_offscreen=no
  19953. fi
  19954. if test x$enable_video_offscreen = xyes; then
  19955. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  19956. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  19957. have_video=yes
  19958. SUMMARY_video="${SUMMARY_video} offscreen"
  19959. fi
  19960. }
  19961. CheckQNXVideo()
  19962. {
  19963. if test x$enable_video = xyes; then
  19964. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19965. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19966. have_video=yes
  19967. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19968. SUMMARY_video="${SUMMARY_video} qnx"
  19969. fi
  19970. }
  19971. CheckQNXAudio()
  19972. {
  19973. if test x$enable_audio = xyes; then
  19974. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19975. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19976. have_audio=yes
  19977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19978. SUMMARY_audio="${SUMMARY_audio} qsa"
  19979. fi
  19980. }
  19981. # Check whether --enable-video-opengl was given.
  19982. if test "${enable_video_opengl+set}" = set; then :
  19983. enableval=$enable_video_opengl;
  19984. else
  19985. enable_video_opengl=yes
  19986. fi
  19987. CheckGLX()
  19988. {
  19989. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19991. $as_echo_n "checking for GLX support... " >&6; }
  19992. video_opengl_glx=no
  19993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19994. /* end confdefs.h. */
  19995. #include <GL/glx.h>
  19996. int
  19997. main ()
  19998. {
  19999. ;
  20000. return 0;
  20001. }
  20002. _ACEOF
  20003. if ac_fn_c_try_compile "$LINENO"; then :
  20004. video_opengl_glx=yes
  20005. fi
  20006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  20008. $as_echo "$video_opengl_glx" >&6; }
  20009. if test x$video_opengl_glx = xyes; then
  20010. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20011. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  20012. fi
  20013. fi
  20014. }
  20015. # Check whether --enable-video-opengles was given.
  20016. if test "${enable_video_opengles+set}" = set; then :
  20017. enableval=$enable_video_opengles;
  20018. else
  20019. enable_video_opengles=yes
  20020. fi
  20021. # Check whether --enable-video-opengles1 was given.
  20022. if test "${enable_video_opengles1+set}" = set; then :
  20023. enableval=$enable_video_opengles1;
  20024. else
  20025. enable_video_opengles1=yes
  20026. fi
  20027. # Check whether --enable-video-opengles2 was given.
  20028. if test "${enable_video_opengles2+set}" = set; then :
  20029. enableval=$enable_video_opengles2;
  20030. else
  20031. enable_video_opengles2=yes
  20032. fi
  20033. CheckEGL()
  20034. {
  20035. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20037. $as_echo_n "checking for EGL support... " >&6; }
  20038. video_opengl_egl=no
  20039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20040. /* end confdefs.h. */
  20041. #define LINUX
  20042. #define EGL_API_FB
  20043. #define MESA_EGL_NO_X11_HEADERS
  20044. #define EGL_NO_X11
  20045. #include <EGL/egl.h>
  20046. #include <EGL/eglext.h>
  20047. int
  20048. main ()
  20049. {
  20050. ;
  20051. return 0;
  20052. }
  20053. _ACEOF
  20054. if ac_fn_c_try_compile "$LINENO"; then :
  20055. video_opengl_egl=yes
  20056. fi
  20057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20059. $as_echo "$video_opengl_egl" >&6; }
  20060. if test x$video_opengl_egl = xyes; then
  20061. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20062. fi
  20063. fi
  20064. }
  20065. CheckOpenGL()
  20066. {
  20067. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20069. $as_echo_n "checking for OpenGL headers... " >&6; }
  20070. video_opengl=no
  20071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20072. /* end confdefs.h. */
  20073. #include <GL/gl.h>
  20074. #include <GL/glext.h>
  20075. int
  20076. main ()
  20077. {
  20078. ;
  20079. return 0;
  20080. }
  20081. _ACEOF
  20082. if ac_fn_c_try_compile "$LINENO"; then :
  20083. video_opengl=yes
  20084. fi
  20085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20087. $as_echo "$video_opengl" >&6; }
  20088. if test x$video_opengl = xyes; then
  20089. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20090. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20091. SUMMARY_video="${SUMMARY_video} opengl"
  20092. fi
  20093. fi
  20094. }
  20095. CheckOpenGLES()
  20096. {
  20097. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20098. if test x$enable_video_opengles1 = xyes; then
  20099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20100. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20101. video_opengles_v1=no
  20102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20103. /* end confdefs.h. */
  20104. #include <GLES/gl.h>
  20105. #include <GLES/glext.h>
  20106. int
  20107. main ()
  20108. {
  20109. ;
  20110. return 0;
  20111. }
  20112. _ACEOF
  20113. if ac_fn_c_try_compile "$LINENO"; then :
  20114. video_opengles_v1=yes
  20115. fi
  20116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20118. $as_echo "$video_opengles_v1" >&6; }
  20119. if test x$video_opengles_v1 = xyes; then
  20120. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20121. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20122. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20123. fi
  20124. fi
  20125. if test x$enable_video_opengles2 = xyes; then
  20126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20127. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20128. video_opengles_v2=no
  20129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20130. /* end confdefs.h. */
  20131. #include <GLES2/gl2.h>
  20132. #include <GLES2/gl2ext.h>
  20133. int
  20134. main ()
  20135. {
  20136. ;
  20137. return 0;
  20138. }
  20139. _ACEOF
  20140. if ac_fn_c_try_compile "$LINENO"; then :
  20141. video_opengles_v2=yes
  20142. fi
  20143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20145. $as_echo "$video_opengles_v2" >&6; }
  20146. if test x$video_opengles_v2 = xyes; then
  20147. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20148. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20149. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20150. fi
  20151. fi
  20152. fi
  20153. }
  20154. CheckWINDOWSGL()
  20155. {
  20156. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20157. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20158. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20159. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20160. SUMMARY_video="${SUMMARY_video} opengl"
  20161. fi
  20162. }
  20163. CheckWINDOWSGLES()
  20164. {
  20165. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20167. $as_echo_n "checking for EGL support... " >&6; }
  20168. video_opengl_egl=no
  20169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20170. /* end confdefs.h. */
  20171. #include <EGL/egl.h>
  20172. int
  20173. main ()
  20174. {
  20175. ;
  20176. return 0;
  20177. }
  20178. _ACEOF
  20179. if ac_fn_c_try_compile "$LINENO"; then :
  20180. video_opengl_egl=yes
  20181. fi
  20182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20184. $as_echo "$video_opengl_egl" >&6; }
  20185. if test x$video_opengl_egl = xyes; then
  20186. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20187. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20188. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20189. fi
  20190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20191. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20192. video_opengles_v2=no
  20193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20194. /* end confdefs.h. */
  20195. #include <GLES2/gl2.h>
  20196. #include <GLES2/gl2ext.h>
  20197. int
  20198. main ()
  20199. {
  20200. ;
  20201. return 0;
  20202. }
  20203. _ACEOF
  20204. if ac_fn_c_try_compile "$LINENO"; then :
  20205. video_opengles_v2=yes
  20206. fi
  20207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20209. $as_echo "$video_opengles_v2" >&6; }
  20210. if test x$video_opengles_v2 = xyes; then
  20211. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20212. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20213. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20214. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20215. fi
  20216. fi
  20217. }
  20218. CheckHaikuGL()
  20219. {
  20220. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20221. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20222. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20223. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20224. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20225. SUMMARY_video="${SUMMARY_video} opengl"
  20226. fi
  20227. }
  20228. CheckMacGL()
  20229. {
  20230. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20231. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20232. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20233. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20234. SUMMARY_video="${SUMMARY_video} opengl"
  20235. fi
  20236. }
  20237. CheckMacGLES()
  20238. {
  20239. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20240. video_opengl_egl=yes
  20241. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20242. video_opengles_v2=yes
  20243. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20244. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20245. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20246. fi
  20247. }
  20248. CheckEmscriptenGLES()
  20249. {
  20250. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20252. $as_echo_n "checking for EGL support... " >&6; }
  20253. video_opengl_egl=no
  20254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20255. /* end confdefs.h. */
  20256. #include <EGL/egl.h>
  20257. int
  20258. main ()
  20259. {
  20260. ;
  20261. return 0;
  20262. }
  20263. _ACEOF
  20264. if ac_fn_c_try_compile "$LINENO"; then :
  20265. video_opengl_egl=yes
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20269. $as_echo "$video_opengl_egl" >&6; }
  20270. if test x$video_opengl_egl = xyes; then
  20271. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20272. fi
  20273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20274. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20275. video_opengles_v2=no
  20276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20277. /* end confdefs.h. */
  20278. #include <GLES2/gl2.h>
  20279. #include <GLES2/gl2ext.h>
  20280. int
  20281. main ()
  20282. {
  20283. ;
  20284. return 0;
  20285. }
  20286. _ACEOF
  20287. if ac_fn_c_try_compile "$LINENO"; then :
  20288. video_opengles_v2=yes
  20289. fi
  20290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20292. $as_echo "$video_opengles_v2" >&6; }
  20293. if test x$video_opengles_v2 = xyes; then
  20294. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20295. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20296. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20297. fi
  20298. fi
  20299. }
  20300. # Check whether --enable-video-vulkan was given.
  20301. if test "${enable_video_vulkan+set}" = set; then :
  20302. enableval=$enable_video_vulkan;
  20303. else
  20304. enable_video_vulkan=yes
  20305. fi
  20306. CheckVulkan()
  20307. {
  20308. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20309. case "$host" in
  20310. *-*-android*)
  20311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20312. /* end confdefs.h. */
  20313. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20314. #error Vulkan doesn't work on this configuration
  20315. #endif
  20316. int
  20317. main ()
  20318. {
  20319. ;
  20320. return 0;
  20321. }
  20322. _ACEOF
  20323. if ac_fn_c_try_compile "$LINENO"; then :
  20324. else
  20325. enable_video_vulkan=no
  20326. fi
  20327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20328. ;;
  20329. *-*-darwin*)
  20330. save_CFLAGS="$CFLAGS"
  20331. CFLAGS="$CFLAGS -x objective-c"
  20332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20333. /* end confdefs.h. */
  20334. #include <Cocoa/Cocoa.h>
  20335. #include <Metal/Metal.h>
  20336. #include <QuartzCore/CAMetalLayer.h>
  20337. #if TARGET_CPU_X86
  20338. #error Vulkan doesn't work on this configuration
  20339. #endif
  20340. int
  20341. main ()
  20342. {
  20343. ;
  20344. return 0;
  20345. }
  20346. _ACEOF
  20347. if ac_fn_c_try_compile "$LINENO"; then :
  20348. else
  20349. enable_video_vulkan=no
  20350. fi
  20351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20352. CFLAGS="$save_CFLAGS"
  20353. ;;
  20354. *)
  20355. ;;
  20356. esac
  20357. if test x$enable_video_vulkan = xno; then
  20358. # For reasons I am totally unable to see, I get an undefined macro error if
  20359. # I put this in the AC_TRY_COMPILE.
  20360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20361. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20362. fi
  20363. fi
  20364. if test x$have_loadso != xyes; then
  20365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20366. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20367. enable_video_vulkan=no
  20368. fi
  20369. if test x$enable_video_vulkan = xyes; then
  20370. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20371. SUMMARY_video="${SUMMARY_video} vulkan"
  20372. fi
  20373. }
  20374. CheckInputEvents()
  20375. {
  20376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20377. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20378. use_input_events=no
  20379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20380. /* end confdefs.h. */
  20381. #include <linux/input.h>
  20382. int
  20383. main ()
  20384. {
  20385. #ifndef EVIOCGNAME
  20386. #error EVIOCGNAME() ioctl not available
  20387. #endif
  20388. ;
  20389. return 0;
  20390. }
  20391. _ACEOF
  20392. if ac_fn_c_try_compile "$LINENO"; then :
  20393. use_input_events=yes
  20394. fi
  20395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20397. $as_echo "$use_input_events" >&6; }
  20398. if test x$use_input_events = xyes; then
  20399. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20400. SUMMARY_input="${SUMMARY_input} linuxev"
  20401. fi
  20402. }
  20403. CheckInputKD()
  20404. {
  20405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20406. $as_echo_n "checking for Linux kd.h... " >&6; }
  20407. use_input_kd=no
  20408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20409. /* end confdefs.h. */
  20410. #include <linux/kd.h>
  20411. #include <linux/keyboard.h>
  20412. int
  20413. main ()
  20414. {
  20415. struct kbentry kbe;
  20416. kbe.kb_table = KG_CTRL;
  20417. ioctl(0, KDGKBENT, &kbe);
  20418. ;
  20419. return 0;
  20420. }
  20421. _ACEOF
  20422. if ac_fn_c_try_compile "$LINENO"; then :
  20423. use_input_kd=yes
  20424. fi
  20425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20427. $as_echo "$use_input_kd" >&6; }
  20428. if test x$use_input_kd = xyes; then
  20429. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20430. SUMMARY_input="${SUMMARY_input} linuxkd"
  20431. fi
  20432. }
  20433. CheckInputKBIO()
  20434. {
  20435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20436. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20437. use_input_kbio=no
  20438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20439. /* end confdefs.h. */
  20440. #include <sys/kbio.h>
  20441. #include <sys/ioctl.h>
  20442. int
  20443. main ()
  20444. {
  20445. accentmap_t accTable;
  20446. ioctl(0, KDENABIO, 1);
  20447. ;
  20448. return 0;
  20449. }
  20450. _ACEOF
  20451. if ac_fn_c_try_compile "$LINENO"; then :
  20452. use_input_kbio=yes
  20453. fi
  20454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20456. $as_echo "$use_input_kbio" >&6; }
  20457. if test x$use_input_kbio = xyes; then
  20458. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20459. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20460. fi
  20461. }
  20462. CheckInputWSCONS()
  20463. {
  20464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20465. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20466. use_input_wscons=no
  20467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20468. /* end confdefs.h. */
  20469. #include <sys/time.h>
  20470. #include <dev/wscons/wsconsio.h>
  20471. #include <dev/wscons/wsksymdef.h>
  20472. #include <dev/wscons/wsksymvar.h>
  20473. #include <sys/ioctl.h>
  20474. int
  20475. main ()
  20476. {
  20477. struct wskbd_map_data data;
  20478. ioctl(0, WSKBDIO_GETMAP, &data);
  20479. ;
  20480. return 0;
  20481. }
  20482. _ACEOF
  20483. if ac_fn_c_try_compile "$LINENO"; then :
  20484. use_input_wscons=yes
  20485. fi
  20486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20488. $as_echo "$use_input_wscons" >&6; }
  20489. if test x$use_input_wscons = xyes; then
  20490. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20491. SUMMARY_input="${SUMMARY_input} wscons"
  20492. fi
  20493. }
  20494. CheckLibUDev()
  20495. {
  20496. # Check whether --enable-libudev was given.
  20497. if test "${enable_libudev+set}" = set; then :
  20498. enableval=$enable_libudev;
  20499. else
  20500. enable_libudev=yes
  20501. fi
  20502. if test x$enable_libudev = xyes; then
  20503. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20504. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20505. have_libudev_h_hdr=yes
  20506. else
  20507. have_libudev_h_hdr=no
  20508. fi
  20509. if test x$have_libudev_h_hdr = xyes; then
  20510. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20511. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20512. if test x$udev_lib != x; then
  20513. echo "-- dynamic udev -> $udev_lib"
  20514. cat >>confdefs.h <<_ACEOF
  20515. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20516. _ACEOF
  20517. fi
  20518. fi
  20519. fi
  20520. }
  20521. CheckDBus()
  20522. {
  20523. # Check whether --enable-dbus was given.
  20524. if test "${enable_dbus+set}" = set; then :
  20525. enableval=$enable_dbus;
  20526. else
  20527. enable_dbus=yes
  20528. fi
  20529. if test x$enable_dbus = xyes; then
  20530. pkg_failed=no
  20531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20532. $as_echo_n "checking for dbus-1... " >&6; }
  20533. if test -n "$DBUS_CFLAGS"; then
  20534. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20535. elif test -n "$PKG_CONFIG"; then
  20536. if test -n "$PKG_CONFIG" && \
  20537. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20538. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20539. ac_status=$?
  20540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20541. test $ac_status = 0; }; then
  20542. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20543. test "x$?" != "x0" && pkg_failed=yes
  20544. else
  20545. pkg_failed=yes
  20546. fi
  20547. else
  20548. pkg_failed=untried
  20549. fi
  20550. if test -n "$DBUS_LIBS"; then
  20551. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20552. elif test -n "$PKG_CONFIG"; then
  20553. if test -n "$PKG_CONFIG" && \
  20554. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20555. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20556. ac_status=$?
  20557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20558. test $ac_status = 0; }; then
  20559. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20560. test "x$?" != "x0" && pkg_failed=yes
  20561. else
  20562. pkg_failed=yes
  20563. fi
  20564. else
  20565. pkg_failed=untried
  20566. fi
  20567. if test $pkg_failed = yes; then
  20568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20569. $as_echo "no" >&6; }
  20570. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20571. _pkg_short_errors_supported=yes
  20572. else
  20573. _pkg_short_errors_supported=no
  20574. fi
  20575. if test $_pkg_short_errors_supported = yes; then
  20576. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20577. else
  20578. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20579. fi
  20580. # Put the nasty error message in config.log where it belongs
  20581. echo "$DBUS_PKG_ERRORS" >&5
  20582. have_dbus=no
  20583. elif test $pkg_failed = untried; then
  20584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20585. $as_echo "no" >&6; }
  20586. have_dbus=no
  20587. else
  20588. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20589. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20591. $as_echo "yes" >&6; }
  20592. have_dbus=yes
  20593. fi
  20594. save_CPPFLAGS="$CPPFLAGS"
  20595. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20596. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20597. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20598. have_dbus_dbus_h_hdr=yes
  20599. else
  20600. have_dbus_dbus_h_hdr=no
  20601. fi
  20602. CPPFLAGS="$save_CPPFLAGS"
  20603. if test x$have_dbus_dbus_h_hdr = xyes; then
  20604. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20605. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20606. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20607. fi
  20608. fi
  20609. }
  20610. CheckIME()
  20611. {
  20612. # Check whether --enable-ime was given.
  20613. if test "${enable_ime+set}" = set; then :
  20614. enableval=$enable_ime;
  20615. else
  20616. enable_ime=yes
  20617. fi
  20618. if test x$enable_ime = xyes; then
  20619. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20620. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20621. fi
  20622. }
  20623. CheckInotify()
  20624. {
  20625. save_LIBS="$LIBS"
  20626. case "$host" in
  20627. *-*-freebsd*) LIBS="$LIBS -linotify"
  20628. ;;
  20629. esac
  20630. for ac_header in sys/inotify.h
  20631. do :
  20632. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20633. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20634. cat >>confdefs.h <<_ACEOF
  20635. #define HAVE_SYS_INOTIFY_H 1
  20636. _ACEOF
  20637. have_inotify_inotify_h_hdr=yes
  20638. fi
  20639. done
  20640. for ac_func in inotify_init
  20641. do :
  20642. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20643. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20644. cat >>confdefs.h <<_ACEOF
  20645. #define HAVE_INOTIFY_INIT 1
  20646. _ACEOF
  20647. have_inotify=yes
  20648. fi
  20649. done
  20650. for ac_func in inotify_init1
  20651. do :
  20652. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20653. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20654. cat >>confdefs.h <<_ACEOF
  20655. #define HAVE_INOTIFY_INIT1 1
  20656. _ACEOF
  20657. fi
  20658. done
  20659. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20660. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20661. case "$host" in
  20662. *-*-freebsd*)
  20663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20664. ;;
  20665. esac
  20666. fi
  20667. LIBS="$save_LIBS"
  20668. }
  20669. CheckIBus()
  20670. {
  20671. # Check whether --enable-ibus was given.
  20672. if test "${enable_ibus+set}" = set; then :
  20673. enableval=$enable_ibus;
  20674. else
  20675. enable_ibus=yes
  20676. fi
  20677. if test x$enable_ibus = xyes; then
  20678. pkg_failed=no
  20679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20680. $as_echo_n "checking for ibus-1.0... " >&6; }
  20681. if test -n "$IBUS_CFLAGS"; then
  20682. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20683. elif test -n "$PKG_CONFIG"; then
  20684. if test -n "$PKG_CONFIG" && \
  20685. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20686. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20687. ac_status=$?
  20688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20689. test $ac_status = 0; }; then
  20690. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20691. test "x$?" != "x0" && pkg_failed=yes
  20692. else
  20693. pkg_failed=yes
  20694. fi
  20695. else
  20696. pkg_failed=untried
  20697. fi
  20698. if test -n "$IBUS_LIBS"; then
  20699. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20700. elif test -n "$PKG_CONFIG"; then
  20701. if test -n "$PKG_CONFIG" && \
  20702. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20703. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20704. ac_status=$?
  20705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20706. test $ac_status = 0; }; then
  20707. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20708. test "x$?" != "x0" && pkg_failed=yes
  20709. else
  20710. pkg_failed=yes
  20711. fi
  20712. else
  20713. pkg_failed=untried
  20714. fi
  20715. if test $pkg_failed = yes; then
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20717. $as_echo "no" >&6; }
  20718. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20719. _pkg_short_errors_supported=yes
  20720. else
  20721. _pkg_short_errors_supported=no
  20722. fi
  20723. if test $_pkg_short_errors_supported = yes; then
  20724. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20725. else
  20726. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20727. fi
  20728. # Put the nasty error message in config.log where it belongs
  20729. echo "$IBUS_PKG_ERRORS" >&5
  20730. have_ibus=no
  20731. elif test $pkg_failed = untried; then
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20733. $as_echo "no" >&6; }
  20734. have_ibus=no
  20735. else
  20736. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20737. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20739. $as_echo "yes" >&6; }
  20740. have_ibus=yes
  20741. fi
  20742. save_CPPFLAGS="$CPPFLAGS"
  20743. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20744. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20745. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20746. have_ibus_ibus_h_hdr=yes
  20747. else
  20748. have_ibus_ibus_h_hdr=no
  20749. fi
  20750. CPPFLAGS="$save_CPPFLAGS"
  20751. if test x$have_ibus_ibus_h_hdr = xyes; then
  20752. if test x$enable_ime != xyes; then
  20753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20754. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20755. have_ibus_ibus_h_hdr=no
  20756. elif test x$enable_dbus != xyes; then
  20757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20758. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20759. have_ibus_ibus_h_hdr=no
  20760. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20762. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20763. have_ibus_ibus_h_hdr=no
  20764. else
  20765. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20766. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20767. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20768. fi
  20769. fi
  20770. fi
  20771. }
  20772. CheckFcitx()
  20773. {
  20774. # Check whether --enable-fcitx was given.
  20775. if test "${enable_fcitx+set}" = set; then :
  20776. enableval=$enable_fcitx;
  20777. else
  20778. enable_fcitx=yes
  20779. fi
  20780. if test x$enable_fcitx = xyes; then
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20782. $as_echo_n "checking for fcitx support... " >&6; }
  20783. have_fcitx=no
  20784. if test x$enable_ime != xyes; then
  20785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20786. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20787. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20789. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20790. else
  20791. have_fcitx=yes
  20792. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20793. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20794. fi
  20795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20796. $as_echo "$have_fcitx" >&6; }
  20797. fi
  20798. }
  20799. CheckJoystickMFI()
  20800. {
  20801. # Check whether --enable-joystick-mfi was given.
  20802. if test "${enable_joystick_mfi+set}" = set; then :
  20803. enableval=$enable_joystick_mfi;
  20804. else
  20805. enable_joystick_mfi=yes
  20806. fi
  20807. if test x$enable_joystick_mfi = xyes; then
  20808. save_CFLAGS="$CFLAGS"
  20809. save_LDFLAGS="$LDFLAGS"
  20810. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20811. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20813. $as_echo_n "checking for GameController framework... " >&6; }
  20814. enable_joystick_mfi=no
  20815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20816. /* end confdefs.h. */
  20817. #include <AvailabilityMacros.h>
  20818. #include <TargetConditionals.h>
  20819. #import <GameController/GameController.h>
  20820. int
  20821. main ()
  20822. {
  20823. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20824. #error GameController framework doesn't work on this configuration
  20825. #endif
  20826. #if TARGET_CPU_X86
  20827. #error GameController framework doesn't work on this configuration
  20828. #endif
  20829. ;
  20830. return 0;
  20831. }
  20832. _ACEOF
  20833. if ac_fn_c_try_link "$LINENO"; then :
  20834. enable_joystick_mfi=yes
  20835. fi
  20836. rm -f core conftest.err conftest.$ac_objext \
  20837. conftest$ac_exeext conftest.$ac_ext
  20838. CFLAGS="$save_CFLAGS"
  20839. LDFLAGS="$save_LDFLAGS"
  20840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20841. $as_echo "$enable_joystick_mfi" >&6; }
  20842. if test x$enable_joystick_mfi = xyes; then
  20843. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20844. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20845. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20846. fi
  20847. fi
  20848. }
  20849. CheckPTHREAD()
  20850. {
  20851. case "$host" in
  20852. *-*-emscripten*)
  20853. enable_pthreads_default=no
  20854. ;;
  20855. *)
  20856. enable_pthreads_default=yes
  20857. ;;
  20858. esac
  20859. # Check whether --enable-pthreads was given.
  20860. if test "${enable_pthreads+set}" = set; then :
  20861. enableval=$enable_pthreads;
  20862. else
  20863. enable_pthreads=maybe
  20864. fi
  20865. # Check whether --enable-pthread-sem was given.
  20866. if test "${enable_pthread_sem+set}" = set; then :
  20867. enableval=$enable_pthread_sem;
  20868. else
  20869. enable_pthread_sem=maybe
  20870. fi
  20871. if test x$enable_pthreads = xmaybe; then
  20872. enable_pthreads=$enable_pthreads_default
  20873. fi
  20874. if test x$enable_pthread_sem = xmaybe; then
  20875. enable_pthread_sem=$enable_pthreads
  20876. fi
  20877. case "$host" in
  20878. *-*-android*)
  20879. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20880. pthread_lib=""
  20881. ;;
  20882. *-*-linux*|*-*-uclinux*)
  20883. pthread_cflags="-D_REENTRANT"
  20884. pthread_lib="-lpthread"
  20885. ;;
  20886. *-*-bsdi*)
  20887. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20888. pthread_lib=""
  20889. ;;
  20890. *-*-darwin*)
  20891. pthread_cflags="-D_THREAD_SAFE"
  20892. # causes Carbon.p complaints?
  20893. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20894. ;;
  20895. *-*-freebsd*|*-*-dragonfly*)
  20896. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20897. pthread_lib="-pthread"
  20898. ;;
  20899. *-*-netbsd*)
  20900. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20901. pthread_lib="-lpthread"
  20902. ;;
  20903. *-*-openbsd*)
  20904. pthread_cflags="-D_REENTRANT"
  20905. pthread_lib="-pthread"
  20906. ;;
  20907. *-*-solaris2.9)
  20908. # From Solaris 9+, posix4's preferred name is rt.
  20909. pthread_cflags="-D_REENTRANT"
  20910. pthread_lib="-lpthread -lrt"
  20911. ;;
  20912. *-*-solaris2.10)
  20913. # Solaris 10+ merged pthread into libc.
  20914. pthread_cflags="-D_REENTRANT"
  20915. pthread_lib="-lrt"
  20916. ;;
  20917. *-*-solaris*)
  20918. # Solaris 11+ merged rt into libc.
  20919. pthread_cflags="-D_REENTRANT"
  20920. pthread_lib=""
  20921. ;;
  20922. *-*-sysv5*)
  20923. pthread_cflags="-D_REENTRANT -Kthread"
  20924. pthread_lib=""
  20925. ;;
  20926. *-*-aix*)
  20927. pthread_cflags="-D_REENTRANT -mthreads"
  20928. pthread_lib="-lpthread"
  20929. ;;
  20930. *-*-hpux11*)
  20931. pthread_cflags="-D_REENTRANT"
  20932. pthread_lib="-L/usr/lib -lpthread"
  20933. ;;
  20934. *-*-haiku*)
  20935. pthread_cflags="-D_REENTRANT"
  20936. pthread_lib=""
  20937. ;;
  20938. *-*-nto*)
  20939. pthread_cflags="-D_REENTRANT"
  20940. pthread_lib=""
  20941. ;;
  20942. *-*-emscripten*)
  20943. pthread_cflags="-D_REENTRANT -pthread"
  20944. pthread_lib="-pthread"
  20945. ;;
  20946. *)
  20947. pthread_cflags="-D_REENTRANT"
  20948. pthread_lib="-lpthread"
  20949. ;;
  20950. esac
  20951. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20952. # Save the original compiler flags and libraries
  20953. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20954. # Add the pthread compiler flags and libraries
  20955. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20956. # Check to see if we have pthread support on this system
  20957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20958. $as_echo_n "checking for pthreads... " >&6; }
  20959. use_pthreads=no
  20960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20961. /* end confdefs.h. */
  20962. #include <pthread.h>
  20963. int
  20964. main ()
  20965. {
  20966. pthread_attr_t type;
  20967. pthread_attr_init(&type);
  20968. ;
  20969. return 0;
  20970. }
  20971. _ACEOF
  20972. if ac_fn_c_try_link "$LINENO"; then :
  20973. use_pthreads=yes
  20974. fi
  20975. rm -f core conftest.err conftest.$ac_objext \
  20976. conftest$ac_exeext conftest.$ac_ext
  20977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20978. $as_echo "$use_pthreads" >&6; }
  20979. # Restore the compiler flags and libraries
  20980. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20981. # Do futher testing if we have pthread support...
  20982. if test x$use_pthreads = xyes; then
  20983. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20984. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20986. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20987. # Save the original compiler flags and libraries
  20988. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20989. # Add the pthread compiler flags and libraries
  20990. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20991. # Check to see if recursive mutexes are available
  20992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20993. $as_echo_n "checking for recursive mutexes... " >&6; }
  20994. has_recursive_mutexes=no
  20995. if test x$has_recursive_mutexes = xno; then
  20996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20997. /* end confdefs.h. */
  20998. #define _GNU_SOURCE 1
  20999. #include <pthread.h>
  21000. int
  21001. main ()
  21002. {
  21003. pthread_mutexattr_t attr;
  21004. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  21005. ;
  21006. return 0;
  21007. }
  21008. _ACEOF
  21009. if ac_fn_c_try_link "$LINENO"; then :
  21010. has_recursive_mutexes=yes
  21011. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  21012. fi
  21013. rm -f core conftest.err conftest.$ac_objext \
  21014. conftest$ac_exeext conftest.$ac_ext
  21015. fi
  21016. if test x$has_recursive_mutexes = xno; then
  21017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21018. /* end confdefs.h. */
  21019. #define _GNU_SOURCE 1
  21020. #include <pthread.h>
  21021. int
  21022. main ()
  21023. {
  21024. pthread_mutexattr_t attr;
  21025. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  21026. ;
  21027. return 0;
  21028. }
  21029. _ACEOF
  21030. if ac_fn_c_try_link "$LINENO"; then :
  21031. has_recursive_mutexes=yes
  21032. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21033. fi
  21034. rm -f core conftest.err conftest.$ac_objext \
  21035. conftest$ac_exeext conftest.$ac_ext
  21036. fi
  21037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21038. $as_echo "$has_recursive_mutexes" >&6; }
  21039. # Check to see if pthread semaphore support is missing
  21040. if test x$enable_pthread_sem = xyes; then
  21041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21042. $as_echo_n "checking for pthread semaphores... " >&6; }
  21043. have_pthread_sem=no
  21044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21045. /* end confdefs.h. */
  21046. #include <pthread.h>
  21047. #include <semaphore.h>
  21048. int
  21049. main ()
  21050. {
  21051. ;
  21052. return 0;
  21053. }
  21054. _ACEOF
  21055. if ac_fn_c_try_compile "$LINENO"; then :
  21056. have_pthread_sem=yes
  21057. fi
  21058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21060. $as_echo "$have_pthread_sem" >&6; }
  21061. fi
  21062. if test x$have_pthread_sem = xyes; then
  21063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21064. $as_echo_n "checking for sem_timedwait... " >&6; }
  21065. have_sem_timedwait=no
  21066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21067. /* end confdefs.h. */
  21068. #include <pthread.h>
  21069. #include <semaphore.h>
  21070. int
  21071. main ()
  21072. {
  21073. sem_timedwait(NULL, NULL);
  21074. ;
  21075. return 0;
  21076. }
  21077. _ACEOF
  21078. if ac_fn_c_try_link "$LINENO"; then :
  21079. have_sem_timedwait=yes
  21080. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21081. fi
  21082. rm -f core conftest.err conftest.$ac_objext \
  21083. conftest$ac_exeext conftest.$ac_ext
  21084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21085. $as_echo "$have_sem_timedwait" >&6; }
  21086. fi
  21087. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21088. "
  21089. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21090. have_pthread_np_h=yes
  21091. else
  21092. have_pthread_np_h=no
  21093. fi
  21094. if test x$have_pthread_np_h = xyes; then
  21095. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21096. fi
  21097. # Check to see if pthread naming is available
  21098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21099. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21101. /* end confdefs.h. */
  21102. /* Override any GCC internal prototype to avoid an error.
  21103. Use char because int might match the return type of a GCC
  21104. builtin and then its argument prototype would still apply. */
  21105. #ifdef __cplusplus
  21106. extern "C"
  21107. #endif
  21108. char pthread_setname_np ();
  21109. int
  21110. main ()
  21111. {
  21112. return pthread_setname_np ();
  21113. ;
  21114. return 0;
  21115. }
  21116. _ACEOF
  21117. if ac_fn_c_try_link "$LINENO"; then :
  21118. has_pthread_setname_np=yes
  21119. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21120. else
  21121. has_pthread_setname_np=no
  21122. fi
  21123. rm -f core conftest.err conftest.$ac_objext \
  21124. conftest$ac_exeext conftest.$ac_ext
  21125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21126. $as_echo "$has_pthread_setname_np" >&6; }
  21127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21128. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21130. /* end confdefs.h. */
  21131. /* Override any GCC internal prototype to avoid an error.
  21132. Use char because int might match the return type of a GCC
  21133. builtin and then its argument prototype would still apply. */
  21134. #ifdef __cplusplus
  21135. extern "C"
  21136. #endif
  21137. char pthread_set_name_np ();
  21138. int
  21139. main ()
  21140. {
  21141. return pthread_set_name_np ();
  21142. ;
  21143. return 0;
  21144. }
  21145. _ACEOF
  21146. if ac_fn_c_try_link "$LINENO"; then :
  21147. has_pthread_set_name_np=yes
  21148. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21149. else
  21150. has_pthread_set_name_np=no
  21151. fi
  21152. rm -f core conftest.err conftest.$ac_objext \
  21153. conftest$ac_exeext conftest.$ac_ext
  21154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21155. $as_echo "$has_pthread_set_name_np" >&6; }
  21156. # Restore the compiler flags and libraries
  21157. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21158. # Basic thread creation functions
  21159. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21160. # Semaphores
  21161. # We can fake these with mutexes and condition variables if necessary
  21162. if test x$have_pthread_sem = xyes; then
  21163. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21164. else
  21165. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21166. fi
  21167. # Mutexes
  21168. # We can fake these with semaphores if necessary
  21169. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21170. # Condition variables
  21171. # We can fake these with semaphores and mutexes if necessary
  21172. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21173. # Thread local storage
  21174. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21175. have_threads=yes
  21176. fi
  21177. fi
  21178. }
  21179. CheckWINDOWS()
  21180. {
  21181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21182. $as_echo_n "checking Windows compiler... " >&6; }
  21183. have_win32_gcc=no
  21184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21185. /* end confdefs.h. */
  21186. #include <windows.h>
  21187. int
  21188. main ()
  21189. {
  21190. ;
  21191. return 0;
  21192. }
  21193. _ACEOF
  21194. if ac_fn_c_try_compile "$LINENO"; then :
  21195. have_win32_gcc=yes
  21196. fi
  21197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21199. $as_echo "$have_win32_gcc" >&6; }
  21200. if test x$have_win32_gcc != xyes; then
  21201. as_fn_error $? "
  21202. *** Your compiler ($CC) does not produce Windows executables!
  21203. " "$LINENO" 5
  21204. fi
  21205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21206. $as_echo_n "checking Windows CE... " >&6; }
  21207. have_wince=no
  21208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21209. /* end confdefs.h. */
  21210. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21211. #error This is not Windows CE
  21212. #endif
  21213. int
  21214. main ()
  21215. {
  21216. ;
  21217. return 0;
  21218. }
  21219. _ACEOF
  21220. if ac_fn_c_try_compile "$LINENO"; then :
  21221. have_wince=yes
  21222. as_fn_error $? "
  21223. *** Sorry, Windows CE is no longer supported.
  21224. " "$LINENO" 5
  21225. fi
  21226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21228. $as_echo "$have_wince" >&6; }
  21229. # This fixes Windows stack alignment with newer GCC
  21230. CheckStackBoundary
  21231. }
  21232. CheckOS2()
  21233. {
  21234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21235. $as_echo_n "checking OS/2 compiler... " >&6; }
  21236. have_os2_gcc=no
  21237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21238. /* end confdefs.h. */
  21239. #include <os2.h>
  21240. int
  21241. main ()
  21242. {
  21243. ;
  21244. return 0;
  21245. }
  21246. _ACEOF
  21247. if ac_fn_c_try_compile "$LINENO"; then :
  21248. have_os2_gcc=yes
  21249. fi
  21250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21252. $as_echo "$have_os2_gcc" >&6; }
  21253. if test x$have_os2_gcc != xyes; then
  21254. as_fn_error $? "
  21255. *** Your compiler ($CC) does not produce OS/2 executables!
  21256. " "$LINENO" 5
  21257. fi
  21258. }
  21259. CheckDIRECTX()
  21260. {
  21261. # Check whether --enable-directx was given.
  21262. if test "${enable_directx+set}" = set; then :
  21263. enableval=$enable_directx;
  21264. else
  21265. enable_directx=yes
  21266. fi
  21267. if test x$enable_directx = xyes; then
  21268. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21269. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21270. have_d3d=yes
  21271. fi
  21272. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21273. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21274. have_d3d11=yes
  21275. fi
  21276. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21277. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21278. have_ddraw=yes
  21279. fi
  21280. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21281. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21282. have_dsound=yes
  21283. fi
  21284. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21285. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21286. have_dinput=yes
  21287. fi
  21288. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21289. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21290. have_dxgi=yes
  21291. fi
  21292. if test x$have_ddraw = xyes; then
  21293. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21294. fi
  21295. if test x$have_dinput = xyes; then
  21296. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21297. fi
  21298. if test x$have_dsound = xyes; then
  21299. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21300. fi
  21301. if test x$have_dxgi = xyes; then
  21302. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21303. fi
  21304. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21305. # FIXME: ...so force it off for now.
  21306. case "$host" in
  21307. *-*-cygwin*)
  21308. have_dinput=false
  21309. ;;
  21310. esac
  21311. fi
  21312. # Check whether --enable-xinput was given.
  21313. if test "${enable_xinput+set}" = set; then :
  21314. enableval=$enable_xinput;
  21315. else
  21316. enable_xinput=yes
  21317. fi
  21318. if test x$enable_xinput = xyes; then
  21319. have_xinput_gamepadex=no
  21320. have_xinput_stateex=no
  21321. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21322. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21323. have_xinput=yes
  21324. fi
  21325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21326. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21328. /* end confdefs.h. */
  21329. #include <windows.h>
  21330. #include <xinput.h>
  21331. XINPUT_GAMEPAD_EX x1;
  21332. int
  21333. main ()
  21334. {
  21335. ;
  21336. return 0;
  21337. }
  21338. _ACEOF
  21339. if ac_fn_c_try_compile "$LINENO"; then :
  21340. have_xinput_gamepadex=yes
  21341. fi
  21342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21344. $as_echo "$have_xinput_gamepadex" >&6; }
  21345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21346. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21348. /* end confdefs.h. */
  21349. #include <windows.h>
  21350. #include <xinput.h>
  21351. XINPUT_STATE_EX s1;
  21352. int
  21353. main ()
  21354. {
  21355. ;
  21356. return 0;
  21357. }
  21358. _ACEOF
  21359. if ac_fn_c_try_compile "$LINENO"; then :
  21360. have_xinput_stateex=yes
  21361. fi
  21362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21364. $as_echo "$have_xinput_stateex" >&6; }
  21365. if test x$have_xinput = xyes; then
  21366. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21367. fi
  21368. if test x$have_xinput_gamepadex = xyes; then
  21369. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21370. fi
  21371. if test x$have_xinput_stateex = xyes; then
  21372. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21373. fi
  21374. fi
  21375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21376. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21378. /* end confdefs.h. */
  21379. #define COBJMACROS
  21380. #include <windows.gaming.input.h>
  21381. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21382. int
  21383. main ()
  21384. {
  21385. ;
  21386. return 0;
  21387. }
  21388. _ACEOF
  21389. if ac_fn_c_try_compile "$LINENO"; then :
  21390. have_wgi=yes
  21391. else
  21392. have_wgi=no
  21393. fi
  21394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21396. $as_echo "$have_wgi" >&6; }
  21397. if test x$have_wgi = xyes; then
  21398. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21399. fi
  21400. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21401. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21402. have_wasapi=yes
  21403. fi
  21404. if test x$have_wasapi = xyes; then
  21405. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21406. fi
  21407. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21408. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21409. else
  21410. have_wasapi=no
  21411. fi
  21412. if test x$have_wasapi = xyes; then
  21413. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21414. fi
  21415. # Check whether --enable-wasapi was given.
  21416. if test "${enable_wasapi+set}" = set; then :
  21417. enableval=$enable_wasapi;
  21418. else
  21419. enable_wasapi=yes
  21420. fi
  21421. }
  21422. CheckDLOPEN()
  21423. {
  21424. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21425. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21426. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21427. have_dlfcn_h=yes
  21428. else
  21429. have_dlfcn_h=no
  21430. fi
  21431. have_dlopen=no
  21432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21433. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21434. if ${ac_cv_lib_c_dlopen+:} false; then :
  21435. $as_echo_n "(cached) " >&6
  21436. else
  21437. ac_check_lib_save_LIBS=$LIBS
  21438. LIBS="-lc $LIBS"
  21439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21440. /* end confdefs.h. */
  21441. /* Override any GCC internal prototype to avoid an error.
  21442. Use char because int might match the return type of a GCC
  21443. builtin and then its argument prototype would still apply. */
  21444. #ifdef __cplusplus
  21445. extern "C"
  21446. #endif
  21447. char dlopen ();
  21448. int
  21449. main ()
  21450. {
  21451. return dlopen ();
  21452. ;
  21453. return 0;
  21454. }
  21455. _ACEOF
  21456. if ac_fn_c_try_link "$LINENO"; then :
  21457. ac_cv_lib_c_dlopen=yes
  21458. else
  21459. ac_cv_lib_c_dlopen=no
  21460. fi
  21461. rm -f core conftest.err conftest.$ac_objext \
  21462. conftest$ac_exeext conftest.$ac_ext
  21463. LIBS=$ac_check_lib_save_LIBS
  21464. fi
  21465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21466. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21467. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21468. have_dlopen=yes
  21469. else
  21470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21471. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21472. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21473. $as_echo_n "(cached) " >&6
  21474. else
  21475. ac_check_lib_save_LIBS=$LIBS
  21476. LIBS="-ldl $LIBS"
  21477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21478. /* end confdefs.h. */
  21479. /* Override any GCC internal prototype to avoid an error.
  21480. Use char because int might match the return type of a GCC
  21481. builtin and then its argument prototype would still apply. */
  21482. #ifdef __cplusplus
  21483. extern "C"
  21484. #endif
  21485. char dlopen ();
  21486. int
  21487. main ()
  21488. {
  21489. return dlopen ();
  21490. ;
  21491. return 0;
  21492. }
  21493. _ACEOF
  21494. if ac_fn_c_try_link "$LINENO"; then :
  21495. ac_cv_lib_dl_dlopen=yes
  21496. else
  21497. ac_cv_lib_dl_dlopen=no
  21498. fi
  21499. rm -f core conftest.err conftest.$ac_objext \
  21500. conftest$ac_exeext conftest.$ac_ext
  21501. LIBS=$ac_check_lib_save_LIBS
  21502. fi
  21503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21504. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21505. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21506. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21507. fi
  21508. fi
  21509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21510. $as_echo_n "checking for dlopen... " >&6; }
  21511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21512. $as_echo "$have_dlopen" >&6; }
  21513. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21514. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21515. if test x$enable_loadso = xyes; then
  21516. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21517. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21518. have_loadso=yes
  21519. fi
  21520. fi
  21521. }
  21522. CheckO_CLOEXEC()
  21523. {
  21524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21525. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21527. /* end confdefs.h. */
  21528. #include <fcntl.h>
  21529. int flag = O_CLOEXEC;
  21530. int
  21531. main ()
  21532. {
  21533. ;
  21534. return 0;
  21535. }
  21536. _ACEOF
  21537. if ac_fn_c_try_compile "$LINENO"; then :
  21538. have_o_cloexec=yes
  21539. else
  21540. have_o_cloexec=no
  21541. fi
  21542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21544. $as_echo "$have_o_cloexec" >&6; }
  21545. if test $have_o_cloexec = yes; then
  21546. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21547. fi
  21548. }
  21549. CheckUSBHID()
  21550. {
  21551. case "$host" in
  21552. *-*-*bsd*|*-*-dragonfly*)
  21553. if test x$enable_joystick = xyes; then
  21554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21555. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21556. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21557. $as_echo_n "(cached) " >&6
  21558. else
  21559. ac_check_lib_save_LIBS=$LIBS
  21560. LIBS="-lusbhid $LIBS"
  21561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21562. /* end confdefs.h. */
  21563. /* Override any GCC internal prototype to avoid an error.
  21564. Use char because int might match the return type of a GCC
  21565. builtin and then its argument prototype would still apply. */
  21566. #ifdef __cplusplus
  21567. extern "C"
  21568. #endif
  21569. char hid_init ();
  21570. int
  21571. main ()
  21572. {
  21573. return hid_init ();
  21574. ;
  21575. return 0;
  21576. }
  21577. _ACEOF
  21578. if ac_fn_c_try_link "$LINENO"; then :
  21579. ac_cv_lib_usbhid_hid_init=yes
  21580. else
  21581. ac_cv_lib_usbhid_hid_init=no
  21582. fi
  21583. rm -f core conftest.err conftest.$ac_objext \
  21584. conftest$ac_exeext conftest.$ac_ext
  21585. LIBS=$ac_check_lib_save_LIBS
  21586. fi
  21587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21588. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21589. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21590. have_libusbhid=yes
  21591. fi
  21592. if test x$have_libusbhid = xyes; then
  21593. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21594. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21595. USB_CFLAGS="-DHAVE_USBHID_H"
  21596. fi
  21597. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21598. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21599. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21600. fi
  21601. USB_LIBS="$USB_LIBS -lusbhid"
  21602. else
  21603. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21604. if test "x$ac_cv_header_usb_h" = xyes; then :
  21605. USB_CFLAGS="-DHAVE_USB_H"
  21606. fi
  21607. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21608. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21609. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21610. fi
  21611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21612. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21613. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21614. $as_echo_n "(cached) " >&6
  21615. else
  21616. ac_check_lib_save_LIBS=$LIBS
  21617. LIBS="-lusb $LIBS"
  21618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21619. /* end confdefs.h. */
  21620. /* Override any GCC internal prototype to avoid an error.
  21621. Use char because int might match the return type of a GCC
  21622. builtin and then its argument prototype would still apply. */
  21623. #ifdef __cplusplus
  21624. extern "C"
  21625. #endif
  21626. char hid_init ();
  21627. int
  21628. main ()
  21629. {
  21630. return hid_init ();
  21631. ;
  21632. return 0;
  21633. }
  21634. _ACEOF
  21635. if ac_fn_c_try_link "$LINENO"; then :
  21636. ac_cv_lib_usb_hid_init=yes
  21637. else
  21638. ac_cv_lib_usb_hid_init=no
  21639. fi
  21640. rm -f core conftest.err conftest.$ac_objext \
  21641. conftest$ac_exeext conftest.$ac_ext
  21642. LIBS=$ac_check_lib_save_LIBS
  21643. fi
  21644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21645. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21646. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21647. USB_LIBS="$USB_LIBS -lusb"
  21648. fi
  21649. fi
  21650. save_CFLAGS="$CFLAGS"
  21651. CFLAGS="$CFLAGS $USB_CFLAGS"
  21652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21653. $as_echo_n "checking for usbhid... " >&6; }
  21654. have_usbhid=no
  21655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21656. /* end confdefs.h. */
  21657. #include <sys/types.h>
  21658. #if defined(HAVE_USB_H)
  21659. #include <usb.h>
  21660. #endif
  21661. #ifdef __DragonFly__
  21662. # include <bus/u4b/usb.h>
  21663. # include <bus/u4b/usbhid.h>
  21664. #else
  21665. # include <dev/usb/usb.h>
  21666. # include <dev/usb/usbhid.h>
  21667. #endif
  21668. #if defined(HAVE_USBHID_H)
  21669. #include <usbhid.h>
  21670. #elif defined(HAVE_LIBUSB_H)
  21671. #include <libusb.h>
  21672. #elif defined(HAVE_LIBUSBHID_H)
  21673. #include <libusbhid.h>
  21674. #endif
  21675. int
  21676. main ()
  21677. {
  21678. struct report_desc *repdesc;
  21679. struct usb_ctl_report *repbuf;
  21680. hid_kind_t hidkind;
  21681. ;
  21682. return 0;
  21683. }
  21684. _ACEOF
  21685. if ac_fn_c_try_compile "$LINENO"; then :
  21686. have_usbhid=yes
  21687. fi
  21688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21690. $as_echo "$have_usbhid" >&6; }
  21691. if test x$have_usbhid = xyes; then
  21692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21693. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21694. have_usbhid_ucr_data=no
  21695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21696. /* end confdefs.h. */
  21697. #include <sys/types.h>
  21698. #if defined(HAVE_USB_H)
  21699. #include <usb.h>
  21700. #endif
  21701. #ifdef __DragonFly__
  21702. # include <bus/u4b/usb.h>
  21703. # include <bus/u4b/usbhid.h>
  21704. #else
  21705. # include <dev/usb/usb.h>
  21706. # include <dev/usb/usbhid.h>
  21707. #endif
  21708. #if defined(HAVE_USBHID_H)
  21709. #include <usbhid.h>
  21710. #elif defined(HAVE_LIBUSB_H)
  21711. #include <libusb.h>
  21712. #elif defined(HAVE_LIBUSBHID_H)
  21713. #include <libusbhid.h>
  21714. #endif
  21715. int
  21716. main ()
  21717. {
  21718. struct usb_ctl_report buf;
  21719. if (buf.ucr_data) { }
  21720. ;
  21721. return 0;
  21722. }
  21723. _ACEOF
  21724. if ac_fn_c_try_compile "$LINENO"; then :
  21725. have_usbhid_ucr_data=yes
  21726. fi
  21727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21728. if test x$have_usbhid_ucr_data = xyes; then
  21729. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21730. fi
  21731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21732. $as_echo "$have_usbhid_ucr_data" >&6; }
  21733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21734. $as_echo_n "checking for new usbhid API... " >&6; }
  21735. have_usbhid_new=no
  21736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21737. /* end confdefs.h. */
  21738. #include <sys/types.h>
  21739. #if defined(HAVE_USB_H)
  21740. #include <usb.h>
  21741. #endif
  21742. #ifdef __DragonFly__
  21743. #include <bus/u4b/usb.h>
  21744. #include <bus/u4b/usbhid.h>
  21745. #else
  21746. #include <dev/usb/usb.h>
  21747. #include <dev/usb/usbhid.h>
  21748. #endif
  21749. #if defined(HAVE_USBHID_H)
  21750. #include <usbhid.h>
  21751. #elif defined(HAVE_LIBUSB_H)
  21752. #include <libusb.h>
  21753. #elif defined(HAVE_LIBUSBHID_H)
  21754. #include <libusbhid.h>
  21755. #endif
  21756. int
  21757. main ()
  21758. {
  21759. report_desc_t d;
  21760. hid_start_parse(d, 1, 1);
  21761. ;
  21762. return 0;
  21763. }
  21764. _ACEOF
  21765. if ac_fn_c_try_compile "$LINENO"; then :
  21766. have_usbhid_new=yes
  21767. fi
  21768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21769. if test x$have_usbhid_new = xyes; then
  21770. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21771. fi
  21772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21773. $as_echo "$have_usbhid_new" >&6; }
  21774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21775. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21776. have_machine_joystick=no
  21777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21778. /* end confdefs.h. */
  21779. #include <machine/joystick.h>
  21780. int
  21781. main ()
  21782. {
  21783. struct joystick t;
  21784. ;
  21785. return 0;
  21786. }
  21787. _ACEOF
  21788. if ac_fn_c_try_compile "$LINENO"; then :
  21789. have_machine_joystick=yes
  21790. fi
  21791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21792. if test x$have_machine_joystick = xyes; then
  21793. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21794. fi
  21795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21796. $as_echo "$have_machine_joystick" >&6; }
  21797. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21798. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21799. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21800. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21801. have_joystick=yes
  21802. fi
  21803. CFLAGS="$save_CFLAGS"
  21804. fi
  21805. ;;
  21806. esac
  21807. }
  21808. CheckHIDAPI()
  21809. {
  21810. # Check whether --enable-hidapi-joystick was given.
  21811. if test "${enable_hidapi_joystick+set}" = set; then :
  21812. enableval=$enable_hidapi_joystick;
  21813. else
  21814. enable_hidapi_joystick=yes
  21815. fi
  21816. # Check whether --enable-hidapi-libusb was given.
  21817. if test "${enable_hidapi_libusb+set}" = set; then :
  21818. enableval=$enable_hidapi_libusb;
  21819. else
  21820. enable_hidapi_libusb=maybe
  21821. fi
  21822. if test x$enable_hidapi = xyes; then
  21823. case "$host" in
  21824. # libusb does not support iOS
  21825. *-ios-* )
  21826. enable_hidapi_libusb=no
  21827. ;;
  21828. # On the other hand, *BSD specifically uses libusb only
  21829. *-*-*bsd* )
  21830. enable_hidapi_libusb=yes
  21831. require_hidapi_libusb=yes
  21832. ;;
  21833. *-*-os2* )
  21834. enable_hidapi_libusb=yes
  21835. ;;
  21836. esac
  21837. hidapi_support=yes
  21838. if test x$enable_hidapi_libusb = xyes; then
  21839. pkg_failed=no
  21840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21841. $as_echo_n "checking for libusb-1.0... " >&6; }
  21842. if test -n "$LIBUSB_CFLAGS"; then
  21843. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21844. elif test -n "$PKG_CONFIG"; then
  21845. if test -n "$PKG_CONFIG" && \
  21846. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21847. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21848. ac_status=$?
  21849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21850. test $ac_status = 0; }; then
  21851. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21852. test "x$?" != "x0" && pkg_failed=yes
  21853. else
  21854. pkg_failed=yes
  21855. fi
  21856. else
  21857. pkg_failed=untried
  21858. fi
  21859. if test -n "$LIBUSB_LIBS"; then
  21860. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21861. elif test -n "$PKG_CONFIG"; then
  21862. if test -n "$PKG_CONFIG" && \
  21863. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21864. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21865. ac_status=$?
  21866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21867. test $ac_status = 0; }; then
  21868. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21869. test "x$?" != "x0" && pkg_failed=yes
  21870. else
  21871. pkg_failed=yes
  21872. fi
  21873. else
  21874. pkg_failed=untried
  21875. fi
  21876. if test $pkg_failed = yes; then
  21877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21878. $as_echo "no" >&6; }
  21879. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21880. _pkg_short_errors_supported=yes
  21881. else
  21882. _pkg_short_errors_supported=no
  21883. fi
  21884. if test $_pkg_short_errors_supported = yes; then
  21885. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21886. else
  21887. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21888. fi
  21889. # Put the nasty error message in config.log where it belongs
  21890. echo "$LIBUSB_PKG_ERRORS" >&5
  21891. have_libusb=no
  21892. elif test $pkg_failed = untried; then
  21893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21894. $as_echo "no" >&6; }
  21895. have_libusb=no
  21896. else
  21897. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21898. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21900. $as_echo "yes" >&6; }
  21901. have_libusb=yes
  21902. fi
  21903. save_CPPFLAGS="$CPPFLAGS"
  21904. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21905. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21906. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21907. have_libusb_h=yes
  21908. else
  21909. have_libusb_h=no
  21910. fi
  21911. CPPFLAGS="$save_CPPFLAGS"
  21912. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21913. hidapi_support=no
  21914. fi
  21915. fi
  21916. if test x$hidapi_support = xyes; then
  21917. if test x$have_libusb_h = xyes; then
  21918. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21919. if test x$require_hidapi_libusb = xyes; then
  21920. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21921. else
  21922. if test x$have_loadso != xyes; then
  21923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21924. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21925. fi
  21926. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21927. libusb_lib=""
  21928. case "$host" in
  21929. *-*-darwin* )
  21930. libusb_lib="libusb-1.0.0.dylib"
  21931. ;;
  21932. *-*-cygwin* | *-*-mingw* )
  21933. libusb_lib="libusb-1.0.dll"
  21934. ;;
  21935. *-*-os2* )
  21936. libusb_lib="usb100.dll"
  21937. ;;
  21938. esac
  21939. if test x$libusb_lib = x; then
  21940. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21941. fi
  21942. cat >>confdefs.h <<_ACEOF
  21943. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21944. _ACEOF
  21945. fi
  21946. fi
  21947. fi
  21948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  21949. $as_echo_n "checking for hidapi joystick support... " >&6; }
  21950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21951. $as_echo "$hidapi_support" >&6; }
  21952. fi
  21953. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21954. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21955. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21956. fi
  21957. }
  21958. CheckClockGettime()
  21959. {
  21960. # Check whether --enable-clock_gettime was given.
  21961. if test "${enable_clock_gettime+set}" = set; then :
  21962. enableval=$enable_clock_gettime;
  21963. else
  21964. enable_clock_gettime=yes
  21965. fi
  21966. if test x$enable_clock_gettime = xyes; then
  21967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21968. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21969. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21970. $as_echo_n "(cached) " >&6
  21971. else
  21972. ac_check_lib_save_LIBS=$LIBS
  21973. LIBS="-lrt $LIBS"
  21974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21975. /* end confdefs.h. */
  21976. /* Override any GCC internal prototype to avoid an error.
  21977. Use char because int might match the return type of a GCC
  21978. builtin and then its argument prototype would still apply. */
  21979. #ifdef __cplusplus
  21980. extern "C"
  21981. #endif
  21982. char clock_gettime ();
  21983. int
  21984. main ()
  21985. {
  21986. return clock_gettime ();
  21987. ;
  21988. return 0;
  21989. }
  21990. _ACEOF
  21991. if ac_fn_c_try_link "$LINENO"; then :
  21992. ac_cv_lib_rt_clock_gettime=yes
  21993. else
  21994. ac_cv_lib_rt_clock_gettime=no
  21995. fi
  21996. rm -f core conftest.err conftest.$ac_objext \
  21997. conftest$ac_exeext conftest.$ac_ext
  21998. LIBS=$ac_check_lib_save_LIBS
  21999. fi
  22000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  22001. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  22002. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  22003. have_clock_gettime=yes
  22004. fi
  22005. if test x$have_clock_gettime = xyes; then
  22006. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22007. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  22008. else
  22009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  22010. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  22011. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  22012. $as_echo_n "(cached) " >&6
  22013. else
  22014. ac_check_lib_save_LIBS=$LIBS
  22015. LIBS="-lc $LIBS"
  22016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22017. /* end confdefs.h. */
  22018. /* Override any GCC internal prototype to avoid an error.
  22019. Use char because int might match the return type of a GCC
  22020. builtin and then its argument prototype would still apply. */
  22021. #ifdef __cplusplus
  22022. extern "C"
  22023. #endif
  22024. char clock_gettime ();
  22025. int
  22026. main ()
  22027. {
  22028. return clock_gettime ();
  22029. ;
  22030. return 0;
  22031. }
  22032. _ACEOF
  22033. if ac_fn_c_try_link "$LINENO"; then :
  22034. ac_cv_lib_c_clock_gettime=yes
  22035. else
  22036. ac_cv_lib_c_clock_gettime=no
  22037. fi
  22038. rm -f core conftest.err conftest.$ac_objext \
  22039. conftest$ac_exeext conftest.$ac_ext
  22040. LIBS=$ac_check_lib_save_LIBS
  22041. fi
  22042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22043. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22044. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22045. have_clock_gettime=yes
  22046. fi
  22047. if test x$have_clock_gettime = xyes; then
  22048. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22049. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22050. fi
  22051. fi
  22052. fi
  22053. }
  22054. CheckLinuxVersion()
  22055. {
  22056. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22057. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22058. have_linux_version_h=yes
  22059. fi
  22060. if test x$have_linux_version_h = xyes; then
  22061. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22062. fi
  22063. }
  22064. CheckRPATH()
  22065. {
  22066. # Check whether --enable-rpath was given.
  22067. if test "${enable_rpath+set}" = set; then :
  22068. enableval=$enable_rpath;
  22069. else
  22070. enable_rpath=yes
  22071. fi
  22072. }
  22073. CheckEventSignals()
  22074. {
  22075. # Check whether --enable-backgrounding-signal was given.
  22076. if test "${enable_backgrounding_signal+set}" = set; then :
  22077. enableval=$enable_backgrounding_signal;
  22078. else
  22079. enable_backgrounding_signal=no
  22080. fi
  22081. if test x$enable_backgrounding_signal != xno; then
  22082. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22083. fi
  22084. # Check whether --enable-foregrounding-signal was given.
  22085. if test "${enable_foregrounding_signal+set}" = set; then :
  22086. enableval=$enable_foregrounding_signal;
  22087. else
  22088. enable_foregrounding_signal=no
  22089. fi
  22090. if test x$enable_foregrounding_signal != xno; then
  22091. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22092. fi
  22093. }
  22094. CheckVirtualJoystick()
  22095. {
  22096. # Check whether --enable-joystick-virtual was given.
  22097. if test "${enable_joystick_virtual+set}" = set; then :
  22098. enableval=$enable_joystick_virtual;
  22099. else
  22100. enable_joystick_virtual=yes
  22101. fi
  22102. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22103. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22104. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22105. have_joystick_virtual=yes
  22106. fi
  22107. }
  22108. CheckWarnAll
  22109. CheckNoStrictAliasing
  22110. CheckEventSignals
  22111. have_locale=no
  22112. case "$host" in
  22113. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22114. case "$host" in
  22115. *-*-android*)
  22116. # Android
  22117. ARCH=android
  22118. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22119. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22120. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22121. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22123. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22124. if test x$enable_video = xyes; then
  22125. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22126. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22127. SUMMARY_video="${SUMMARY_video} android"
  22128. have_video=yes
  22129. fi
  22130. ;;
  22131. *-*-linux*) ARCH=linux ;;
  22132. *-*-uclinux*) ARCH=linux ;;
  22133. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22134. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22135. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22136. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22137. *-*-bsdi*) ARCH=bsdi ;;
  22138. *-*-freebsd*) ARCH=freebsd ;;
  22139. *-*-dragonfly*) ARCH=freebsd ;;
  22140. *-*-netbsd*) ARCH=netbsd ;;
  22141. *-*-openbsd*) ARCH=openbsd ;;
  22142. *-*-sysv5*) ARCH=sysv5 ;;
  22143. *-*-solaris*) ARCH=solaris ;;
  22144. *-*-hpux*) ARCH=hpux ;;
  22145. *-*-aix*) ARCH=aix ;;
  22146. *-*-minix*) ARCH=minix ;;
  22147. *-*-nto*) ARCH=nto
  22148. CheckQNXVideo
  22149. ;;
  22150. esac
  22151. CheckVisibilityHidden
  22152. CheckDeclarationAfterStatement
  22153. CheckDummyVideo
  22154. CheckOffscreenVideo
  22155. CheckDiskAudio
  22156. CheckDummyAudio
  22157. CheckDLOPEN
  22158. CheckARM
  22159. CheckNEON
  22160. CheckO_CLOEXEC
  22161. CheckOSS
  22162. CheckALSA
  22163. CheckPipewire
  22164. CheckPulseAudio
  22165. CheckJACK
  22166. CheckARTSC
  22167. CheckESD
  22168. CheckNAS
  22169. CheckSNDIO
  22170. CheckFusionSound
  22171. CheckLibSampleRate
  22172. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22173. CheckRPI
  22174. CheckX11
  22175. CheckDirectFB
  22176. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22177. CheckEGL
  22178. CheckKMSDRM
  22179. CheckGLX
  22180. CheckOpenGL
  22181. CheckOpenGLES
  22182. CheckVulkan
  22183. CheckWayland
  22184. CheckInputEvents
  22185. CheckLibUDev
  22186. CheckDBus
  22187. CheckIME
  22188. CheckInotify
  22189. CheckIBus
  22190. CheckFcitx
  22191. case $ARCH in
  22192. linux)
  22193. CheckInputKD
  22194. ;;
  22195. freebsd)
  22196. CheckInputKBIO
  22197. ;;
  22198. openbsd|netbsd)
  22199. CheckInputWSCONS
  22200. ;;
  22201. esac
  22202. CheckUSBHID
  22203. CheckHIDAPI
  22204. CheckPTHREAD
  22205. CheckClockGettime
  22206. CheckLinuxVersion
  22207. CheckRPATH
  22208. CheckVivanteVideo
  22209. # Set up files for the misc library
  22210. if test x$enable_misc = xyes; then
  22211. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22212. have_misc=yes
  22213. fi
  22214. # Set up files for the locale library
  22215. if test x$enable_locale = xyes; then
  22216. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22217. have_locale=yes
  22218. fi
  22219. # Set up files for the audio library
  22220. if test x$enable_audio = xyes; then
  22221. case $ARCH in
  22222. sysv5|solaris|hpux)
  22223. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22224. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22225. SUMMARY_audio="${SUMMARY_audio} sun"
  22226. have_audio=yes
  22227. ;;
  22228. netbsd) # Don't use this on OpenBSD, it's busted.
  22229. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22230. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22231. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22232. have_audio=yes
  22233. ;;
  22234. aix)
  22235. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22236. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22237. SUMMARY_audio="${SUMMARY_audio} paudio"
  22238. have_audio=yes
  22239. ;;
  22240. android)
  22241. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22242. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22243. SUMMARY_audio="${SUMMARY_audio} android"
  22244. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22245. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22246. SUMMARY_audio="${SUMMARY_audio} openslES"
  22247. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22248. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22249. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22250. have_audio=yes
  22251. ;;
  22252. nto)
  22253. CheckQNXAudio
  22254. ;;
  22255. esac
  22256. fi
  22257. # Set up files for the joystick library
  22258. if test x$enable_joystick = xyes; then
  22259. case $ARCH in
  22260. linux)
  22261. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22262. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22263. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22264. have_joystick=yes
  22265. ;;
  22266. freebsd)
  22267. if test x$use_input_events = xyes; then
  22268. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22269. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22270. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22271. have_joystick=yes
  22272. fi
  22273. ;;
  22274. android)
  22275. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22276. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22277. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22278. have_joystick=yes
  22279. ;;
  22280. esac
  22281. fi
  22282. # Set up files for the haptic library
  22283. if test x$enable_haptic = xyes; then
  22284. case $ARCH in
  22285. linux|freebsd)
  22286. if test x$use_input_events = xyes; then
  22287. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22288. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22289. have_haptic=yes
  22290. fi
  22291. ;;
  22292. android)
  22293. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22294. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22295. have_haptic=yes
  22296. ;;
  22297. esac
  22298. fi
  22299. # Set up files for the sensor library
  22300. if test x$enable_sensor = xyes; then
  22301. case $ARCH in
  22302. android)
  22303. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22304. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22305. have_sensor=yes
  22306. ;;
  22307. esac
  22308. fi
  22309. # Set up files for the power library
  22310. if test x$enable_power = xyes; then
  22311. case $ARCH in
  22312. linux)
  22313. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22314. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22315. have_power=yes
  22316. ;;
  22317. android)
  22318. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22319. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22320. have_power=yes
  22321. ;;
  22322. esac
  22323. fi
  22324. # Set up files for the filesystem library
  22325. if test x$enable_filesystem = xyes; then
  22326. case $ARCH in
  22327. android)
  22328. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22329. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22330. have_filesystem=yes
  22331. ;;
  22332. *)
  22333. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22334. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22335. have_filesystem=yes
  22336. ;;
  22337. esac
  22338. fi
  22339. # Set up files for the timer library
  22340. if test x$enable_timers = xyes; then
  22341. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22342. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22343. have_timers=yes
  22344. fi
  22345. # Set up files for udev hotplugging support
  22346. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22347. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22348. fi
  22349. # Set up files for evdev input
  22350. if test x$use_input_events = xyes; then
  22351. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22352. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22353. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22354. fi
  22355. # Set up files for wscons input
  22356. if test x$use_input_wscons = xyes; then
  22357. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22358. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22359. fi
  22360. # Set up other core UNIX files
  22361. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22362. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22363. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22364. ;;
  22365. *-*-cygwin* | *-*-mingw*)
  22366. ARCH=win32
  22367. if test "$build" != "$host"; then # cross-compiling
  22368. # Default cross-compile location
  22369. ac_default_prefix=/usr/local/cross-tools/$host
  22370. else
  22371. # Look for the location of the tools and install there
  22372. if test "$BUILD_PREFIX" != ""; then
  22373. ac_default_prefix=$BUILD_PREFIX
  22374. fi
  22375. fi
  22376. if test x$enable_loadso = xyes; then
  22377. have_loadso=yes
  22378. fi
  22379. CheckDeclarationAfterStatement
  22380. CheckDummyVideo
  22381. CheckOffscreenVideo
  22382. CheckDiskAudio
  22383. CheckDummyAudio
  22384. CheckWINDOWS
  22385. CheckWINDOWSGL
  22386. CheckWINDOWSGLES
  22387. CheckVulkan
  22388. CheckDIRECTX
  22389. CheckHIDAPI
  22390. # Set up the core platform files
  22391. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22392. # Set up files for the misc library
  22393. if test x$enable_misc = xyes; then
  22394. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22395. have_misc=yes
  22396. fi
  22397. # Use the Windows locale APIs.
  22398. if test x$enable_locale = xyes; then
  22399. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22400. have_locale=yes
  22401. fi
  22402. # Set up files for the video library
  22403. if test x$enable_video = xyes; then
  22404. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22405. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22406. have_video=yes
  22407. # Check whether --enable-render-d3d was given.
  22408. if test "${enable_render_d3d+set}" = set; then :
  22409. enableval=$enable_render_d3d;
  22410. else
  22411. enable_render_d3d=yes
  22412. fi
  22413. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22414. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22415. SUMMARY_video="${SUMMARY_video} d3d9"
  22416. fi
  22417. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22418. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22419. SUMMARY_video="${SUMMARY_video} d3d11"
  22420. fi
  22421. fi
  22422. # Set up files for the audio library
  22423. if test x$enable_audio = xyes; then
  22424. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22425. SUMMARY_audio="${SUMMARY_audio} winmm"
  22426. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22427. if test x$have_dsound = xyes; then
  22428. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22429. SUMMARY_audio="${SUMMARY_audio} directsound"
  22430. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22431. fi
  22432. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22433. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22434. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22435. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22436. fi
  22437. have_audio=yes
  22438. fi
  22439. # Set up files for the joystick library
  22440. if test x$enable_joystick = xyes; then
  22441. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22442. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22443. if test x$have_xinput = xyes; then
  22444. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22445. fi
  22446. if test x$have_wgi = xyes; then
  22447. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22448. fi
  22449. if test x$have_dinput = xyes; then
  22450. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22451. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22452. fi
  22453. fi
  22454. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22455. have_joystick=yes
  22456. fi
  22457. if test x$enable_haptic = xyes; then
  22458. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22459. if test x$have_xinput = xyes; then
  22460. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22461. fi
  22462. if test x$have_dinput = xyes; then
  22463. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22464. fi
  22465. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22466. have_haptic=yes
  22467. fi
  22468. fi
  22469. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22470. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  22471. have_tpcshrd_h=yes
  22472. fi
  22473. if test x$have_tpcshrd_h = xyes; then
  22474. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22475. fi
  22476. # Set up files for the sensor library
  22477. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22478. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22479. have_winsensors=yes
  22480. else
  22481. have_winsensors=no
  22482. fi
  22483. if test x$have_winsensors = xyes; then
  22484. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22485. fi
  22486. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22487. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22488. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22489. have_sensor=yes
  22490. fi
  22491. # Set up files for the power library
  22492. if test x$enable_power = xyes; then
  22493. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22494. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22495. have_power=yes
  22496. fi
  22497. # Set up files for the filesystem library
  22498. if test x$enable_filesystem = xyes; then
  22499. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22500. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22501. have_filesystem=yes
  22502. fi
  22503. # Set up files for the thread library
  22504. if test x$enable_threads = xyes; then
  22505. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22506. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22507. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22508. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22509. have_threads=yes
  22510. fi
  22511. # Set up files for the timer library
  22512. if test x$enable_timers = xyes; then
  22513. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22514. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22515. have_timers=yes
  22516. fi
  22517. # Set up files for the shared object loading library
  22518. if test x$enable_loadso = xyes; then
  22519. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22520. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22521. fi
  22522. # Set up the system libraries we need
  22523. if test -f /lib/w32api/libuuid.a; then
  22524. LIBUUID=/lib/w32api/libuuid.a
  22525. else
  22526. LIBUUID=-luuid
  22527. fi
  22528. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22529. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22530. # The Windows platform requires special setup
  22531. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22532. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22533. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22534. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22535. # Check to see if this is a mingw or cygwin build
  22536. have_mingw32=
  22537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22538. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22539. if ${ac_cv_lib_mingw32_main+:} false; then :
  22540. $as_echo_n "(cached) " >&6
  22541. else
  22542. ac_check_lib_save_LIBS=$LIBS
  22543. LIBS="-lmingw32 $LIBS"
  22544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22545. /* end confdefs.h. */
  22546. int
  22547. main ()
  22548. {
  22549. return main ();
  22550. ;
  22551. return 0;
  22552. }
  22553. _ACEOF
  22554. if ac_fn_c_try_link "$LINENO"; then :
  22555. ac_cv_lib_mingw32_main=yes
  22556. else
  22557. ac_cv_lib_mingw32_main=no
  22558. fi
  22559. rm -f core conftest.err conftest.$ac_objext \
  22560. conftest$ac_exeext conftest.$ac_ext
  22561. LIBS=$ac_check_lib_save_LIBS
  22562. fi
  22563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22564. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22565. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22566. have_mingw32=yes
  22567. fi
  22568. if test x$have_mingw32 = xyes; then
  22569. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22570. else
  22571. SDL_LIBS="-lcygwin $SDL_LIBS"
  22572. fi
  22573. ;;
  22574. *-*-beos*)
  22575. as_fn_error $? "
  22576. *** BeOS support has been removed as of SDL 2.0.2.
  22577. " "$LINENO" 5
  22578. ;;
  22579. *-*-haiku*)
  22580. ARCH=haiku
  22581. ac_default_prefix=/boot/system
  22582. CheckDummyVideo
  22583. CheckOffscreenVideo
  22584. CheckDiskAudio
  22585. CheckDummyAudio
  22586. CheckDLOPEN
  22587. CheckO_CLOEXEC
  22588. CheckHaikuVideo
  22589. CheckHaikuGL
  22590. CheckPTHREAD
  22591. # Set up files for the audio library
  22592. if test x$enable_audio = xyes; then
  22593. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22594. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22595. SUMMARY_audio="${SUMMARY_audio} haiku"
  22596. have_audio=yes
  22597. fi
  22598. # Set up files for the joystick library
  22599. if test x$enable_joystick = xyes; then
  22600. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22601. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22602. have_joystick=yes
  22603. fi
  22604. # Set up files for the timer library
  22605. if test x$enable_timers = xyes; then
  22606. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22607. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22608. have_timers=yes
  22609. fi
  22610. # Set up files for the system power library
  22611. if test x$enable_power = xyes; then
  22612. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22613. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22614. have_power=yes
  22615. fi
  22616. # Set up files for the system filesystem library
  22617. if test x$enable_filesystem = xyes; then
  22618. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22619. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22620. have_filesystem=yes
  22621. fi
  22622. # Set up files for the misc library
  22623. if test x$enable_misc = xyes; then
  22624. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22625. have_misc=yes
  22626. fi
  22627. # Set up files for the locale library
  22628. if test x$enable_locale = xyes; then
  22629. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22630. have_locale=yes
  22631. fi
  22632. # The Haiku platform requires special setup.
  22633. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22634. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22635. ;;
  22636. *-ios-*)
  22637. ARCH=ios
  22638. CheckVisibilityHidden
  22639. CheckDeclarationAfterStatement
  22640. CheckDummyVideo
  22641. CheckOffscreenVideo
  22642. CheckDiskAudio
  22643. CheckDummyAudio
  22644. CheckDLOPEN
  22645. CheckO_CLOEXEC
  22646. CheckMETAL
  22647. CheckVulkan
  22648. CheckPTHREAD
  22649. # Set up files for the misc library
  22650. if test x$enable_misc = xyes; then
  22651. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22652. have_misc=yes
  22653. fi
  22654. # Set up files for the locale library
  22655. if test x$enable_locale = xyes; then
  22656. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22657. have_locale=yes
  22658. fi
  22659. # Set up files for the audio library
  22660. if test x$enable_audio = xyes; then
  22661. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22662. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22663. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22664. have_audio=yes
  22665. fi
  22666. # Set up files for the joystick library
  22667. if test x$enable_joystick = xyes; then
  22668. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22669. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22670. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22671. have_joystick=yes
  22672. else
  22673. # Need this code for accelerometer as joystick support
  22674. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22675. fi
  22676. # Set up files for the haptic library
  22677. #if test x$enable_haptic = xyes; then
  22678. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22679. # have_haptic=yes
  22680. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22681. #fi
  22682. # Set up files for the sensor library
  22683. if test x$enable_sensor = xyes; then
  22684. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22685. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22686. have_sensor=yes
  22687. fi
  22688. # Set up files for the power library
  22689. if test x$enable_power = xyes; then
  22690. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22691. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22692. have_power=yes
  22693. fi
  22694. # Set up files for the filesystem library
  22695. if test x$enable_filesystem = xyes; then
  22696. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22697. have_filesystem=yes
  22698. fi
  22699. # Set up additional files for the file library
  22700. if test x$enable_file = xyes; then
  22701. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22702. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22703. fi
  22704. # Set up files for the timer library
  22705. if test x$enable_timers = xyes; then
  22706. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22707. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22708. have_timers=yes
  22709. fi
  22710. # Set up other core UNIX files
  22711. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22712. # The iOS platform requires special setup.
  22713. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22714. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22715. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22716. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22717. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22718. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22719. SUMMARY_video="${SUMMARY_video} uikit"
  22720. have_video=yes
  22721. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22722. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22723. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22724. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22725. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22727. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22731. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22732. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22734. fi
  22735. ;;
  22736. *-*-darwin* )
  22737. # This could be either full "Mac OS X", or plain "Darwin" which is
  22738. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22739. # Next line is broken, and a few files below require Mac OS X (full)
  22740. ARCH=macosx
  22741. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22742. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22743. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22744. CheckVisibilityHidden
  22745. CheckDeclarationAfterStatement
  22746. CheckDummyVideo
  22747. CheckOffscreenVideo
  22748. CheckDiskAudio
  22749. CheckDummyAudio
  22750. CheckDLOPEN
  22751. CheckO_CLOEXEC
  22752. CheckCOCOA
  22753. CheckMETAL
  22754. CheckX11
  22755. CheckMacGL
  22756. CheckMacGLES
  22757. CheckGLX
  22758. CheckOpenGL
  22759. CheckVulkan
  22760. CheckPTHREAD
  22761. CheckHIDAPI
  22762. # Set up files for the misc library
  22763. if test x$enable_misc = xyes; then
  22764. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22765. have_misc=yes
  22766. fi
  22767. # Set up files for the locale library
  22768. if test x$enable_locale = xyes; then
  22769. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22770. have_locale=yes
  22771. fi
  22772. # Set up files for the audio library
  22773. if test x$enable_audio = xyes; then
  22774. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22775. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22776. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22777. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22778. have_audio=yes
  22779. fi
  22780. # Set up files for the joystick library
  22781. if test x$enable_joystick = xyes; then
  22782. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22783. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22784. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22785. CheckJoystickMFI
  22786. have_joystick=yes
  22787. fi
  22788. # Set up files for the haptic library
  22789. if test x$enable_haptic = xyes; then
  22790. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22791. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22792. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22793. have_haptic=yes
  22794. fi
  22795. # Set up files for the power library
  22796. if test x$enable_power = xyes; then
  22797. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22798. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22799. have_power=yes
  22800. fi
  22801. # Set up files for the filesystem library
  22802. if test x$enable_filesystem = xyes; then
  22803. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22804. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22805. have_filesystem=yes
  22806. fi
  22807. # Set up files for the timer library
  22808. if test x$enable_timers = xyes; then
  22809. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22810. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22811. have_timers=yes
  22812. fi
  22813. # Set up additional files for the file library
  22814. if test x$enable_file = xyes; then
  22815. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22816. fi
  22817. # Set up other core UNIX files
  22818. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22819. # The Mac OS X platform requires special setup.
  22820. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22822. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22824. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22825. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22826. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22827. fi
  22828. ;;
  22829. *-nacl|*-pnacl)
  22830. ARCH=nacl
  22831. CheckNativeClient
  22832. CheckDummyAudio
  22833. CheckDummyVideo
  22834. CheckOffscreenVideo
  22835. CheckInputEvents
  22836. CheckPTHREAD
  22837. CheckO_CLOEXEC
  22838. # Set up files for the timer library
  22839. if test x$enable_timers = xyes; then
  22840. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22841. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22842. have_timers=yes
  22843. fi
  22844. if test x$enable_filesystem = xyes; then
  22845. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22846. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22847. have_filesystem=yes
  22848. fi
  22849. ;;
  22850. *-*-emscripten* )
  22851. if test x$enable_video = xyes; then
  22852. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22853. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22854. have_video=yes
  22855. SUMMARY_video="${SUMMARY_video} emscripten"
  22856. fi
  22857. if test x$enable_audio = xyes; then
  22858. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22859. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22860. have_audio=yes
  22861. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22862. fi
  22863. CheckVisibilityHidden
  22864. CheckDeclarationAfterStatement
  22865. CheckDummyVideo
  22866. CheckOffscreenVideo
  22867. CheckDiskAudio
  22868. CheckDummyAudio
  22869. CheckPTHREAD
  22870. CheckDLOPEN
  22871. CheckClockGettime
  22872. CheckEmscriptenGLES
  22873. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22874. have_misc=yes
  22875. # Set up files for the power library
  22876. if test x$enable_power = xyes; then
  22877. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22878. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22879. have_power=yes
  22880. fi
  22881. # Set up files for the power library
  22882. if test x$enable_joystick = xyes; then
  22883. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22884. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22885. have_joystick=yes
  22886. fi
  22887. # Set up files for the filesystem library
  22888. if test x$enable_filesystem = xyes; then
  22889. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22890. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22891. have_filesystem=yes
  22892. fi
  22893. # Set up files for the timer library
  22894. if test x$enable_timers = xyes; then
  22895. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22896. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22897. have_timers=yes
  22898. fi
  22899. # Set up files for the locale library
  22900. if test x$enable_locale = xyes; then
  22901. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22902. have_locale=yes
  22903. fi
  22904. ;;
  22905. *-*-riscos*)
  22906. ARCH=riscos
  22907. CheckVisibilityHidden
  22908. CheckDeclarationAfterStatement
  22909. CheckDummyVideo
  22910. CheckOffscreenVideo
  22911. CheckDiskAudio
  22912. CheckDummyAudio
  22913. CheckDLOPEN
  22914. CheckO_CLOEXEC
  22915. CheckOSS
  22916. CheckPTHREAD
  22917. CheckClockGettime
  22918. # Set up files for the misc library
  22919. if test x$enable_misc = xyes; then
  22920. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22921. have_misc=yes
  22922. fi
  22923. # Set up files for the video library
  22924. if test x$enable_video = xyes; then
  22925. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22926. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22927. have_video=yes
  22928. SUMMARY_video="${SUMMARY_video} riscos"
  22929. fi
  22930. # Set up files for the filesystem library
  22931. if test x$enable_filesystem = xyes; then
  22932. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22933. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22934. have_filesystem=yes
  22935. fi
  22936. # Set up files for the timer library
  22937. if test x$enable_timers = xyes; then
  22938. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22939. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22940. have_timers=yes
  22941. fi
  22942. ;;
  22943. *-*-os2*)
  22944. ARCH=os2
  22945. if test "$build" != "$host"; then # cross-compiling
  22946. # Default cross-compile location
  22947. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  22948. else
  22949. # Look for the location of the tools and install there
  22950. if test "$BUILD_PREFIX" != ""; then
  22951. ac_default_prefix=$BUILD_PREFIX
  22952. fi
  22953. fi
  22954. enable_static=no # disable static builds
  22955. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  22956. CheckOS2
  22957. CheckDeclarationAfterStatement
  22958. CheckDummyVideo
  22959. CheckDiskAudio
  22960. CheckDummyAudio
  22961. CheckHIDAPI
  22962. # Set up the core platform files
  22963. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  22964. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  22965. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  22966. fi
  22967. # Use the Unix locale APIs.
  22968. if test x$enable_locale = xyes; then
  22969. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22970. have_locale=yes
  22971. fi
  22972. # Set up files for the video library
  22973. if test x$enable_video = xyes; then
  22974. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  22975. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  22976. have_video=yes
  22977. SUMMARY_video="${SUMMARY_video} os/2"
  22978. fi
  22979. # Set up files for the audio library
  22980. if test x$enable_audio = xyes; then
  22981. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  22982. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  22983. have_audio=yes
  22984. SUMMARY_audio="${SUMMARY_audio} os/2"
  22985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  22986. fi
  22987. # Set up files for the thread library
  22988. if test x$enable_threads = xyes; then
  22989. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  22990. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  22991. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22992. have_threads=yes
  22993. fi
  22994. # Set up files for the timer library
  22995. if test x$enable_timers = xyes; then
  22996. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  22997. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  22998. have_timers=yes
  22999. fi
  23000. # Set up files for the shared object loading library
  23001. if test x$enable_loadso = xyes; then
  23002. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  23003. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  23004. have_loadso=yes
  23005. fi
  23006. # Set up files for the filesystem library
  23007. if test x$enable_filesystem = xyes; then
  23008. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  23009. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  23010. have_filesystem=yes
  23011. fi
  23012. # Set up files for the joystick library
  23013. if test x$enable_joystick = xyes; then
  23014. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  23015. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  23016. have_joystick=yes
  23017. fi
  23018. ;;
  23019. *)
  23020. as_fn_error $? "
  23021. *** Unsupported host: Please add to configure.ac
  23022. " "$LINENO" 5
  23023. ;;
  23024. esac
  23025. CheckVirtualJoystick
  23026. # Check whether to install sdl2-config
  23027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  23028. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  23029. # Check whether --enable-sdl2-config was given.
  23030. if test "${enable_sdl2_config+set}" = set; then :
  23031. enableval=$enable_sdl2_config; case "${enableval}" in
  23032. yes) enable_sdl2_config="TRUE" ;;
  23033. no) enable_sdl2_config="FALSE" ;;
  23034. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  23035. esac
  23036. else
  23037. enable_sdl2_config="TRUE"
  23038. fi
  23039. if test "$enable_sdl2_config" = "TRUE"; then
  23040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23041. $as_echo "yes" >&6; }
  23042. else
  23043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23044. $as_echo "no" >&6; }
  23045. fi
  23046. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23047. # Verify that we have all the platform specific files we need
  23048. if test x$have_audio != xyes; then
  23049. if test x$enable_audio = xyes; then
  23050. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23051. fi
  23052. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23053. fi
  23054. if test x$have_video != xyes; then
  23055. if test x$enable_video = xyes; then
  23056. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23057. fi
  23058. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23059. fi
  23060. if test x$have_misc != xyes; then
  23061. if test x$enable_misc = xyes; then
  23062. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23063. fi
  23064. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23065. fi
  23066. if test x$have_locale != xyes; then
  23067. if test x$enable_locale = xyes; then
  23068. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23069. fi
  23070. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23071. fi
  23072. if test x$have_joystick != xyes; then
  23073. if test x$enable_joystick = xyes; then
  23074. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23075. fi
  23076. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23077. fi
  23078. if test x$have_haptic != xyes; then
  23079. if test x$enable_haptic = xyes; then
  23080. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23081. fi
  23082. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23083. fi
  23084. if test x$have_sensor != xyes; then
  23085. if test x$enable_sensor = xyes; then
  23086. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23087. fi
  23088. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23089. fi
  23090. if test x$have_threads != xyes; then
  23091. if test x$enable_threads = xyes; then
  23092. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23093. fi
  23094. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23095. fi
  23096. if test x$have_timers != xyes; then
  23097. if test x$enable_timers = xyes; then
  23098. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23099. fi
  23100. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23101. fi
  23102. if test x$have_filesystem != xyes; then
  23103. if test x$enable_filesystem = xyes; then
  23104. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23105. fi
  23106. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23107. fi
  23108. if test x$have_loadso != xyes; then
  23109. if test x$enable_loadso = xyes; then
  23110. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23111. fi
  23112. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23113. fi
  23114. if test x$SDLMAIN_SOURCES = x; then
  23115. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23116. fi
  23117. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23118. if test x$video_wayland = xyes; then
  23119. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23120. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23121. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23122. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23123. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23124. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23125. echo ;\
  23126. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23127. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23128. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23129. echo ;\
  23130. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23131. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23132. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23133. echo ;\
  23134. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23135. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23136. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23137. done ;\
  23138. echo ;\
  23139. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23140. fi
  23141. OBJECTS=`echo $SOURCES`
  23142. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23143. for EXT in asm cc m c S; do
  23144. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23145. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23146. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23147. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23148. done
  23149. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23150. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23151. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23152. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23153. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23154. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23155. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23156. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23157. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23158. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23159. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23160. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23161. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23162. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23163. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23164. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23165. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23166. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23167. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23168. # Set runtime shared library paths as needed
  23169. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23170. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23171. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23173. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23174. have_enable_new_dtags=no
  23175. save_LDFLAGS="$LDFLAGS"
  23176. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23178. /* end confdefs.h. */
  23179. int
  23180. main ()
  23181. {
  23182. ;
  23183. return 0;
  23184. }
  23185. _ACEOF
  23186. if ac_fn_c_try_link "$LINENO"; then :
  23187. have_enable_new_dtags=yes
  23188. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23189. fi
  23190. rm -f core conftest.err conftest.$ac_objext \
  23191. conftest$ac_exeext conftest.$ac_ext
  23192. LDFLAGS="$save_LDFLAGS"
  23193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23194. $as_echo "$have_enable_new_dtags" >&6; }
  23195. fi
  23196. if test $ARCH = solaris; then
  23197. SDL_RLD_FLAGS="-R\${libdir}"
  23198. fi
  23199. else
  23200. SDL_RLD_FLAGS=""
  23201. fi
  23202. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23203. if test x$enable_shared = xyes; then
  23204. PKGCONFIG_LIBS_PRIV="
  23205. Libs.private:"
  23206. ENABLE_SHARED_TRUE=
  23207. ENABLE_SHARED_FALSE="#"
  23208. else
  23209. PKGCONFIG_LIBS_PRIV=
  23210. ENABLE_SHARED_TRUE="#"
  23211. ENABLE_SHARED_FALSE=
  23212. fi
  23213. if test x$enable_static = xyes; then
  23214. ENABLE_STATIC_TRUE=
  23215. ENABLE_STATIC_FALSE="#"
  23216. else
  23217. ENABLE_STATIC_TRUE="#"
  23218. ENABLE_STATIC_FALSE=
  23219. fi
  23220. cat >Makefile.rules <<__EOF__
  23221. # Build rules for objects
  23222. -include \$(OBJECTS:.lo=.d)
  23223. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23224. $srcdir/src/SDL.c: update-revision
  23225. $DEPENDS
  23226. $VERSION_DEPENDS
  23227. $SDLMAIN_DEPENDS
  23228. $SDLTEST_DEPENDS
  23229. $WAYLAND_PROTOCOLS_DEPENDS
  23230. __EOF__
  23231. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23232. ac_config_commands="$ac_config_commands sdl2_config"
  23233. SUMMARY="SDL2 Configure Summary:\n"
  23234. if test x$enable_shared = xyes; then
  23235. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23236. fi
  23237. if test x$enable_static = xyes; then
  23238. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23239. fi
  23240. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23241. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23242. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23243. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23244. if test x$have_x = xyes; then
  23245. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23246. fi
  23247. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23248. if test x$have_joystick_virtual = xyes; then
  23249. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23250. else
  23251. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23252. fi
  23253. if test x$have_samplerate_h_hdr = xyes; then
  23254. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23255. else
  23256. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23257. fi
  23258. if test x$have_libudev_h_hdr = xyes; then
  23259. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23260. else
  23261. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23262. fi
  23263. if test x$have_dbus_dbus_h_hdr = xyes; then
  23264. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23265. else
  23266. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23267. fi
  23268. if test x$enable_ime = xyes; then
  23269. SUMMARY="${SUMMARY}Using ime : YES\n"
  23270. else
  23271. SUMMARY="${SUMMARY}Using ime : NO\n"
  23272. fi
  23273. if test x$have_ibus_ibus_h_hdr = xyes; then
  23274. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23275. else
  23276. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23277. fi
  23278. if test x$have_fcitx = xyes; then
  23279. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23280. else
  23281. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23282. fi
  23283. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23284. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23285. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23286. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23287. SUMMARY="${SUMMARY}configure script with:\n"
  23288. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23289. fi
  23290. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23291. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23292. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23293. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23294. SUMMARY="${SUMMARY}configure script with:\n"
  23295. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23296. fi
  23297. ac_config_commands="$ac_config_commands summary"
  23298. cat >confcache <<\_ACEOF
  23299. # This file is a shell script that caches the results of configure
  23300. # tests run on this system so they can be shared between configure
  23301. # scripts and configure runs, see configure's option --config-cache.
  23302. # It is not useful on other systems. If it contains results you don't
  23303. # want to keep, you may remove or edit it.
  23304. #
  23305. # config.status only pays attention to the cache file if you give it
  23306. # the --recheck option to rerun configure.
  23307. #
  23308. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23309. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23310. # following values.
  23311. _ACEOF
  23312. # The following way of writing the cache mishandles newlines in values,
  23313. # but we know of no workaround that is simple, portable, and efficient.
  23314. # So, we kill variables containing newlines.
  23315. # Ultrix sh set writes to stderr and can't be redirected directly,
  23316. # and sets the high bit in the cache file unless we assign to the vars.
  23317. (
  23318. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23319. eval ac_val=\$$ac_var
  23320. case $ac_val in #(
  23321. *${as_nl}*)
  23322. case $ac_var in #(
  23323. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23324. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23325. esac
  23326. case $ac_var in #(
  23327. _ | IFS | as_nl) ;; #(
  23328. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23329. *) { eval $ac_var=; unset $ac_var;} ;;
  23330. esac ;;
  23331. esac
  23332. done
  23333. (set) 2>&1 |
  23334. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23335. *${as_nl}ac_space=\ *)
  23336. # `set' does not quote correctly, so add quotes: double-quote
  23337. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23338. sed -n \
  23339. "s/'/'\\\\''/g;
  23340. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23341. ;; #(
  23342. *)
  23343. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23344. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23345. ;;
  23346. esac |
  23347. sort
  23348. ) |
  23349. sed '
  23350. /^ac_cv_env_/b end
  23351. t clear
  23352. :clear
  23353. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23354. t end
  23355. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23356. :end' >>confcache
  23357. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23358. if test -w "$cache_file"; then
  23359. if test "x$cache_file" != "x/dev/null"; then
  23360. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23361. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23362. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23363. cat confcache >"$cache_file"
  23364. else
  23365. case $cache_file in #(
  23366. */* | ?:*)
  23367. mv -f confcache "$cache_file"$$ &&
  23368. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23369. *)
  23370. mv -f confcache "$cache_file" ;;
  23371. esac
  23372. fi
  23373. fi
  23374. else
  23375. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23376. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23377. fi
  23378. fi
  23379. rm -f confcache
  23380. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23381. # Let make expand exec_prefix.
  23382. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23383. DEFS=-DHAVE_CONFIG_H
  23384. ac_libobjs=
  23385. ac_ltlibobjs=
  23386. U=
  23387. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23388. # 1. Remove the extension, and $U if already installed.
  23389. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23390. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23391. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23392. # will be set to the directory where LIBOBJS objects are built.
  23393. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23394. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23395. done
  23396. LIBOBJS=$ac_libobjs
  23397. LTLIBOBJS=$ac_ltlibobjs
  23398. : "${CONFIG_STATUS=./config.status}"
  23399. ac_write_fail=0
  23400. ac_clean_files_save=$ac_clean_files
  23401. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23402. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23403. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23404. as_write_fail=0
  23405. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23406. #! $SHELL
  23407. # Generated by $as_me.
  23408. # Run this file to recreate the current configuration.
  23409. # Compiler output produced by configure, useful for debugging
  23410. # configure, is in config.log if it exists.
  23411. debug=false
  23412. ac_cs_recheck=false
  23413. ac_cs_silent=false
  23414. SHELL=\${CONFIG_SHELL-$SHELL}
  23415. export SHELL
  23416. _ASEOF
  23417. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23418. ## -------------------- ##
  23419. ## M4sh Initialization. ##
  23420. ## -------------------- ##
  23421. # Be more Bourne compatible
  23422. DUALCASE=1; export DUALCASE # for MKS sh
  23423. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23424. emulate sh
  23425. NULLCMD=:
  23426. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23427. # is contrary to our usage. Disable this feature.
  23428. alias -g '${1+"$@"}'='"$@"'
  23429. setopt NO_GLOB_SUBST
  23430. else
  23431. case `(set -o) 2>/dev/null` in #(
  23432. *posix*) :
  23433. set -o posix ;; #(
  23434. *) :
  23435. ;;
  23436. esac
  23437. fi
  23438. as_nl='
  23439. '
  23440. export as_nl
  23441. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23442. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23443. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23444. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23445. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23446. # but without wasting forks for bash or zsh.
  23447. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23448. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23449. as_echo='print -r --'
  23450. as_echo_n='print -rn --'
  23451. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23452. as_echo='printf %s\n'
  23453. as_echo_n='printf %s'
  23454. else
  23455. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23456. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23457. as_echo_n='/usr/ucb/echo -n'
  23458. else
  23459. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23460. as_echo_n_body='eval
  23461. arg=$1;
  23462. case $arg in #(
  23463. *"$as_nl"*)
  23464. expr "X$arg" : "X\\(.*\\)$as_nl";
  23465. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23466. esac;
  23467. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23468. '
  23469. export as_echo_n_body
  23470. as_echo_n='sh -c $as_echo_n_body as_echo'
  23471. fi
  23472. export as_echo_body
  23473. as_echo='sh -c $as_echo_body as_echo'
  23474. fi
  23475. # The user is always right.
  23476. if test "${PATH_SEPARATOR+set}" != set; then
  23477. PATH_SEPARATOR=:
  23478. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23479. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23480. PATH_SEPARATOR=';'
  23481. }
  23482. fi
  23483. # IFS
  23484. # We need space, tab and new line, in precisely that order. Quoting is
  23485. # there to prevent editors from complaining about space-tab.
  23486. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23487. # splitting by setting IFS to empty value.)
  23488. IFS=" "" $as_nl"
  23489. # Find who we are. Look in the path if we contain no directory separator.
  23490. as_myself=
  23491. case $0 in #((
  23492. *[\\/]* ) as_myself=$0 ;;
  23493. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23494. for as_dir in $PATH
  23495. do
  23496. IFS=$as_save_IFS
  23497. test -z "$as_dir" && as_dir=.
  23498. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23499. done
  23500. IFS=$as_save_IFS
  23501. ;;
  23502. esac
  23503. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23504. # in which case we are not to be found in the path.
  23505. if test "x$as_myself" = x; then
  23506. as_myself=$0
  23507. fi
  23508. if test ! -f "$as_myself"; then
  23509. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23510. exit 1
  23511. fi
  23512. # Unset variables that we do not need and which cause bugs (e.g. in
  23513. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23514. # suppresses any "Segmentation fault" message there. '((' could
  23515. # trigger a bug in pdksh 5.2.14.
  23516. for as_var in BASH_ENV ENV MAIL MAILPATH
  23517. do eval test x\${$as_var+set} = xset \
  23518. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23519. done
  23520. PS1='$ '
  23521. PS2='> '
  23522. PS4='+ '
  23523. # NLS nuisances.
  23524. LC_ALL=C
  23525. export LC_ALL
  23526. LANGUAGE=C
  23527. export LANGUAGE
  23528. # CDPATH.
  23529. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23530. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23531. # ----------------------------------------
  23532. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23533. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23534. # script with STATUS, using 1 if that was 0.
  23535. as_fn_error ()
  23536. {
  23537. as_status=$1; test $as_status -eq 0 && as_status=1
  23538. if test "$4"; then
  23539. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23540. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23541. fi
  23542. $as_echo "$as_me: error: $2" >&2
  23543. as_fn_exit $as_status
  23544. } # as_fn_error
  23545. # as_fn_set_status STATUS
  23546. # -----------------------
  23547. # Set $? to STATUS, without forking.
  23548. as_fn_set_status ()
  23549. {
  23550. return $1
  23551. } # as_fn_set_status
  23552. # as_fn_exit STATUS
  23553. # -----------------
  23554. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23555. as_fn_exit ()
  23556. {
  23557. set +e
  23558. as_fn_set_status $1
  23559. exit $1
  23560. } # as_fn_exit
  23561. # as_fn_unset VAR
  23562. # ---------------
  23563. # Portably unset VAR.
  23564. as_fn_unset ()
  23565. {
  23566. { eval $1=; unset $1;}
  23567. }
  23568. as_unset=as_fn_unset
  23569. # as_fn_append VAR VALUE
  23570. # ----------------------
  23571. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23572. # advantage of any shell optimizations that allow amortized linear growth over
  23573. # repeated appends, instead of the typical quadratic growth present in naive
  23574. # implementations.
  23575. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23576. eval 'as_fn_append ()
  23577. {
  23578. eval $1+=\$2
  23579. }'
  23580. else
  23581. as_fn_append ()
  23582. {
  23583. eval $1=\$$1\$2
  23584. }
  23585. fi # as_fn_append
  23586. # as_fn_arith ARG...
  23587. # ------------------
  23588. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23589. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23590. # must be portable across $(()) and expr.
  23591. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23592. eval 'as_fn_arith ()
  23593. {
  23594. as_val=$(( $* ))
  23595. }'
  23596. else
  23597. as_fn_arith ()
  23598. {
  23599. as_val=`expr "$@" || test $? -eq 1`
  23600. }
  23601. fi # as_fn_arith
  23602. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23603. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23604. as_expr=expr
  23605. else
  23606. as_expr=false
  23607. fi
  23608. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23609. as_basename=basename
  23610. else
  23611. as_basename=false
  23612. fi
  23613. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23614. as_dirname=dirname
  23615. else
  23616. as_dirname=false
  23617. fi
  23618. as_me=`$as_basename -- "$0" ||
  23619. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23620. X"$0" : 'X\(//\)$' \| \
  23621. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23622. $as_echo X/"$0" |
  23623. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23624. s//\1/
  23625. q
  23626. }
  23627. /^X\/\(\/\/\)$/{
  23628. s//\1/
  23629. q
  23630. }
  23631. /^X\/\(\/\).*/{
  23632. s//\1/
  23633. q
  23634. }
  23635. s/.*/./; q'`
  23636. # Avoid depending upon Character Ranges.
  23637. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23638. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23639. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23640. as_cr_digits='0123456789'
  23641. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23642. ECHO_C= ECHO_N= ECHO_T=
  23643. case `echo -n x` in #(((((
  23644. -n*)
  23645. case `echo 'xy\c'` in
  23646. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23647. xy) ECHO_C='\c';;
  23648. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23649. ECHO_T=' ';;
  23650. esac;;
  23651. *)
  23652. ECHO_N='-n';;
  23653. esac
  23654. rm -f conf$$ conf$$.exe conf$$.file
  23655. if test -d conf$$.dir; then
  23656. rm -f conf$$.dir/conf$$.file
  23657. else
  23658. rm -f conf$$.dir
  23659. mkdir conf$$.dir 2>/dev/null
  23660. fi
  23661. if (echo >conf$$.file) 2>/dev/null; then
  23662. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23663. as_ln_s='ln -s'
  23664. # ... but there are two gotchas:
  23665. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23666. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23667. # In both cases, we have to default to `cp -pR'.
  23668. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23669. as_ln_s='cp -pR'
  23670. elif ln conf$$.file conf$$ 2>/dev/null; then
  23671. as_ln_s=ln
  23672. else
  23673. as_ln_s='cp -pR'
  23674. fi
  23675. else
  23676. as_ln_s='cp -pR'
  23677. fi
  23678. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23679. rmdir conf$$.dir 2>/dev/null
  23680. # as_fn_mkdir_p
  23681. # -------------
  23682. # Create "$as_dir" as a directory, including parents if necessary.
  23683. as_fn_mkdir_p ()
  23684. {
  23685. case $as_dir in #(
  23686. -*) as_dir=./$as_dir;;
  23687. esac
  23688. test -d "$as_dir" || eval $as_mkdir_p || {
  23689. as_dirs=
  23690. while :; do
  23691. case $as_dir in #(
  23692. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23693. *) as_qdir=$as_dir;;
  23694. esac
  23695. as_dirs="'$as_qdir' $as_dirs"
  23696. as_dir=`$as_dirname -- "$as_dir" ||
  23697. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23698. X"$as_dir" : 'X\(//\)[^/]' \| \
  23699. X"$as_dir" : 'X\(//\)$' \| \
  23700. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23701. $as_echo X"$as_dir" |
  23702. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23703. s//\1/
  23704. q
  23705. }
  23706. /^X\(\/\/\)[^/].*/{
  23707. s//\1/
  23708. q
  23709. }
  23710. /^X\(\/\/\)$/{
  23711. s//\1/
  23712. q
  23713. }
  23714. /^X\(\/\).*/{
  23715. s//\1/
  23716. q
  23717. }
  23718. s/.*/./; q'`
  23719. test -d "$as_dir" && break
  23720. done
  23721. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23722. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23723. } # as_fn_mkdir_p
  23724. if mkdir -p . 2>/dev/null; then
  23725. as_mkdir_p='mkdir -p "$as_dir"'
  23726. else
  23727. test -d ./-p && rmdir ./-p
  23728. as_mkdir_p=false
  23729. fi
  23730. # as_fn_executable_p FILE
  23731. # -----------------------
  23732. # Test if FILE is an executable regular file.
  23733. as_fn_executable_p ()
  23734. {
  23735. test -f "$1" && test -x "$1"
  23736. } # as_fn_executable_p
  23737. as_test_x='test -x'
  23738. as_executable_p=as_fn_executable_p
  23739. # Sed expression to map a string onto a valid CPP name.
  23740. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23741. # Sed expression to map a string onto a valid variable name.
  23742. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23743. exec 6>&1
  23744. ## ----------------------------------- ##
  23745. ## Main body of $CONFIG_STATUS script. ##
  23746. ## ----------------------------------- ##
  23747. _ASEOF
  23748. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23749. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23750. # Save the log message, to keep $0 and so on meaningful, and to
  23751. # report actual input values of CONFIG_FILES etc. instead of their
  23752. # values after options handling.
  23753. ac_log="
  23754. This file was extended by $as_me, which was
  23755. generated by GNU Autoconf 2.69. Invocation command line was
  23756. CONFIG_FILES = $CONFIG_FILES
  23757. CONFIG_HEADERS = $CONFIG_HEADERS
  23758. CONFIG_LINKS = $CONFIG_LINKS
  23759. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23760. $ $0 $@
  23761. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23762. "
  23763. _ACEOF
  23764. case $ac_config_files in *"
  23765. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23766. esac
  23767. case $ac_config_headers in *"
  23768. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23769. esac
  23770. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23771. # Files that config.status was made for.
  23772. config_files="$ac_config_files"
  23773. config_headers="$ac_config_headers"
  23774. config_commands="$ac_config_commands"
  23775. _ACEOF
  23776. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23777. ac_cs_usage="\
  23778. \`$as_me' instantiates files and other configuration actions
  23779. from templates according to the current configuration. Unless the files
  23780. and actions are specified as TAGs, all are instantiated by default.
  23781. Usage: $0 [OPTION]... [TAG]...
  23782. -h, --help print this help, then exit
  23783. -V, --version print version number and configuration settings, then exit
  23784. --config print configuration, then exit
  23785. -q, --quiet, --silent
  23786. do not print progress messages
  23787. -d, --debug don't remove temporary files
  23788. --recheck update $as_me by reconfiguring in the same conditions
  23789. --file=FILE[:TEMPLATE]
  23790. instantiate the configuration file FILE
  23791. --header=FILE[:TEMPLATE]
  23792. instantiate the configuration header FILE
  23793. Configuration files:
  23794. $config_files
  23795. Configuration headers:
  23796. $config_headers
  23797. Configuration commands:
  23798. $config_commands
  23799. Report bugs to the package provider."
  23800. _ACEOF
  23801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23802. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23803. ac_cs_version="\\
  23804. config.status
  23805. configured by $0, generated by GNU Autoconf 2.69,
  23806. with options \\"\$ac_cs_config\\"
  23807. Copyright (C) 2012 Free Software Foundation, Inc.
  23808. This config.status script is free software; the Free Software Foundation
  23809. gives unlimited permission to copy, distribute and modify it."
  23810. ac_pwd='$ac_pwd'
  23811. srcdir='$srcdir'
  23812. INSTALL='$INSTALL'
  23813. AWK='$AWK'
  23814. test -n "\$AWK" || AWK=awk
  23815. _ACEOF
  23816. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23817. # The default lists apply if the user does not specify any file.
  23818. ac_need_defaults=:
  23819. while test $# != 0
  23820. do
  23821. case $1 in
  23822. --*=?*)
  23823. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23824. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23825. ac_shift=:
  23826. ;;
  23827. --*=)
  23828. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23829. ac_optarg=
  23830. ac_shift=:
  23831. ;;
  23832. *)
  23833. ac_option=$1
  23834. ac_optarg=$2
  23835. ac_shift=shift
  23836. ;;
  23837. esac
  23838. case $ac_option in
  23839. # Handling of the options.
  23840. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23841. ac_cs_recheck=: ;;
  23842. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23843. $as_echo "$ac_cs_version"; exit ;;
  23844. --config | --confi | --conf | --con | --co | --c )
  23845. $as_echo "$ac_cs_config"; exit ;;
  23846. --debug | --debu | --deb | --de | --d | -d )
  23847. debug=: ;;
  23848. --file | --fil | --fi | --f )
  23849. $ac_shift
  23850. case $ac_optarg in
  23851. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23852. '') as_fn_error $? "missing file argument" ;;
  23853. esac
  23854. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23855. ac_need_defaults=false;;
  23856. --header | --heade | --head | --hea )
  23857. $ac_shift
  23858. case $ac_optarg in
  23859. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23860. esac
  23861. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23862. ac_need_defaults=false;;
  23863. --he | --h)
  23864. # Conflict between --help and --header
  23865. as_fn_error $? "ambiguous option: \`$1'
  23866. Try \`$0 --help' for more information.";;
  23867. --help | --hel | -h )
  23868. $as_echo "$ac_cs_usage"; exit ;;
  23869. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23870. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23871. ac_cs_silent=: ;;
  23872. # This is an error.
  23873. -*) as_fn_error $? "unrecognized option: \`$1'
  23874. Try \`$0 --help' for more information." ;;
  23875. *) as_fn_append ac_config_targets " $1"
  23876. ac_need_defaults=false ;;
  23877. esac
  23878. shift
  23879. done
  23880. ac_configure_extra_args=
  23881. if $ac_cs_silent; then
  23882. exec 6>/dev/null
  23883. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23884. fi
  23885. _ACEOF
  23886. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23887. if \$ac_cs_recheck; then
  23888. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23889. shift
  23890. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23891. CONFIG_SHELL='$SHELL'
  23892. export CONFIG_SHELL
  23893. exec "\$@"
  23894. fi
  23895. _ACEOF
  23896. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23897. exec 5>>config.log
  23898. {
  23899. echo
  23900. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23901. ## Running $as_me. ##
  23902. _ASBOX
  23903. $as_echo "$ac_log"
  23904. } >&5
  23905. _ACEOF
  23906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23907. #
  23908. # INIT-COMMANDS
  23909. #
  23910. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23911. # if CDPATH is set.
  23912. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23913. sed_quote_subst='$sed_quote_subst'
  23914. double_quote_subst='$double_quote_subst'
  23915. delay_variable_subst='$delay_variable_subst'
  23916. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23917. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23918. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23919. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23920. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23921. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23922. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23923. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23924. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23925. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  23926. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23927. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23928. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23929. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23930. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23931. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23932. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23933. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23934. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23935. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23936. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23937. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23938. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23939. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23940. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23941. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23942. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23943. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23944. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23945. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23946. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23947. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23948. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23949. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23950. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23951. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23952. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23953. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23954. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23955. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23956. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23957. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23958. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23959. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23960. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23961. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23962. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23963. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23964. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23965. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23966. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23967. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23968. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23969. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23970. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23971. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23972. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23973. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  23974. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23975. 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"`'
  23976. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  23977. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23978. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23979. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  23980. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23981. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23982. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23983. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23984. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23985. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23986. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23987. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23988. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23989. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23990. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23991. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23992. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23993. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23994. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23995. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23996. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23997. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23998. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23999. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24000. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24001. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24002. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24003. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24004. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24005. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24006. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24007. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24008. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24009. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24010. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24011. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24012. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24013. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24014. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24015. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24016. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24017. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24018. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24019. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24020. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24021. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24022. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24023. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24024. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24025. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24026. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24027. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24028. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24029. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24030. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24031. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24032. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24033. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24034. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24035. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24036. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24037. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24038. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24039. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24040. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24041. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24042. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24043. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24044. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24045. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24046. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24047. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24048. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24049. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24050. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24051. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24052. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24053. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24054. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24055. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24056. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24057. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24058. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24059. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24060. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24061. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24062. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24063. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24064. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24065. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24066. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24067. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24068. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24069. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24070. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24071. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24072. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24073. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24074. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24075. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24076. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24077. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24078. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24079. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24080. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24081. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24082. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24083. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24084. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24085. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24086. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24087. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24088. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24089. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24090. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24091. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24092. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24093. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24094. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24095. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24096. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24097. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24098. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24099. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24100. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24101. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24102. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24103. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24104. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24105. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24106. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24107. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24108. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24109. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24110. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24111. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24112. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24113. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24114. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24115. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24116. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24117. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24118. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24119. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24120. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24121. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24122. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24123. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24124. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24125. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24126. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24127. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24128. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24129. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24130. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24131. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24132. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24133. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24134. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24135. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24136. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24137. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24138. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24139. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24140. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24141. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24142. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24143. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24144. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24145. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24146. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24147. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24148. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24149. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24150. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24151. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24152. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24153. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24154. LTCC='$LTCC'
  24155. LTCFLAGS='$LTCFLAGS'
  24156. compiler='$compiler_DEFAULT'
  24157. # A function that is used when there is no print builtin or printf.
  24158. func_fallback_echo ()
  24159. {
  24160. eval 'cat <<_LTECHO_EOF
  24161. \$1
  24162. _LTECHO_EOF'
  24163. }
  24164. # Quote evaled strings.
  24165. for var in AS \
  24166. DLLTOOL \
  24167. OBJDUMP \
  24168. SHELL \
  24169. ECHO \
  24170. PATH_SEPARATOR \
  24171. SED \
  24172. GREP \
  24173. EGREP \
  24174. FGREP \
  24175. LD \
  24176. NM \
  24177. LN_S \
  24178. lt_SP2NL \
  24179. lt_NL2SP \
  24180. reload_flag \
  24181. deplibs_check_method \
  24182. file_magic_cmd \
  24183. file_magic_glob \
  24184. want_nocaseglob \
  24185. sharedlib_from_linklib_cmd \
  24186. AR \
  24187. AR_FLAGS \
  24188. archiver_list_spec \
  24189. STRIP \
  24190. RANLIB \
  24191. CC \
  24192. CFLAGS \
  24193. compiler \
  24194. lt_cv_sys_global_symbol_pipe \
  24195. lt_cv_sys_global_symbol_to_cdecl \
  24196. lt_cv_sys_global_symbol_to_import \
  24197. lt_cv_sys_global_symbol_to_c_name_address \
  24198. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24199. lt_cv_nm_interface \
  24200. nm_file_list_spec \
  24201. lt_cv_truncate_bin \
  24202. lt_prog_compiler_no_builtin_flag \
  24203. lt_prog_compiler_pic \
  24204. lt_prog_compiler_wl \
  24205. lt_prog_compiler_static \
  24206. lt_cv_prog_compiler_c_o \
  24207. need_locks \
  24208. MANIFEST_TOOL \
  24209. DSYMUTIL \
  24210. NMEDIT \
  24211. LIPO \
  24212. OTOOL \
  24213. OTOOL64 \
  24214. shrext_cmds \
  24215. export_dynamic_flag_spec \
  24216. whole_archive_flag_spec \
  24217. compiler_needs_object \
  24218. with_gnu_ld \
  24219. allow_undefined_flag \
  24220. no_undefined_flag \
  24221. hardcode_libdir_flag_spec \
  24222. hardcode_libdir_separator \
  24223. exclude_expsyms \
  24224. include_expsyms \
  24225. file_list_spec \
  24226. variables_saved_for_relink \
  24227. libname_spec \
  24228. library_names_spec \
  24229. soname_spec \
  24230. install_override_mode \
  24231. finish_eval \
  24232. old_striplib \
  24233. striplib \
  24234. compiler_lib_search_dirs \
  24235. predep_objects \
  24236. postdep_objects \
  24237. predeps \
  24238. postdeps \
  24239. compiler_lib_search_path \
  24240. LD_RC \
  24241. LD_CXX \
  24242. reload_flag_RC \
  24243. reload_flag_CXX \
  24244. compiler_RC \
  24245. compiler_CXX \
  24246. lt_prog_compiler_no_builtin_flag_RC \
  24247. lt_prog_compiler_no_builtin_flag_CXX \
  24248. lt_prog_compiler_pic_RC \
  24249. lt_prog_compiler_pic_CXX \
  24250. lt_prog_compiler_wl_RC \
  24251. lt_prog_compiler_wl_CXX \
  24252. lt_prog_compiler_static_RC \
  24253. lt_prog_compiler_static_CXX \
  24254. lt_cv_prog_compiler_c_o_RC \
  24255. lt_cv_prog_compiler_c_o_CXX \
  24256. export_dynamic_flag_spec_RC \
  24257. export_dynamic_flag_spec_CXX \
  24258. whole_archive_flag_spec_RC \
  24259. whole_archive_flag_spec_CXX \
  24260. compiler_needs_object_RC \
  24261. compiler_needs_object_CXX \
  24262. with_gnu_ld_RC \
  24263. with_gnu_ld_CXX \
  24264. allow_undefined_flag_RC \
  24265. allow_undefined_flag_CXX \
  24266. no_undefined_flag_RC \
  24267. no_undefined_flag_CXX \
  24268. hardcode_libdir_flag_spec_RC \
  24269. hardcode_libdir_flag_spec_CXX \
  24270. hardcode_libdir_separator_RC \
  24271. hardcode_libdir_separator_CXX \
  24272. exclude_expsyms_RC \
  24273. exclude_expsyms_CXX \
  24274. include_expsyms_RC \
  24275. include_expsyms_CXX \
  24276. file_list_spec_RC \
  24277. file_list_spec_CXX \
  24278. compiler_lib_search_dirs_RC \
  24279. compiler_lib_search_dirs_CXX \
  24280. predep_objects_RC \
  24281. predep_objects_CXX \
  24282. postdep_objects_RC \
  24283. postdep_objects_CXX \
  24284. predeps_RC \
  24285. predeps_CXX \
  24286. postdeps_RC \
  24287. postdeps_CXX \
  24288. compiler_lib_search_path_RC \
  24289. compiler_lib_search_path_CXX; do
  24290. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24291. *[\\\\\\\`\\"\\\$]*)
  24292. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24293. ;;
  24294. *)
  24295. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24296. ;;
  24297. esac
  24298. done
  24299. # Double-quote double-evaled strings.
  24300. for var in reload_cmds \
  24301. old_postinstall_cmds \
  24302. old_postuninstall_cmds \
  24303. old_archive_cmds \
  24304. extract_expsyms_cmds \
  24305. old_archive_from_new_cmds \
  24306. old_archive_from_expsyms_cmds \
  24307. archive_cmds \
  24308. archive_expsym_cmds \
  24309. module_cmds \
  24310. module_expsym_cmds \
  24311. export_symbols_cmds \
  24312. prelink_cmds \
  24313. postlink_cmds \
  24314. postinstall_cmds \
  24315. postuninstall_cmds \
  24316. finish_cmds \
  24317. sys_lib_search_path_spec \
  24318. configure_time_dlsearch_path \
  24319. configure_time_lt_sys_library_path \
  24320. reload_cmds_RC \
  24321. reload_cmds_CXX \
  24322. old_archive_cmds_RC \
  24323. old_archive_cmds_CXX \
  24324. old_archive_from_new_cmds_RC \
  24325. old_archive_from_new_cmds_CXX \
  24326. old_archive_from_expsyms_cmds_RC \
  24327. old_archive_from_expsyms_cmds_CXX \
  24328. archive_cmds_RC \
  24329. archive_cmds_CXX \
  24330. archive_expsym_cmds_RC \
  24331. archive_expsym_cmds_CXX \
  24332. module_cmds_RC \
  24333. module_cmds_CXX \
  24334. module_expsym_cmds_RC \
  24335. module_expsym_cmds_CXX \
  24336. export_symbols_cmds_RC \
  24337. export_symbols_cmds_CXX \
  24338. prelink_cmds_RC \
  24339. prelink_cmds_CXX \
  24340. postlink_cmds_RC \
  24341. postlink_cmds_CXX; do
  24342. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24343. *[\\\\\\\`\\"\\\$]*)
  24344. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24345. ;;
  24346. *)
  24347. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24348. ;;
  24349. esac
  24350. done
  24351. ac_aux_dir='$ac_aux_dir'
  24352. # See if we are running on zsh, and set the options that allow our
  24353. # commands through without removal of \ escapes INIT.
  24354. if test -n "\${ZSH_VERSION+set}"; then
  24355. setopt NO_GLOB_SUBST
  24356. fi
  24357. PACKAGE='$PACKAGE'
  24358. VERSION='$VERSION'
  24359. RM='$RM'
  24360. ofile='$ofile'
  24361. SUMMARY="$SUMMARY"
  24362. _ACEOF
  24363. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24364. # Handling of arguments.
  24365. for ac_config_target in $ac_config_targets
  24366. do
  24367. case $ac_config_target in
  24368. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24369. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24370. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24371. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24372. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24373. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24374. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24375. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24376. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24377. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24378. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24379. esac
  24380. done
  24381. # If the user did not use the arguments to specify the items to instantiate,
  24382. # then the envvar interface is used. Set only those that are not.
  24383. # We use the long form for the default assignment because of an extremely
  24384. # bizarre bug on SunOS 4.1.3.
  24385. if $ac_need_defaults; then
  24386. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24387. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24388. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24389. fi
  24390. # Have a temporary directory for convenience. Make it in the build tree
  24391. # simply because there is no reason against having it here, and in addition,
  24392. # creating and moving files from /tmp can sometimes cause problems.
  24393. # Hook for its removal unless debugging.
  24394. # Note that there is a small window in which the directory will not be cleaned:
  24395. # after its creation but before its name has been assigned to `$tmp'.
  24396. $debug ||
  24397. {
  24398. tmp= ac_tmp=
  24399. trap 'exit_status=$?
  24400. : "${ac_tmp:=$tmp}"
  24401. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24402. ' 0
  24403. trap 'as_fn_exit 1' 1 2 13 15
  24404. }
  24405. # Create a (secure) tmp directory for tmp files.
  24406. {
  24407. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24408. test -d "$tmp"
  24409. } ||
  24410. {
  24411. tmp=./conf$$-$RANDOM
  24412. (umask 077 && mkdir "$tmp")
  24413. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24414. ac_tmp=$tmp
  24415. # Set up the scripts for CONFIG_FILES section.
  24416. # No need to generate them if there are no CONFIG_FILES.
  24417. # This happens for instance with `./config.status config.h'.
  24418. if test -n "$CONFIG_FILES"; then
  24419. ac_cr=`echo X | tr X '\015'`
  24420. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24421. # But we know of no other shell where ac_cr would be empty at this
  24422. # point, so we can use a bashism as a fallback.
  24423. if test "x$ac_cr" = x; then
  24424. eval ac_cr=\$\'\\r\'
  24425. fi
  24426. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24427. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24428. ac_cs_awk_cr='\\r'
  24429. else
  24430. ac_cs_awk_cr=$ac_cr
  24431. fi
  24432. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24433. _ACEOF
  24434. {
  24435. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24436. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24437. echo "_ACEOF"
  24438. } >conf$$subs.sh ||
  24439. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24440. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24441. ac_delim='%!_!# '
  24442. for ac_last_try in false false false false false :; do
  24443. . ./conf$$subs.sh ||
  24444. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24445. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24446. if test $ac_delim_n = $ac_delim_num; then
  24447. break
  24448. elif $ac_last_try; then
  24449. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24450. else
  24451. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24452. fi
  24453. done
  24454. rm -f conf$$subs.sh
  24455. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24456. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24457. _ACEOF
  24458. sed -n '
  24459. h
  24460. s/^/S["/; s/!.*/"]=/
  24461. p
  24462. g
  24463. s/^[^!]*!//
  24464. :repl
  24465. t repl
  24466. s/'"$ac_delim"'$//
  24467. t delim
  24468. :nl
  24469. h
  24470. s/\(.\{148\}\)..*/\1/
  24471. t more1
  24472. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24473. p
  24474. n
  24475. b repl
  24476. :more1
  24477. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24478. p
  24479. g
  24480. s/.\{148\}//
  24481. t nl
  24482. :delim
  24483. h
  24484. s/\(.\{148\}\)..*/\1/
  24485. t more2
  24486. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24487. p
  24488. b
  24489. :more2
  24490. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24491. p
  24492. g
  24493. s/.\{148\}//
  24494. t delim
  24495. ' <conf$$subs.awk | sed '
  24496. /^[^""]/{
  24497. N
  24498. s/\n//
  24499. }
  24500. ' >>$CONFIG_STATUS || ac_write_fail=1
  24501. rm -f conf$$subs.awk
  24502. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24503. _ACAWK
  24504. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24505. for (key in S) S_is_set[key] = 1
  24506. FS = ""
  24507. }
  24508. {
  24509. line = $ 0
  24510. nfields = split(line, field, "@")
  24511. substed = 0
  24512. len = length(field[1])
  24513. for (i = 2; i < nfields; i++) {
  24514. key = field[i]
  24515. keylen = length(key)
  24516. if (S_is_set[key]) {
  24517. value = S[key]
  24518. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24519. len += length(value) + length(field[++i])
  24520. substed = 1
  24521. } else
  24522. len += 1 + keylen
  24523. }
  24524. print line
  24525. }
  24526. _ACAWK
  24527. _ACEOF
  24528. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24529. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24530. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24531. else
  24532. cat
  24533. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24534. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24535. _ACEOF
  24536. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24537. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24538. # trailing colons and then remove the whole line if VPATH becomes empty
  24539. # (actually we leave an empty line to preserve line numbers).
  24540. if test "x$srcdir" = x.; then
  24541. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24542. h
  24543. s///
  24544. s/^/:/
  24545. s/[ ]*$/:/
  24546. s/:\$(srcdir):/:/g
  24547. s/:\${srcdir}:/:/g
  24548. s/:@srcdir@:/:/g
  24549. s/^:*//
  24550. s/:*$//
  24551. x
  24552. s/\(=[ ]*\).*/\1/
  24553. G
  24554. s/\n//
  24555. s/^[^=]*=[ ]*$//
  24556. }'
  24557. fi
  24558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24559. fi # test -n "$CONFIG_FILES"
  24560. # Set up the scripts for CONFIG_HEADERS section.
  24561. # No need to generate them if there are no CONFIG_HEADERS.
  24562. # This happens for instance with `./config.status Makefile'.
  24563. if test -n "$CONFIG_HEADERS"; then
  24564. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24565. BEGIN {
  24566. _ACEOF
  24567. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24568. # here-document in config.status, that substitutes the proper values into
  24569. # config.h.in to produce config.h.
  24570. # Create a delimiter string that does not exist in confdefs.h, to ease
  24571. # handling of long lines.
  24572. ac_delim='%!_!# '
  24573. for ac_last_try in false false :; do
  24574. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24575. if test -z "$ac_tt"; then
  24576. break
  24577. elif $ac_last_try; then
  24578. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24579. else
  24580. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24581. fi
  24582. done
  24583. # For the awk script, D is an array of macro values keyed by name,
  24584. # likewise P contains macro parameters if any. Preserve backslash
  24585. # newline sequences.
  24586. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24587. sed -n '
  24588. s/.\{148\}/&'"$ac_delim"'/g
  24589. t rset
  24590. :rset
  24591. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24592. t def
  24593. d
  24594. :def
  24595. s/\\$//
  24596. t bsnl
  24597. s/["\\]/\\&/g
  24598. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24599. D["\1"]=" \3"/p
  24600. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24601. d
  24602. :bsnl
  24603. s/["\\]/\\&/g
  24604. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24605. D["\1"]=" \3\\\\\\n"\\/p
  24606. t cont
  24607. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24608. t cont
  24609. d
  24610. :cont
  24611. n
  24612. s/.\{148\}/&'"$ac_delim"'/g
  24613. t clear
  24614. :clear
  24615. s/\\$//
  24616. t bsnlc
  24617. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24618. d
  24619. :bsnlc
  24620. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24621. b cont
  24622. ' <confdefs.h | sed '
  24623. s/'"$ac_delim"'/"\\\
  24624. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24625. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24626. for (key in D) D_is_set[key] = 1
  24627. FS = ""
  24628. }
  24629. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24630. line = \$ 0
  24631. split(line, arg, " ")
  24632. if (arg[1] == "#") {
  24633. defundef = arg[2]
  24634. mac1 = arg[3]
  24635. } else {
  24636. defundef = substr(arg[1], 2)
  24637. mac1 = arg[2]
  24638. }
  24639. split(mac1, mac2, "(") #)
  24640. macro = mac2[1]
  24641. prefix = substr(line, 1, index(line, defundef) - 1)
  24642. if (D_is_set[macro]) {
  24643. # Preserve the white space surrounding the "#".
  24644. print prefix "define", macro P[macro] D[macro]
  24645. next
  24646. } else {
  24647. # Replace #undef with comments. This is necessary, for example,
  24648. # in the case of _POSIX_SOURCE, which is predefined and required
  24649. # on some systems where configure will not decide to define it.
  24650. if (defundef == "undef") {
  24651. print "/*", prefix defundef, macro, "*/"
  24652. next
  24653. }
  24654. }
  24655. }
  24656. { print }
  24657. _ACAWK
  24658. _ACEOF
  24659. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24660. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24661. fi # test -n "$CONFIG_HEADERS"
  24662. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24663. shift
  24664. for ac_tag
  24665. do
  24666. case $ac_tag in
  24667. :[FHLC]) ac_mode=$ac_tag; continue;;
  24668. esac
  24669. case $ac_mode$ac_tag in
  24670. :[FHL]*:*);;
  24671. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24672. :[FH]-) ac_tag=-:-;;
  24673. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24674. esac
  24675. ac_save_IFS=$IFS
  24676. IFS=:
  24677. set x $ac_tag
  24678. IFS=$ac_save_IFS
  24679. shift
  24680. ac_file=$1
  24681. shift
  24682. case $ac_mode in
  24683. :L) ac_source=$1;;
  24684. :[FH])
  24685. ac_file_inputs=
  24686. for ac_f
  24687. do
  24688. case $ac_f in
  24689. -) ac_f="$ac_tmp/stdin";;
  24690. *) # Look for the file first in the build tree, then in the source tree
  24691. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24692. # because $ac_f cannot contain `:'.
  24693. test -f "$ac_f" ||
  24694. case $ac_f in
  24695. [\\/$]*) false;;
  24696. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24697. esac ||
  24698. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24699. esac
  24700. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24701. as_fn_append ac_file_inputs " '$ac_f'"
  24702. done
  24703. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24704. # use $as_me), people would be surprised to read:
  24705. # /* config.h. Generated by config.status. */
  24706. configure_input='Generated from '`
  24707. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24708. `' by configure.'
  24709. if test x"$ac_file" != x-; then
  24710. configure_input="$ac_file. $configure_input"
  24711. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24712. $as_echo "$as_me: creating $ac_file" >&6;}
  24713. fi
  24714. # Neutralize special characters interpreted by sed in replacement strings.
  24715. case $configure_input in #(
  24716. *\&* | *\|* | *\\* )
  24717. ac_sed_conf_input=`$as_echo "$configure_input" |
  24718. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24719. *) ac_sed_conf_input=$configure_input;;
  24720. esac
  24721. case $ac_tag in
  24722. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24723. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24724. esac
  24725. ;;
  24726. esac
  24727. ac_dir=`$as_dirname -- "$ac_file" ||
  24728. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24729. X"$ac_file" : 'X\(//\)[^/]' \| \
  24730. X"$ac_file" : 'X\(//\)$' \| \
  24731. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24732. $as_echo X"$ac_file" |
  24733. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24734. s//\1/
  24735. q
  24736. }
  24737. /^X\(\/\/\)[^/].*/{
  24738. s//\1/
  24739. q
  24740. }
  24741. /^X\(\/\/\)$/{
  24742. s//\1/
  24743. q
  24744. }
  24745. /^X\(\/\).*/{
  24746. s//\1/
  24747. q
  24748. }
  24749. s/.*/./; q'`
  24750. as_dir="$ac_dir"; as_fn_mkdir_p
  24751. ac_builddir=.
  24752. case "$ac_dir" in
  24753. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24754. *)
  24755. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24756. # A ".." for each directory in $ac_dir_suffix.
  24757. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24758. case $ac_top_builddir_sub in
  24759. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24760. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24761. esac ;;
  24762. esac
  24763. ac_abs_top_builddir=$ac_pwd
  24764. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24765. # for backward compatibility:
  24766. ac_top_builddir=$ac_top_build_prefix
  24767. case $srcdir in
  24768. .) # We are building in place.
  24769. ac_srcdir=.
  24770. ac_top_srcdir=$ac_top_builddir_sub
  24771. ac_abs_top_srcdir=$ac_pwd ;;
  24772. [\\/]* | ?:[\\/]* ) # Absolute name.
  24773. ac_srcdir=$srcdir$ac_dir_suffix;
  24774. ac_top_srcdir=$srcdir
  24775. ac_abs_top_srcdir=$srcdir ;;
  24776. *) # Relative name.
  24777. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24778. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24779. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24780. esac
  24781. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24782. case $ac_mode in
  24783. :F)
  24784. #
  24785. # CONFIG_FILE
  24786. #
  24787. case $INSTALL in
  24788. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24789. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24790. esac
  24791. _ACEOF
  24792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24793. # If the template does not know about datarootdir, expand it.
  24794. # FIXME: This hack should be removed a few years after 2.60.
  24795. ac_datarootdir_hack=; ac_datarootdir_seen=
  24796. ac_sed_dataroot='
  24797. /datarootdir/ {
  24798. p
  24799. q
  24800. }
  24801. /@datadir@/p
  24802. /@docdir@/p
  24803. /@infodir@/p
  24804. /@localedir@/p
  24805. /@mandir@/p'
  24806. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24807. *datarootdir*) ac_datarootdir_seen=yes;;
  24808. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24810. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24811. _ACEOF
  24812. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24813. ac_datarootdir_hack='
  24814. s&@datadir@&$datadir&g
  24815. s&@docdir@&$docdir&g
  24816. s&@infodir@&$infodir&g
  24817. s&@localedir@&$localedir&g
  24818. s&@mandir@&$mandir&g
  24819. s&\\\${datarootdir}&$datarootdir&g' ;;
  24820. esac
  24821. _ACEOF
  24822. # Neutralize VPATH when `$srcdir' = `.'.
  24823. # Shell code in configure.ac might set extrasub.
  24824. # FIXME: do we really want to maintain this feature?
  24825. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24826. ac_sed_extra="$ac_vpsub
  24827. $extrasub
  24828. _ACEOF
  24829. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24830. :t
  24831. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24832. s|@configure_input@|$ac_sed_conf_input|;t t
  24833. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24834. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24835. s&@srcdir@&$ac_srcdir&;t t
  24836. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24837. s&@top_srcdir@&$ac_top_srcdir&;t t
  24838. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24839. s&@builddir@&$ac_builddir&;t t
  24840. s&@abs_builddir@&$ac_abs_builddir&;t t
  24841. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24842. s&@INSTALL@&$ac_INSTALL&;t t
  24843. $ac_datarootdir_hack
  24844. "
  24845. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24846. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24847. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24848. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24849. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24850. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24852. which seems to be undefined. Please make sure it is defined" >&5
  24853. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24854. which seems to be undefined. Please make sure it is defined" >&2;}
  24855. rm -f "$ac_tmp/stdin"
  24856. case $ac_file in
  24857. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24858. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24859. esac \
  24860. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24861. ;;
  24862. :H)
  24863. #
  24864. # CONFIG_HEADER
  24865. #
  24866. if test x"$ac_file" != x-; then
  24867. {
  24868. $as_echo "/* $configure_input */" \
  24869. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24870. } >"$ac_tmp/config.h" \
  24871. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24872. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24873. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24874. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24875. else
  24876. rm -f "$ac_file"
  24877. mv "$ac_tmp/config.h" "$ac_file" \
  24878. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24879. fi
  24880. else
  24881. $as_echo "/* $configure_input */" \
  24882. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24883. || as_fn_error $? "could not create -" "$LINENO" 5
  24884. fi
  24885. ;;
  24886. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24887. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24888. ;;
  24889. esac
  24890. case $ac_file$ac_mode in
  24891. "libtool":C)
  24892. # See if we are running on zsh, and set the options that allow our
  24893. # commands through without removal of \ escapes.
  24894. if test -n "${ZSH_VERSION+set}"; then
  24895. setopt NO_GLOB_SUBST
  24896. fi
  24897. cfgfile=${ofile}T
  24898. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24899. $RM "$cfgfile"
  24900. cat <<_LT_EOF >> "$cfgfile"
  24901. #! $SHELL
  24902. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24903. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24904. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24905. # Provide generalized library-building support services.
  24906. # Written by Gordon Matzigkeit, 1996
  24907. # Copyright (C) 2014 Free Software Foundation, Inc.
  24908. # This is free software; see the source for copying conditions. There is NO
  24909. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24910. # GNU Libtool is free software; you can redistribute it and/or modify
  24911. # it under the terms of the GNU General Public License as published by
  24912. # the Free Software Foundation; either version 2 of of the License, or
  24913. # (at your option) any later version.
  24914. #
  24915. # As a special exception to the GNU General Public License, if you
  24916. # distribute this file as part of a program or library that is built
  24917. # using GNU Libtool, you may include this file under the same
  24918. # distribution terms that you use for the rest of that program.
  24919. #
  24920. # GNU Libtool is distributed in the hope that it will be useful, but
  24921. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24922. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24923. # GNU General Public License for more details.
  24924. #
  24925. # You should have received a copy of the GNU General Public License
  24926. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  24927. # The names of the tagged configurations supported by this script.
  24928. available_tags='RC CXX '
  24929. # Configured defaults for sys_lib_dlsearch_path munging.
  24930. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  24931. # ### BEGIN LIBTOOL CONFIG
  24932. # Which release of libtool.m4 was used?
  24933. macro_version=$macro_version
  24934. macro_revision=$macro_revision
  24935. # Assembler program.
  24936. AS=$lt_AS
  24937. # DLL creation program.
  24938. DLLTOOL=$lt_DLLTOOL
  24939. # Object dumper program.
  24940. OBJDUMP=$lt_OBJDUMP
  24941. # Whether or not to build shared libraries.
  24942. build_libtool_libs=$enable_shared
  24943. # Whether or not to build static libraries.
  24944. build_old_libs=$enable_static
  24945. # What type of objects to build.
  24946. pic_mode=$pic_mode
  24947. # Whether or not to optimize for fast installation.
  24948. fast_install=$enable_fast_install
  24949. # Shared archive member basename,for filename based shared library versioning on AIX.
  24950. shared_archive_member_spec=$shared_archive_member_spec
  24951. # Shell to use when invoking shell scripts.
  24952. SHELL=$lt_SHELL
  24953. # An echo program that protects backslashes.
  24954. ECHO=$lt_ECHO
  24955. # The PATH separator for the build system.
  24956. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24957. # The host system.
  24958. host_alias=$host_alias
  24959. host=$host
  24960. host_os=$host_os
  24961. # The build system.
  24962. build_alias=$build_alias
  24963. build=$build
  24964. build_os=$build_os
  24965. # A sed program that does not truncate output.
  24966. SED=$lt_SED
  24967. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24968. Xsed="\$SED -e 1s/^X//"
  24969. # A grep program that handles long lines.
  24970. GREP=$lt_GREP
  24971. # An ERE matcher.
  24972. EGREP=$lt_EGREP
  24973. # A literal string matcher.
  24974. FGREP=$lt_FGREP
  24975. # A BSD- or MS-compatible name lister.
  24976. NM=$lt_NM
  24977. # Whether we need soft or hard links.
  24978. LN_S=$lt_LN_S
  24979. # What is the maximum length of a command?
  24980. max_cmd_len=$max_cmd_len
  24981. # Object file suffix (normally "o").
  24982. objext=$ac_objext
  24983. # Executable file suffix (normally "").
  24984. exeext=$exeext
  24985. # whether the shell understands "unset".
  24986. lt_unset=$lt_unset
  24987. # turn spaces into newlines.
  24988. SP2NL=$lt_lt_SP2NL
  24989. # turn newlines into spaces.
  24990. NL2SP=$lt_lt_NL2SP
  24991. # convert \$build file names to \$host format.
  24992. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24993. # convert \$build files to toolchain format.
  24994. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24995. # Method to check whether dependent libraries are shared objects.
  24996. deplibs_check_method=$lt_deplibs_check_method
  24997. # Command to use when deplibs_check_method = "file_magic".
  24998. file_magic_cmd=$lt_file_magic_cmd
  24999. # How to find potential files when deplibs_check_method = "file_magic".
  25000. file_magic_glob=$lt_file_magic_glob
  25001. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25002. want_nocaseglob=$lt_want_nocaseglob
  25003. # Command to associate shared and link libraries.
  25004. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25005. # The archiver.
  25006. AR=$lt_AR
  25007. # Flags to create an archive.
  25008. AR_FLAGS=$lt_AR_FLAGS
  25009. # How to feed a file listing to the archiver.
  25010. archiver_list_spec=$lt_archiver_list_spec
  25011. # A symbol stripping program.
  25012. STRIP=$lt_STRIP
  25013. # Commands used to install an old-style archive.
  25014. RANLIB=$lt_RANLIB
  25015. old_postinstall_cmds=$lt_old_postinstall_cmds
  25016. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25017. # Whether to use a lock for old archive extraction.
  25018. lock_old_archive_extraction=$lock_old_archive_extraction
  25019. # A C compiler.
  25020. LTCC=$lt_CC
  25021. # LTCC compiler flags.
  25022. LTCFLAGS=$lt_CFLAGS
  25023. # Take the output of nm and produce a listing of raw symbols and C names.
  25024. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25025. # Transform the output of nm in a proper C declaration.
  25026. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25027. # Transform the output of nm into a list of symbols to manually relocate.
  25028. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  25029. # Transform the output of nm in a C name address pair.
  25030. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25031. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25032. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25033. # The name lister interface.
  25034. nm_interface=$lt_lt_cv_nm_interface
  25035. # Specify filename containing input files for \$NM.
  25036. nm_file_list_spec=$lt_nm_file_list_spec
  25037. # The root where to search for dependent libraries,and where our libraries should be installed.
  25038. lt_sysroot=$lt_sysroot
  25039. # Command to truncate a binary pipe.
  25040. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25041. # The name of the directory that contains temporary libtool files.
  25042. objdir=$objdir
  25043. # Used to examine libraries when file_magic_cmd begins with "file".
  25044. MAGIC_CMD=$MAGIC_CMD
  25045. # Must we lock files when doing compilation?
  25046. need_locks=$lt_need_locks
  25047. # Manifest tool.
  25048. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25049. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25050. DSYMUTIL=$lt_DSYMUTIL
  25051. # Tool to change global to local symbols on Mac OS X.
  25052. NMEDIT=$lt_NMEDIT
  25053. # Tool to manipulate fat objects and archives on Mac OS X.
  25054. LIPO=$lt_LIPO
  25055. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25056. OTOOL=$lt_OTOOL
  25057. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25058. OTOOL64=$lt_OTOOL64
  25059. # Old archive suffix (normally "a").
  25060. libext=$libext
  25061. # Shared library suffix (normally ".so").
  25062. shrext_cmds=$lt_shrext_cmds
  25063. # The commands to extract the exported symbol list from a shared archive.
  25064. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25065. # Variables whose values should be saved in libtool wrapper scripts and
  25066. # restored at link time.
  25067. variables_saved_for_relink=$lt_variables_saved_for_relink
  25068. # Do we need the "lib" prefix for modules?
  25069. need_lib_prefix=$need_lib_prefix
  25070. # Do we need a version for libraries?
  25071. need_version=$need_version
  25072. # Library versioning type.
  25073. version_type=$version_type
  25074. # Shared library runtime path variable.
  25075. runpath_var=$runpath_var
  25076. # Shared library path variable.
  25077. shlibpath_var=$shlibpath_var
  25078. # Is shlibpath searched before the hard-coded library search path?
  25079. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25080. # Format of library name prefix.
  25081. libname_spec=$lt_libname_spec
  25082. # List of archive names. First name is the real one, the rest are links.
  25083. # The last name is the one that the linker finds with -lNAME
  25084. library_names_spec=$lt_library_names_spec
  25085. # The coded name of the library, if different from the real name.
  25086. soname_spec=$lt_soname_spec
  25087. # Permission mode override for installation of shared libraries.
  25088. install_override_mode=$lt_install_override_mode
  25089. # Command to use after installation of a shared archive.
  25090. postinstall_cmds=$lt_postinstall_cmds
  25091. # Command to use after uninstallation of a shared archive.
  25092. postuninstall_cmds=$lt_postuninstall_cmds
  25093. # Commands used to finish a libtool library installation in a directory.
  25094. finish_cmds=$lt_finish_cmds
  25095. # As "finish_cmds", except a single script fragment to be evaled but
  25096. # not shown.
  25097. finish_eval=$lt_finish_eval
  25098. # Whether we should hardcode library paths into libraries.
  25099. hardcode_into_libs=$hardcode_into_libs
  25100. # Compile-time system search path for libraries.
  25101. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25102. # Detected run-time system search path for libraries.
  25103. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25104. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25105. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25106. # Whether dlopen is supported.
  25107. dlopen_support=$enable_dlopen
  25108. # Whether dlopen of programs is supported.
  25109. dlopen_self=$enable_dlopen_self
  25110. # Whether dlopen of statically linked programs is supported.
  25111. dlopen_self_static=$enable_dlopen_self_static
  25112. # Commands to strip libraries.
  25113. old_striplib=$lt_old_striplib
  25114. striplib=$lt_striplib
  25115. # The linker used to build libraries.
  25116. LD=$lt_LD
  25117. # How to create reloadable object files.
  25118. reload_flag=$lt_reload_flag
  25119. reload_cmds=$lt_reload_cmds
  25120. # Commands used to build an old-style archive.
  25121. old_archive_cmds=$lt_old_archive_cmds
  25122. # A language specific compiler.
  25123. CC=$lt_compiler
  25124. # Is the compiler the GNU compiler?
  25125. with_gcc=$GCC
  25126. # Compiler flag to turn off builtin functions.
  25127. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25128. # Additional compiler flags for building library objects.
  25129. pic_flag=$lt_lt_prog_compiler_pic
  25130. # How to pass a linker flag through the compiler.
  25131. wl=$lt_lt_prog_compiler_wl
  25132. # Compiler flag to prevent dynamic linking.
  25133. link_static_flag=$lt_lt_prog_compiler_static
  25134. # Does compiler simultaneously support -c and -o options?
  25135. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25136. # Whether or not to add -lc for building shared libraries.
  25137. build_libtool_need_lc=$archive_cmds_need_lc
  25138. # Whether or not to disallow shared libs when runtime libs are static.
  25139. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25140. # Compiler flag to allow reflexive dlopens.
  25141. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25142. # Compiler flag to generate shared objects directly from archives.
  25143. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25144. # Whether the compiler copes with passing no objects directly.
  25145. compiler_needs_object=$lt_compiler_needs_object
  25146. # Create an old-style archive from a shared archive.
  25147. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25148. # Create a temporary old-style archive to link instead of a shared archive.
  25149. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25150. # Commands used to build a shared archive.
  25151. archive_cmds=$lt_archive_cmds
  25152. archive_expsym_cmds=$lt_archive_expsym_cmds
  25153. # Commands used to build a loadable module if different from building
  25154. # a shared archive.
  25155. module_cmds=$lt_module_cmds
  25156. module_expsym_cmds=$lt_module_expsym_cmds
  25157. # Whether we are building with GNU ld or not.
  25158. with_gnu_ld=$lt_with_gnu_ld
  25159. # Flag that allows shared libraries with undefined symbols to be built.
  25160. allow_undefined_flag=$lt_allow_undefined_flag
  25161. # Flag that enforces no undefined symbols.
  25162. no_undefined_flag=$lt_no_undefined_flag
  25163. # Flag to hardcode \$libdir into a binary during linking.
  25164. # This must work even if \$libdir does not exist
  25165. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25166. # Whether we need a single "-rpath" flag with a separated argument.
  25167. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25168. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25169. # DIR into the resulting binary.
  25170. hardcode_direct=$hardcode_direct
  25171. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25172. # DIR into the resulting binary and the resulting library dependency is
  25173. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25174. # library is relocated.
  25175. hardcode_direct_absolute=$hardcode_direct_absolute
  25176. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25177. # into the resulting binary.
  25178. hardcode_minus_L=$hardcode_minus_L
  25179. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25180. # into the resulting binary.
  25181. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25182. # Set to "yes" if building a shared library automatically hardcodes DIR
  25183. # into the library and all subsequent libraries and executables linked
  25184. # against it.
  25185. hardcode_automatic=$hardcode_automatic
  25186. # Set to yes if linker adds runtime paths of dependent libraries
  25187. # to runtime path list.
  25188. inherit_rpath=$inherit_rpath
  25189. # Whether libtool must link a program against all its dependency libraries.
  25190. link_all_deplibs=$link_all_deplibs
  25191. # Set to "yes" if exported symbols are required.
  25192. always_export_symbols=$always_export_symbols
  25193. # The commands to list exported symbols.
  25194. export_symbols_cmds=$lt_export_symbols_cmds
  25195. # Symbols that should not be listed in the preloaded symbols.
  25196. exclude_expsyms=$lt_exclude_expsyms
  25197. # Symbols that must always be exported.
  25198. include_expsyms=$lt_include_expsyms
  25199. # Commands necessary for linking programs (against libraries) with templates.
  25200. prelink_cmds=$lt_prelink_cmds
  25201. # Commands necessary for finishing linking programs.
  25202. postlink_cmds=$lt_postlink_cmds
  25203. # Specify filename containing input files.
  25204. file_list_spec=$lt_file_list_spec
  25205. # How to hardcode a shared library path into an executable.
  25206. hardcode_action=$hardcode_action
  25207. # The directories searched by this compiler when creating a shared library.
  25208. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25209. # Dependencies to place before and after the objects being linked to
  25210. # create a shared library.
  25211. predep_objects=$lt_predep_objects
  25212. postdep_objects=$lt_postdep_objects
  25213. predeps=$lt_predeps
  25214. postdeps=$lt_postdeps
  25215. # The library search path used internally by the compiler when linking
  25216. # a shared library.
  25217. compiler_lib_search_path=$lt_compiler_lib_search_path
  25218. # ### END LIBTOOL CONFIG
  25219. _LT_EOF
  25220. cat <<'_LT_EOF' >> "$cfgfile"
  25221. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25222. # func_munge_path_list VARIABLE PATH
  25223. # -----------------------------------
  25224. # VARIABLE is name of variable containing _space_ separated list of
  25225. # directories to be munged by the contents of PATH, which is string
  25226. # having a format:
  25227. # "DIR[:DIR]:"
  25228. # string "DIR[ DIR]" will be prepended to VARIABLE
  25229. # ":DIR[:DIR]"
  25230. # string "DIR[ DIR]" will be appended to VARIABLE
  25231. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25232. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25233. # "DIRA[ DIRA]" will be appended to VARIABLE
  25234. # "DIR[:DIR]"
  25235. # VARIABLE will be replaced by "DIR[ DIR]"
  25236. func_munge_path_list ()
  25237. {
  25238. case x$2 in
  25239. x)
  25240. ;;
  25241. *:)
  25242. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25243. ;;
  25244. x:*)
  25245. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25246. ;;
  25247. *::*)
  25248. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25249. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25250. ;;
  25251. *)
  25252. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25253. ;;
  25254. esac
  25255. }
  25256. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25257. func_cc_basename ()
  25258. {
  25259. for cc_temp in $*""; do
  25260. case $cc_temp in
  25261. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25262. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25263. \-*) ;;
  25264. *) break;;
  25265. esac
  25266. done
  25267. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25268. }
  25269. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25270. _LT_EOF
  25271. case $host_os in
  25272. aix3*)
  25273. cat <<\_LT_EOF >> "$cfgfile"
  25274. # AIX sometimes has problems with the GCC collect2 program. For some
  25275. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25276. # vanish in a puff of smoke.
  25277. if test set != "${COLLECT_NAMES+set}"; then
  25278. COLLECT_NAMES=
  25279. export COLLECT_NAMES
  25280. fi
  25281. _LT_EOF
  25282. ;;
  25283. esac
  25284. ltmain=$ac_aux_dir/ltmain.sh
  25285. # We use sed instead of cat because bash on DJGPP gets confused if
  25286. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25287. # text mode, it properly converts lines to CR/LF. This bash problem
  25288. # is reportedly fixed, but why not run on old versions too?
  25289. sed '$q' "$ltmain" >> "$cfgfile" \
  25290. || (rm -f "$cfgfile"; exit 1)
  25291. mv -f "$cfgfile" "$ofile" ||
  25292. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25293. chmod +x "$ofile"
  25294. cat <<_LT_EOF >> "$ofile"
  25295. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25296. # The linker used to build libraries.
  25297. LD=$lt_LD_RC
  25298. # How to create reloadable object files.
  25299. reload_flag=$lt_reload_flag_RC
  25300. reload_cmds=$lt_reload_cmds_RC
  25301. # Commands used to build an old-style archive.
  25302. old_archive_cmds=$lt_old_archive_cmds_RC
  25303. # A language specific compiler.
  25304. CC=$lt_compiler_RC
  25305. # Is the compiler the GNU compiler?
  25306. with_gcc=$GCC_RC
  25307. # Compiler flag to turn off builtin functions.
  25308. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25309. # Additional compiler flags for building library objects.
  25310. pic_flag=$lt_lt_prog_compiler_pic_RC
  25311. # How to pass a linker flag through the compiler.
  25312. wl=$lt_lt_prog_compiler_wl_RC
  25313. # Compiler flag to prevent dynamic linking.
  25314. link_static_flag=$lt_lt_prog_compiler_static_RC
  25315. # Does compiler simultaneously support -c and -o options?
  25316. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25317. # Whether or not to add -lc for building shared libraries.
  25318. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25319. # Whether or not to disallow shared libs when runtime libs are static.
  25320. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25321. # Compiler flag to allow reflexive dlopens.
  25322. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25323. # Compiler flag to generate shared objects directly from archives.
  25324. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25325. # Whether the compiler copes with passing no objects directly.
  25326. compiler_needs_object=$lt_compiler_needs_object_RC
  25327. # Create an old-style archive from a shared archive.
  25328. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25329. # Create a temporary old-style archive to link instead of a shared archive.
  25330. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25331. # Commands used to build a shared archive.
  25332. archive_cmds=$lt_archive_cmds_RC
  25333. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25334. # Commands used to build a loadable module if different from building
  25335. # a shared archive.
  25336. module_cmds=$lt_module_cmds_RC
  25337. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25338. # Whether we are building with GNU ld or not.
  25339. with_gnu_ld=$lt_with_gnu_ld_RC
  25340. # Flag that allows shared libraries with undefined symbols to be built.
  25341. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25342. # Flag that enforces no undefined symbols.
  25343. no_undefined_flag=$lt_no_undefined_flag_RC
  25344. # Flag to hardcode \$libdir into a binary during linking.
  25345. # This must work even if \$libdir does not exist
  25346. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25347. # Whether we need a single "-rpath" flag with a separated argument.
  25348. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25349. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25350. # DIR into the resulting binary.
  25351. hardcode_direct=$hardcode_direct_RC
  25352. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25353. # DIR into the resulting binary and the resulting library dependency is
  25354. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25355. # library is relocated.
  25356. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25357. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25358. # into the resulting binary.
  25359. hardcode_minus_L=$hardcode_minus_L_RC
  25360. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25361. # into the resulting binary.
  25362. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25363. # Set to "yes" if building a shared library automatically hardcodes DIR
  25364. # into the library and all subsequent libraries and executables linked
  25365. # against it.
  25366. hardcode_automatic=$hardcode_automatic_RC
  25367. # Set to yes if linker adds runtime paths of dependent libraries
  25368. # to runtime path list.
  25369. inherit_rpath=$inherit_rpath_RC
  25370. # Whether libtool must link a program against all its dependency libraries.
  25371. link_all_deplibs=$link_all_deplibs_RC
  25372. # Set to "yes" if exported symbols are required.
  25373. always_export_symbols=$always_export_symbols_RC
  25374. # The commands to list exported symbols.
  25375. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25376. # Symbols that should not be listed in the preloaded symbols.
  25377. exclude_expsyms=$lt_exclude_expsyms_RC
  25378. # Symbols that must always be exported.
  25379. include_expsyms=$lt_include_expsyms_RC
  25380. # Commands necessary for linking programs (against libraries) with templates.
  25381. prelink_cmds=$lt_prelink_cmds_RC
  25382. # Commands necessary for finishing linking programs.
  25383. postlink_cmds=$lt_postlink_cmds_RC
  25384. # Specify filename containing input files.
  25385. file_list_spec=$lt_file_list_spec_RC
  25386. # How to hardcode a shared library path into an executable.
  25387. hardcode_action=$hardcode_action_RC
  25388. # The directories searched by this compiler when creating a shared library.
  25389. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25390. # Dependencies to place before and after the objects being linked to
  25391. # create a shared library.
  25392. predep_objects=$lt_predep_objects_RC
  25393. postdep_objects=$lt_postdep_objects_RC
  25394. predeps=$lt_predeps_RC
  25395. postdeps=$lt_postdeps_RC
  25396. # The library search path used internally by the compiler when linking
  25397. # a shared library.
  25398. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25399. # ### END LIBTOOL TAG CONFIG: RC
  25400. _LT_EOF
  25401. cat <<_LT_EOF >> "$ofile"
  25402. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25403. # The linker used to build libraries.
  25404. LD=$lt_LD_CXX
  25405. # How to create reloadable object files.
  25406. reload_flag=$lt_reload_flag_CXX
  25407. reload_cmds=$lt_reload_cmds_CXX
  25408. # Commands used to build an old-style archive.
  25409. old_archive_cmds=$lt_old_archive_cmds_CXX
  25410. # A language specific compiler.
  25411. CC=$lt_compiler_CXX
  25412. # Is the compiler the GNU compiler?
  25413. with_gcc=$GCC_CXX
  25414. # Compiler flag to turn off builtin functions.
  25415. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25416. # Additional compiler flags for building library objects.
  25417. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25418. # How to pass a linker flag through the compiler.
  25419. wl=$lt_lt_prog_compiler_wl_CXX
  25420. # Compiler flag to prevent dynamic linking.
  25421. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25422. # Does compiler simultaneously support -c and -o options?
  25423. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25424. # Whether or not to add -lc for building shared libraries.
  25425. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25426. # Whether or not to disallow shared libs when runtime libs are static.
  25427. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25428. # Compiler flag to allow reflexive dlopens.
  25429. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25430. # Compiler flag to generate shared objects directly from archives.
  25431. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25432. # Whether the compiler copes with passing no objects directly.
  25433. compiler_needs_object=$lt_compiler_needs_object_CXX
  25434. # Create an old-style archive from a shared archive.
  25435. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25436. # Create a temporary old-style archive to link instead of a shared archive.
  25437. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25438. # Commands used to build a shared archive.
  25439. archive_cmds=$lt_archive_cmds_CXX
  25440. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25441. # Commands used to build a loadable module if different from building
  25442. # a shared archive.
  25443. module_cmds=$lt_module_cmds_CXX
  25444. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25445. # Whether we are building with GNU ld or not.
  25446. with_gnu_ld=$lt_with_gnu_ld_CXX
  25447. # Flag that allows shared libraries with undefined symbols to be built.
  25448. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25449. # Flag that enforces no undefined symbols.
  25450. no_undefined_flag=$lt_no_undefined_flag_CXX
  25451. # Flag to hardcode \$libdir into a binary during linking.
  25452. # This must work even if \$libdir does not exist
  25453. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25454. # Whether we need a single "-rpath" flag with a separated argument.
  25455. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25456. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25457. # DIR into the resulting binary.
  25458. hardcode_direct=$hardcode_direct_CXX
  25459. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25460. # DIR into the resulting binary and the resulting library dependency is
  25461. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25462. # library is relocated.
  25463. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25464. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25465. # into the resulting binary.
  25466. hardcode_minus_L=$hardcode_minus_L_CXX
  25467. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25468. # into the resulting binary.
  25469. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25470. # Set to "yes" if building a shared library automatically hardcodes DIR
  25471. # into the library and all subsequent libraries and executables linked
  25472. # against it.
  25473. hardcode_automatic=$hardcode_automatic_CXX
  25474. # Set to yes if linker adds runtime paths of dependent libraries
  25475. # to runtime path list.
  25476. inherit_rpath=$inherit_rpath_CXX
  25477. # Whether libtool must link a program against all its dependency libraries.
  25478. link_all_deplibs=$link_all_deplibs_CXX
  25479. # Set to "yes" if exported symbols are required.
  25480. always_export_symbols=$always_export_symbols_CXX
  25481. # The commands to list exported symbols.
  25482. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25483. # Symbols that should not be listed in the preloaded symbols.
  25484. exclude_expsyms=$lt_exclude_expsyms_CXX
  25485. # Symbols that must always be exported.
  25486. include_expsyms=$lt_include_expsyms_CXX
  25487. # Commands necessary for linking programs (against libraries) with templates.
  25488. prelink_cmds=$lt_prelink_cmds_CXX
  25489. # Commands necessary for finishing linking programs.
  25490. postlink_cmds=$lt_postlink_cmds_CXX
  25491. # Specify filename containing input files.
  25492. file_list_spec=$lt_file_list_spec_CXX
  25493. # How to hardcode a shared library path into an executable.
  25494. hardcode_action=$hardcode_action_CXX
  25495. # The directories searched by this compiler when creating a shared library.
  25496. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25497. # Dependencies to place before and after the objects being linked to
  25498. # create a shared library.
  25499. predep_objects=$lt_predep_objects_CXX
  25500. postdep_objects=$lt_postdep_objects_CXX
  25501. predeps=$lt_predeps_CXX
  25502. postdeps=$lt_postdeps_CXX
  25503. # The library search path used internally by the compiler when linking
  25504. # a shared library.
  25505. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25506. # ### END LIBTOOL TAG CONFIG: CXX
  25507. _LT_EOF
  25508. ;;
  25509. "sdl2_config":C) chmod a+x sdl2-config ;;
  25510. "summary":C) printf "$SUMMARY" ;;
  25511. esac
  25512. done # for ac_tag
  25513. as_fn_exit 0
  25514. _ACEOF
  25515. ac_clean_files=$ac_clean_files_save
  25516. test $ac_write_fail = 0 ||
  25517. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25518. # configure is writing to config.log, and then calls config.status.
  25519. # config.status does its own redirection, appending to config.log.
  25520. # Unfortunately, on DOS this fails, as config.log is still kept open
  25521. # by configure, so config.status won't be able to write to it; its
  25522. # output is simply discarded. So we exec the FD to /dev/null,
  25523. # effectively closing config.log, so it can be properly (re)opened and
  25524. # appended to by config.status. When coming back to configure, we
  25525. # need to make the FD available again.
  25526. if test "$no_create" != yes; then
  25527. ac_cs_success=:
  25528. ac_config_status_args=
  25529. test "$silent" = yes &&
  25530. ac_config_status_args="$ac_config_status_args --quiet"
  25531. exec 5>/dev/null
  25532. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25533. exec 5>>config.log
  25534. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25535. # would make configure fail if this is the last instruction.
  25536. $ac_cs_success || as_fn_exit 1
  25537. fi
  25538. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25540. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25541. fi