configure 818 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044
  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="README.txt"
  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
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. INSTALL_SDL2_CONFIG
  603. LIBUSB_LIBS
  604. LIBUSB_CFLAGS
  605. FCITX_LIBS
  606. FCITX_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. ESD_LIBS
  630. ESD_CFLAGS
  631. ESD_CONFIG
  632. JACK_LIBS
  633. JACK_CFLAGS
  634. ALSA_LIBS
  635. ALSA_CFLAGS
  636. POW_LIB
  637. LIBOBJS
  638. ALLOCA
  639. PKG_CONFIG_LIBDIR
  640. PKG_CONFIG_PATH
  641. PKG_CONFIG
  642. WINDRES
  643. SET_MAKE
  644. INSTALL_DATA
  645. INSTALL_SCRIPT
  646. INSTALL_PROGRAM
  647. CXXCPP
  648. ac_ct_CXX
  649. CXXFLAGS
  650. CXX
  651. LT_AGE
  652. LT_REVISION
  653. LT_CURRENT
  654. LT_RELEASE
  655. CPP
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. AWK
  663. RANLIB
  664. STRIP
  665. ac_ct_AR
  666. AR
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. LIBTOOL
  692. OBJDUMP
  693. DLLTOOL
  694. AS
  695. SDL_VERSION
  696. SDL_BINARY_AGE
  697. SDL_INTERFACE_AGE
  698. SDL_MICRO_VERSION
  699. SDL_MINOR_VERSION
  700. SDL_MAJOR_VERSION
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_video_wayland
  804. enable_video_wayland_qt_touch
  805. enable_wayland_shared
  806. enable_video_rpi
  807. enable_video_x11
  808. with_x
  809. enable_x11_shared
  810. enable_video_x11_xcursor
  811. enable_video_x11_xdbe
  812. enable_video_x11_xinerama
  813. enable_video_x11_xinput
  814. enable_video_x11_xrandr
  815. enable_video_x11_scrnsaver
  816. enable_video_x11_xshape
  817. enable_video_x11_vm
  818. enable_video_vivante
  819. enable_video_cocoa
  820. enable_video_metal
  821. enable_render_metal
  822. enable_video_directfb
  823. enable_directfb_shared
  824. enable_video_kmsdrm
  825. enable_kmsdrm_shared
  826. enable_video_dummy
  827. enable_video_opengl
  828. enable_video_opengles
  829. enable_video_opengles1
  830. enable_video_opengles2
  831. enable_video_vulkan
  832. enable_libudev
  833. enable_dbus
  834. enable_ime
  835. enable_ibus
  836. enable_fcitx
  837. enable_input_tslib
  838. enable_pthreads
  839. enable_pthread_sem
  840. enable_directx
  841. enable_wasapi
  842. enable_sdl_dlopen
  843. enable_hidapi
  844. enable_clock_gettime
  845. enable_rpath
  846. enable_backgrounding_signal
  847. enable_foregrounding_signal
  848. enable_render_d3d
  849. enable_sdl2_config
  850. '
  851. ac_precious_vars='build_alias
  852. host_alias
  853. target_alias
  854. CC
  855. CFLAGS
  856. LDFLAGS
  857. LIBS
  858. CPPFLAGS
  859. CPP
  860. CXX
  861. CXXFLAGS
  862. CCC
  863. CXXCPP
  864. PKG_CONFIG
  865. PKG_CONFIG_PATH
  866. PKG_CONFIG_LIBDIR
  867. JACK_CFLAGS
  868. JACK_LIBS
  869. PULSEAUDIO_CFLAGS
  870. PULSEAUDIO_LIBS
  871. FUSIONSOUND_CFLAGS
  872. FUSIONSOUND_LIBS
  873. RPI_CFLAGS
  874. RPI_LIBS
  875. XMKMF
  876. DIRECTFB_CFLAGS
  877. DIRECTFB_LIBS
  878. LIBDRM_CFLAGS
  879. LIBDRM_LIBS
  880. LIBGBM_CFLAGS
  881. LIBGBM_LIBS
  882. DBUS_CFLAGS
  883. DBUS_LIBS
  884. IBUS_CFLAGS
  885. IBUS_LIBS
  886. FCITX_CFLAGS
  887. FCITX_LIBS
  888. LIBUSB_CFLAGS
  889. LIBUSB_LIBS'
  890. # Initialize some variables set by options.
  891. ac_init_help=
  892. ac_init_version=false
  893. ac_unrecognized_opts=
  894. ac_unrecognized_sep=
  895. # The variables have the same names as the options, with
  896. # dashes changed to underlines.
  897. cache_file=/dev/null
  898. exec_prefix=NONE
  899. no_create=
  900. no_recursion=
  901. prefix=NONE
  902. program_prefix=NONE
  903. program_suffix=NONE
  904. program_transform_name=s,x,x,
  905. silent=
  906. site=
  907. srcdir=
  908. verbose=
  909. x_includes=NONE
  910. x_libraries=NONE
  911. # Installation directory options.
  912. # These are left unexpanded so users can "make install exec_prefix=/foo"
  913. # and all the variables that are supposed to be based on exec_prefix
  914. # by default will actually change.
  915. # Use braces instead of parens because sh, perl, etc. also accept them.
  916. # (The list follows the same order as the GNU Coding Standards.)
  917. bindir='${exec_prefix}/bin'
  918. sbindir='${exec_prefix}/sbin'
  919. libexecdir='${exec_prefix}/libexec'
  920. datarootdir='${prefix}/share'
  921. datadir='${datarootdir}'
  922. sysconfdir='${prefix}/etc'
  923. sharedstatedir='${prefix}/com'
  924. localstatedir='${prefix}/var'
  925. includedir='${prefix}/include'
  926. oldincludedir='/usr/include'
  927. docdir='${datarootdir}/doc/${PACKAGE}'
  928. infodir='${datarootdir}/info'
  929. htmldir='${docdir}'
  930. dvidir='${docdir}'
  931. pdfdir='${docdir}'
  932. psdir='${docdir}'
  933. libdir='${exec_prefix}/lib'
  934. localedir='${datarootdir}/locale'
  935. mandir='${datarootdir}/man'
  936. ac_prev=
  937. ac_dashdash=
  938. for ac_option
  939. do
  940. # If the previous option needs an argument, assign it.
  941. if test -n "$ac_prev"; then
  942. eval $ac_prev=\$ac_option
  943. ac_prev=
  944. continue
  945. fi
  946. case $ac_option in
  947. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  948. *=) ac_optarg= ;;
  949. *) ac_optarg=yes ;;
  950. esac
  951. # Accept the important Cygnus configure options, so we can diagnose typos.
  952. case $ac_dashdash$ac_option in
  953. --)
  954. ac_dashdash=yes ;;
  955. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  956. ac_prev=bindir ;;
  957. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  958. bindir=$ac_optarg ;;
  959. -build | --build | --buil | --bui | --bu)
  960. ac_prev=build_alias ;;
  961. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  962. build_alias=$ac_optarg ;;
  963. -cache-file | --cache-file | --cache-fil | --cache-fi \
  964. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  965. ac_prev=cache_file ;;
  966. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  967. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  968. cache_file=$ac_optarg ;;
  969. --config-cache | -C)
  970. cache_file=config.cache ;;
  971. -datadir | --datadir | --datadi | --datad)
  972. ac_prev=datadir ;;
  973. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  974. datadir=$ac_optarg ;;
  975. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  976. | --dataroo | --dataro | --datar)
  977. ac_prev=datarootdir ;;
  978. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  979. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  980. datarootdir=$ac_optarg ;;
  981. -disable-* | --disable-*)
  982. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  983. # Reject names that are not valid shell variable names.
  984. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  985. as_fn_error $? "invalid feature name: $ac_useropt"
  986. ac_useropt_orig=$ac_useropt
  987. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  988. case $ac_user_opts in
  989. *"
  990. "enable_$ac_useropt"
  991. "*) ;;
  992. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  993. ac_unrecognized_sep=', ';;
  994. esac
  995. eval enable_$ac_useropt=no ;;
  996. -docdir | --docdir | --docdi | --doc | --do)
  997. ac_prev=docdir ;;
  998. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  999. docdir=$ac_optarg ;;
  1000. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1001. ac_prev=dvidir ;;
  1002. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1003. dvidir=$ac_optarg ;;
  1004. -enable-* | --enable-*)
  1005. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1006. # Reject names that are not valid shell variable names.
  1007. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1008. as_fn_error $? "invalid feature name: $ac_useropt"
  1009. ac_useropt_orig=$ac_useropt
  1010. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1011. case $ac_user_opts in
  1012. *"
  1013. "enable_$ac_useropt"
  1014. "*) ;;
  1015. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1016. ac_unrecognized_sep=', ';;
  1017. esac
  1018. eval enable_$ac_useropt=\$ac_optarg ;;
  1019. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1020. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1021. | --exec | --exe | --ex)
  1022. ac_prev=exec_prefix ;;
  1023. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1024. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1025. | --exec=* | --exe=* | --ex=*)
  1026. exec_prefix=$ac_optarg ;;
  1027. -gas | --gas | --ga | --g)
  1028. # Obsolete; use --with-gas.
  1029. with_gas=yes ;;
  1030. -help | --help | --hel | --he | -h)
  1031. ac_init_help=long ;;
  1032. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1033. ac_init_help=recursive ;;
  1034. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1035. ac_init_help=short ;;
  1036. -host | --host | --hos | --ho)
  1037. ac_prev=host_alias ;;
  1038. -host=* | --host=* | --hos=* | --ho=*)
  1039. host_alias=$ac_optarg ;;
  1040. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1041. ac_prev=htmldir ;;
  1042. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1043. | --ht=*)
  1044. htmldir=$ac_optarg ;;
  1045. -includedir | --includedir | --includedi | --included | --include \
  1046. | --includ | --inclu | --incl | --inc)
  1047. ac_prev=includedir ;;
  1048. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1049. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1050. includedir=$ac_optarg ;;
  1051. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1052. ac_prev=infodir ;;
  1053. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1054. infodir=$ac_optarg ;;
  1055. -libdir | --libdir | --libdi | --libd)
  1056. ac_prev=libdir ;;
  1057. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1058. libdir=$ac_optarg ;;
  1059. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1060. | --libexe | --libex | --libe)
  1061. ac_prev=libexecdir ;;
  1062. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1063. | --libexe=* | --libex=* | --libe=*)
  1064. libexecdir=$ac_optarg ;;
  1065. -localedir | --localedir | --localedi | --localed | --locale)
  1066. ac_prev=localedir ;;
  1067. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1068. localedir=$ac_optarg ;;
  1069. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1070. | --localstate | --localstat | --localsta | --localst | --locals)
  1071. ac_prev=localstatedir ;;
  1072. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1073. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1074. localstatedir=$ac_optarg ;;
  1075. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1076. ac_prev=mandir ;;
  1077. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1078. mandir=$ac_optarg ;;
  1079. -nfp | --nfp | --nf)
  1080. # Obsolete; use --without-fp.
  1081. with_fp=no ;;
  1082. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1083. | --no-cr | --no-c | -n)
  1084. no_create=yes ;;
  1085. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1086. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1087. no_recursion=yes ;;
  1088. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1089. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1090. | --oldin | --oldi | --old | --ol | --o)
  1091. ac_prev=oldincludedir ;;
  1092. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1093. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1094. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1095. oldincludedir=$ac_optarg ;;
  1096. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1097. ac_prev=prefix ;;
  1098. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1099. prefix=$ac_optarg ;;
  1100. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1101. | --program-pre | --program-pr | --program-p)
  1102. ac_prev=program_prefix ;;
  1103. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1104. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1105. program_prefix=$ac_optarg ;;
  1106. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1107. | --program-suf | --program-su | --program-s)
  1108. ac_prev=program_suffix ;;
  1109. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1110. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1111. program_suffix=$ac_optarg ;;
  1112. -program-transform-name | --program-transform-name \
  1113. | --program-transform-nam | --program-transform-na \
  1114. | --program-transform-n | --program-transform- \
  1115. | --program-transform | --program-transfor \
  1116. | --program-transfo | --program-transf \
  1117. | --program-trans | --program-tran \
  1118. | --progr-tra | --program-tr | --program-t)
  1119. ac_prev=program_transform_name ;;
  1120. -program-transform-name=* | --program-transform-name=* \
  1121. | --program-transform-nam=* | --program-transform-na=* \
  1122. | --program-transform-n=* | --program-transform-=* \
  1123. | --program-transform=* | --program-transfor=* \
  1124. | --program-transfo=* | --program-transf=* \
  1125. | --program-trans=* | --program-tran=* \
  1126. | --progr-tra=* | --program-tr=* | --program-t=*)
  1127. program_transform_name=$ac_optarg ;;
  1128. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1129. ac_prev=pdfdir ;;
  1130. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1131. pdfdir=$ac_optarg ;;
  1132. -psdir | --psdir | --psdi | --psd | --ps)
  1133. ac_prev=psdir ;;
  1134. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1135. psdir=$ac_optarg ;;
  1136. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1137. | -silent | --silent | --silen | --sile | --sil)
  1138. silent=yes ;;
  1139. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1140. ac_prev=sbindir ;;
  1141. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1142. | --sbi=* | --sb=*)
  1143. sbindir=$ac_optarg ;;
  1144. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1145. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1146. | --sharedst | --shareds | --shared | --share | --shar \
  1147. | --sha | --sh)
  1148. ac_prev=sharedstatedir ;;
  1149. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1150. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1151. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1152. | --sha=* | --sh=*)
  1153. sharedstatedir=$ac_optarg ;;
  1154. -site | --site | --sit)
  1155. ac_prev=site ;;
  1156. -site=* | --site=* | --sit=*)
  1157. site=$ac_optarg ;;
  1158. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1159. ac_prev=srcdir ;;
  1160. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1161. srcdir=$ac_optarg ;;
  1162. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1163. | --syscon | --sysco | --sysc | --sys | --sy)
  1164. ac_prev=sysconfdir ;;
  1165. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1166. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1167. sysconfdir=$ac_optarg ;;
  1168. -target | --target | --targe | --targ | --tar | --ta | --t)
  1169. ac_prev=target_alias ;;
  1170. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1171. target_alias=$ac_optarg ;;
  1172. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1173. verbose=yes ;;
  1174. -version | --version | --versio | --versi | --vers | -V)
  1175. ac_init_version=: ;;
  1176. -with-* | --with-*)
  1177. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1178. # Reject names that are not valid shell variable names.
  1179. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1180. as_fn_error $? "invalid package name: $ac_useropt"
  1181. ac_useropt_orig=$ac_useropt
  1182. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1183. case $ac_user_opts in
  1184. *"
  1185. "with_$ac_useropt"
  1186. "*) ;;
  1187. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1188. ac_unrecognized_sep=', ';;
  1189. esac
  1190. eval with_$ac_useropt=\$ac_optarg ;;
  1191. -without-* | --without-*)
  1192. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1193. # Reject names that are not valid shell variable names.
  1194. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1195. as_fn_error $? "invalid package name: $ac_useropt"
  1196. ac_useropt_orig=$ac_useropt
  1197. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1198. case $ac_user_opts in
  1199. *"
  1200. "with_$ac_useropt"
  1201. "*) ;;
  1202. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1203. ac_unrecognized_sep=', ';;
  1204. esac
  1205. eval with_$ac_useropt=no ;;
  1206. --x)
  1207. # Obsolete; use --with-x.
  1208. with_x=yes ;;
  1209. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1210. | --x-incl | --x-inc | --x-in | --x-i)
  1211. ac_prev=x_includes ;;
  1212. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1213. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1214. x_includes=$ac_optarg ;;
  1215. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1216. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1217. ac_prev=x_libraries ;;
  1218. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1219. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1220. x_libraries=$ac_optarg ;;
  1221. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1222. Try \`$0 --help' for more information"
  1223. ;;
  1224. *=*)
  1225. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1226. # Reject names that are not valid shell variable names.
  1227. case $ac_envvar in #(
  1228. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1229. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1230. esac
  1231. eval $ac_envvar=\$ac_optarg
  1232. export $ac_envvar ;;
  1233. *)
  1234. # FIXME: should be removed in autoconf 3.0.
  1235. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1236. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1237. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1238. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1239. ;;
  1240. esac
  1241. done
  1242. if test -n "$ac_prev"; then
  1243. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1244. as_fn_error $? "missing argument to $ac_option"
  1245. fi
  1246. if test -n "$ac_unrecognized_opts"; then
  1247. case $enable_option_checking in
  1248. no) ;;
  1249. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1250. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1251. esac
  1252. fi
  1253. # Check all directory arguments for consistency.
  1254. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1255. datadir sysconfdir sharedstatedir localstatedir includedir \
  1256. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1257. libdir localedir mandir
  1258. do
  1259. eval ac_val=\$$ac_var
  1260. # Remove trailing slashes.
  1261. case $ac_val in
  1262. */ )
  1263. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1264. eval $ac_var=\$ac_val;;
  1265. esac
  1266. # Be sure to have absolute directory names.
  1267. case $ac_val in
  1268. [\\/$]* | ?:[\\/]* ) continue;;
  1269. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1270. esac
  1271. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1272. done
  1273. # There might be people who depend on the old broken behavior: `$host'
  1274. # used to hold the argument of --host etc.
  1275. # FIXME: To remove some day.
  1276. build=$build_alias
  1277. host=$host_alias
  1278. target=$target_alias
  1279. # FIXME: To remove some day.
  1280. if test "x$host_alias" != x; then
  1281. if test "x$build_alias" = x; then
  1282. cross_compiling=maybe
  1283. elif test "x$build_alias" != "x$host_alias"; then
  1284. cross_compiling=yes
  1285. fi
  1286. fi
  1287. ac_tool_prefix=
  1288. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1289. test "$silent" = yes && exec 6>/dev/null
  1290. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1291. ac_ls_di=`ls -di .` &&
  1292. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1293. as_fn_error $? "working directory cannot be determined"
  1294. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1295. as_fn_error $? "pwd does not report name of working directory"
  1296. # Find the source files, if location was not specified.
  1297. if test -z "$srcdir"; then
  1298. ac_srcdir_defaulted=yes
  1299. # Try the directory containing this script, then the parent directory.
  1300. ac_confdir=`$as_dirname -- "$as_myself" ||
  1301. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1302. X"$as_myself" : 'X\(//\)[^/]' \| \
  1303. X"$as_myself" : 'X\(//\)$' \| \
  1304. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1305. $as_echo X"$as_myself" |
  1306. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1307. s//\1/
  1308. q
  1309. }
  1310. /^X\(\/\/\)[^/].*/{
  1311. s//\1/
  1312. q
  1313. }
  1314. /^X\(\/\/\)$/{
  1315. s//\1/
  1316. q
  1317. }
  1318. /^X\(\/\).*/{
  1319. s//\1/
  1320. q
  1321. }
  1322. s/.*/./; q'`
  1323. srcdir=$ac_confdir
  1324. if test ! -r "$srcdir/$ac_unique_file"; then
  1325. srcdir=..
  1326. fi
  1327. else
  1328. ac_srcdir_defaulted=no
  1329. fi
  1330. if test ! -r "$srcdir/$ac_unique_file"; then
  1331. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1332. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1333. fi
  1334. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1335. ac_abs_confdir=`(
  1336. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1337. pwd)`
  1338. # When building in place, set srcdir=.
  1339. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1340. srcdir=.
  1341. fi
  1342. # Remove unnecessary trailing slashes from srcdir.
  1343. # Double slashes in file names in object file debugging info
  1344. # mess up M-x gdb in Emacs.
  1345. case $srcdir in
  1346. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1347. esac
  1348. for ac_var in $ac_precious_vars; do
  1349. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1350. eval ac_env_${ac_var}_value=\$${ac_var}
  1351. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1352. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1353. done
  1354. #
  1355. # Report the --help message.
  1356. #
  1357. if test "$ac_init_help" = "long"; then
  1358. # Omit some internal or obsolete options to make the list less imposing.
  1359. # This message is too long to be a string in the A/UX 3.1 sh.
  1360. cat <<_ACEOF
  1361. \`configure' configures this package to adapt to many kinds of systems.
  1362. Usage: $0 [OPTION]... [VAR=VALUE]...
  1363. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1364. VAR=VALUE. See below for descriptions of some of the useful variables.
  1365. Defaults for the options are specified in brackets.
  1366. Configuration:
  1367. -h, --help display this help and exit
  1368. --help=short display options specific to this package
  1369. --help=recursive display the short help of all the included packages
  1370. -V, --version display version information and exit
  1371. -q, --quiet, --silent do not print \`checking ...' messages
  1372. --cache-file=FILE cache test results in FILE [disabled]
  1373. -C, --config-cache alias for \`--cache-file=config.cache'
  1374. -n, --no-create do not create output files
  1375. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1376. Installation directories:
  1377. --prefix=PREFIX install architecture-independent files in PREFIX
  1378. [$ac_default_prefix]
  1379. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1380. [PREFIX]
  1381. By default, \`make install' will install all the files in
  1382. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1383. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1384. for instance \`--prefix=\$HOME'.
  1385. For better control, use the options below.
  1386. Fine tuning of the installation directories:
  1387. --bindir=DIR user executables [EPREFIX/bin]
  1388. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1389. --libexecdir=DIR program executables [EPREFIX/libexec]
  1390. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1391. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1392. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1393. --libdir=DIR object code libraries [EPREFIX/lib]
  1394. --includedir=DIR C header files [PREFIX/include]
  1395. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1396. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1397. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1398. --infodir=DIR info documentation [DATAROOTDIR/info]
  1399. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1400. --mandir=DIR man documentation [DATAROOTDIR/man]
  1401. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1402. --htmldir=DIR html documentation [DOCDIR]
  1403. --dvidir=DIR dvi documentation [DOCDIR]
  1404. --pdfdir=DIR pdf documentation [DOCDIR]
  1405. --psdir=DIR ps documentation [DOCDIR]
  1406. _ACEOF
  1407. cat <<\_ACEOF
  1408. X features:
  1409. --x-includes=DIR X include files are in DIR
  1410. --x-libraries=DIR X library files are in DIR
  1411. System types:
  1412. --build=BUILD configure for building on BUILD [guessed]
  1413. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1414. _ACEOF
  1415. fi
  1416. if test -n "$ac_init_help"; then
  1417. cat <<\_ACEOF
  1418. Optional Features:
  1419. --disable-option-checking ignore unrecognized --enable/--with options
  1420. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1421. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1422. --enable-shared[=PKGS] build shared libraries [default=yes]
  1423. --enable-static[=PKGS] build static libraries [default=yes]
  1424. --enable-fast-install[=PKGS]
  1425. optimize for fast installation [default=yes]
  1426. --disable-libtool-lock avoid locking (might break parallel builds)
  1427. --enable-assertions Enable internal sanity checks
  1428. (auto/disabled/release/enabled/paranoid)
  1429. [[default=auto]]
  1430. --enable-dependency-tracking
  1431. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1432. --enable-libc Use the system C library [[default=yes]]
  1433. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1434. --enable-atomic Enable the atomic operations subsystem
  1435. [[default=yes]]
  1436. --enable-audio Enable the audio subsystem [[default=yes]]
  1437. --enable-video Enable the video subsystem [[default=yes]]
  1438. --enable-render Enable the render subsystem [[default=yes]]
  1439. --enable-events Enable the events subsystem [[default=yes]]
  1440. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1441. --enable-haptic Enable the haptic (force feedback) subsystem
  1442. [[default=yes]]
  1443. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1444. --enable-power Enable the power subsystem [[default=yes]]
  1445. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1446. --enable-threads Enable the threading subsystem [[default=yes]]
  1447. --enable-timers Enable the timer subsystem [[default=yes]]
  1448. --enable-file Enable the file subsystem [[default=yes]]
  1449. --enable-loadso Enable the shared object loading subsystem
  1450. [[default=yes]]
  1451. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1452. --enable-assembly Enable assembly routines [[default=yes]]
  1453. --enable-ssemath Allow GCC to use SSE floating point math
  1454. [[default=maybe]]
  1455. --enable-mmx use MMX assembly routines [[default=yes]]
  1456. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1457. --enable-sse use SSE assembly routines [[default=yes]]
  1458. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1459. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1460. --enable-altivec use Altivec assembly routines [[default=yes]]
  1461. --enable-oss support the OSS audio API [[default=maybe]]
  1462. --enable-alsa support the ALSA audio API [[default=yes]]
  1463. --disable-alsatest Do not try to compile and run a test Alsa program
  1464. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1465. --enable-jack use JACK audio [[default=yes]]
  1466. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1467. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1468. --disable-esdtest Do not try to compile and run a test ESD program
  1469. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1470. --enable-pulseaudio use PulseAudio [[default=yes]]
  1471. --enable-pulseaudio-shared
  1472. dynamically load PulseAudio support [[default=yes]]
  1473. --enable-arts support the Analog Real Time Synthesizer
  1474. [[default=yes]]
  1475. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1476. --enable-nas support the NAS audio API [[default=yes]]
  1477. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1478. --enable-sndio support the sndio audio API [[default=yes]]
  1479. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1480. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1481. --enable-fusionsound-shared
  1482. dynamically load fusionsound audio support
  1483. [[default=yes]]
  1484. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1485. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1486. --enable-libsamplerate use libsamplerate for audio rate conversion
  1487. [[default=yes]]
  1488. --enable-libsamplerate-shared
  1489. dynamically load libsamplerate [[default=yes]]
  1490. --enable-video-wayland use Wayland video driver [[default=yes]]
  1491. --enable-video-wayland-qt-touch
  1492. QtWayland server support for Wayland video driver
  1493. [[default=yes]]
  1494. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1495. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1496. --enable-video-x11 use X11 video driver [[default=yes]]
  1497. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1498. --enable-video-x11-xcursor
  1499. enable X11 Xcursor support [[default=yes]]
  1500. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1501. --enable-video-x11-xinerama
  1502. enable X11 Xinerama support [[default=yes]]
  1503. --enable-video-x11-xinput
  1504. enable X11 XInput extension for manymouse, tablets,
  1505. etc [[default=yes]]
  1506. --enable-video-x11-xrandr
  1507. enable X11 Xrandr extension for fullscreen
  1508. [[default=yes]]
  1509. --enable-video-x11-scrnsaver
  1510. enable X11 screensaver extension [[default=yes]]
  1511. --enable-video-x11-xshape
  1512. enable X11 XShape support [[default=yes]]
  1513. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1514. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1515. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1516. --enable-video-metal include Metal support [[default=yes]]
  1517. --enable-render-metal enable the Metal render driver [[default=yes]]
  1518. --enable-video-directfb use DirectFB video driver [[default=no]]
  1519. --enable-directfb-shared
  1520. dynamically load directfb support [[default=yes]]
  1521. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1522. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1523. --enable-video-dummy use dummy video driver [[default=yes]]
  1524. --enable-video-opengl include OpenGL support [[default=yes]]
  1525. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1526. --enable-video-opengles1
  1527. include OpenGL ES 1.1 support [[default=yes]]
  1528. --enable-video-opengles2
  1529. include OpenGL ES 2.0 support [[default=yes]]
  1530. --enable-video-vulkan include Vulkan support [[default=yes]]
  1531. --enable-libudev enable libudev support [[default=yes]]
  1532. --enable-dbus enable D-Bus support [[default=yes]]
  1533. --enable-ime enable IME support [[default=yes]]
  1534. --enable-ibus enable IBus support [[default=yes]]
  1535. --enable-fcitx enable fcitx support [[default=yes]]
  1536. --enable-input-tslib use the Touchscreen library for input
  1537. [[default=yes]]
  1538. --enable-pthreads use POSIX threads for multi-threading
  1539. [[default=yes]]
  1540. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1541. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1542. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1543. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1544. --enable-hidapi use HIDAPI for low level joystick drivers
  1545. [[default=no]]
  1546. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1547. UNIX [[default=yes]]
  1548. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1549. --enable-backgrounding-signal
  1550. number to use for magic backgrounding signal or 'no'
  1551. [[default=no]]
  1552. --enable-foregrounding-signal
  1553. number to use for magic foregrounding signal or 'no'
  1554. [[default=no]]
  1555. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1556. --enable-sdl2-config Install sdl2-config [default=yes]
  1557. Optional Packages:
  1558. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1559. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1560. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1561. both]
  1562. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1563. --with-sysroot=DIR Search for dependent libraries within DIR
  1564. (or the compiler's sysroot if not specified).
  1565. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1566. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1567. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1568. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1569. --with-x use the X Window System
  1570. Some influential environment variables:
  1571. CC C compiler command
  1572. CFLAGS C compiler flags
  1573. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1574. nonstandard directory <lib dir>
  1575. LIBS libraries to pass to the linker, e.g. -l<library>
  1576. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1577. you have headers in a nonstandard directory <include dir>
  1578. CPP C preprocessor
  1579. CXX C++ compiler command
  1580. CXXFLAGS C++ compiler flags
  1581. CXXCPP C++ preprocessor
  1582. PKG_CONFIG path to pkg-config utility
  1583. PKG_CONFIG_PATH
  1584. directories to add to pkg-config's search path
  1585. PKG_CONFIG_LIBDIR
  1586. path overriding pkg-config's built-in search path
  1587. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1588. JACK_LIBS linker flags for JACK, overriding pkg-config
  1589. PULSEAUDIO_CFLAGS
  1590. C compiler flags for PULSEAUDIO, overriding pkg-config
  1591. PULSEAUDIO_LIBS
  1592. linker flags for PULSEAUDIO, overriding pkg-config
  1593. FUSIONSOUND_CFLAGS
  1594. C compiler flags for FUSIONSOUND, overriding pkg-config
  1595. FUSIONSOUND_LIBS
  1596. linker flags for FUSIONSOUND, overriding pkg-config
  1597. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1598. RPI_LIBS linker flags for RPI, overriding pkg-config
  1599. XMKMF Path to xmkmf, Makefile generator for X Window System
  1600. DIRECTFB_CFLAGS
  1601. C compiler flags for DIRECTFB, overriding pkg-config
  1602. DIRECTFB_LIBS
  1603. linker flags for DIRECTFB, overriding pkg-config
  1604. LIBDRM_CFLAGS
  1605. C compiler flags for LIBDRM, overriding pkg-config
  1606. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1607. LIBGBM_CFLAGS
  1608. C compiler flags for LIBGBM, overriding pkg-config
  1609. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1610. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1611. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1612. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1613. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1614. FCITX_CFLAGS
  1615. C compiler flags for FCITX, overriding pkg-config
  1616. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1617. LIBUSB_CFLAGS
  1618. C compiler flags for LIBUSB, overriding pkg-config
  1619. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1620. Use these variables to override the choices made by `configure' or to help
  1621. it to find libraries and programs with nonstandard names/locations.
  1622. Report bugs to the package provider.
  1623. _ACEOF
  1624. ac_status=$?
  1625. fi
  1626. if test "$ac_init_help" = "recursive"; then
  1627. # If there are subdirs, report their specific --help.
  1628. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1629. test -d "$ac_dir" ||
  1630. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1631. continue
  1632. ac_builddir=.
  1633. case "$ac_dir" in
  1634. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1635. *)
  1636. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1637. # A ".." for each directory in $ac_dir_suffix.
  1638. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1639. case $ac_top_builddir_sub in
  1640. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1641. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1642. esac ;;
  1643. esac
  1644. ac_abs_top_builddir=$ac_pwd
  1645. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1646. # for backward compatibility:
  1647. ac_top_builddir=$ac_top_build_prefix
  1648. case $srcdir in
  1649. .) # We are building in place.
  1650. ac_srcdir=.
  1651. ac_top_srcdir=$ac_top_builddir_sub
  1652. ac_abs_top_srcdir=$ac_pwd ;;
  1653. [\\/]* | ?:[\\/]* ) # Absolute name.
  1654. ac_srcdir=$srcdir$ac_dir_suffix;
  1655. ac_top_srcdir=$srcdir
  1656. ac_abs_top_srcdir=$srcdir ;;
  1657. *) # Relative name.
  1658. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1659. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1660. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1661. esac
  1662. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1663. cd "$ac_dir" || { ac_status=$?; continue; }
  1664. # Check for guested configure.
  1665. if test -f "$ac_srcdir/configure.gnu"; then
  1666. echo &&
  1667. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1668. elif test -f "$ac_srcdir/configure"; then
  1669. echo &&
  1670. $SHELL "$ac_srcdir/configure" --help=recursive
  1671. else
  1672. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1673. fi || ac_status=$?
  1674. cd "$ac_pwd" || { ac_status=$?; break; }
  1675. done
  1676. fi
  1677. test -n "$ac_init_help" && exit $ac_status
  1678. if $ac_init_version; then
  1679. cat <<\_ACEOF
  1680. configure
  1681. generated by GNU Autoconf 2.69
  1682. Copyright (C) 2012 Free Software Foundation, Inc.
  1683. This configure script is free software; the Free Software Foundation
  1684. gives unlimited permission to copy, distribute and modify it.
  1685. _ACEOF
  1686. exit
  1687. fi
  1688. ## ------------------------ ##
  1689. ## Autoconf initialization. ##
  1690. ## ------------------------ ##
  1691. # ac_fn_c_try_compile LINENO
  1692. # --------------------------
  1693. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1694. ac_fn_c_try_compile ()
  1695. {
  1696. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1697. rm -f conftest.$ac_objext
  1698. if { { ac_try="$ac_compile"
  1699. case "(($ac_try" in
  1700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1701. *) ac_try_echo=$ac_try;;
  1702. esac
  1703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1704. $as_echo "$ac_try_echo"; } >&5
  1705. (eval "$ac_compile") 2>conftest.err
  1706. ac_status=$?
  1707. if test -s conftest.err; then
  1708. grep -v '^ *+' conftest.err >conftest.er1
  1709. cat conftest.er1 >&5
  1710. mv -f conftest.er1 conftest.err
  1711. fi
  1712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; } && {
  1714. test -z "$ac_c_werror_flag" ||
  1715. test ! -s conftest.err
  1716. } && test -s conftest.$ac_objext; then :
  1717. ac_retval=0
  1718. else
  1719. $as_echo "$as_me: failed program was:" >&5
  1720. sed 's/^/| /' conftest.$ac_ext >&5
  1721. ac_retval=1
  1722. fi
  1723. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1724. as_fn_set_status $ac_retval
  1725. } # ac_fn_c_try_compile
  1726. # ac_fn_c_try_link LINENO
  1727. # -----------------------
  1728. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1729. ac_fn_c_try_link ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. rm -f conftest.$ac_objext conftest$ac_exeext
  1733. if { { ac_try="$ac_link"
  1734. case "(($ac_try" in
  1735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1736. *) ac_try_echo=$ac_try;;
  1737. esac
  1738. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1739. $as_echo "$ac_try_echo"; } >&5
  1740. (eval "$ac_link") 2>conftest.err
  1741. ac_status=$?
  1742. if test -s conftest.err; then
  1743. grep -v '^ *+' conftest.err >conftest.er1
  1744. cat conftest.er1 >&5
  1745. mv -f conftest.er1 conftest.err
  1746. fi
  1747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1748. test $ac_status = 0; } && {
  1749. test -z "$ac_c_werror_flag" ||
  1750. test ! -s conftest.err
  1751. } && test -s conftest$ac_exeext && {
  1752. test "$cross_compiling" = yes ||
  1753. test -x conftest$ac_exeext
  1754. }; then :
  1755. ac_retval=0
  1756. else
  1757. $as_echo "$as_me: failed program was:" >&5
  1758. sed 's/^/| /' conftest.$ac_ext >&5
  1759. ac_retval=1
  1760. fi
  1761. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1762. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1763. # interfere with the next link command; also delete a directory that is
  1764. # left behind by Apple's compiler. We do this before executing the actions.
  1765. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1766. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1767. as_fn_set_status $ac_retval
  1768. } # ac_fn_c_try_link
  1769. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1770. # -------------------------------------------------------
  1771. # Tests whether HEADER exists and can be compiled using the include files in
  1772. # INCLUDES, setting the cache variable VAR accordingly.
  1773. ac_fn_c_check_header_compile ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1777. $as_echo_n "checking for $2... " >&6; }
  1778. if eval \${$3+:} false; then :
  1779. $as_echo_n "(cached) " >&6
  1780. else
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. $4
  1784. #include <$2>
  1785. _ACEOF
  1786. if ac_fn_c_try_compile "$LINENO"; then :
  1787. eval "$3=yes"
  1788. else
  1789. eval "$3=no"
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1792. fi
  1793. eval ac_res=\$$3
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1795. $as_echo "$ac_res" >&6; }
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. } # ac_fn_c_check_header_compile
  1798. # ac_fn_c_try_cpp LINENO
  1799. # ----------------------
  1800. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_c_try_cpp ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1805. case "(($ac_try" in
  1806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1807. *) ac_try_echo=$ac_try;;
  1808. esac
  1809. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1810. $as_echo "$ac_try_echo"; } >&5
  1811. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1812. ac_status=$?
  1813. if test -s conftest.err; then
  1814. grep -v '^ *+' conftest.err >conftest.er1
  1815. cat conftest.er1 >&5
  1816. mv -f conftest.er1 conftest.err
  1817. fi
  1818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1819. test $ac_status = 0; } > conftest.i && {
  1820. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1821. test ! -s conftest.err
  1822. }; then :
  1823. ac_retval=0
  1824. else
  1825. $as_echo "$as_me: failed program was:" >&5
  1826. sed 's/^/| /' conftest.$ac_ext >&5
  1827. ac_retval=1
  1828. fi
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. as_fn_set_status $ac_retval
  1831. } # ac_fn_c_try_cpp
  1832. # ac_fn_c_try_run LINENO
  1833. # ----------------------
  1834. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1835. # that executables *can* be run.
  1836. ac_fn_c_try_run ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. if { { ac_try="$ac_link"
  1840. case "(($ac_try" in
  1841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1842. *) ac_try_echo=$ac_try;;
  1843. esac
  1844. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1845. $as_echo "$ac_try_echo"; } >&5
  1846. (eval "$ac_link") 2>&5
  1847. ac_status=$?
  1848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1849. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1857. ac_status=$?
  1858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1859. test $ac_status = 0; }; }; then :
  1860. ac_retval=0
  1861. else
  1862. $as_echo "$as_me: program exited with status $ac_status" >&5
  1863. $as_echo "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. ac_retval=$ac_status
  1866. fi
  1867. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1868. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1869. as_fn_set_status $ac_retval
  1870. } # ac_fn_c_try_run
  1871. # ac_fn_c_check_func LINENO FUNC VAR
  1872. # ----------------------------------
  1873. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1874. ac_fn_c_check_func ()
  1875. {
  1876. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1878. $as_echo_n "checking for $2... " >&6; }
  1879. if eval \${$3+:} false; then :
  1880. $as_echo_n "(cached) " >&6
  1881. else
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1885. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1886. #define $2 innocuous_$2
  1887. /* System header to define __stub macros and hopefully few prototypes,
  1888. which can conflict with char $2 (); below.
  1889. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1890. <limits.h> exists even on freestanding compilers. */
  1891. #ifdef __STDC__
  1892. # include <limits.h>
  1893. #else
  1894. # include <assert.h>
  1895. #endif
  1896. #undef $2
  1897. /* Override any GCC internal prototype to avoid an error.
  1898. Use char because int might match the return type of a GCC
  1899. builtin and then its argument prototype would still apply. */
  1900. #ifdef __cplusplus
  1901. extern "C"
  1902. #endif
  1903. char $2 ();
  1904. /* The GNU C library defines this for functions which it implements
  1905. to always fail with ENOSYS. Some functions are actually named
  1906. something starting with __ and the normal name is an alias. */
  1907. #if defined __stub_$2 || defined __stub___$2
  1908. choke me
  1909. #endif
  1910. int
  1911. main ()
  1912. {
  1913. return $2 ();
  1914. ;
  1915. return 0;
  1916. }
  1917. _ACEOF
  1918. if ac_fn_c_try_link "$LINENO"; then :
  1919. eval "$3=yes"
  1920. else
  1921. eval "$3=no"
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext \
  1924. conftest$ac_exeext conftest.$ac_ext
  1925. fi
  1926. eval ac_res=\$$3
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1928. $as_echo "$ac_res" >&6; }
  1929. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1930. } # ac_fn_c_check_func
  1931. # ac_fn_cxx_try_compile LINENO
  1932. # ----------------------------
  1933. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1934. ac_fn_cxx_try_compile ()
  1935. {
  1936. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1937. rm -f conftest.$ac_objext
  1938. if { { ac_try="$ac_compile"
  1939. case "(($ac_try" in
  1940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1941. *) ac_try_echo=$ac_try;;
  1942. esac
  1943. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1944. $as_echo "$ac_try_echo"; } >&5
  1945. (eval "$ac_compile") 2>conftest.err
  1946. ac_status=$?
  1947. if test -s conftest.err; then
  1948. grep -v '^ *+' conftest.err >conftest.er1
  1949. cat conftest.er1 >&5
  1950. mv -f conftest.er1 conftest.err
  1951. fi
  1952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1953. test $ac_status = 0; } && {
  1954. test -z "$ac_cxx_werror_flag" ||
  1955. test ! -s conftest.err
  1956. } && test -s conftest.$ac_objext; then :
  1957. ac_retval=0
  1958. else
  1959. $as_echo "$as_me: failed program was:" >&5
  1960. sed 's/^/| /' conftest.$ac_ext >&5
  1961. ac_retval=1
  1962. fi
  1963. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1964. as_fn_set_status $ac_retval
  1965. } # ac_fn_cxx_try_compile
  1966. # ac_fn_cxx_try_cpp LINENO
  1967. # ------------------------
  1968. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1969. ac_fn_cxx_try_cpp ()
  1970. {
  1971. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1972. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1973. case "(($ac_try" in
  1974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1975. *) ac_try_echo=$ac_try;;
  1976. esac
  1977. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1978. $as_echo "$ac_try_echo"; } >&5
  1979. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1980. ac_status=$?
  1981. if test -s conftest.err; then
  1982. grep -v '^ *+' conftest.err >conftest.er1
  1983. cat conftest.er1 >&5
  1984. mv -f conftest.er1 conftest.err
  1985. fi
  1986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1987. test $ac_status = 0; } > conftest.i && {
  1988. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1989. test ! -s conftest.err
  1990. }; then :
  1991. ac_retval=0
  1992. else
  1993. $as_echo "$as_me: failed program was:" >&5
  1994. sed 's/^/| /' conftest.$ac_ext >&5
  1995. ac_retval=1
  1996. fi
  1997. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1998. as_fn_set_status $ac_retval
  1999. } # ac_fn_cxx_try_cpp
  2000. # ac_fn_cxx_try_link LINENO
  2001. # -------------------------
  2002. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2003. ac_fn_cxx_try_link ()
  2004. {
  2005. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2006. rm -f conftest.$ac_objext conftest$ac_exeext
  2007. if { { ac_try="$ac_link"
  2008. case "(($ac_try" in
  2009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2010. *) ac_try_echo=$ac_try;;
  2011. esac
  2012. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2013. $as_echo "$ac_try_echo"; } >&5
  2014. (eval "$ac_link") 2>conftest.err
  2015. ac_status=$?
  2016. if test -s conftest.err; then
  2017. grep -v '^ *+' conftest.err >conftest.er1
  2018. cat conftest.er1 >&5
  2019. mv -f conftest.er1 conftest.err
  2020. fi
  2021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2022. test $ac_status = 0; } && {
  2023. test -z "$ac_cxx_werror_flag" ||
  2024. test ! -s conftest.err
  2025. } && test -s conftest$ac_exeext && {
  2026. test "$cross_compiling" = yes ||
  2027. test -x conftest$ac_exeext
  2028. }; then :
  2029. ac_retval=0
  2030. else
  2031. $as_echo "$as_me: failed program was:" >&5
  2032. sed 's/^/| /' conftest.$ac_ext >&5
  2033. ac_retval=1
  2034. fi
  2035. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2036. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2037. # interfere with the next link command; also delete a directory that is
  2038. # left behind by Apple's compiler. We do this before executing the actions.
  2039. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2040. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2041. as_fn_set_status $ac_retval
  2042. } # ac_fn_cxx_try_link
  2043. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2044. # -------------------------------------------------------
  2045. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2046. # the include files in INCLUDES and setting the cache variable VAR
  2047. # accordingly.
  2048. ac_fn_c_check_header_mongrel ()
  2049. {
  2050. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2051. if eval \${$3+:} false; then :
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2053. $as_echo_n "checking for $2... " >&6; }
  2054. if eval \${$3+:} false; then :
  2055. $as_echo_n "(cached) " >&6
  2056. fi
  2057. eval ac_res=\$$3
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2059. $as_echo "$ac_res" >&6; }
  2060. else
  2061. # Is the header compilable?
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2063. $as_echo_n "checking $2 usability... " >&6; }
  2064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2065. /* end confdefs.h. */
  2066. $4
  2067. #include <$2>
  2068. _ACEOF
  2069. if ac_fn_c_try_compile "$LINENO"; then :
  2070. ac_header_compiler=yes
  2071. else
  2072. ac_header_compiler=no
  2073. fi
  2074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2076. $as_echo "$ac_header_compiler" >&6; }
  2077. # Is the header present?
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2079. $as_echo_n "checking $2 presence... " >&6; }
  2080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2081. /* end confdefs.h. */
  2082. #include <$2>
  2083. _ACEOF
  2084. if ac_fn_c_try_cpp "$LINENO"; then :
  2085. ac_header_preproc=yes
  2086. else
  2087. ac_header_preproc=no
  2088. fi
  2089. rm -f conftest.err conftest.i conftest.$ac_ext
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2091. $as_echo "$ac_header_preproc" >&6; }
  2092. # So? What about this header?
  2093. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2094. yes:no: )
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2096. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2098. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2099. ;;
  2100. no:yes:* )
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2102. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2104. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2106. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2108. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2110. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2111. ;;
  2112. esac
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2114. $as_echo_n "checking for $2... " >&6; }
  2115. if eval \${$3+:} false; then :
  2116. $as_echo_n "(cached) " >&6
  2117. else
  2118. eval "$3=\$ac_header_compiler"
  2119. fi
  2120. eval ac_res=\$$3
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2122. $as_echo "$ac_res" >&6; }
  2123. fi
  2124. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2125. } # ac_fn_c_check_header_mongrel
  2126. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2127. # -------------------------------------------
  2128. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2129. # variable VAR accordingly.
  2130. ac_fn_c_check_type ()
  2131. {
  2132. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2134. $as_echo_n "checking for $2... " >&6; }
  2135. if eval \${$3+:} false; then :
  2136. $as_echo_n "(cached) " >&6
  2137. else
  2138. eval "$3=no"
  2139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2140. /* end confdefs.h. */
  2141. $4
  2142. int
  2143. main ()
  2144. {
  2145. if (sizeof ($2))
  2146. return 0;
  2147. ;
  2148. return 0;
  2149. }
  2150. _ACEOF
  2151. if ac_fn_c_try_compile "$LINENO"; then :
  2152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2153. /* end confdefs.h. */
  2154. $4
  2155. int
  2156. main ()
  2157. {
  2158. if (sizeof (($2)))
  2159. return 0;
  2160. ;
  2161. return 0;
  2162. }
  2163. _ACEOF
  2164. if ac_fn_c_try_compile "$LINENO"; then :
  2165. else
  2166. eval "$3=yes"
  2167. fi
  2168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2169. fi
  2170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2171. fi
  2172. eval ac_res=\$$3
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2174. $as_echo "$ac_res" >&6; }
  2175. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2176. } # ac_fn_c_check_type
  2177. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2178. # ----------------------------------------------------
  2179. # Tries to find if the field MEMBER exists in type AGGR, after including
  2180. # INCLUDES, setting cache variable VAR accordingly.
  2181. ac_fn_c_check_member ()
  2182. {
  2183. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2185. $as_echo_n "checking for $2.$3... " >&6; }
  2186. if eval \${$4+:} false; then :
  2187. $as_echo_n "(cached) " >&6
  2188. else
  2189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2190. /* end confdefs.h. */
  2191. $5
  2192. int
  2193. main ()
  2194. {
  2195. static $2 ac_aggr;
  2196. if (ac_aggr.$3)
  2197. return 0;
  2198. ;
  2199. return 0;
  2200. }
  2201. _ACEOF
  2202. if ac_fn_c_try_compile "$LINENO"; then :
  2203. eval "$4=yes"
  2204. else
  2205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2206. /* end confdefs.h. */
  2207. $5
  2208. int
  2209. main ()
  2210. {
  2211. static $2 ac_aggr;
  2212. if (sizeof ac_aggr.$3)
  2213. return 0;
  2214. ;
  2215. return 0;
  2216. }
  2217. _ACEOF
  2218. if ac_fn_c_try_compile "$LINENO"; then :
  2219. eval "$4=yes"
  2220. else
  2221. eval "$4=no"
  2222. fi
  2223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2224. fi
  2225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2226. fi
  2227. eval ac_res=\$$4
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2229. $as_echo "$ac_res" >&6; }
  2230. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2231. } # ac_fn_c_check_member
  2232. cat >config.log <<_ACEOF
  2233. This file contains any messages produced by compilers while
  2234. running configure, to aid debugging if configure makes a mistake.
  2235. It was created by $as_me, which was
  2236. generated by GNU Autoconf 2.69. Invocation command line was
  2237. $ $0 $@
  2238. _ACEOF
  2239. exec 5>>config.log
  2240. {
  2241. cat <<_ASUNAME
  2242. ## --------- ##
  2243. ## Platform. ##
  2244. ## --------- ##
  2245. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2246. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2247. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2248. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2249. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2250. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2251. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2252. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2253. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2254. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2255. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2256. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2257. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2258. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2259. _ASUNAME
  2260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2261. for as_dir in $PATH
  2262. do
  2263. IFS=$as_save_IFS
  2264. test -z "$as_dir" && as_dir=.
  2265. $as_echo "PATH: $as_dir"
  2266. done
  2267. IFS=$as_save_IFS
  2268. } >&5
  2269. cat >&5 <<_ACEOF
  2270. ## ----------- ##
  2271. ## Core tests. ##
  2272. ## ----------- ##
  2273. _ACEOF
  2274. # Keep a trace of the command line.
  2275. # Strip out --no-create and --no-recursion so they do not pile up.
  2276. # Strip out --silent because we don't want to record it for future runs.
  2277. # Also quote any args containing shell meta-characters.
  2278. # Make two passes to allow for proper duplicate-argument suppression.
  2279. ac_configure_args=
  2280. ac_configure_args0=
  2281. ac_configure_args1=
  2282. ac_must_keep_next=false
  2283. for ac_pass in 1 2
  2284. do
  2285. for ac_arg
  2286. do
  2287. case $ac_arg in
  2288. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2289. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2290. | -silent | --silent | --silen | --sile | --sil)
  2291. continue ;;
  2292. *\'*)
  2293. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2294. esac
  2295. case $ac_pass in
  2296. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2297. 2)
  2298. as_fn_append ac_configure_args1 " '$ac_arg'"
  2299. if test $ac_must_keep_next = true; then
  2300. ac_must_keep_next=false # Got value, back to normal.
  2301. else
  2302. case $ac_arg in
  2303. *=* | --config-cache | -C | -disable-* | --disable-* \
  2304. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2305. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2306. | -with-* | --with-* | -without-* | --without-* | --x)
  2307. case "$ac_configure_args0 " in
  2308. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2309. esac
  2310. ;;
  2311. -* ) ac_must_keep_next=true ;;
  2312. esac
  2313. fi
  2314. as_fn_append ac_configure_args " '$ac_arg'"
  2315. ;;
  2316. esac
  2317. done
  2318. done
  2319. { ac_configure_args0=; unset ac_configure_args0;}
  2320. { ac_configure_args1=; unset ac_configure_args1;}
  2321. # When interrupted or exit'd, cleanup temporary files, and complete
  2322. # config.log. We remove comments because anyway the quotes in there
  2323. # would cause problems or look ugly.
  2324. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2325. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2326. trap 'exit_status=$?
  2327. # Save into config.log some information that might help in debugging.
  2328. {
  2329. echo
  2330. $as_echo "## ---------------- ##
  2331. ## Cache variables. ##
  2332. ## ---------------- ##"
  2333. echo
  2334. # The following way of writing the cache mishandles newlines in values,
  2335. (
  2336. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2337. eval ac_val=\$$ac_var
  2338. case $ac_val in #(
  2339. *${as_nl}*)
  2340. case $ac_var in #(
  2341. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2342. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2343. esac
  2344. case $ac_var in #(
  2345. _ | IFS | as_nl) ;; #(
  2346. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2347. *) { eval $ac_var=; unset $ac_var;} ;;
  2348. esac ;;
  2349. esac
  2350. done
  2351. (set) 2>&1 |
  2352. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2353. *${as_nl}ac_space=\ *)
  2354. sed -n \
  2355. "s/'\''/'\''\\\\'\'''\''/g;
  2356. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2357. ;; #(
  2358. *)
  2359. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2360. ;;
  2361. esac |
  2362. sort
  2363. )
  2364. echo
  2365. $as_echo "## ----------------- ##
  2366. ## Output variables. ##
  2367. ## ----------------- ##"
  2368. echo
  2369. for ac_var in $ac_subst_vars
  2370. do
  2371. eval ac_val=\$$ac_var
  2372. case $ac_val in
  2373. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2374. esac
  2375. $as_echo "$ac_var='\''$ac_val'\''"
  2376. done | sort
  2377. echo
  2378. if test -n "$ac_subst_files"; then
  2379. $as_echo "## ------------------- ##
  2380. ## File substitutions. ##
  2381. ## ------------------- ##"
  2382. echo
  2383. for ac_var in $ac_subst_files
  2384. do
  2385. eval ac_val=\$$ac_var
  2386. case $ac_val in
  2387. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2388. esac
  2389. $as_echo "$ac_var='\''$ac_val'\''"
  2390. done | sort
  2391. echo
  2392. fi
  2393. if test -s confdefs.h; then
  2394. $as_echo "## ----------- ##
  2395. ## confdefs.h. ##
  2396. ## ----------- ##"
  2397. echo
  2398. cat confdefs.h
  2399. echo
  2400. fi
  2401. test "$ac_signal" != 0 &&
  2402. $as_echo "$as_me: caught signal $ac_signal"
  2403. $as_echo "$as_me: exit $exit_status"
  2404. } >&5
  2405. rm -f core *.core core.conftest.* &&
  2406. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2407. exit $exit_status
  2408. ' 0
  2409. for ac_signal in 1 2 13 15; do
  2410. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2411. done
  2412. ac_signal=0
  2413. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2414. rm -f -r conftest* confdefs.h
  2415. $as_echo "/* confdefs.h */" > confdefs.h
  2416. # Predefined preprocessor variables.
  2417. cat >>confdefs.h <<_ACEOF
  2418. #define PACKAGE_NAME "$PACKAGE_NAME"
  2419. _ACEOF
  2420. cat >>confdefs.h <<_ACEOF
  2421. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2422. _ACEOF
  2423. cat >>confdefs.h <<_ACEOF
  2424. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2425. _ACEOF
  2426. cat >>confdefs.h <<_ACEOF
  2427. #define PACKAGE_STRING "$PACKAGE_STRING"
  2428. _ACEOF
  2429. cat >>confdefs.h <<_ACEOF
  2430. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2431. _ACEOF
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_URL "$PACKAGE_URL"
  2434. _ACEOF
  2435. # Let the site file select an alternate cache file if it wants to.
  2436. # Prefer an explicitly selected file to automatically selected ones.
  2437. ac_site_file1=NONE
  2438. ac_site_file2=NONE
  2439. if test -n "$CONFIG_SITE"; then
  2440. # We do not want a PATH search for config.site.
  2441. case $CONFIG_SITE in #((
  2442. -*) ac_site_file1=./$CONFIG_SITE;;
  2443. */*) ac_site_file1=$CONFIG_SITE;;
  2444. *) ac_site_file1=./$CONFIG_SITE;;
  2445. esac
  2446. elif test "x$prefix" != xNONE; then
  2447. ac_site_file1=$prefix/share/config.site
  2448. ac_site_file2=$prefix/etc/config.site
  2449. else
  2450. ac_site_file1=$ac_default_prefix/share/config.site
  2451. ac_site_file2=$ac_default_prefix/etc/config.site
  2452. fi
  2453. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2454. do
  2455. test "x$ac_site_file" = xNONE && continue
  2456. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2458. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2459. sed 's/^/| /' "$ac_site_file" >&5
  2460. . "$ac_site_file" \
  2461. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2462. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2463. as_fn_error $? "failed to load site script $ac_site_file
  2464. See \`config.log' for more details" "$LINENO" 5; }
  2465. fi
  2466. done
  2467. if test -r "$cache_file"; then
  2468. # Some versions of bash will fail to source /dev/null (special files
  2469. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2470. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2472. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2473. case $cache_file in
  2474. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2475. *) . "./$cache_file";;
  2476. esac
  2477. fi
  2478. else
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2480. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2481. >$cache_file
  2482. fi
  2483. # Check that the precious variables saved in the cache have kept the same
  2484. # value.
  2485. ac_cache_corrupted=false
  2486. for ac_var in $ac_precious_vars; do
  2487. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2488. eval ac_new_set=\$ac_env_${ac_var}_set
  2489. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2490. eval ac_new_val=\$ac_env_${ac_var}_value
  2491. case $ac_old_set,$ac_new_set in
  2492. set,)
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2494. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2495. ac_cache_corrupted=: ;;
  2496. ,set)
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2498. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2499. ac_cache_corrupted=: ;;
  2500. ,);;
  2501. *)
  2502. if test "x$ac_old_val" != "x$ac_new_val"; then
  2503. # differences in whitespace do not lead to failure.
  2504. ac_old_val_w=`echo x $ac_old_val`
  2505. ac_new_val_w=`echo x $ac_new_val`
  2506. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2508. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2509. ac_cache_corrupted=:
  2510. else
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2512. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2513. eval $ac_var=\$ac_old_val
  2514. fi
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2516. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2518. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2519. fi;;
  2520. esac
  2521. # Pass precious variables to config.status.
  2522. if test "$ac_new_set" = set; then
  2523. case $ac_new_val in
  2524. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2525. *) ac_arg=$ac_var=$ac_new_val ;;
  2526. esac
  2527. case " $ac_configure_args " in
  2528. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2529. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2530. esac
  2531. fi
  2532. done
  2533. if $ac_cache_corrupted; then
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2535. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2537. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2538. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2539. fi
  2540. ## -------------------- ##
  2541. ## Main body of script. ##
  2542. ## -------------------- ##
  2543. ac_ext=c
  2544. ac_cpp='$CPP $CPPFLAGS'
  2545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2548. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2549. ac_aux_dir=
  2550. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2551. if test -f "$ac_dir/install-sh"; then
  2552. ac_aux_dir=$ac_dir
  2553. ac_install_sh="$ac_aux_dir/install-sh -c"
  2554. break
  2555. elif test -f "$ac_dir/install.sh"; then
  2556. ac_aux_dir=$ac_dir
  2557. ac_install_sh="$ac_aux_dir/install.sh -c"
  2558. break
  2559. elif test -f "$ac_dir/shtool"; then
  2560. ac_aux_dir=$ac_dir
  2561. ac_install_sh="$ac_aux_dir/shtool install -c"
  2562. break
  2563. fi
  2564. done
  2565. if test -z "$ac_aux_dir"; then
  2566. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2567. fi
  2568. # These three variables are undocumented and unsupported,
  2569. # and are intended to be withdrawn in a future Autoconf release.
  2570. # They can cause serious problems if a builder's source tree is in a directory
  2571. # whose full name contains unusual characters.
  2572. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2573. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2574. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2575. orig_CFLAGS="$CFLAGS"
  2576. #
  2577. # Making releases:
  2578. # Edit include/SDL_version.h and change the version, then:
  2579. # SDL_MICRO_VERSION += 1;
  2580. # SDL_INTERFACE_AGE += 1;
  2581. # SDL_BINARY_AGE += 1;
  2582. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2583. # if backwards compatibility has been broken,
  2584. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2585. #
  2586. SDL_MAJOR_VERSION=2
  2587. SDL_MINOR_VERSION=0
  2588. SDL_MICRO_VERSION=11
  2589. SDL_INTERFACE_AGE=0
  2590. SDL_BINARY_AGE=11
  2591. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2592. # libtool versioning
  2593. case `pwd` in
  2594. *\ * | *\ *)
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2596. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2597. esac
  2598. macro_version='2.4.2'
  2599. macro_revision='1.3337'
  2600. ltmain="$ac_aux_dir/ltmain.sh"
  2601. # Make sure we can run config.sub.
  2602. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2603. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2605. $as_echo_n "checking build system type... " >&6; }
  2606. if ${ac_cv_build+:} false; then :
  2607. $as_echo_n "(cached) " >&6
  2608. else
  2609. ac_build_alias=$build_alias
  2610. test "x$ac_build_alias" = x &&
  2611. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2612. test "x$ac_build_alias" = x &&
  2613. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2614. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2615. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2616. fi
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2618. $as_echo "$ac_cv_build" >&6; }
  2619. case $ac_cv_build in
  2620. *-*-*) ;;
  2621. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2622. esac
  2623. build=$ac_cv_build
  2624. ac_save_IFS=$IFS; IFS='-'
  2625. set x $ac_cv_build
  2626. shift
  2627. build_cpu=$1
  2628. build_vendor=$2
  2629. shift; shift
  2630. # Remember, the first character of IFS is used to create $*,
  2631. # except with old shells:
  2632. build_os=$*
  2633. IFS=$ac_save_IFS
  2634. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2636. $as_echo_n "checking host system type... " >&6; }
  2637. if ${ac_cv_host+:} false; then :
  2638. $as_echo_n "(cached) " >&6
  2639. else
  2640. if test "x$host_alias" = x; then
  2641. ac_cv_host=$ac_cv_build
  2642. else
  2643. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2644. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2645. fi
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2648. $as_echo "$ac_cv_host" >&6; }
  2649. case $ac_cv_host in
  2650. *-*-*) ;;
  2651. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2652. esac
  2653. host=$ac_cv_host
  2654. ac_save_IFS=$IFS; IFS='-'
  2655. set x $ac_cv_host
  2656. shift
  2657. host_cpu=$1
  2658. host_vendor=$2
  2659. shift; shift
  2660. # Remember, the first character of IFS is used to create $*,
  2661. # except with old shells:
  2662. host_os=$*
  2663. IFS=$ac_save_IFS
  2664. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2665. # Backslashify metacharacters that are still active within
  2666. # double-quoted strings.
  2667. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2668. # Same as above, but do not quote variable references.
  2669. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2670. # Sed substitution to delay expansion of an escaped shell variable in a
  2671. # double_quote_subst'ed string.
  2672. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2673. # Sed substitution to delay expansion of an escaped single quote.
  2674. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2675. # Sed substitution to avoid accidental globbing in evaled expressions
  2676. no_glob_subst='s/\*/\\\*/g'
  2677. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2678. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2679. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2681. $as_echo_n "checking how to print strings... " >&6; }
  2682. # Test print first, because it will be a builtin if present.
  2683. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2684. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2685. ECHO='print -r --'
  2686. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2687. ECHO='printf %s\n'
  2688. else
  2689. # Use this function as a fallback that always works.
  2690. func_fallback_echo ()
  2691. {
  2692. eval 'cat <<_LTECHO_EOF
  2693. $1
  2694. _LTECHO_EOF'
  2695. }
  2696. ECHO='func_fallback_echo'
  2697. fi
  2698. # func_echo_all arg...
  2699. # Invoke $ECHO with all args, space-separated.
  2700. func_echo_all ()
  2701. {
  2702. $ECHO ""
  2703. }
  2704. case "$ECHO" in
  2705. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2706. $as_echo "printf" >&6; } ;;
  2707. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2708. $as_echo "print -r" >&6; } ;;
  2709. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2710. $as_echo "cat" >&6; } ;;
  2711. esac
  2712. ac_ext=c
  2713. ac_cpp='$CPP $CPPFLAGS'
  2714. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2715. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2716. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2717. if test -n "$ac_tool_prefix"; then
  2718. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2719. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2721. $as_echo_n "checking for $ac_word... " >&6; }
  2722. if ${ac_cv_prog_CC+:} false; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. if test -n "$CC"; then
  2726. ac_cv_prog_CC="$CC" # Let the user override the test.
  2727. else
  2728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2729. for as_dir in $PATH
  2730. do
  2731. IFS=$as_save_IFS
  2732. test -z "$as_dir" && as_dir=.
  2733. for ac_exec_ext in '' $ac_executable_extensions; do
  2734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2735. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2737. break 2
  2738. fi
  2739. done
  2740. done
  2741. IFS=$as_save_IFS
  2742. fi
  2743. fi
  2744. CC=$ac_cv_prog_CC
  2745. if test -n "$CC"; then
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2747. $as_echo "$CC" >&6; }
  2748. else
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2750. $as_echo "no" >&6; }
  2751. fi
  2752. fi
  2753. if test -z "$ac_cv_prog_CC"; then
  2754. ac_ct_CC=$CC
  2755. # Extract the first word of "gcc", so it can be a program name with args.
  2756. set dummy gcc; ac_word=$2
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2758. $as_echo_n "checking for $ac_word... " >&6; }
  2759. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2760. $as_echo_n "(cached) " >&6
  2761. else
  2762. if test -n "$ac_ct_CC"; then
  2763. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2764. else
  2765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2766. for as_dir in $PATH
  2767. do
  2768. IFS=$as_save_IFS
  2769. test -z "$as_dir" && as_dir=.
  2770. for ac_exec_ext in '' $ac_executable_extensions; do
  2771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2772. ac_cv_prog_ac_ct_CC="gcc"
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2774. break 2
  2775. fi
  2776. done
  2777. done
  2778. IFS=$as_save_IFS
  2779. fi
  2780. fi
  2781. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2782. if test -n "$ac_ct_CC"; then
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2784. $as_echo "$ac_ct_CC" >&6; }
  2785. else
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2787. $as_echo "no" >&6; }
  2788. fi
  2789. if test "x$ac_ct_CC" = x; then
  2790. CC=""
  2791. else
  2792. case $cross_compiling:$ac_tool_warned in
  2793. yes:)
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2796. ac_tool_warned=yes ;;
  2797. esac
  2798. CC=$ac_ct_CC
  2799. fi
  2800. else
  2801. CC="$ac_cv_prog_CC"
  2802. fi
  2803. if test -z "$CC"; then
  2804. if test -n "$ac_tool_prefix"; then
  2805. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2806. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2808. $as_echo_n "checking for $ac_word... " >&6; }
  2809. if ${ac_cv_prog_CC+:} false; then :
  2810. $as_echo_n "(cached) " >&6
  2811. else
  2812. if test -n "$CC"; then
  2813. ac_cv_prog_CC="$CC" # Let the user override the test.
  2814. else
  2815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2816. for as_dir in $PATH
  2817. do
  2818. IFS=$as_save_IFS
  2819. test -z "$as_dir" && as_dir=.
  2820. for ac_exec_ext in '' $ac_executable_extensions; do
  2821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2822. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2824. break 2
  2825. fi
  2826. done
  2827. done
  2828. IFS=$as_save_IFS
  2829. fi
  2830. fi
  2831. CC=$ac_cv_prog_CC
  2832. if test -n "$CC"; then
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2834. $as_echo "$CC" >&6; }
  2835. else
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2837. $as_echo "no" >&6; }
  2838. fi
  2839. fi
  2840. fi
  2841. if test -z "$CC"; then
  2842. # Extract the first word of "cc", so it can be a program name with args.
  2843. set dummy cc; ac_word=$2
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2845. $as_echo_n "checking for $ac_word... " >&6; }
  2846. if ${ac_cv_prog_CC+:} false; then :
  2847. $as_echo_n "(cached) " >&6
  2848. else
  2849. if test -n "$CC"; then
  2850. ac_cv_prog_CC="$CC" # Let the user override the test.
  2851. else
  2852. ac_prog_rejected=no
  2853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2854. for as_dir in $PATH
  2855. do
  2856. IFS=$as_save_IFS
  2857. test -z "$as_dir" && as_dir=.
  2858. for ac_exec_ext in '' $ac_executable_extensions; do
  2859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2860. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2861. ac_prog_rejected=yes
  2862. continue
  2863. fi
  2864. ac_cv_prog_CC="cc"
  2865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2866. break 2
  2867. fi
  2868. done
  2869. done
  2870. IFS=$as_save_IFS
  2871. if test $ac_prog_rejected = yes; then
  2872. # We found a bogon in the path, so make sure we never use it.
  2873. set dummy $ac_cv_prog_CC
  2874. shift
  2875. if test $# != 0; then
  2876. # We chose a different compiler from the bogus one.
  2877. # However, it has the same basename, so the bogon will be chosen
  2878. # first if we set CC to just the basename; use the full file name.
  2879. shift
  2880. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2881. fi
  2882. fi
  2883. fi
  2884. fi
  2885. CC=$ac_cv_prog_CC
  2886. if test -n "$CC"; then
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2888. $as_echo "$CC" >&6; }
  2889. else
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2891. $as_echo "no" >&6; }
  2892. fi
  2893. fi
  2894. if test -z "$CC"; then
  2895. if test -n "$ac_tool_prefix"; then
  2896. for ac_prog in cl.exe
  2897. do
  2898. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2899. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2901. $as_echo_n "checking for $ac_word... " >&6; }
  2902. if ${ac_cv_prog_CC+:} false; then :
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. if test -n "$CC"; then
  2906. ac_cv_prog_CC="$CC" # Let the user override the test.
  2907. else
  2908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2909. for as_dir in $PATH
  2910. do
  2911. IFS=$as_save_IFS
  2912. test -z "$as_dir" && as_dir=.
  2913. for ac_exec_ext in '' $ac_executable_extensions; do
  2914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2915. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2917. break 2
  2918. fi
  2919. done
  2920. done
  2921. IFS=$as_save_IFS
  2922. fi
  2923. fi
  2924. CC=$ac_cv_prog_CC
  2925. if test -n "$CC"; then
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2927. $as_echo "$CC" >&6; }
  2928. else
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2930. $as_echo "no" >&6; }
  2931. fi
  2932. test -n "$CC" && break
  2933. done
  2934. fi
  2935. if test -z "$CC"; then
  2936. ac_ct_CC=$CC
  2937. for ac_prog in cl.exe
  2938. do
  2939. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2940. set dummy $ac_prog; ac_word=$2
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2942. $as_echo_n "checking for $ac_word... " >&6; }
  2943. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2944. $as_echo_n "(cached) " >&6
  2945. else
  2946. if test -n "$ac_ct_CC"; then
  2947. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2948. else
  2949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2950. for as_dir in $PATH
  2951. do
  2952. IFS=$as_save_IFS
  2953. test -z "$as_dir" && as_dir=.
  2954. for ac_exec_ext in '' $ac_executable_extensions; do
  2955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2956. ac_cv_prog_ac_ct_CC="$ac_prog"
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2958. break 2
  2959. fi
  2960. done
  2961. done
  2962. IFS=$as_save_IFS
  2963. fi
  2964. fi
  2965. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2966. if test -n "$ac_ct_CC"; then
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2968. $as_echo "$ac_ct_CC" >&6; }
  2969. else
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2971. $as_echo "no" >&6; }
  2972. fi
  2973. test -n "$ac_ct_CC" && break
  2974. done
  2975. if test "x$ac_ct_CC" = x; then
  2976. CC=""
  2977. else
  2978. case $cross_compiling:$ac_tool_warned in
  2979. yes:)
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2981. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2982. ac_tool_warned=yes ;;
  2983. esac
  2984. CC=$ac_ct_CC
  2985. fi
  2986. fi
  2987. fi
  2988. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2989. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2990. as_fn_error $? "no acceptable C compiler found in \$PATH
  2991. See \`config.log' for more details" "$LINENO" 5; }
  2992. # Provide some information about the compiler.
  2993. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2994. set X $ac_compile
  2995. ac_compiler=$2
  2996. for ac_option in --version -v -V -qversion; do
  2997. { { ac_try="$ac_compiler $ac_option >&5"
  2998. case "(($ac_try" in
  2999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3000. *) ac_try_echo=$ac_try;;
  3001. esac
  3002. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3003. $as_echo "$ac_try_echo"; } >&5
  3004. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3005. ac_status=$?
  3006. if test -s conftest.err; then
  3007. sed '10a\
  3008. ... rest of stderr output deleted ...
  3009. 10q' conftest.err >conftest.er1
  3010. cat conftest.er1 >&5
  3011. fi
  3012. rm -f conftest.er1 conftest.err
  3013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3014. test $ac_status = 0; }
  3015. done
  3016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3017. /* end confdefs.h. */
  3018. int
  3019. main ()
  3020. {
  3021. ;
  3022. return 0;
  3023. }
  3024. _ACEOF
  3025. ac_clean_files_save=$ac_clean_files
  3026. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3027. # Try to create an executable without -o first, disregard a.out.
  3028. # It will help us diagnose broken compilers, and finding out an intuition
  3029. # of exeext.
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3031. $as_echo_n "checking whether the C compiler works... " >&6; }
  3032. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3033. # The possible output files:
  3034. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3035. ac_rmfiles=
  3036. for ac_file in $ac_files
  3037. do
  3038. case $ac_file in
  3039. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3040. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3041. esac
  3042. done
  3043. rm -f $ac_rmfiles
  3044. if { { ac_try="$ac_link_default"
  3045. case "(($ac_try" in
  3046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3047. *) ac_try_echo=$ac_try;;
  3048. esac
  3049. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3050. $as_echo "$ac_try_echo"; } >&5
  3051. (eval "$ac_link_default") 2>&5
  3052. ac_status=$?
  3053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3054. test $ac_status = 0; }; then :
  3055. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3056. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3057. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3058. # so that the user can short-circuit this test for compilers unknown to
  3059. # Autoconf.
  3060. for ac_file in $ac_files ''
  3061. do
  3062. test -f "$ac_file" || continue
  3063. case $ac_file in
  3064. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3065. ;;
  3066. [ab].out )
  3067. # We found the default executable, but exeext='' is most
  3068. # certainly right.
  3069. break;;
  3070. *.* )
  3071. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3072. then :; else
  3073. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3074. fi
  3075. # We set ac_cv_exeext here because the later test for it is not
  3076. # safe: cross compilers may not add the suffix if given an `-o'
  3077. # argument, so we may need to know it at that point already.
  3078. # Even if this section looks crufty: it has the advantage of
  3079. # actually working.
  3080. break;;
  3081. * )
  3082. break;;
  3083. esac
  3084. done
  3085. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3086. else
  3087. ac_file=''
  3088. fi
  3089. if test -z "$ac_file"; then :
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3091. $as_echo "no" >&6; }
  3092. $as_echo "$as_me: failed program was:" >&5
  3093. sed 's/^/| /' conftest.$ac_ext >&5
  3094. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3096. as_fn_error 77 "C compiler cannot create executables
  3097. See \`config.log' for more details" "$LINENO" 5; }
  3098. else
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3100. $as_echo "yes" >&6; }
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3103. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3105. $as_echo "$ac_file" >&6; }
  3106. ac_exeext=$ac_cv_exeext
  3107. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3108. ac_clean_files=$ac_clean_files_save
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3110. $as_echo_n "checking for suffix of executables... " >&6; }
  3111. if { { ac_try="$ac_link"
  3112. case "(($ac_try" in
  3113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3114. *) ac_try_echo=$ac_try;;
  3115. esac
  3116. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3117. $as_echo "$ac_try_echo"; } >&5
  3118. (eval "$ac_link") 2>&5
  3119. ac_status=$?
  3120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3121. test $ac_status = 0; }; then :
  3122. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3123. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3124. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3125. # `rm'.
  3126. for ac_file in conftest.exe conftest conftest.*; do
  3127. test -f "$ac_file" || continue
  3128. case $ac_file in
  3129. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3130. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3131. break;;
  3132. * ) break;;
  3133. esac
  3134. done
  3135. else
  3136. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3137. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3138. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3139. See \`config.log' for more details" "$LINENO" 5; }
  3140. fi
  3141. rm -f conftest conftest$ac_cv_exeext
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3143. $as_echo "$ac_cv_exeext" >&6; }
  3144. rm -f conftest.$ac_ext
  3145. EXEEXT=$ac_cv_exeext
  3146. ac_exeext=$EXEEXT
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. #include <stdio.h>
  3150. int
  3151. main ()
  3152. {
  3153. FILE *f = fopen ("conftest.out", "w");
  3154. return ferror (f) || fclose (f) != 0;
  3155. ;
  3156. return 0;
  3157. }
  3158. _ACEOF
  3159. ac_clean_files="$ac_clean_files conftest.out"
  3160. # Check that the compiler produces executables we can run. If not, either
  3161. # the compiler is broken, or we cross compile.
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3163. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3164. if test "$cross_compiling" != yes; then
  3165. { { ac_try="$ac_link"
  3166. case "(($ac_try" in
  3167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3168. *) ac_try_echo=$ac_try;;
  3169. esac
  3170. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3171. $as_echo "$ac_try_echo"; } >&5
  3172. (eval "$ac_link") 2>&5
  3173. ac_status=$?
  3174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3175. test $ac_status = 0; }
  3176. if { ac_try='./conftest$ac_cv_exeext'
  3177. { { case "(($ac_try" in
  3178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3179. *) ac_try_echo=$ac_try;;
  3180. esac
  3181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3182. $as_echo "$ac_try_echo"; } >&5
  3183. (eval "$ac_try") 2>&5
  3184. ac_status=$?
  3185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3186. test $ac_status = 0; }; }; then
  3187. cross_compiling=no
  3188. else
  3189. if test "$cross_compiling" = maybe; then
  3190. cross_compiling=yes
  3191. else
  3192. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3193. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3194. as_fn_error $? "cannot run C compiled programs.
  3195. If you meant to cross compile, use \`--host'.
  3196. See \`config.log' for more details" "$LINENO" 5; }
  3197. fi
  3198. fi
  3199. fi
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3201. $as_echo "$cross_compiling" >&6; }
  3202. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3203. ac_clean_files=$ac_clean_files_save
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3205. $as_echo_n "checking for suffix of object files... " >&6; }
  3206. if ${ac_cv_objext+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h. */
  3211. int
  3212. main ()
  3213. {
  3214. ;
  3215. return 0;
  3216. }
  3217. _ACEOF
  3218. rm -f conftest.o conftest.obj
  3219. if { { ac_try="$ac_compile"
  3220. case "(($ac_try" in
  3221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3222. *) ac_try_echo=$ac_try;;
  3223. esac
  3224. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3225. $as_echo "$ac_try_echo"; } >&5
  3226. (eval "$ac_compile") 2>&5
  3227. ac_status=$?
  3228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3229. test $ac_status = 0; }; then :
  3230. for ac_file in conftest.o conftest.obj conftest.*; do
  3231. test -f "$ac_file" || continue;
  3232. case $ac_file in
  3233. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3234. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3235. break;;
  3236. esac
  3237. done
  3238. else
  3239. $as_echo "$as_me: failed program was:" >&5
  3240. sed 's/^/| /' conftest.$ac_ext >&5
  3241. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3242. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3243. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3244. See \`config.log' for more details" "$LINENO" 5; }
  3245. fi
  3246. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3247. fi
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3249. $as_echo "$ac_cv_objext" >&6; }
  3250. OBJEXT=$ac_cv_objext
  3251. ac_objext=$OBJEXT
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3253. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3254. if ${ac_cv_c_compiler_gnu+:} false; then :
  3255. $as_echo_n "(cached) " >&6
  3256. else
  3257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3258. /* end confdefs.h. */
  3259. int
  3260. main ()
  3261. {
  3262. #ifndef __GNUC__
  3263. choke me
  3264. #endif
  3265. ;
  3266. return 0;
  3267. }
  3268. _ACEOF
  3269. if ac_fn_c_try_compile "$LINENO"; then :
  3270. ac_compiler_gnu=yes
  3271. else
  3272. ac_compiler_gnu=no
  3273. fi
  3274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3275. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3276. fi
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3278. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3279. if test $ac_compiler_gnu = yes; then
  3280. GCC=yes
  3281. else
  3282. GCC=
  3283. fi
  3284. ac_test_CFLAGS=${CFLAGS+set}
  3285. ac_save_CFLAGS=$CFLAGS
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3287. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3288. if ${ac_cv_prog_cc_g+:} false; then :
  3289. $as_echo_n "(cached) " >&6
  3290. else
  3291. ac_save_c_werror_flag=$ac_c_werror_flag
  3292. ac_c_werror_flag=yes
  3293. ac_cv_prog_cc_g=no
  3294. CFLAGS="-g"
  3295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3296. /* end confdefs.h. */
  3297. int
  3298. main ()
  3299. {
  3300. ;
  3301. return 0;
  3302. }
  3303. _ACEOF
  3304. if ac_fn_c_try_compile "$LINENO"; then :
  3305. ac_cv_prog_cc_g=yes
  3306. else
  3307. CFLAGS=""
  3308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3309. /* end confdefs.h. */
  3310. int
  3311. main ()
  3312. {
  3313. ;
  3314. return 0;
  3315. }
  3316. _ACEOF
  3317. if ac_fn_c_try_compile "$LINENO"; then :
  3318. else
  3319. ac_c_werror_flag=$ac_save_c_werror_flag
  3320. CFLAGS="-g"
  3321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end confdefs.h. */
  3323. int
  3324. main ()
  3325. {
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. if ac_fn_c_try_compile "$LINENO"; then :
  3331. ac_cv_prog_cc_g=yes
  3332. fi
  3333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3334. fi
  3335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3336. fi
  3337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. ac_c_werror_flag=$ac_save_c_werror_flag
  3339. fi
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3341. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3342. if test "$ac_test_CFLAGS" = set; then
  3343. CFLAGS=$ac_save_CFLAGS
  3344. elif test $ac_cv_prog_cc_g = yes; then
  3345. if test "$GCC" = yes; then
  3346. CFLAGS="-g -O2"
  3347. else
  3348. CFLAGS="-g"
  3349. fi
  3350. else
  3351. if test "$GCC" = yes; then
  3352. CFLAGS="-O2"
  3353. else
  3354. CFLAGS=
  3355. fi
  3356. fi
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3358. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3359. if ${ac_cv_prog_cc_c89+:} false; then :
  3360. $as_echo_n "(cached) " >&6
  3361. else
  3362. ac_cv_prog_cc_c89=no
  3363. ac_save_CC=$CC
  3364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3365. /* end confdefs.h. */
  3366. #include <stdarg.h>
  3367. #include <stdio.h>
  3368. struct stat;
  3369. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3370. struct buf { int x; };
  3371. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3372. static char *e (p, i)
  3373. char **p;
  3374. int i;
  3375. {
  3376. return p[i];
  3377. }
  3378. static char *f (char * (*g) (char **, int), char **p, ...)
  3379. {
  3380. char *s;
  3381. va_list v;
  3382. va_start (v,p);
  3383. s = g (p, va_arg (v,int));
  3384. va_end (v);
  3385. return s;
  3386. }
  3387. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3388. function prototypes and stuff, but not '\xHH' hex character constants.
  3389. These don't provoke an error unfortunately, instead are silently treated
  3390. as 'x'. The following induces an error, until -std is added to get
  3391. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3392. array size at least. It's necessary to write '\x00'==0 to get something
  3393. that's true only with -std. */
  3394. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3395. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3396. inside strings and character constants. */
  3397. #define FOO(x) 'x'
  3398. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3399. int test (int i, double x);
  3400. struct s1 {int (*f) (int a);};
  3401. struct s2 {int (*f) (double a);};
  3402. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3403. int argc;
  3404. char **argv;
  3405. int
  3406. main ()
  3407. {
  3408. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3409. ;
  3410. return 0;
  3411. }
  3412. _ACEOF
  3413. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3414. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3415. do
  3416. CC="$ac_save_CC $ac_arg"
  3417. if ac_fn_c_try_compile "$LINENO"; then :
  3418. ac_cv_prog_cc_c89=$ac_arg
  3419. fi
  3420. rm -f core conftest.err conftest.$ac_objext
  3421. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3422. done
  3423. rm -f conftest.$ac_ext
  3424. CC=$ac_save_CC
  3425. fi
  3426. # AC_CACHE_VAL
  3427. case "x$ac_cv_prog_cc_c89" in
  3428. x)
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3430. $as_echo "none needed" >&6; } ;;
  3431. xno)
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3433. $as_echo "unsupported" >&6; } ;;
  3434. *)
  3435. CC="$CC $ac_cv_prog_cc_c89"
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3437. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3438. esac
  3439. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3440. fi
  3441. ac_ext=c
  3442. ac_cpp='$CPP $CPPFLAGS'
  3443. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3444. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3445. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3447. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3448. if ${ac_cv_path_SED+:} false; then :
  3449. $as_echo_n "(cached) " >&6
  3450. else
  3451. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3452. for ac_i in 1 2 3 4 5 6 7; do
  3453. ac_script="$ac_script$as_nl$ac_script"
  3454. done
  3455. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3456. { ac_script=; unset ac_script;}
  3457. if test -z "$SED"; then
  3458. ac_path_SED_found=false
  3459. # Loop through the user's path and test for each of PROGNAME-LIST
  3460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3461. for as_dir in $PATH
  3462. do
  3463. IFS=$as_save_IFS
  3464. test -z "$as_dir" && as_dir=.
  3465. for ac_prog in sed gsed; do
  3466. for ac_exec_ext in '' $ac_executable_extensions; do
  3467. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3468. as_fn_executable_p "$ac_path_SED" || continue
  3469. # Check for GNU ac_path_SED and select it if it is found.
  3470. # Check for GNU $ac_path_SED
  3471. case `"$ac_path_SED" --version 2>&1` in
  3472. *GNU*)
  3473. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3474. *)
  3475. ac_count=0
  3476. $as_echo_n 0123456789 >"conftest.in"
  3477. while :
  3478. do
  3479. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3480. mv "conftest.tmp" "conftest.in"
  3481. cp "conftest.in" "conftest.nl"
  3482. $as_echo '' >> "conftest.nl"
  3483. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3484. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3485. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3486. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3487. # Best one so far, save it but keep looking for a better one
  3488. ac_cv_path_SED="$ac_path_SED"
  3489. ac_path_SED_max=$ac_count
  3490. fi
  3491. # 10*(2^10) chars as input seems more than enough
  3492. test $ac_count -gt 10 && break
  3493. done
  3494. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3495. esac
  3496. $ac_path_SED_found && break 3
  3497. done
  3498. done
  3499. done
  3500. IFS=$as_save_IFS
  3501. if test -z "$ac_cv_path_SED"; then
  3502. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3503. fi
  3504. else
  3505. ac_cv_path_SED=$SED
  3506. fi
  3507. fi
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3509. $as_echo "$ac_cv_path_SED" >&6; }
  3510. SED="$ac_cv_path_SED"
  3511. rm -f conftest.sed
  3512. test -z "$SED" && SED=sed
  3513. Xsed="$SED -e 1s/^X//"
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3515. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3516. if ${ac_cv_path_GREP+:} false; then :
  3517. $as_echo_n "(cached) " >&6
  3518. else
  3519. if test -z "$GREP"; then
  3520. ac_path_GREP_found=false
  3521. # Loop through the user's path and test for each of PROGNAME-LIST
  3522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3523. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3524. do
  3525. IFS=$as_save_IFS
  3526. test -z "$as_dir" && as_dir=.
  3527. for ac_prog in grep ggrep; do
  3528. for ac_exec_ext in '' $ac_executable_extensions; do
  3529. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3530. as_fn_executable_p "$ac_path_GREP" || continue
  3531. # Check for GNU ac_path_GREP and select it if it is found.
  3532. # Check for GNU $ac_path_GREP
  3533. case `"$ac_path_GREP" --version 2>&1` in
  3534. *GNU*)
  3535. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3536. *)
  3537. ac_count=0
  3538. $as_echo_n 0123456789 >"conftest.in"
  3539. while :
  3540. do
  3541. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3542. mv "conftest.tmp" "conftest.in"
  3543. cp "conftest.in" "conftest.nl"
  3544. $as_echo 'GREP' >> "conftest.nl"
  3545. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3546. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3547. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3548. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3549. # Best one so far, save it but keep looking for a better one
  3550. ac_cv_path_GREP="$ac_path_GREP"
  3551. ac_path_GREP_max=$ac_count
  3552. fi
  3553. # 10*(2^10) chars as input seems more than enough
  3554. test $ac_count -gt 10 && break
  3555. done
  3556. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3557. esac
  3558. $ac_path_GREP_found && break 3
  3559. done
  3560. done
  3561. done
  3562. IFS=$as_save_IFS
  3563. if test -z "$ac_cv_path_GREP"; then
  3564. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3565. fi
  3566. else
  3567. ac_cv_path_GREP=$GREP
  3568. fi
  3569. fi
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3571. $as_echo "$ac_cv_path_GREP" >&6; }
  3572. GREP="$ac_cv_path_GREP"
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3574. $as_echo_n "checking for egrep... " >&6; }
  3575. if ${ac_cv_path_EGREP+:} false; then :
  3576. $as_echo_n "(cached) " >&6
  3577. else
  3578. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3579. then ac_cv_path_EGREP="$GREP -E"
  3580. else
  3581. if test -z "$EGREP"; then
  3582. ac_path_EGREP_found=false
  3583. # Loop through the user's path and test for each of PROGNAME-LIST
  3584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3585. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3586. do
  3587. IFS=$as_save_IFS
  3588. test -z "$as_dir" && as_dir=.
  3589. for ac_prog in egrep; do
  3590. for ac_exec_ext in '' $ac_executable_extensions; do
  3591. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3592. as_fn_executable_p "$ac_path_EGREP" || continue
  3593. # Check for GNU ac_path_EGREP and select it if it is found.
  3594. # Check for GNU $ac_path_EGREP
  3595. case `"$ac_path_EGREP" --version 2>&1` in
  3596. *GNU*)
  3597. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3598. *)
  3599. ac_count=0
  3600. $as_echo_n 0123456789 >"conftest.in"
  3601. while :
  3602. do
  3603. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3604. mv "conftest.tmp" "conftest.in"
  3605. cp "conftest.in" "conftest.nl"
  3606. $as_echo 'EGREP' >> "conftest.nl"
  3607. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3608. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3609. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3610. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3611. # Best one so far, save it but keep looking for a better one
  3612. ac_cv_path_EGREP="$ac_path_EGREP"
  3613. ac_path_EGREP_max=$ac_count
  3614. fi
  3615. # 10*(2^10) chars as input seems more than enough
  3616. test $ac_count -gt 10 && break
  3617. done
  3618. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3619. esac
  3620. $ac_path_EGREP_found && break 3
  3621. done
  3622. done
  3623. done
  3624. IFS=$as_save_IFS
  3625. if test -z "$ac_cv_path_EGREP"; then
  3626. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3627. fi
  3628. else
  3629. ac_cv_path_EGREP=$EGREP
  3630. fi
  3631. fi
  3632. fi
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3634. $as_echo "$ac_cv_path_EGREP" >&6; }
  3635. EGREP="$ac_cv_path_EGREP"
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3637. $as_echo_n "checking for fgrep... " >&6; }
  3638. if ${ac_cv_path_FGREP+:} false; then :
  3639. $as_echo_n "(cached) " >&6
  3640. else
  3641. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3642. then ac_cv_path_FGREP="$GREP -F"
  3643. else
  3644. if test -z "$FGREP"; then
  3645. ac_path_FGREP_found=false
  3646. # Loop through the user's path and test for each of PROGNAME-LIST
  3647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3648. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3649. do
  3650. IFS=$as_save_IFS
  3651. test -z "$as_dir" && as_dir=.
  3652. for ac_prog in fgrep; do
  3653. for ac_exec_ext in '' $ac_executable_extensions; do
  3654. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3655. as_fn_executable_p "$ac_path_FGREP" || continue
  3656. # Check for GNU ac_path_FGREP and select it if it is found.
  3657. # Check for GNU $ac_path_FGREP
  3658. case `"$ac_path_FGREP" --version 2>&1` in
  3659. *GNU*)
  3660. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3661. *)
  3662. ac_count=0
  3663. $as_echo_n 0123456789 >"conftest.in"
  3664. while :
  3665. do
  3666. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3667. mv "conftest.tmp" "conftest.in"
  3668. cp "conftest.in" "conftest.nl"
  3669. $as_echo 'FGREP' >> "conftest.nl"
  3670. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3671. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3672. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3673. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3674. # Best one so far, save it but keep looking for a better one
  3675. ac_cv_path_FGREP="$ac_path_FGREP"
  3676. ac_path_FGREP_max=$ac_count
  3677. fi
  3678. # 10*(2^10) chars as input seems more than enough
  3679. test $ac_count -gt 10 && break
  3680. done
  3681. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3682. esac
  3683. $ac_path_FGREP_found && break 3
  3684. done
  3685. done
  3686. done
  3687. IFS=$as_save_IFS
  3688. if test -z "$ac_cv_path_FGREP"; then
  3689. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3690. fi
  3691. else
  3692. ac_cv_path_FGREP=$FGREP
  3693. fi
  3694. fi
  3695. fi
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3697. $as_echo "$ac_cv_path_FGREP" >&6; }
  3698. FGREP="$ac_cv_path_FGREP"
  3699. test -z "$GREP" && GREP=grep
  3700. # Check whether --with-gnu-ld was given.
  3701. if test "${with_gnu_ld+set}" = set; then :
  3702. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3703. else
  3704. with_gnu_ld=no
  3705. fi
  3706. ac_prog=ld
  3707. if test "$GCC" = yes; then
  3708. # Check if gcc -print-prog-name=ld gives a path.
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3710. $as_echo_n "checking for ld used by $CC... " >&6; }
  3711. case $host in
  3712. *-*-mingw*)
  3713. # gcc leaves a trailing carriage return which upsets mingw
  3714. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3715. *)
  3716. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3717. esac
  3718. case $ac_prog in
  3719. # Accept absolute paths.
  3720. [\\/]* | ?:[\\/]*)
  3721. re_direlt='/[^/][^/]*/\.\./'
  3722. # Canonicalize the pathname of ld
  3723. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3724. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3725. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3726. done
  3727. test -z "$LD" && LD="$ac_prog"
  3728. ;;
  3729. "")
  3730. # If it fails, then pretend we aren't using GCC.
  3731. ac_prog=ld
  3732. ;;
  3733. *)
  3734. # If it is relative, then search for the first ld in PATH.
  3735. with_gnu_ld=unknown
  3736. ;;
  3737. esac
  3738. elif test "$with_gnu_ld" = yes; then
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3740. $as_echo_n "checking for GNU ld... " >&6; }
  3741. else
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3743. $as_echo_n "checking for non-GNU ld... " >&6; }
  3744. fi
  3745. if ${lt_cv_path_LD+:} false; then :
  3746. $as_echo_n "(cached) " >&6
  3747. else
  3748. if test -z "$LD"; then
  3749. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3750. for ac_dir in $PATH; do
  3751. IFS="$lt_save_ifs"
  3752. test -z "$ac_dir" && ac_dir=.
  3753. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3754. lt_cv_path_LD="$ac_dir/$ac_prog"
  3755. # Check to see if the program is GNU ld. I'd rather use --version,
  3756. # but apparently some variants of GNU ld only accept -v.
  3757. # Break only if it was the GNU/non-GNU ld that we prefer.
  3758. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3759. *GNU* | *'with BFD'*)
  3760. test "$with_gnu_ld" != no && break
  3761. ;;
  3762. *)
  3763. test "$with_gnu_ld" != yes && break
  3764. ;;
  3765. esac
  3766. fi
  3767. done
  3768. IFS="$lt_save_ifs"
  3769. else
  3770. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3771. fi
  3772. fi
  3773. LD="$lt_cv_path_LD"
  3774. if test -n "$LD"; then
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3776. $as_echo "$LD" >&6; }
  3777. else
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3779. $as_echo "no" >&6; }
  3780. fi
  3781. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3783. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3784. if ${lt_cv_prog_gnu_ld+:} false; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3788. case `$LD -v 2>&1 </dev/null` in
  3789. *GNU* | *'with BFD'*)
  3790. lt_cv_prog_gnu_ld=yes
  3791. ;;
  3792. *)
  3793. lt_cv_prog_gnu_ld=no
  3794. ;;
  3795. esac
  3796. fi
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3798. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3799. with_gnu_ld=$lt_cv_prog_gnu_ld
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3801. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3802. if ${lt_cv_path_NM+:} false; then :
  3803. $as_echo_n "(cached) " >&6
  3804. else
  3805. if test -n "$NM"; then
  3806. # Let the user override the test.
  3807. lt_cv_path_NM="$NM"
  3808. else
  3809. lt_nm_to_check="${ac_tool_prefix}nm"
  3810. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3811. lt_nm_to_check="$lt_nm_to_check nm"
  3812. fi
  3813. for lt_tmp_nm in $lt_nm_to_check; do
  3814. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3815. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3816. IFS="$lt_save_ifs"
  3817. test -z "$ac_dir" && ac_dir=.
  3818. tmp_nm="$ac_dir/$lt_tmp_nm"
  3819. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3820. # Check to see if the nm accepts a BSD-compat flag.
  3821. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3822. # nm: unknown option "B" ignored
  3823. # Tru64's nm complains that /dev/null is an invalid object file
  3824. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3825. */dev/null* | *'Invalid file or object type'*)
  3826. lt_cv_path_NM="$tmp_nm -B"
  3827. break
  3828. ;;
  3829. *)
  3830. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3831. */dev/null*)
  3832. lt_cv_path_NM="$tmp_nm -p"
  3833. break
  3834. ;;
  3835. *)
  3836. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3837. continue # so that we can try to find one that supports BSD flags
  3838. ;;
  3839. esac
  3840. ;;
  3841. esac
  3842. fi
  3843. done
  3844. IFS="$lt_save_ifs"
  3845. done
  3846. : ${lt_cv_path_NM=no}
  3847. fi
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3850. $as_echo "$lt_cv_path_NM" >&6; }
  3851. if test "$lt_cv_path_NM" != "no"; then
  3852. NM="$lt_cv_path_NM"
  3853. else
  3854. # Didn't find any BSD compatible name lister, look for dumpbin.
  3855. if test -n "$DUMPBIN"; then :
  3856. # Let the user override the test.
  3857. else
  3858. if test -n "$ac_tool_prefix"; then
  3859. for ac_prog in dumpbin "link -dump"
  3860. do
  3861. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3862. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3864. $as_echo_n "checking for $ac_word... " >&6; }
  3865. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3866. $as_echo_n "(cached) " >&6
  3867. else
  3868. if test -n "$DUMPBIN"; then
  3869. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3870. else
  3871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3872. for as_dir in $PATH
  3873. do
  3874. IFS=$as_save_IFS
  3875. test -z "$as_dir" && as_dir=.
  3876. for ac_exec_ext in '' $ac_executable_extensions; do
  3877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3878. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3880. break 2
  3881. fi
  3882. done
  3883. done
  3884. IFS=$as_save_IFS
  3885. fi
  3886. fi
  3887. DUMPBIN=$ac_cv_prog_DUMPBIN
  3888. if test -n "$DUMPBIN"; then
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3890. $as_echo "$DUMPBIN" >&6; }
  3891. else
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3893. $as_echo "no" >&6; }
  3894. fi
  3895. test -n "$DUMPBIN" && break
  3896. done
  3897. fi
  3898. if test -z "$DUMPBIN"; then
  3899. ac_ct_DUMPBIN=$DUMPBIN
  3900. for ac_prog in dumpbin "link -dump"
  3901. do
  3902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3903. set dummy $ac_prog; ac_word=$2
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3905. $as_echo_n "checking for $ac_word... " >&6; }
  3906. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3907. $as_echo_n "(cached) " >&6
  3908. else
  3909. if test -n "$ac_ct_DUMPBIN"; then
  3910. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3911. else
  3912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3913. for as_dir in $PATH
  3914. do
  3915. IFS=$as_save_IFS
  3916. test -z "$as_dir" && as_dir=.
  3917. for ac_exec_ext in '' $ac_executable_extensions; do
  3918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3919. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3921. break 2
  3922. fi
  3923. done
  3924. done
  3925. IFS=$as_save_IFS
  3926. fi
  3927. fi
  3928. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3929. if test -n "$ac_ct_DUMPBIN"; then
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3931. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3932. else
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3934. $as_echo "no" >&6; }
  3935. fi
  3936. test -n "$ac_ct_DUMPBIN" && break
  3937. done
  3938. if test "x$ac_ct_DUMPBIN" = x; then
  3939. DUMPBIN=":"
  3940. else
  3941. case $cross_compiling:$ac_tool_warned in
  3942. yes:)
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3945. ac_tool_warned=yes ;;
  3946. esac
  3947. DUMPBIN=$ac_ct_DUMPBIN
  3948. fi
  3949. fi
  3950. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3951. *COFF*)
  3952. DUMPBIN="$DUMPBIN -symbols"
  3953. ;;
  3954. *)
  3955. DUMPBIN=:
  3956. ;;
  3957. esac
  3958. fi
  3959. if test "$DUMPBIN" != ":"; then
  3960. NM="$DUMPBIN"
  3961. fi
  3962. fi
  3963. test -z "$NM" && NM=nm
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3965. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3966. if ${lt_cv_nm_interface+:} false; then :
  3967. $as_echo_n "(cached) " >&6
  3968. else
  3969. lt_cv_nm_interface="BSD nm"
  3970. echo "int some_variable = 0;" > conftest.$ac_ext
  3971. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3972. (eval "$ac_compile" 2>conftest.err)
  3973. cat conftest.err >&5
  3974. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3975. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3976. cat conftest.err >&5
  3977. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3978. cat conftest.out >&5
  3979. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3980. lt_cv_nm_interface="MS dumpbin"
  3981. fi
  3982. rm -f conftest*
  3983. fi
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3985. $as_echo "$lt_cv_nm_interface" >&6; }
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3987. $as_echo_n "checking whether ln -s works... " >&6; }
  3988. LN_S=$as_ln_s
  3989. if test "$LN_S" = "ln -s"; then
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3991. $as_echo "yes" >&6; }
  3992. else
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3994. $as_echo "no, using $LN_S" >&6; }
  3995. fi
  3996. # find the maximum length of command line arguments
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3998. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3999. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4000. $as_echo_n "(cached) " >&6
  4001. else
  4002. i=0
  4003. teststring="ABCD"
  4004. case $build_os in
  4005. msdosdjgpp*)
  4006. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4007. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4008. # during glob expansion). Even if it were fixed, the result of this
  4009. # check would be larger than it should be.
  4010. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4011. ;;
  4012. gnu*)
  4013. # Under GNU Hurd, this test is not required because there is
  4014. # no limit to the length of command line arguments.
  4015. # Libtool will interpret -1 as no limit whatsoever
  4016. lt_cv_sys_max_cmd_len=-1;
  4017. ;;
  4018. cygwin* | mingw* | cegcc*)
  4019. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4020. # about 5 minutes as the teststring grows exponentially.
  4021. # Worse, since 9x/ME are not pre-emptively multitasking,
  4022. # you end up with a "frozen" computer, even though with patience
  4023. # the test eventually succeeds (with a max line length of 256k).
  4024. # Instead, let's just punt: use the minimum linelength reported by
  4025. # all of the supported platforms: 8192 (on NT/2K/XP).
  4026. lt_cv_sys_max_cmd_len=8192;
  4027. ;;
  4028. mint*)
  4029. # On MiNT this can take a long time and run out of memory.
  4030. lt_cv_sys_max_cmd_len=8192;
  4031. ;;
  4032. amigaos*)
  4033. # On AmigaOS with pdksh, this test takes hours, literally.
  4034. # So we just punt and use a minimum line length of 8192.
  4035. lt_cv_sys_max_cmd_len=8192;
  4036. ;;
  4037. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4038. # This has been around since 386BSD, at least. Likely further.
  4039. if test -x /sbin/sysctl; then
  4040. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4041. elif test -x /usr/sbin/sysctl; then
  4042. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4043. else
  4044. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4045. fi
  4046. # And add a safety zone
  4047. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4048. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4049. ;;
  4050. interix*)
  4051. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4052. lt_cv_sys_max_cmd_len=196608
  4053. ;;
  4054. os2*)
  4055. # The test takes a long time on OS/2.
  4056. lt_cv_sys_max_cmd_len=8192
  4057. ;;
  4058. osf*)
  4059. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4060. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4061. # nice to cause kernel panics so lets avoid the loop below.
  4062. # First set a reasonable default.
  4063. lt_cv_sys_max_cmd_len=16384
  4064. #
  4065. if test -x /sbin/sysconfig; then
  4066. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4067. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4068. esac
  4069. fi
  4070. ;;
  4071. sco3.2v5*)
  4072. lt_cv_sys_max_cmd_len=102400
  4073. ;;
  4074. sysv5* | sco5v6* | sysv4.2uw2*)
  4075. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4076. if test -n "$kargmax"; then
  4077. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4078. else
  4079. lt_cv_sys_max_cmd_len=32768
  4080. fi
  4081. ;;
  4082. *)
  4083. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4084. if test -n "$lt_cv_sys_max_cmd_len"; then
  4085. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4086. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4087. else
  4088. # Make teststring a little bigger before we do anything with it.
  4089. # a 1K string should be a reasonable start.
  4090. for i in 1 2 3 4 5 6 7 8 ; do
  4091. teststring=$teststring$teststring
  4092. done
  4093. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4094. # If test is not a shell built-in, we'll probably end up computing a
  4095. # maximum length that is only half of the actual maximum length, but
  4096. # we can't tell.
  4097. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4098. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4099. test $i != 17 # 1/2 MB should be enough
  4100. do
  4101. i=`expr $i + 1`
  4102. teststring=$teststring$teststring
  4103. done
  4104. # Only check the string length outside the loop.
  4105. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4106. teststring=
  4107. # Add a significant safety factor because C++ compilers can tack on
  4108. # massive amounts of additional arguments before passing them to the
  4109. # linker. It appears as though 1/2 is a usable value.
  4110. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4111. fi
  4112. ;;
  4113. esac
  4114. fi
  4115. if test -n $lt_cv_sys_max_cmd_len ; then
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4117. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4118. else
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4120. $as_echo "none" >&6; }
  4121. fi
  4122. max_cmd_len=$lt_cv_sys_max_cmd_len
  4123. : ${CP="cp -f"}
  4124. : ${MV="mv -f"}
  4125. : ${RM="rm -f"}
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4127. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4128. # Try some XSI features
  4129. xsi_shell=no
  4130. ( _lt_dummy="a/b/c"
  4131. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4132. = c,a/b,b/c, \
  4133. && eval 'test $(( 1 + 1 )) -eq 2 \
  4134. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4135. && xsi_shell=yes
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4137. $as_echo "$xsi_shell" >&6; }
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4139. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4140. lt_shell_append=no
  4141. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4142. >/dev/null 2>&1 \
  4143. && lt_shell_append=yes
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4145. $as_echo "$lt_shell_append" >&6; }
  4146. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4147. lt_unset=unset
  4148. else
  4149. lt_unset=false
  4150. fi
  4151. # test EBCDIC or ASCII
  4152. case `echo X|tr X '\101'` in
  4153. A) # ASCII based system
  4154. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4155. lt_SP2NL='tr \040 \012'
  4156. lt_NL2SP='tr \015\012 \040\040'
  4157. ;;
  4158. *) # EBCDIC based system
  4159. lt_SP2NL='tr \100 \n'
  4160. lt_NL2SP='tr \r\n \100\100'
  4161. ;;
  4162. esac
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4164. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4165. if ${lt_cv_to_host_file_cmd+:} false; then :
  4166. $as_echo_n "(cached) " >&6
  4167. else
  4168. case $host in
  4169. *-*-mingw* )
  4170. case $build in
  4171. *-*-mingw* ) # actually msys
  4172. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4173. ;;
  4174. *-*-cygwin* )
  4175. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4176. ;;
  4177. * ) # otherwise, assume *nix
  4178. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4179. ;;
  4180. esac
  4181. ;;
  4182. *-*-cygwin* )
  4183. case $build in
  4184. *-*-mingw* ) # actually msys
  4185. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4186. ;;
  4187. *-*-cygwin* )
  4188. lt_cv_to_host_file_cmd=func_convert_file_noop
  4189. ;;
  4190. * ) # otherwise, assume *nix
  4191. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4192. ;;
  4193. esac
  4194. ;;
  4195. * ) # unhandled hosts (and "normal" native builds)
  4196. lt_cv_to_host_file_cmd=func_convert_file_noop
  4197. ;;
  4198. esac
  4199. fi
  4200. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4202. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4204. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4205. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. #assume ordinary cross tools, or native build.
  4209. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4210. case $host in
  4211. *-*-mingw* )
  4212. case $build in
  4213. *-*-mingw* ) # actually msys
  4214. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4215. ;;
  4216. esac
  4217. ;;
  4218. esac
  4219. fi
  4220. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4222. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4224. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4225. if ${lt_cv_ld_reload_flag+:} false; then :
  4226. $as_echo_n "(cached) " >&6
  4227. else
  4228. lt_cv_ld_reload_flag='-r'
  4229. fi
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4231. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4232. reload_flag=$lt_cv_ld_reload_flag
  4233. case $reload_flag in
  4234. "" | " "*) ;;
  4235. *) reload_flag=" $reload_flag" ;;
  4236. esac
  4237. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4238. case $host_os in
  4239. cygwin* | mingw* | pw32* | cegcc*)
  4240. if test "$GCC" != yes; then
  4241. reload_cmds=false
  4242. fi
  4243. ;;
  4244. darwin*)
  4245. if test "$GCC" = yes; then
  4246. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4247. else
  4248. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4249. fi
  4250. ;;
  4251. esac
  4252. if test -n "$ac_tool_prefix"; then
  4253. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4254. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4256. $as_echo_n "checking for $ac_word... " >&6; }
  4257. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4258. $as_echo_n "(cached) " >&6
  4259. else
  4260. if test -n "$OBJDUMP"; then
  4261. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4262. else
  4263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4264. for as_dir in $PATH
  4265. do
  4266. IFS=$as_save_IFS
  4267. test -z "$as_dir" && as_dir=.
  4268. for ac_exec_ext in '' $ac_executable_extensions; do
  4269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4270. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4272. break 2
  4273. fi
  4274. done
  4275. done
  4276. IFS=$as_save_IFS
  4277. fi
  4278. fi
  4279. OBJDUMP=$ac_cv_prog_OBJDUMP
  4280. if test -n "$OBJDUMP"; then
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4282. $as_echo "$OBJDUMP" >&6; }
  4283. else
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4285. $as_echo "no" >&6; }
  4286. fi
  4287. fi
  4288. if test -z "$ac_cv_prog_OBJDUMP"; then
  4289. ac_ct_OBJDUMP=$OBJDUMP
  4290. # Extract the first word of "objdump", so it can be a program name with args.
  4291. set dummy objdump; ac_word=$2
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4293. $as_echo_n "checking for $ac_word... " >&6; }
  4294. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4295. $as_echo_n "(cached) " >&6
  4296. else
  4297. if test -n "$ac_ct_OBJDUMP"; then
  4298. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4299. else
  4300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4301. for as_dir in $PATH
  4302. do
  4303. IFS=$as_save_IFS
  4304. test -z "$as_dir" && as_dir=.
  4305. for ac_exec_ext in '' $ac_executable_extensions; do
  4306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4307. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4309. break 2
  4310. fi
  4311. done
  4312. done
  4313. IFS=$as_save_IFS
  4314. fi
  4315. fi
  4316. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4317. if test -n "$ac_ct_OBJDUMP"; then
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4319. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4320. else
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4322. $as_echo "no" >&6; }
  4323. fi
  4324. if test "x$ac_ct_OBJDUMP" = x; then
  4325. OBJDUMP="false"
  4326. else
  4327. case $cross_compiling:$ac_tool_warned in
  4328. yes:)
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4331. ac_tool_warned=yes ;;
  4332. esac
  4333. OBJDUMP=$ac_ct_OBJDUMP
  4334. fi
  4335. else
  4336. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4337. fi
  4338. test -z "$OBJDUMP" && OBJDUMP=objdump
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4340. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4341. if ${lt_cv_deplibs_check_method+:} false; then :
  4342. $as_echo_n "(cached) " >&6
  4343. else
  4344. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4345. lt_cv_file_magic_test_file=
  4346. lt_cv_deplibs_check_method='unknown'
  4347. # Need to set the preceding variable on all platforms that support
  4348. # interlibrary dependencies.
  4349. # 'none' -- dependencies not supported.
  4350. # `unknown' -- same as none, but documents that we really don't know.
  4351. # 'pass_all' -- all dependencies passed with no checks.
  4352. # 'test_compile' -- check by making test program.
  4353. # 'file_magic [[regex]]' -- check by looking for files in library path
  4354. # which responds to the $file_magic_cmd with a given extended regex.
  4355. # If you have `file' or equivalent on your system and you're not sure
  4356. # whether `pass_all' will *always* work, you probably want this one.
  4357. case $host_os in
  4358. aix[4-9]*)
  4359. lt_cv_deplibs_check_method=pass_all
  4360. ;;
  4361. beos*)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. bsdi[45]*)
  4365. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4366. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4367. lt_cv_file_magic_test_file=/shlib/libc.so
  4368. ;;
  4369. cygwin*)
  4370. # func_win32_libid is a shell function defined in ltmain.sh
  4371. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4372. lt_cv_file_magic_cmd='func_win32_libid'
  4373. lt_cv_deplibs_check_method=pass_all
  4374. ;;
  4375. mingw* | pw32*)
  4376. # Base MSYS/MinGW do not provide the 'file' command needed by
  4377. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4378. # unless we find 'file', for example because we are cross-compiling.
  4379. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4380. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4381. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4382. lt_cv_file_magic_cmd='func_win32_libid'
  4383. else
  4384. # Keep this pattern in sync with the one in func_win32_libid.
  4385. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4386. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4387. fi
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. cegcc*)
  4391. # use the weaker test based on 'objdump'. See mingw*.
  4392. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4393. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4394. ;;
  4395. darwin* | rhapsody*)
  4396. lt_cv_deplibs_check_method=pass_all
  4397. ;;
  4398. freebsd* | dragonfly*)
  4399. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4400. case $host_cpu in
  4401. i*86 )
  4402. # Not sure whether the presence of OpenBSD here was a mistake.
  4403. # Let's accept both of them until this is cleared up.
  4404. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4405. lt_cv_file_magic_cmd=/usr/bin/file
  4406. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4407. ;;
  4408. esac
  4409. else
  4410. lt_cv_deplibs_check_method=pass_all
  4411. fi
  4412. ;;
  4413. gnu*)
  4414. lt_cv_deplibs_check_method=pass_all
  4415. ;;
  4416. haiku*)
  4417. lt_cv_deplibs_check_method=pass_all
  4418. ;;
  4419. hpux10.20* | hpux11*)
  4420. lt_cv_file_magic_cmd=/usr/bin/file
  4421. case $host_cpu in
  4422. ia64*)
  4423. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4424. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4425. ;;
  4426. hppa*64*)
  4427. 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]'
  4428. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4429. ;;
  4430. *)
  4431. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4432. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4433. ;;
  4434. esac
  4435. ;;
  4436. interix[3-9]*)
  4437. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4438. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4439. ;;
  4440. irix5* | irix6* | nonstopux*)
  4441. case $LD in
  4442. *-32|*"-32 ") libmagic=32-bit;;
  4443. *-n32|*"-n32 ") libmagic=N32;;
  4444. *-64|*"-64 ") libmagic=64-bit;;
  4445. *) libmagic=never-match;;
  4446. esac
  4447. lt_cv_deplibs_check_method=pass_all
  4448. ;;
  4449. # This must be glibc/ELF.
  4450. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4451. lt_cv_deplibs_check_method=pass_all
  4452. ;;
  4453. netbsd*)
  4454. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4455. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4456. else
  4457. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4458. fi
  4459. ;;
  4460. newos6*)
  4461. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4462. lt_cv_file_magic_cmd=/usr/bin/file
  4463. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4464. ;;
  4465. *nto* | *qnx*)
  4466. lt_cv_deplibs_check_method=pass_all
  4467. ;;
  4468. openbsd*)
  4469. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4470. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4471. else
  4472. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4473. fi
  4474. ;;
  4475. osf3* | osf4* | osf5*)
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. rdos*)
  4479. lt_cv_deplibs_check_method=pass_all
  4480. ;;
  4481. solaris*)
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. sysv4 | sysv4.3*)
  4488. case $host_vendor in
  4489. motorola)
  4490. 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]'
  4491. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4492. ;;
  4493. ncr)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. sequent)
  4497. lt_cv_file_magic_cmd='/bin/file'
  4498. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4499. ;;
  4500. sni)
  4501. lt_cv_file_magic_cmd='/bin/file'
  4502. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4503. lt_cv_file_magic_test_file=/lib/libc.so
  4504. ;;
  4505. siemens)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. pc)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. esac
  4512. ;;
  4513. tpf*)
  4514. lt_cv_deplibs_check_method=pass_all
  4515. ;;
  4516. esac
  4517. fi
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4519. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4520. file_magic_glob=
  4521. want_nocaseglob=no
  4522. if test "$build" = "$host"; then
  4523. case $host_os in
  4524. mingw* | pw32*)
  4525. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4526. want_nocaseglob=yes
  4527. else
  4528. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4529. fi
  4530. ;;
  4531. esac
  4532. fi
  4533. file_magic_cmd=$lt_cv_file_magic_cmd
  4534. deplibs_check_method=$lt_cv_deplibs_check_method
  4535. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4536. if test -n "$ac_tool_prefix"; then
  4537. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4538. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4540. $as_echo_n "checking for $ac_word... " >&6; }
  4541. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. if test -n "$DLLTOOL"; then
  4545. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4546. else
  4547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4548. for as_dir in $PATH
  4549. do
  4550. IFS=$as_save_IFS
  4551. test -z "$as_dir" && as_dir=.
  4552. for ac_exec_ext in '' $ac_executable_extensions; do
  4553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4554. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4556. break 2
  4557. fi
  4558. done
  4559. done
  4560. IFS=$as_save_IFS
  4561. fi
  4562. fi
  4563. DLLTOOL=$ac_cv_prog_DLLTOOL
  4564. if test -n "$DLLTOOL"; then
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4566. $as_echo "$DLLTOOL" >&6; }
  4567. else
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4569. $as_echo "no" >&6; }
  4570. fi
  4571. fi
  4572. if test -z "$ac_cv_prog_DLLTOOL"; then
  4573. ac_ct_DLLTOOL=$DLLTOOL
  4574. # Extract the first word of "dlltool", so it can be a program name with args.
  4575. set dummy dlltool; ac_word=$2
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4577. $as_echo_n "checking for $ac_word... " >&6; }
  4578. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. if test -n "$ac_ct_DLLTOOL"; then
  4582. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4583. else
  4584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4585. for as_dir in $PATH
  4586. do
  4587. IFS=$as_save_IFS
  4588. test -z "$as_dir" && as_dir=.
  4589. for ac_exec_ext in '' $ac_executable_extensions; do
  4590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4591. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4593. break 2
  4594. fi
  4595. done
  4596. done
  4597. IFS=$as_save_IFS
  4598. fi
  4599. fi
  4600. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4601. if test -n "$ac_ct_DLLTOOL"; then
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4603. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4604. else
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4606. $as_echo "no" >&6; }
  4607. fi
  4608. if test "x$ac_ct_DLLTOOL" = x; then
  4609. DLLTOOL="false"
  4610. else
  4611. case $cross_compiling:$ac_tool_warned in
  4612. yes:)
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4615. ac_tool_warned=yes ;;
  4616. esac
  4617. DLLTOOL=$ac_ct_DLLTOOL
  4618. fi
  4619. else
  4620. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4621. fi
  4622. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4624. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4625. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4629. case $host_os in
  4630. cygwin* | mingw* | pw32* | cegcc*)
  4631. # two different shell functions defined in ltmain.sh
  4632. # decide which to use based on capabilities of $DLLTOOL
  4633. case `$DLLTOOL --help 2>&1` in
  4634. *--identify-strict*)
  4635. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4636. ;;
  4637. *)
  4638. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4639. ;;
  4640. esac
  4641. ;;
  4642. *)
  4643. # fallback: assume linklib IS sharedlib
  4644. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4645. ;;
  4646. esac
  4647. fi
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4649. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4650. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4651. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4652. if test -n "$ac_tool_prefix"; then
  4653. for ac_prog in ar
  4654. do
  4655. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4656. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4658. $as_echo_n "checking for $ac_word... " >&6; }
  4659. if ${ac_cv_prog_AR+:} false; then :
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. if test -n "$AR"; then
  4663. ac_cv_prog_AR="$AR" # Let the user override the test.
  4664. else
  4665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666. for as_dir in $PATH
  4667. do
  4668. IFS=$as_save_IFS
  4669. test -z "$as_dir" && as_dir=.
  4670. for ac_exec_ext in '' $ac_executable_extensions; do
  4671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4672. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4674. break 2
  4675. fi
  4676. done
  4677. done
  4678. IFS=$as_save_IFS
  4679. fi
  4680. fi
  4681. AR=$ac_cv_prog_AR
  4682. if test -n "$AR"; then
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4684. $as_echo "$AR" >&6; }
  4685. else
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4687. $as_echo "no" >&6; }
  4688. fi
  4689. test -n "$AR" && break
  4690. done
  4691. fi
  4692. if test -z "$AR"; then
  4693. ac_ct_AR=$AR
  4694. for ac_prog in ar
  4695. do
  4696. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4697. set dummy $ac_prog; ac_word=$2
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4699. $as_echo_n "checking for $ac_word... " >&6; }
  4700. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4701. $as_echo_n "(cached) " >&6
  4702. else
  4703. if test -n "$ac_ct_AR"; then
  4704. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4705. else
  4706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4707. for as_dir in $PATH
  4708. do
  4709. IFS=$as_save_IFS
  4710. test -z "$as_dir" && as_dir=.
  4711. for ac_exec_ext in '' $ac_executable_extensions; do
  4712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4713. ac_cv_prog_ac_ct_AR="$ac_prog"
  4714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4715. break 2
  4716. fi
  4717. done
  4718. done
  4719. IFS=$as_save_IFS
  4720. fi
  4721. fi
  4722. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4723. if test -n "$ac_ct_AR"; then
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4725. $as_echo "$ac_ct_AR" >&6; }
  4726. else
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4728. $as_echo "no" >&6; }
  4729. fi
  4730. test -n "$ac_ct_AR" && break
  4731. done
  4732. if test "x$ac_ct_AR" = x; then
  4733. AR="false"
  4734. else
  4735. case $cross_compiling:$ac_tool_warned in
  4736. yes:)
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4739. ac_tool_warned=yes ;;
  4740. esac
  4741. AR=$ac_ct_AR
  4742. fi
  4743. fi
  4744. : ${AR=ar}
  4745. : ${AR_FLAGS=cru}
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4747. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4748. if ${lt_cv_ar_at_file+:} false; then :
  4749. $as_echo_n "(cached) " >&6
  4750. else
  4751. lt_cv_ar_at_file=no
  4752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4753. /* end confdefs.h. */
  4754. int
  4755. main ()
  4756. {
  4757. ;
  4758. return 0;
  4759. }
  4760. _ACEOF
  4761. if ac_fn_c_try_compile "$LINENO"; then :
  4762. echo conftest.$ac_objext > conftest.lst
  4763. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4764. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4765. (eval $lt_ar_try) 2>&5
  4766. ac_status=$?
  4767. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4768. test $ac_status = 0; }
  4769. if test "$ac_status" -eq 0; then
  4770. # Ensure the archiver fails upon bogus file names.
  4771. rm -f conftest.$ac_objext libconftest.a
  4772. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4773. (eval $lt_ar_try) 2>&5
  4774. ac_status=$?
  4775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4776. test $ac_status = 0; }
  4777. if test "$ac_status" -ne 0; then
  4778. lt_cv_ar_at_file=@
  4779. fi
  4780. fi
  4781. rm -f conftest.* libconftest.a
  4782. fi
  4783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4784. fi
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4786. $as_echo "$lt_cv_ar_at_file" >&6; }
  4787. if test "x$lt_cv_ar_at_file" = xno; then
  4788. archiver_list_spec=
  4789. else
  4790. archiver_list_spec=$lt_cv_ar_at_file
  4791. fi
  4792. if test -n "$ac_tool_prefix"; then
  4793. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4794. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4796. $as_echo_n "checking for $ac_word... " >&6; }
  4797. if ${ac_cv_prog_STRIP+:} false; then :
  4798. $as_echo_n "(cached) " >&6
  4799. else
  4800. if test -n "$STRIP"; then
  4801. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4802. else
  4803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4804. for as_dir in $PATH
  4805. do
  4806. IFS=$as_save_IFS
  4807. test -z "$as_dir" && as_dir=.
  4808. for ac_exec_ext in '' $ac_executable_extensions; do
  4809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4810. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4812. break 2
  4813. fi
  4814. done
  4815. done
  4816. IFS=$as_save_IFS
  4817. fi
  4818. fi
  4819. STRIP=$ac_cv_prog_STRIP
  4820. if test -n "$STRIP"; then
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4822. $as_echo "$STRIP" >&6; }
  4823. else
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4825. $as_echo "no" >&6; }
  4826. fi
  4827. fi
  4828. if test -z "$ac_cv_prog_STRIP"; then
  4829. ac_ct_STRIP=$STRIP
  4830. # Extract the first word of "strip", so it can be a program name with args.
  4831. set dummy strip; ac_word=$2
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4833. $as_echo_n "checking for $ac_word... " >&6; }
  4834. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. if test -n "$ac_ct_STRIP"; then
  4838. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4839. else
  4840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4841. for as_dir in $PATH
  4842. do
  4843. IFS=$as_save_IFS
  4844. test -z "$as_dir" && as_dir=.
  4845. for ac_exec_ext in '' $ac_executable_extensions; do
  4846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4847. ac_cv_prog_ac_ct_STRIP="strip"
  4848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4849. break 2
  4850. fi
  4851. done
  4852. done
  4853. IFS=$as_save_IFS
  4854. fi
  4855. fi
  4856. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4857. if test -n "$ac_ct_STRIP"; then
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4859. $as_echo "$ac_ct_STRIP" >&6; }
  4860. else
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4862. $as_echo "no" >&6; }
  4863. fi
  4864. if test "x$ac_ct_STRIP" = x; then
  4865. STRIP=":"
  4866. else
  4867. case $cross_compiling:$ac_tool_warned in
  4868. yes:)
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4871. ac_tool_warned=yes ;;
  4872. esac
  4873. STRIP=$ac_ct_STRIP
  4874. fi
  4875. else
  4876. STRIP="$ac_cv_prog_STRIP"
  4877. fi
  4878. test -z "$STRIP" && STRIP=:
  4879. if test -n "$ac_tool_prefix"; then
  4880. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4881. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4883. $as_echo_n "checking for $ac_word... " >&6; }
  4884. if ${ac_cv_prog_RANLIB+:} false; then :
  4885. $as_echo_n "(cached) " >&6
  4886. else
  4887. if test -n "$RANLIB"; then
  4888. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4889. else
  4890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4891. for as_dir in $PATH
  4892. do
  4893. IFS=$as_save_IFS
  4894. test -z "$as_dir" && as_dir=.
  4895. for ac_exec_ext in '' $ac_executable_extensions; do
  4896. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4897. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4899. break 2
  4900. fi
  4901. done
  4902. done
  4903. IFS=$as_save_IFS
  4904. fi
  4905. fi
  4906. RANLIB=$ac_cv_prog_RANLIB
  4907. if test -n "$RANLIB"; then
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4909. $as_echo "$RANLIB" >&6; }
  4910. else
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4912. $as_echo "no" >&6; }
  4913. fi
  4914. fi
  4915. if test -z "$ac_cv_prog_RANLIB"; then
  4916. ac_ct_RANLIB=$RANLIB
  4917. # Extract the first word of "ranlib", so it can be a program name with args.
  4918. set dummy ranlib; ac_word=$2
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4920. $as_echo_n "checking for $ac_word... " >&6; }
  4921. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4922. $as_echo_n "(cached) " >&6
  4923. else
  4924. if test -n "$ac_ct_RANLIB"; then
  4925. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4926. else
  4927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4928. for as_dir in $PATH
  4929. do
  4930. IFS=$as_save_IFS
  4931. test -z "$as_dir" && as_dir=.
  4932. for ac_exec_ext in '' $ac_executable_extensions; do
  4933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4934. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4936. break 2
  4937. fi
  4938. done
  4939. done
  4940. IFS=$as_save_IFS
  4941. fi
  4942. fi
  4943. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4944. if test -n "$ac_ct_RANLIB"; then
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4946. $as_echo "$ac_ct_RANLIB" >&6; }
  4947. else
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4949. $as_echo "no" >&6; }
  4950. fi
  4951. if test "x$ac_ct_RANLIB" = x; then
  4952. RANLIB=":"
  4953. else
  4954. case $cross_compiling:$ac_tool_warned in
  4955. yes:)
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4957. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4958. ac_tool_warned=yes ;;
  4959. esac
  4960. RANLIB=$ac_ct_RANLIB
  4961. fi
  4962. else
  4963. RANLIB="$ac_cv_prog_RANLIB"
  4964. fi
  4965. test -z "$RANLIB" && RANLIB=:
  4966. # Determine commands to create old-style static archives.
  4967. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4968. old_postinstall_cmds='chmod 644 $oldlib'
  4969. old_postuninstall_cmds=
  4970. if test -n "$RANLIB"; then
  4971. case $host_os in
  4972. openbsd*)
  4973. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4974. ;;
  4975. *)
  4976. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4977. ;;
  4978. esac
  4979. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4980. fi
  4981. case $host_os in
  4982. darwin*)
  4983. lock_old_archive_extraction=yes ;;
  4984. *)
  4985. lock_old_archive_extraction=no ;;
  4986. esac
  4987. for ac_prog in gawk mawk nawk awk
  4988. do
  4989. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4990. set dummy $ac_prog; ac_word=$2
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4992. $as_echo_n "checking for $ac_word... " >&6; }
  4993. if ${ac_cv_prog_AWK+:} false; then :
  4994. $as_echo_n "(cached) " >&6
  4995. else
  4996. if test -n "$AWK"; then
  4997. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4998. else
  4999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5000. for as_dir in $PATH
  5001. do
  5002. IFS=$as_save_IFS
  5003. test -z "$as_dir" && as_dir=.
  5004. for ac_exec_ext in '' $ac_executable_extensions; do
  5005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5006. ac_cv_prog_AWK="$ac_prog"
  5007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5008. break 2
  5009. fi
  5010. done
  5011. done
  5012. IFS=$as_save_IFS
  5013. fi
  5014. fi
  5015. AWK=$ac_cv_prog_AWK
  5016. if test -n "$AWK"; then
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5018. $as_echo "$AWK" >&6; }
  5019. else
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5021. $as_echo "no" >&6; }
  5022. fi
  5023. test -n "$AWK" && break
  5024. done
  5025. # If no C compiler was specified, use CC.
  5026. LTCC=${LTCC-"$CC"}
  5027. # If no C compiler flags were specified, use CFLAGS.
  5028. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5029. # Allow CC to be a program name with arguments.
  5030. compiler=$CC
  5031. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5033. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5034. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5035. $as_echo_n "(cached) " >&6
  5036. else
  5037. # These are sane defaults that work on at least a few old systems.
  5038. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5039. # Character class describing NM global symbol codes.
  5040. symcode='[BCDEGRST]'
  5041. # Regexp to match symbols that can be accessed directly from C.
  5042. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5043. # Define system-specific variables.
  5044. case $host_os in
  5045. aix*)
  5046. symcode='[BCDT]'
  5047. ;;
  5048. cygwin* | mingw* | pw32* | cegcc*)
  5049. symcode='[ABCDGISTW]'
  5050. ;;
  5051. hpux*)
  5052. if test "$host_cpu" = ia64; then
  5053. symcode='[ABCDEGRST]'
  5054. fi
  5055. ;;
  5056. irix* | nonstopux*)
  5057. symcode='[BCDEGRST]'
  5058. ;;
  5059. osf*)
  5060. symcode='[BCDEGQRST]'
  5061. ;;
  5062. solaris*)
  5063. symcode='[BDRT]'
  5064. ;;
  5065. sco3.2v5*)
  5066. symcode='[DT]'
  5067. ;;
  5068. sysv4.2uw2*)
  5069. symcode='[DT]'
  5070. ;;
  5071. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5072. symcode='[ABDT]'
  5073. ;;
  5074. sysv4)
  5075. symcode='[DFNSTU]'
  5076. ;;
  5077. esac
  5078. # If we're using GNU nm, then use its standard symbol codes.
  5079. case `$NM -V 2>&1` in
  5080. *GNU* | *'with BFD'*)
  5081. symcode='[ABCDGIRSTW]' ;;
  5082. esac
  5083. # Transform an extracted symbol line into a proper C declaration.
  5084. # Some systems (esp. on ia64) link data and code symbols differently,
  5085. # so use this general approach.
  5086. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5087. # Transform an extracted symbol line into symbol name and symbol address
  5088. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5089. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5090. # Handle CRLF in mingw tool chain
  5091. opt_cr=
  5092. case $build_os in
  5093. mingw*)
  5094. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5095. ;;
  5096. esac
  5097. # Try without a prefix underscore, then with it.
  5098. for ac_symprfx in "" "_"; do
  5099. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5100. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5101. # Write the raw and C identifiers.
  5102. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5103. # Fake it for dumpbin and say T for any non-static function
  5104. # and D for any global variable.
  5105. # Also find C++ and __fastcall symbols from MSVC++,
  5106. # which start with @ or ?.
  5107. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5108. " {last_section=section; section=\$ 3};"\
  5109. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5110. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5111. " \$ 0!~/External *\|/{next};"\
  5112. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5113. " {if(hide[section]) next};"\
  5114. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5115. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5116. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5117. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5118. " ' prfx=^$ac_symprfx"
  5119. else
  5120. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5121. fi
  5122. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5123. # Check to see that the pipe works correctly.
  5124. pipe_works=no
  5125. rm -f conftest*
  5126. cat > conftest.$ac_ext <<_LT_EOF
  5127. #ifdef __cplusplus
  5128. extern "C" {
  5129. #endif
  5130. char nm_test_var;
  5131. void nm_test_func(void);
  5132. void nm_test_func(void){}
  5133. #ifdef __cplusplus
  5134. }
  5135. #endif
  5136. int main(){nm_test_var='a';nm_test_func();return(0);}
  5137. _LT_EOF
  5138. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5139. (eval $ac_compile) 2>&5
  5140. ac_status=$?
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5142. test $ac_status = 0; }; then
  5143. # Now try to grab the symbols.
  5144. nlist=conftest.nm
  5145. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5146. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5147. ac_status=$?
  5148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5149. test $ac_status = 0; } && test -s "$nlist"; then
  5150. # Try sorting and uniquifying the output.
  5151. if sort "$nlist" | uniq > "$nlist"T; then
  5152. mv -f "$nlist"T "$nlist"
  5153. else
  5154. rm -f "$nlist"T
  5155. fi
  5156. # Make sure that we snagged all the symbols we need.
  5157. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5158. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5159. cat <<_LT_EOF > conftest.$ac_ext
  5160. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5161. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5162. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5163. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5164. # define LT_DLSYM_CONST
  5165. #elif defined(__osf__)
  5166. /* This system does not cope well with relocations in const data. */
  5167. # define LT_DLSYM_CONST
  5168. #else
  5169. # define LT_DLSYM_CONST const
  5170. #endif
  5171. #ifdef __cplusplus
  5172. extern "C" {
  5173. #endif
  5174. _LT_EOF
  5175. # Now generate the symbol file.
  5176. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5177. cat <<_LT_EOF >> conftest.$ac_ext
  5178. /* The mapping between symbol names and symbols. */
  5179. LT_DLSYM_CONST struct {
  5180. const char *name;
  5181. void *address;
  5182. }
  5183. lt__PROGRAM__LTX_preloaded_symbols[] =
  5184. {
  5185. { "@PROGRAM@", (void *) 0 },
  5186. _LT_EOF
  5187. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5188. cat <<\_LT_EOF >> conftest.$ac_ext
  5189. {0, (void *) 0}
  5190. };
  5191. /* This works around a problem in FreeBSD linker */
  5192. #ifdef FREEBSD_WORKAROUND
  5193. static const void *lt_preloaded_setup() {
  5194. return lt__PROGRAM__LTX_preloaded_symbols;
  5195. }
  5196. #endif
  5197. #ifdef __cplusplus
  5198. }
  5199. #endif
  5200. _LT_EOF
  5201. # Now try linking the two files.
  5202. mv conftest.$ac_objext conftstm.$ac_objext
  5203. lt_globsym_save_LIBS=$LIBS
  5204. lt_globsym_save_CFLAGS=$CFLAGS
  5205. LIBS="conftstm.$ac_objext"
  5206. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5208. (eval $ac_link) 2>&5
  5209. ac_status=$?
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5211. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5212. pipe_works=yes
  5213. fi
  5214. LIBS=$lt_globsym_save_LIBS
  5215. CFLAGS=$lt_globsym_save_CFLAGS
  5216. else
  5217. echo "cannot find nm_test_func in $nlist" >&5
  5218. fi
  5219. else
  5220. echo "cannot find nm_test_var in $nlist" >&5
  5221. fi
  5222. else
  5223. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5224. fi
  5225. else
  5226. echo "$progname: failed program was:" >&5
  5227. cat conftest.$ac_ext >&5
  5228. fi
  5229. rm -rf conftest* conftst*
  5230. # Do not use the global_symbol_pipe unless it works.
  5231. if test "$pipe_works" = yes; then
  5232. break
  5233. else
  5234. lt_cv_sys_global_symbol_pipe=
  5235. fi
  5236. done
  5237. fi
  5238. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5239. lt_cv_sys_global_symbol_to_cdecl=
  5240. fi
  5241. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5243. $as_echo "failed" >&6; }
  5244. else
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5246. $as_echo "ok" >&6; }
  5247. fi
  5248. # Response file support.
  5249. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5250. nm_file_list_spec='@'
  5251. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5252. nm_file_list_spec='@'
  5253. fi
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5255. $as_echo_n "checking for sysroot... " >&6; }
  5256. # Check whether --with-sysroot was given.
  5257. if test "${with_sysroot+set}" = set; then :
  5258. withval=$with_sysroot;
  5259. else
  5260. with_sysroot=no
  5261. fi
  5262. lt_sysroot=
  5263. case ${with_sysroot} in #(
  5264. yes)
  5265. if test "$GCC" = yes; then
  5266. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5267. fi
  5268. ;; #(
  5269. /*)
  5270. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5271. ;; #(
  5272. no|'')
  5273. ;; #(
  5274. *)
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5276. $as_echo "${with_sysroot}" >&6; }
  5277. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5278. ;;
  5279. esac
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5281. $as_echo "${lt_sysroot:-no}" >&6; }
  5282. # Check whether --enable-libtool-lock was given.
  5283. if test "${enable_libtool_lock+set}" = set; then :
  5284. enableval=$enable_libtool_lock;
  5285. fi
  5286. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5287. # Some flags need to be propagated to the compiler or linker for good
  5288. # libtool support.
  5289. case $host in
  5290. ia64-*-hpux*)
  5291. # Find out which ABI we are using.
  5292. echo 'int i;' > conftest.$ac_ext
  5293. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5294. (eval $ac_compile) 2>&5
  5295. ac_status=$?
  5296. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5297. test $ac_status = 0; }; then
  5298. case `/usr/bin/file conftest.$ac_objext` in
  5299. *ELF-32*)
  5300. HPUX_IA64_MODE="32"
  5301. ;;
  5302. *ELF-64*)
  5303. HPUX_IA64_MODE="64"
  5304. ;;
  5305. esac
  5306. fi
  5307. rm -rf conftest*
  5308. ;;
  5309. *-*-irix6*)
  5310. # Find out which ABI we are using.
  5311. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5312. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5313. (eval $ac_compile) 2>&5
  5314. ac_status=$?
  5315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5316. test $ac_status = 0; }; then
  5317. if test "$lt_cv_prog_gnu_ld" = yes; then
  5318. case `/usr/bin/file conftest.$ac_objext` in
  5319. *32-bit*)
  5320. LD="${LD-ld} -melf32bsmip"
  5321. ;;
  5322. *N32*)
  5323. LD="${LD-ld} -melf32bmipn32"
  5324. ;;
  5325. *64-bit*)
  5326. LD="${LD-ld} -melf64bmip"
  5327. ;;
  5328. esac
  5329. else
  5330. case `/usr/bin/file conftest.$ac_objext` in
  5331. *32-bit*)
  5332. LD="${LD-ld} -32"
  5333. ;;
  5334. *N32*)
  5335. LD="${LD-ld} -n32"
  5336. ;;
  5337. *64-bit*)
  5338. LD="${LD-ld} -64"
  5339. ;;
  5340. esac
  5341. fi
  5342. fi
  5343. rm -rf conftest*
  5344. ;;
  5345. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5346. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5347. # Find out which ABI we are using.
  5348. echo 'int i;' > conftest.$ac_ext
  5349. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5350. (eval $ac_compile) 2>&5
  5351. ac_status=$?
  5352. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5353. test $ac_status = 0; }; then
  5354. case `/usr/bin/file conftest.o` in
  5355. *32-bit*)
  5356. case $host in
  5357. x86_64-*kfreebsd*-gnu)
  5358. LD="${LD-ld} -m elf_i386_fbsd"
  5359. ;;
  5360. x86_64-*linux*)
  5361. LD="${LD-ld} -m elf_i386"
  5362. ;;
  5363. ppc64-*linux*|powerpc64-*linux*)
  5364. LD="${LD-ld} -m elf32ppclinux"
  5365. ;;
  5366. s390x-*linux*)
  5367. LD="${LD-ld} -m elf_s390"
  5368. ;;
  5369. sparc64-*linux*)
  5370. LD="${LD-ld} -m elf32_sparc"
  5371. ;;
  5372. esac
  5373. ;;
  5374. *64-bit*)
  5375. case $host in
  5376. x86_64-*kfreebsd*-gnu)
  5377. LD="${LD-ld} -m elf_x86_64_fbsd"
  5378. ;;
  5379. x86_64-*linux*)
  5380. LD="${LD-ld} -m elf_x86_64"
  5381. ;;
  5382. powerpc64le-*linux*)
  5383. LD="${LD-ld} -m elf64lppc"
  5384. ;;
  5385. powerpc64-*linux*)
  5386. LD="${LD-ld} -m elf64ppc"
  5387. ;;
  5388. s390*-*linux*|s390*-*tpf*)
  5389. LD="${LD-ld} -m elf64_s390"
  5390. ;;
  5391. sparc*-*linux*)
  5392. LD="${LD-ld} -m elf64_sparc"
  5393. ;;
  5394. esac
  5395. ;;
  5396. esac
  5397. fi
  5398. rm -rf conftest*
  5399. ;;
  5400. *-*-sco3.2v5*)
  5401. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5402. SAVE_CFLAGS="$CFLAGS"
  5403. CFLAGS="$CFLAGS -belf"
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5405. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5406. if ${lt_cv_cc_needs_belf+:} false; then :
  5407. $as_echo_n "(cached) " >&6
  5408. else
  5409. ac_ext=c
  5410. ac_cpp='$CPP $CPPFLAGS'
  5411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5415. /* end confdefs.h. */
  5416. int
  5417. main ()
  5418. {
  5419. ;
  5420. return 0;
  5421. }
  5422. _ACEOF
  5423. if ac_fn_c_try_link "$LINENO"; then :
  5424. lt_cv_cc_needs_belf=yes
  5425. else
  5426. lt_cv_cc_needs_belf=no
  5427. fi
  5428. rm -f core conftest.err conftest.$ac_objext \
  5429. conftest$ac_exeext conftest.$ac_ext
  5430. ac_ext=c
  5431. ac_cpp='$CPP $CPPFLAGS'
  5432. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5433. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5434. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5435. fi
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5437. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5438. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5439. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5440. CFLAGS="$SAVE_CFLAGS"
  5441. fi
  5442. ;;
  5443. *-*solaris*)
  5444. # Find out which ABI we are using.
  5445. echo 'int i;' > conftest.$ac_ext
  5446. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5447. (eval $ac_compile) 2>&5
  5448. ac_status=$?
  5449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5450. test $ac_status = 0; }; then
  5451. case `/usr/bin/file conftest.o` in
  5452. *64-bit*)
  5453. case $lt_cv_prog_gnu_ld in
  5454. yes*)
  5455. case $host in
  5456. i?86-*-solaris*)
  5457. LD="${LD-ld} -m elf_x86_64"
  5458. ;;
  5459. sparc*-*-solaris*)
  5460. LD="${LD-ld} -m elf64_sparc"
  5461. ;;
  5462. esac
  5463. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5464. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5465. LD="${LD-ld}_sol2"
  5466. fi
  5467. ;;
  5468. *)
  5469. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5470. LD="${LD-ld} -64"
  5471. fi
  5472. ;;
  5473. esac
  5474. ;;
  5475. esac
  5476. fi
  5477. rm -rf conftest*
  5478. ;;
  5479. esac
  5480. need_locks="$enable_libtool_lock"
  5481. if test -n "$ac_tool_prefix"; then
  5482. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5483. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5485. $as_echo_n "checking for $ac_word... " >&6; }
  5486. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5487. $as_echo_n "(cached) " >&6
  5488. else
  5489. if test -n "$MANIFEST_TOOL"; then
  5490. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5491. else
  5492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5493. for as_dir in $PATH
  5494. do
  5495. IFS=$as_save_IFS
  5496. test -z "$as_dir" && as_dir=.
  5497. for ac_exec_ext in '' $ac_executable_extensions; do
  5498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5499. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5501. break 2
  5502. fi
  5503. done
  5504. done
  5505. IFS=$as_save_IFS
  5506. fi
  5507. fi
  5508. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5509. if test -n "$MANIFEST_TOOL"; then
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5511. $as_echo "$MANIFEST_TOOL" >&6; }
  5512. else
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5514. $as_echo "no" >&6; }
  5515. fi
  5516. fi
  5517. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5518. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5519. # Extract the first word of "mt", so it can be a program name with args.
  5520. set dummy mt; ac_word=$2
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5522. $as_echo_n "checking for $ac_word... " >&6; }
  5523. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5524. $as_echo_n "(cached) " >&6
  5525. else
  5526. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5527. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5528. else
  5529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5530. for as_dir in $PATH
  5531. do
  5532. IFS=$as_save_IFS
  5533. test -z "$as_dir" && as_dir=.
  5534. for ac_exec_ext in '' $ac_executable_extensions; do
  5535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5536. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5538. break 2
  5539. fi
  5540. done
  5541. done
  5542. IFS=$as_save_IFS
  5543. fi
  5544. fi
  5545. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5546. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5548. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5549. else
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5551. $as_echo "no" >&6; }
  5552. fi
  5553. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5554. MANIFEST_TOOL=":"
  5555. else
  5556. case $cross_compiling:$ac_tool_warned in
  5557. yes:)
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5559. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5560. ac_tool_warned=yes ;;
  5561. esac
  5562. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5563. fi
  5564. else
  5565. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5566. fi
  5567. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5569. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5570. if ${lt_cv_path_mainfest_tool+:} false; then :
  5571. $as_echo_n "(cached) " >&6
  5572. else
  5573. lt_cv_path_mainfest_tool=no
  5574. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5575. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5576. cat conftest.err >&5
  5577. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5578. lt_cv_path_mainfest_tool=yes
  5579. fi
  5580. rm -f conftest*
  5581. fi
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5583. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5584. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5585. MANIFEST_TOOL=:
  5586. fi
  5587. case $host_os in
  5588. rhapsody* | darwin*)
  5589. if test -n "$ac_tool_prefix"; then
  5590. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5591. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5593. $as_echo_n "checking for $ac_word... " >&6; }
  5594. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5595. $as_echo_n "(cached) " >&6
  5596. else
  5597. if test -n "$DSYMUTIL"; then
  5598. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5599. else
  5600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5601. for as_dir in $PATH
  5602. do
  5603. IFS=$as_save_IFS
  5604. test -z "$as_dir" && as_dir=.
  5605. for ac_exec_ext in '' $ac_executable_extensions; do
  5606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5607. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5609. break 2
  5610. fi
  5611. done
  5612. done
  5613. IFS=$as_save_IFS
  5614. fi
  5615. fi
  5616. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5617. if test -n "$DSYMUTIL"; then
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5619. $as_echo "$DSYMUTIL" >&6; }
  5620. else
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5622. $as_echo "no" >&6; }
  5623. fi
  5624. fi
  5625. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5626. ac_ct_DSYMUTIL=$DSYMUTIL
  5627. # Extract the first word of "dsymutil", so it can be a program name with args.
  5628. set dummy dsymutil; ac_word=$2
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5630. $as_echo_n "checking for $ac_word... " >&6; }
  5631. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5632. $as_echo_n "(cached) " >&6
  5633. else
  5634. if test -n "$ac_ct_DSYMUTIL"; then
  5635. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5636. else
  5637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5638. for as_dir in $PATH
  5639. do
  5640. IFS=$as_save_IFS
  5641. test -z "$as_dir" && as_dir=.
  5642. for ac_exec_ext in '' $ac_executable_extensions; do
  5643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5644. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5646. break 2
  5647. fi
  5648. done
  5649. done
  5650. IFS=$as_save_IFS
  5651. fi
  5652. fi
  5653. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5654. if test -n "$ac_ct_DSYMUTIL"; then
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5656. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5657. else
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5659. $as_echo "no" >&6; }
  5660. fi
  5661. if test "x$ac_ct_DSYMUTIL" = x; then
  5662. DSYMUTIL=":"
  5663. else
  5664. case $cross_compiling:$ac_tool_warned in
  5665. yes:)
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5667. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5668. ac_tool_warned=yes ;;
  5669. esac
  5670. DSYMUTIL=$ac_ct_DSYMUTIL
  5671. fi
  5672. else
  5673. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5674. fi
  5675. if test -n "$ac_tool_prefix"; then
  5676. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5677. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5679. $as_echo_n "checking for $ac_word... " >&6; }
  5680. if ${ac_cv_prog_NMEDIT+:} false; then :
  5681. $as_echo_n "(cached) " >&6
  5682. else
  5683. if test -n "$NMEDIT"; then
  5684. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5685. else
  5686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5687. for as_dir in $PATH
  5688. do
  5689. IFS=$as_save_IFS
  5690. test -z "$as_dir" && as_dir=.
  5691. for ac_exec_ext in '' $ac_executable_extensions; do
  5692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5693. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5695. break 2
  5696. fi
  5697. done
  5698. done
  5699. IFS=$as_save_IFS
  5700. fi
  5701. fi
  5702. NMEDIT=$ac_cv_prog_NMEDIT
  5703. if test -n "$NMEDIT"; then
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5705. $as_echo "$NMEDIT" >&6; }
  5706. else
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5708. $as_echo "no" >&6; }
  5709. fi
  5710. fi
  5711. if test -z "$ac_cv_prog_NMEDIT"; then
  5712. ac_ct_NMEDIT=$NMEDIT
  5713. # Extract the first word of "nmedit", so it can be a program name with args.
  5714. set dummy nmedit; ac_word=$2
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5716. $as_echo_n "checking for $ac_word... " >&6; }
  5717. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5718. $as_echo_n "(cached) " >&6
  5719. else
  5720. if test -n "$ac_ct_NMEDIT"; then
  5721. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5722. else
  5723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5724. for as_dir in $PATH
  5725. do
  5726. IFS=$as_save_IFS
  5727. test -z "$as_dir" && as_dir=.
  5728. for ac_exec_ext in '' $ac_executable_extensions; do
  5729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5730. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5732. break 2
  5733. fi
  5734. done
  5735. done
  5736. IFS=$as_save_IFS
  5737. fi
  5738. fi
  5739. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5740. if test -n "$ac_ct_NMEDIT"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5742. $as_echo "$ac_ct_NMEDIT" >&6; }
  5743. else
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5745. $as_echo "no" >&6; }
  5746. fi
  5747. if test "x$ac_ct_NMEDIT" = x; then
  5748. NMEDIT=":"
  5749. else
  5750. case $cross_compiling:$ac_tool_warned in
  5751. yes:)
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5754. ac_tool_warned=yes ;;
  5755. esac
  5756. NMEDIT=$ac_ct_NMEDIT
  5757. fi
  5758. else
  5759. NMEDIT="$ac_cv_prog_NMEDIT"
  5760. fi
  5761. if test -n "$ac_tool_prefix"; then
  5762. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5763. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5765. $as_echo_n "checking for $ac_word... " >&6; }
  5766. if ${ac_cv_prog_LIPO+:} false; then :
  5767. $as_echo_n "(cached) " >&6
  5768. else
  5769. if test -n "$LIPO"; then
  5770. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5771. else
  5772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5773. for as_dir in $PATH
  5774. do
  5775. IFS=$as_save_IFS
  5776. test -z "$as_dir" && as_dir=.
  5777. for ac_exec_ext in '' $ac_executable_extensions; do
  5778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5779. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5781. break 2
  5782. fi
  5783. done
  5784. done
  5785. IFS=$as_save_IFS
  5786. fi
  5787. fi
  5788. LIPO=$ac_cv_prog_LIPO
  5789. if test -n "$LIPO"; then
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5791. $as_echo "$LIPO" >&6; }
  5792. else
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5794. $as_echo "no" >&6; }
  5795. fi
  5796. fi
  5797. if test -z "$ac_cv_prog_LIPO"; then
  5798. ac_ct_LIPO=$LIPO
  5799. # Extract the first word of "lipo", so it can be a program name with args.
  5800. set dummy lipo; ac_word=$2
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5802. $as_echo_n "checking for $ac_word... " >&6; }
  5803. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. if test -n "$ac_ct_LIPO"; then
  5807. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5808. else
  5809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5810. for as_dir in $PATH
  5811. do
  5812. IFS=$as_save_IFS
  5813. test -z "$as_dir" && as_dir=.
  5814. for ac_exec_ext in '' $ac_executable_extensions; do
  5815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5816. ac_cv_prog_ac_ct_LIPO="lipo"
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5818. break 2
  5819. fi
  5820. done
  5821. done
  5822. IFS=$as_save_IFS
  5823. fi
  5824. fi
  5825. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5826. if test -n "$ac_ct_LIPO"; then
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5828. $as_echo "$ac_ct_LIPO" >&6; }
  5829. else
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5831. $as_echo "no" >&6; }
  5832. fi
  5833. if test "x$ac_ct_LIPO" = x; then
  5834. LIPO=":"
  5835. else
  5836. case $cross_compiling:$ac_tool_warned in
  5837. yes:)
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5840. ac_tool_warned=yes ;;
  5841. esac
  5842. LIPO=$ac_ct_LIPO
  5843. fi
  5844. else
  5845. LIPO="$ac_cv_prog_LIPO"
  5846. fi
  5847. if test -n "$ac_tool_prefix"; then
  5848. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5849. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5851. $as_echo_n "checking for $ac_word... " >&6; }
  5852. if ${ac_cv_prog_OTOOL+:} false; then :
  5853. $as_echo_n "(cached) " >&6
  5854. else
  5855. if test -n "$OTOOL"; then
  5856. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5857. else
  5858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5859. for as_dir in $PATH
  5860. do
  5861. IFS=$as_save_IFS
  5862. test -z "$as_dir" && as_dir=.
  5863. for ac_exec_ext in '' $ac_executable_extensions; do
  5864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5865. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5867. break 2
  5868. fi
  5869. done
  5870. done
  5871. IFS=$as_save_IFS
  5872. fi
  5873. fi
  5874. OTOOL=$ac_cv_prog_OTOOL
  5875. if test -n "$OTOOL"; then
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5877. $as_echo "$OTOOL" >&6; }
  5878. else
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5880. $as_echo "no" >&6; }
  5881. fi
  5882. fi
  5883. if test -z "$ac_cv_prog_OTOOL"; then
  5884. ac_ct_OTOOL=$OTOOL
  5885. # Extract the first word of "otool", so it can be a program name with args.
  5886. set dummy otool; ac_word=$2
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5888. $as_echo_n "checking for $ac_word... " >&6; }
  5889. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5890. $as_echo_n "(cached) " >&6
  5891. else
  5892. if test -n "$ac_ct_OTOOL"; then
  5893. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5894. else
  5895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5896. for as_dir in $PATH
  5897. do
  5898. IFS=$as_save_IFS
  5899. test -z "$as_dir" && as_dir=.
  5900. for ac_exec_ext in '' $ac_executable_extensions; do
  5901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5902. ac_cv_prog_ac_ct_OTOOL="otool"
  5903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5904. break 2
  5905. fi
  5906. done
  5907. done
  5908. IFS=$as_save_IFS
  5909. fi
  5910. fi
  5911. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5912. if test -n "$ac_ct_OTOOL"; then
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5914. $as_echo "$ac_ct_OTOOL" >&6; }
  5915. else
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5917. $as_echo "no" >&6; }
  5918. fi
  5919. if test "x$ac_ct_OTOOL" = x; then
  5920. OTOOL=":"
  5921. else
  5922. case $cross_compiling:$ac_tool_warned in
  5923. yes:)
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5925. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5926. ac_tool_warned=yes ;;
  5927. esac
  5928. OTOOL=$ac_ct_OTOOL
  5929. fi
  5930. else
  5931. OTOOL="$ac_cv_prog_OTOOL"
  5932. fi
  5933. if test -n "$ac_tool_prefix"; then
  5934. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5935. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5937. $as_echo_n "checking for $ac_word... " >&6; }
  5938. if ${ac_cv_prog_OTOOL64+:} false; then :
  5939. $as_echo_n "(cached) " >&6
  5940. else
  5941. if test -n "$OTOOL64"; then
  5942. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5943. else
  5944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5945. for as_dir in $PATH
  5946. do
  5947. IFS=$as_save_IFS
  5948. test -z "$as_dir" && as_dir=.
  5949. for ac_exec_ext in '' $ac_executable_extensions; do
  5950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5951. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5953. break 2
  5954. fi
  5955. done
  5956. done
  5957. IFS=$as_save_IFS
  5958. fi
  5959. fi
  5960. OTOOL64=$ac_cv_prog_OTOOL64
  5961. if test -n "$OTOOL64"; then
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5963. $as_echo "$OTOOL64" >&6; }
  5964. else
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5966. $as_echo "no" >&6; }
  5967. fi
  5968. fi
  5969. if test -z "$ac_cv_prog_OTOOL64"; then
  5970. ac_ct_OTOOL64=$OTOOL64
  5971. # Extract the first word of "otool64", so it can be a program name with args.
  5972. set dummy otool64; ac_word=$2
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5974. $as_echo_n "checking for $ac_word... " >&6; }
  5975. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5976. $as_echo_n "(cached) " >&6
  5977. else
  5978. if test -n "$ac_ct_OTOOL64"; then
  5979. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5980. else
  5981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5982. for as_dir in $PATH
  5983. do
  5984. IFS=$as_save_IFS
  5985. test -z "$as_dir" && as_dir=.
  5986. for ac_exec_ext in '' $ac_executable_extensions; do
  5987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5988. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5990. break 2
  5991. fi
  5992. done
  5993. done
  5994. IFS=$as_save_IFS
  5995. fi
  5996. fi
  5997. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5998. if test -n "$ac_ct_OTOOL64"; then
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6000. $as_echo "$ac_ct_OTOOL64" >&6; }
  6001. else
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005. if test "x$ac_ct_OTOOL64" = x; then
  6006. OTOOL64=":"
  6007. else
  6008. case $cross_compiling:$ac_tool_warned in
  6009. yes:)
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6011. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6012. ac_tool_warned=yes ;;
  6013. esac
  6014. OTOOL64=$ac_ct_OTOOL64
  6015. fi
  6016. else
  6017. OTOOL64="$ac_cv_prog_OTOOL64"
  6018. fi
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6020. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6021. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. lt_cv_apple_cc_single_mod=no
  6025. if test -z "${LT_MULTI_MODULE}"; then
  6026. # By default we will add the -single_module flag. You can override
  6027. # by either setting the environment variable LT_MULTI_MODULE
  6028. # non-empty at configure time, or by adding -multi_module to the
  6029. # link flags.
  6030. rm -rf libconftest.dylib*
  6031. echo "int foo(void){return 1;}" > conftest.c
  6032. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6033. -dynamiclib -Wl,-single_module conftest.c" >&5
  6034. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6035. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6036. _lt_result=$?
  6037. # If there is a non-empty error log, and "single_module"
  6038. # appears in it, assume the flag caused a linker warning
  6039. if test -s conftest.err && $GREP single_module conftest.err; then
  6040. cat conftest.err >&5
  6041. # Otherwise, if the output was created with a 0 exit code from
  6042. # the compiler, it worked.
  6043. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6044. lt_cv_apple_cc_single_mod=yes
  6045. else
  6046. cat conftest.err >&5
  6047. fi
  6048. rm -rf libconftest.dylib*
  6049. rm -f conftest.*
  6050. fi
  6051. fi
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6053. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6055. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6056. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6057. $as_echo_n "(cached) " >&6
  6058. else
  6059. lt_cv_ld_exported_symbols_list=no
  6060. save_LDFLAGS=$LDFLAGS
  6061. echo "_main" > conftest.sym
  6062. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6064. /* end confdefs.h. */
  6065. int
  6066. main ()
  6067. {
  6068. ;
  6069. return 0;
  6070. }
  6071. _ACEOF
  6072. if ac_fn_c_try_link "$LINENO"; then :
  6073. lt_cv_ld_exported_symbols_list=yes
  6074. else
  6075. lt_cv_ld_exported_symbols_list=no
  6076. fi
  6077. rm -f core conftest.err conftest.$ac_objext \
  6078. conftest$ac_exeext conftest.$ac_ext
  6079. LDFLAGS="$save_LDFLAGS"
  6080. fi
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6082. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6084. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6085. if ${lt_cv_ld_force_load+:} false; then :
  6086. $as_echo_n "(cached) " >&6
  6087. else
  6088. lt_cv_ld_force_load=no
  6089. cat > conftest.c << _LT_EOF
  6090. int forced_loaded() { return 2;}
  6091. _LT_EOF
  6092. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6093. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6094. echo "$AR cru libconftest.a conftest.o" >&5
  6095. $AR cru libconftest.a conftest.o 2>&5
  6096. echo "$RANLIB libconftest.a" >&5
  6097. $RANLIB libconftest.a 2>&5
  6098. cat > conftest.c << _LT_EOF
  6099. int main() { return 0;}
  6100. _LT_EOF
  6101. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6102. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6103. _lt_result=$?
  6104. if test -s conftest.err && $GREP force_load conftest.err; then
  6105. cat conftest.err >&5
  6106. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6107. lt_cv_ld_force_load=yes
  6108. else
  6109. cat conftest.err >&5
  6110. fi
  6111. rm -f conftest.err libconftest.a conftest conftest.c
  6112. rm -rf conftest.dSYM
  6113. fi
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6115. $as_echo "$lt_cv_ld_force_load" >&6; }
  6116. case $host_os in
  6117. rhapsody* | darwin1.[012])
  6118. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6119. darwin1.*)
  6120. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6121. darwin*) # darwin 5.x on
  6122. # if running on 10.5 or later, the deployment target defaults
  6123. # to the OS version, if on x86, and 10.4, the deployment
  6124. # target defaults to 10.4. Don't you love it?
  6125. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6126. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6127. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6128. 10.[012]*)
  6129. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6130. 10.*)
  6131. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6132. esac
  6133. ;;
  6134. esac
  6135. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6136. _lt_dar_single_mod='$single_module'
  6137. fi
  6138. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6139. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6140. else
  6141. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6142. fi
  6143. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6144. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6145. else
  6146. _lt_dsymutil=
  6147. fi
  6148. ;;
  6149. esac
  6150. ac_ext=c
  6151. ac_cpp='$CPP $CPPFLAGS'
  6152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6156. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6157. # On Suns, sometimes $CPP names a directory.
  6158. if test -n "$CPP" && test -d "$CPP"; then
  6159. CPP=
  6160. fi
  6161. if test -z "$CPP"; then
  6162. if ${ac_cv_prog_CPP+:} false; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. # Double quotes because CPP needs to be expanded
  6166. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6167. do
  6168. ac_preproc_ok=false
  6169. for ac_c_preproc_warn_flag in '' yes
  6170. do
  6171. # Use a header file that comes with gcc, so configuring glibc
  6172. # with a fresh cross-compiler works.
  6173. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6174. # <limits.h> exists even on freestanding compilers.
  6175. # On the NeXT, cc -E runs the code through the compiler's parser,
  6176. # not just through cpp. "Syntax error" is here to catch this case.
  6177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6178. /* end confdefs.h. */
  6179. #ifdef __STDC__
  6180. # include <limits.h>
  6181. #else
  6182. # include <assert.h>
  6183. #endif
  6184. Syntax error
  6185. _ACEOF
  6186. if ac_fn_c_try_cpp "$LINENO"; then :
  6187. else
  6188. # Broken: fails on valid input.
  6189. continue
  6190. fi
  6191. rm -f conftest.err conftest.i conftest.$ac_ext
  6192. # OK, works on sane cases. Now check whether nonexistent headers
  6193. # can be detected and how.
  6194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6195. /* end confdefs.h. */
  6196. #include <ac_nonexistent.h>
  6197. _ACEOF
  6198. if ac_fn_c_try_cpp "$LINENO"; then :
  6199. # Broken: success on invalid input.
  6200. continue
  6201. else
  6202. # Passes both tests.
  6203. ac_preproc_ok=:
  6204. break
  6205. fi
  6206. rm -f conftest.err conftest.i conftest.$ac_ext
  6207. done
  6208. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6209. rm -f conftest.i conftest.err conftest.$ac_ext
  6210. if $ac_preproc_ok; then :
  6211. break
  6212. fi
  6213. done
  6214. ac_cv_prog_CPP=$CPP
  6215. fi
  6216. CPP=$ac_cv_prog_CPP
  6217. else
  6218. ac_cv_prog_CPP=$CPP
  6219. fi
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6221. $as_echo "$CPP" >&6; }
  6222. ac_preproc_ok=false
  6223. for ac_c_preproc_warn_flag in '' yes
  6224. do
  6225. # Use a header file that comes with gcc, so configuring glibc
  6226. # with a fresh cross-compiler works.
  6227. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6228. # <limits.h> exists even on freestanding compilers.
  6229. # On the NeXT, cc -E runs the code through the compiler's parser,
  6230. # not just through cpp. "Syntax error" is here to catch this case.
  6231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6232. /* end confdefs.h. */
  6233. #ifdef __STDC__
  6234. # include <limits.h>
  6235. #else
  6236. # include <assert.h>
  6237. #endif
  6238. Syntax error
  6239. _ACEOF
  6240. if ac_fn_c_try_cpp "$LINENO"; then :
  6241. else
  6242. # Broken: fails on valid input.
  6243. continue
  6244. fi
  6245. rm -f conftest.err conftest.i conftest.$ac_ext
  6246. # OK, works on sane cases. Now check whether nonexistent headers
  6247. # can be detected and how.
  6248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6249. /* end confdefs.h. */
  6250. #include <ac_nonexistent.h>
  6251. _ACEOF
  6252. if ac_fn_c_try_cpp "$LINENO"; then :
  6253. # Broken: success on invalid input.
  6254. continue
  6255. else
  6256. # Passes both tests.
  6257. ac_preproc_ok=:
  6258. break
  6259. fi
  6260. rm -f conftest.err conftest.i conftest.$ac_ext
  6261. done
  6262. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6263. rm -f conftest.i conftest.err conftest.$ac_ext
  6264. if $ac_preproc_ok; then :
  6265. else
  6266. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6267. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6268. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6269. See \`config.log' for more details" "$LINENO" 5; }
  6270. fi
  6271. ac_ext=c
  6272. ac_cpp='$CPP $CPPFLAGS'
  6273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6277. $as_echo_n "checking for ANSI C header files... " >&6; }
  6278. if ${ac_cv_header_stdc+:} false; then :
  6279. $as_echo_n "(cached) " >&6
  6280. else
  6281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6282. /* end confdefs.h. */
  6283. #include <stdlib.h>
  6284. #include <stdarg.h>
  6285. #include <string.h>
  6286. #include <float.h>
  6287. int
  6288. main ()
  6289. {
  6290. ;
  6291. return 0;
  6292. }
  6293. _ACEOF
  6294. if ac_fn_c_try_compile "$LINENO"; then :
  6295. ac_cv_header_stdc=yes
  6296. else
  6297. ac_cv_header_stdc=no
  6298. fi
  6299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6300. if test $ac_cv_header_stdc = yes; then
  6301. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6303. /* end confdefs.h. */
  6304. #include <string.h>
  6305. _ACEOF
  6306. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6307. $EGREP "memchr" >/dev/null 2>&1; then :
  6308. else
  6309. ac_cv_header_stdc=no
  6310. fi
  6311. rm -f conftest*
  6312. fi
  6313. if test $ac_cv_header_stdc = yes; then
  6314. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6316. /* end confdefs.h. */
  6317. #include <stdlib.h>
  6318. _ACEOF
  6319. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6320. $EGREP "free" >/dev/null 2>&1; then :
  6321. else
  6322. ac_cv_header_stdc=no
  6323. fi
  6324. rm -f conftest*
  6325. fi
  6326. if test $ac_cv_header_stdc = yes; then
  6327. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6328. if test "$cross_compiling" = yes; then :
  6329. :
  6330. else
  6331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6332. /* end confdefs.h. */
  6333. #include <ctype.h>
  6334. #include <stdlib.h>
  6335. #if ((' ' & 0x0FF) == 0x020)
  6336. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6337. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6338. #else
  6339. # define ISLOWER(c) \
  6340. (('a' <= (c) && (c) <= 'i') \
  6341. || ('j' <= (c) && (c) <= 'r') \
  6342. || ('s' <= (c) && (c) <= 'z'))
  6343. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6344. #endif
  6345. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6346. int
  6347. main ()
  6348. {
  6349. int i;
  6350. for (i = 0; i < 256; i++)
  6351. if (XOR (islower (i), ISLOWER (i))
  6352. || toupper (i) != TOUPPER (i))
  6353. return 2;
  6354. return 0;
  6355. }
  6356. _ACEOF
  6357. if ac_fn_c_try_run "$LINENO"; then :
  6358. else
  6359. ac_cv_header_stdc=no
  6360. fi
  6361. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6362. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6363. fi
  6364. fi
  6365. fi
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6367. $as_echo "$ac_cv_header_stdc" >&6; }
  6368. if test $ac_cv_header_stdc = yes; then
  6369. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6370. fi
  6371. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6372. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6373. inttypes.h stdint.h unistd.h
  6374. do :
  6375. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6376. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6377. "
  6378. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6379. cat >>confdefs.h <<_ACEOF
  6380. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6381. _ACEOF
  6382. fi
  6383. done
  6384. for ac_header in dlfcn.h
  6385. do :
  6386. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6387. "
  6388. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6389. cat >>confdefs.h <<_ACEOF
  6390. #define HAVE_DLFCN_H 1
  6391. _ACEOF
  6392. fi
  6393. done
  6394. # Set options
  6395. enable_win32_dll=yes
  6396. case $host in
  6397. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6398. if test -n "$ac_tool_prefix"; then
  6399. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6400. set dummy ${ac_tool_prefix}as; ac_word=$2
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6402. $as_echo_n "checking for $ac_word... " >&6; }
  6403. if ${ac_cv_prog_AS+:} false; then :
  6404. $as_echo_n "(cached) " >&6
  6405. else
  6406. if test -n "$AS"; then
  6407. ac_cv_prog_AS="$AS" # Let the user override the test.
  6408. else
  6409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6410. for as_dir in $PATH
  6411. do
  6412. IFS=$as_save_IFS
  6413. test -z "$as_dir" && as_dir=.
  6414. for ac_exec_ext in '' $ac_executable_extensions; do
  6415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6416. ac_cv_prog_AS="${ac_tool_prefix}as"
  6417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6418. break 2
  6419. fi
  6420. done
  6421. done
  6422. IFS=$as_save_IFS
  6423. fi
  6424. fi
  6425. AS=$ac_cv_prog_AS
  6426. if test -n "$AS"; then
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6428. $as_echo "$AS" >&6; }
  6429. else
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6431. $as_echo "no" >&6; }
  6432. fi
  6433. fi
  6434. if test -z "$ac_cv_prog_AS"; then
  6435. ac_ct_AS=$AS
  6436. # Extract the first word of "as", so it can be a program name with args.
  6437. set dummy as; ac_word=$2
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6439. $as_echo_n "checking for $ac_word... " >&6; }
  6440. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. if test -n "$ac_ct_AS"; then
  6444. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6445. else
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6453. ac_cv_prog_ac_ct_AS="as"
  6454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. fi
  6461. fi
  6462. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6463. if test -n "$ac_ct_AS"; then
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6465. $as_echo "$ac_ct_AS" >&6; }
  6466. else
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6468. $as_echo "no" >&6; }
  6469. fi
  6470. if test "x$ac_ct_AS" = x; then
  6471. AS="false"
  6472. else
  6473. case $cross_compiling:$ac_tool_warned in
  6474. yes:)
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6477. ac_tool_warned=yes ;;
  6478. esac
  6479. AS=$ac_ct_AS
  6480. fi
  6481. else
  6482. AS="$ac_cv_prog_AS"
  6483. fi
  6484. if test -n "$ac_tool_prefix"; then
  6485. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6486. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6488. $as_echo_n "checking for $ac_word... " >&6; }
  6489. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. if test -n "$DLLTOOL"; then
  6493. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6494. else
  6495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6496. for as_dir in $PATH
  6497. do
  6498. IFS=$as_save_IFS
  6499. test -z "$as_dir" && as_dir=.
  6500. for ac_exec_ext in '' $ac_executable_extensions; do
  6501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6502. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6504. break 2
  6505. fi
  6506. done
  6507. done
  6508. IFS=$as_save_IFS
  6509. fi
  6510. fi
  6511. DLLTOOL=$ac_cv_prog_DLLTOOL
  6512. if test -n "$DLLTOOL"; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6514. $as_echo "$DLLTOOL" >&6; }
  6515. else
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6517. $as_echo "no" >&6; }
  6518. fi
  6519. fi
  6520. if test -z "$ac_cv_prog_DLLTOOL"; then
  6521. ac_ct_DLLTOOL=$DLLTOOL
  6522. # Extract the first word of "dlltool", so it can be a program name with args.
  6523. set dummy dlltool; ac_word=$2
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6525. $as_echo_n "checking for $ac_word... " >&6; }
  6526. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. if test -n "$ac_ct_DLLTOOL"; then
  6530. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6531. else
  6532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6533. for as_dir in $PATH
  6534. do
  6535. IFS=$as_save_IFS
  6536. test -z "$as_dir" && as_dir=.
  6537. for ac_exec_ext in '' $ac_executable_extensions; do
  6538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6539. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6541. break 2
  6542. fi
  6543. done
  6544. done
  6545. IFS=$as_save_IFS
  6546. fi
  6547. fi
  6548. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6549. if test -n "$ac_ct_DLLTOOL"; then
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6551. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6552. else
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6554. $as_echo "no" >&6; }
  6555. fi
  6556. if test "x$ac_ct_DLLTOOL" = x; then
  6557. DLLTOOL="false"
  6558. else
  6559. case $cross_compiling:$ac_tool_warned in
  6560. yes:)
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6563. ac_tool_warned=yes ;;
  6564. esac
  6565. DLLTOOL=$ac_ct_DLLTOOL
  6566. fi
  6567. else
  6568. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6569. fi
  6570. if test -n "$ac_tool_prefix"; then
  6571. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6572. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6574. $as_echo_n "checking for $ac_word... " >&6; }
  6575. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6576. $as_echo_n "(cached) " >&6
  6577. else
  6578. if test -n "$OBJDUMP"; then
  6579. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6580. else
  6581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6582. for as_dir in $PATH
  6583. do
  6584. IFS=$as_save_IFS
  6585. test -z "$as_dir" && as_dir=.
  6586. for ac_exec_ext in '' $ac_executable_extensions; do
  6587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6588. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6590. break 2
  6591. fi
  6592. done
  6593. done
  6594. IFS=$as_save_IFS
  6595. fi
  6596. fi
  6597. OBJDUMP=$ac_cv_prog_OBJDUMP
  6598. if test -n "$OBJDUMP"; then
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6600. $as_echo "$OBJDUMP" >&6; }
  6601. else
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6603. $as_echo "no" >&6; }
  6604. fi
  6605. fi
  6606. if test -z "$ac_cv_prog_OBJDUMP"; then
  6607. ac_ct_OBJDUMP=$OBJDUMP
  6608. # Extract the first word of "objdump", so it can be a program name with args.
  6609. set dummy objdump; ac_word=$2
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6611. $as_echo_n "checking for $ac_word... " >&6; }
  6612. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6613. $as_echo_n "(cached) " >&6
  6614. else
  6615. if test -n "$ac_ct_OBJDUMP"; then
  6616. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6617. else
  6618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6619. for as_dir in $PATH
  6620. do
  6621. IFS=$as_save_IFS
  6622. test -z "$as_dir" && as_dir=.
  6623. for ac_exec_ext in '' $ac_executable_extensions; do
  6624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6625. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6627. break 2
  6628. fi
  6629. done
  6630. done
  6631. IFS=$as_save_IFS
  6632. fi
  6633. fi
  6634. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6635. if test -n "$ac_ct_OBJDUMP"; then
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6637. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6638. else
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6640. $as_echo "no" >&6; }
  6641. fi
  6642. if test "x$ac_ct_OBJDUMP" = x; then
  6643. OBJDUMP="false"
  6644. else
  6645. case $cross_compiling:$ac_tool_warned in
  6646. yes:)
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6649. ac_tool_warned=yes ;;
  6650. esac
  6651. OBJDUMP=$ac_ct_OBJDUMP
  6652. fi
  6653. else
  6654. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6655. fi
  6656. ;;
  6657. esac
  6658. test -z "$AS" && AS=as
  6659. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6660. test -z "$OBJDUMP" && OBJDUMP=objdump
  6661. enable_dlopen=no
  6662. # Check whether --enable-shared was given.
  6663. if test "${enable_shared+set}" = set; then :
  6664. enableval=$enable_shared; p=${PACKAGE-default}
  6665. case $enableval in
  6666. yes) enable_shared=yes ;;
  6667. no) enable_shared=no ;;
  6668. *)
  6669. enable_shared=no
  6670. # Look at the argument we got. We use all the common list separators.
  6671. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6672. for pkg in $enableval; do
  6673. IFS="$lt_save_ifs"
  6674. if test "X$pkg" = "X$p"; then
  6675. enable_shared=yes
  6676. fi
  6677. done
  6678. IFS="$lt_save_ifs"
  6679. ;;
  6680. esac
  6681. else
  6682. enable_shared=yes
  6683. fi
  6684. # Check whether --enable-static was given.
  6685. if test "${enable_static+set}" = set; then :
  6686. enableval=$enable_static; p=${PACKAGE-default}
  6687. case $enableval in
  6688. yes) enable_static=yes ;;
  6689. no) enable_static=no ;;
  6690. *)
  6691. enable_static=no
  6692. # Look at the argument we got. We use all the common list separators.
  6693. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6694. for pkg in $enableval; do
  6695. IFS="$lt_save_ifs"
  6696. if test "X$pkg" = "X$p"; then
  6697. enable_static=yes
  6698. fi
  6699. done
  6700. IFS="$lt_save_ifs"
  6701. ;;
  6702. esac
  6703. else
  6704. enable_static=yes
  6705. fi
  6706. # Check whether --with-pic was given.
  6707. if test "${with_pic+set}" = set; then :
  6708. withval=$with_pic; lt_p=${PACKAGE-default}
  6709. case $withval in
  6710. yes|no) pic_mode=$withval ;;
  6711. *)
  6712. pic_mode=default
  6713. # Look at the argument we got. We use all the common list separators.
  6714. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6715. for lt_pkg in $withval; do
  6716. IFS="$lt_save_ifs"
  6717. if test "X$lt_pkg" = "X$lt_p"; then
  6718. pic_mode=yes
  6719. fi
  6720. done
  6721. IFS="$lt_save_ifs"
  6722. ;;
  6723. esac
  6724. else
  6725. pic_mode=default
  6726. fi
  6727. test -z "$pic_mode" && pic_mode=default
  6728. # Check whether --enable-fast-install was given.
  6729. if test "${enable_fast_install+set}" = set; then :
  6730. enableval=$enable_fast_install; p=${PACKAGE-default}
  6731. case $enableval in
  6732. yes) enable_fast_install=yes ;;
  6733. no) enable_fast_install=no ;;
  6734. *)
  6735. enable_fast_install=no
  6736. # Look at the argument we got. We use all the common list separators.
  6737. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6738. for pkg in $enableval; do
  6739. IFS="$lt_save_ifs"
  6740. if test "X$pkg" = "X$p"; then
  6741. enable_fast_install=yes
  6742. fi
  6743. done
  6744. IFS="$lt_save_ifs"
  6745. ;;
  6746. esac
  6747. else
  6748. enable_fast_install=yes
  6749. fi
  6750. # This can be used to rebuild libtool when needed
  6751. LIBTOOL_DEPS="$ltmain"
  6752. # Always use our own libtool.
  6753. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6754. test -z "$LN_S" && LN_S="ln -s"
  6755. if test -n "${ZSH_VERSION+set}" ; then
  6756. setopt NO_GLOB_SUBST
  6757. fi
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6759. $as_echo_n "checking for objdir... " >&6; }
  6760. if ${lt_cv_objdir+:} false; then :
  6761. $as_echo_n "(cached) " >&6
  6762. else
  6763. rm -f .libs 2>/dev/null
  6764. mkdir .libs 2>/dev/null
  6765. if test -d .libs; then
  6766. lt_cv_objdir=.libs
  6767. else
  6768. # MS-DOS does not allow filenames that begin with a dot.
  6769. lt_cv_objdir=_libs
  6770. fi
  6771. rmdir .libs 2>/dev/null
  6772. fi
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6774. $as_echo "$lt_cv_objdir" >&6; }
  6775. objdir=$lt_cv_objdir
  6776. cat >>confdefs.h <<_ACEOF
  6777. #define LT_OBJDIR "$lt_cv_objdir/"
  6778. _ACEOF
  6779. case $host_os in
  6780. aix3*)
  6781. # AIX sometimes has problems with the GCC collect2 program. For some
  6782. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6783. # vanish in a puff of smoke.
  6784. if test "X${COLLECT_NAMES+set}" != Xset; then
  6785. COLLECT_NAMES=
  6786. export COLLECT_NAMES
  6787. fi
  6788. ;;
  6789. esac
  6790. # Global variables:
  6791. ofile=libtool
  6792. can_build_shared=yes
  6793. # All known linkers require a `.a' archive for static linking (except MSVC,
  6794. # which needs '.lib').
  6795. libext=a
  6796. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6797. old_CC="$CC"
  6798. old_CFLAGS="$CFLAGS"
  6799. # Set sane defaults for various variables
  6800. test -z "$CC" && CC=cc
  6801. test -z "$LTCC" && LTCC=$CC
  6802. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6803. test -z "$LD" && LD=ld
  6804. test -z "$ac_objext" && ac_objext=o
  6805. for cc_temp in $compiler""; do
  6806. case $cc_temp in
  6807. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6808. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6809. \-*) ;;
  6810. *) break;;
  6811. esac
  6812. done
  6813. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6814. # Only perform the check for file, if the check method requires it
  6815. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6816. case $deplibs_check_method in
  6817. file_magic*)
  6818. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6820. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6821. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6822. $as_echo_n "(cached) " >&6
  6823. else
  6824. case $MAGIC_CMD in
  6825. [\\/*] | ?:[\\/]*)
  6826. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6827. ;;
  6828. *)
  6829. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6830. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6831. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6832. for ac_dir in $ac_dummy; do
  6833. IFS="$lt_save_ifs"
  6834. test -z "$ac_dir" && ac_dir=.
  6835. if test -f $ac_dir/${ac_tool_prefix}file; then
  6836. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6837. if test -n "$file_magic_test_file"; then
  6838. case $deplibs_check_method in
  6839. "file_magic "*)
  6840. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6841. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6842. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6843. $EGREP "$file_magic_regex" > /dev/null; then
  6844. :
  6845. else
  6846. cat <<_LT_EOF 1>&2
  6847. *** Warning: the command libtool uses to detect shared libraries,
  6848. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6849. *** The result is that libtool may fail to recognize shared libraries
  6850. *** as such. This will affect the creation of libtool libraries that
  6851. *** depend on shared libraries, but programs linked with such libtool
  6852. *** libraries will work regardless of this problem. Nevertheless, you
  6853. *** may want to report the problem to your system manager and/or to
  6854. *** bug-libtool@gnu.org
  6855. _LT_EOF
  6856. fi ;;
  6857. esac
  6858. fi
  6859. break
  6860. fi
  6861. done
  6862. IFS="$lt_save_ifs"
  6863. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6864. ;;
  6865. esac
  6866. fi
  6867. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6868. if test -n "$MAGIC_CMD"; then
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6870. $as_echo "$MAGIC_CMD" >&6; }
  6871. else
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6873. $as_echo "no" >&6; }
  6874. fi
  6875. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6876. if test -n "$ac_tool_prefix"; then
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6878. $as_echo_n "checking for file... " >&6; }
  6879. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. case $MAGIC_CMD in
  6883. [\\/*] | ?:[\\/]*)
  6884. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6885. ;;
  6886. *)
  6887. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6888. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6889. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6890. for ac_dir in $ac_dummy; do
  6891. IFS="$lt_save_ifs"
  6892. test -z "$ac_dir" && ac_dir=.
  6893. if test -f $ac_dir/file; then
  6894. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6895. if test -n "$file_magic_test_file"; then
  6896. case $deplibs_check_method in
  6897. "file_magic "*)
  6898. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6899. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6900. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6901. $EGREP "$file_magic_regex" > /dev/null; then
  6902. :
  6903. else
  6904. cat <<_LT_EOF 1>&2
  6905. *** Warning: the command libtool uses to detect shared libraries,
  6906. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6907. *** The result is that libtool may fail to recognize shared libraries
  6908. *** as such. This will affect the creation of libtool libraries that
  6909. *** depend on shared libraries, but programs linked with such libtool
  6910. *** libraries will work regardless of this problem. Nevertheless, you
  6911. *** may want to report the problem to your system manager and/or to
  6912. *** bug-libtool@gnu.org
  6913. _LT_EOF
  6914. fi ;;
  6915. esac
  6916. fi
  6917. break
  6918. fi
  6919. done
  6920. IFS="$lt_save_ifs"
  6921. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6922. ;;
  6923. esac
  6924. fi
  6925. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6926. if test -n "$MAGIC_CMD"; then
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6928. $as_echo "$MAGIC_CMD" >&6; }
  6929. else
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6931. $as_echo "no" >&6; }
  6932. fi
  6933. else
  6934. MAGIC_CMD=:
  6935. fi
  6936. fi
  6937. fi
  6938. ;;
  6939. esac
  6940. # Use C for the default configuration in the libtool script
  6941. lt_save_CC="$CC"
  6942. ac_ext=c
  6943. ac_cpp='$CPP $CPPFLAGS'
  6944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6947. # Source file extension for C test sources.
  6948. ac_ext=c
  6949. # Object file extension for compiled C test sources.
  6950. objext=o
  6951. objext=$objext
  6952. # Code to be used in simple compile tests
  6953. lt_simple_compile_test_code="int some_variable = 0;"
  6954. # Code to be used in simple link tests
  6955. lt_simple_link_test_code='int main(){return(0);}'
  6956. # If no C compiler was specified, use CC.
  6957. LTCC=${LTCC-"$CC"}
  6958. # If no C compiler flags were specified, use CFLAGS.
  6959. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6960. # Allow CC to be a program name with arguments.
  6961. compiler=$CC
  6962. # Save the default compiler, since it gets overwritten when the other
  6963. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6964. compiler_DEFAULT=$CC
  6965. # save warnings/boilerplate of simple test code
  6966. ac_outfile=conftest.$ac_objext
  6967. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6968. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6969. _lt_compiler_boilerplate=`cat conftest.err`
  6970. $RM conftest*
  6971. ac_outfile=conftest.$ac_objext
  6972. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6973. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6974. _lt_linker_boilerplate=`cat conftest.err`
  6975. $RM -r conftest*
  6976. ## CAVEAT EMPTOR:
  6977. ## There is no encapsulation within the following macros, do not change
  6978. ## the running order or otherwise move them around unless you know exactly
  6979. ## what you are doing...
  6980. if test -n "$compiler"; then
  6981. lt_prog_compiler_no_builtin_flag=
  6982. if test "$GCC" = yes; then
  6983. case $cc_basename in
  6984. nvcc*)
  6985. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6986. *)
  6987. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6988. esac
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6990. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6991. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6992. $as_echo_n "(cached) " >&6
  6993. else
  6994. lt_cv_prog_compiler_rtti_exceptions=no
  6995. ac_outfile=conftest.$ac_objext
  6996. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6997. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6998. # Insert the option either (1) after the last *FLAGS variable, or
  6999. # (2) before a word containing "conftest.", or (3) at the end.
  7000. # Note that $ac_compile itself does not contain backslashes and begins
  7001. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7002. # The option is referenced via a variable to avoid confusing sed.
  7003. lt_compile=`echo "$ac_compile" | $SED \
  7004. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7005. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7006. -e 's:$: $lt_compiler_flag:'`
  7007. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7008. (eval "$lt_compile" 2>conftest.err)
  7009. ac_status=$?
  7010. cat conftest.err >&5
  7011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7012. if (exit $ac_status) && test -s "$ac_outfile"; then
  7013. # The compiler can only warn and ignore the option if not recognized
  7014. # So say no if there are warnings other than the usual output.
  7015. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7016. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7017. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7018. lt_cv_prog_compiler_rtti_exceptions=yes
  7019. fi
  7020. fi
  7021. $RM conftest*
  7022. fi
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7024. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7025. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7026. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7027. else
  7028. :
  7029. fi
  7030. fi
  7031. lt_prog_compiler_wl=
  7032. lt_prog_compiler_pic=
  7033. lt_prog_compiler_static=
  7034. if test "$GCC" = yes; then
  7035. lt_prog_compiler_wl='-Wl,'
  7036. lt_prog_compiler_static='-static'
  7037. case $host_os in
  7038. aix*)
  7039. # All AIX code is PIC.
  7040. if test "$host_cpu" = ia64; then
  7041. # AIX 5 now supports IA64 processor
  7042. lt_prog_compiler_static='-Bstatic'
  7043. fi
  7044. ;;
  7045. amigaos*)
  7046. case $host_cpu in
  7047. powerpc)
  7048. # see comment about AmigaOS4 .so support
  7049. lt_prog_compiler_pic='-fPIC'
  7050. ;;
  7051. m68k)
  7052. # FIXME: we need at least 68020 code to build shared libraries, but
  7053. # adding the `-m68020' flag to GCC prevents building anything better,
  7054. # like `-m68040'.
  7055. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7056. ;;
  7057. esac
  7058. ;;
  7059. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7060. # PIC is the default for these OSes.
  7061. ;;
  7062. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7063. # This hack is so that the source file can tell whether it is being
  7064. # built for inclusion in a dll (and should export symbols for example).
  7065. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7066. # (--disable-auto-import) libraries
  7067. lt_prog_compiler_pic='-DDLL_EXPORT'
  7068. ;;
  7069. darwin* | rhapsody*)
  7070. # PIC is the default on this platform
  7071. # Common symbols not allowed in MH_DYLIB files
  7072. lt_prog_compiler_pic='-fno-common'
  7073. ;;
  7074. haiku*)
  7075. # PIC is the default for Haiku.
  7076. # The "-static" flag exists, but is broken.
  7077. lt_prog_compiler_static=
  7078. ;;
  7079. hpux*)
  7080. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7081. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7082. # sets the default TLS model and affects inlining.
  7083. case $host_cpu in
  7084. hppa*64*)
  7085. # +Z the default
  7086. ;;
  7087. *)
  7088. lt_prog_compiler_pic='-fPIC'
  7089. ;;
  7090. esac
  7091. ;;
  7092. interix[3-9]*)
  7093. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7094. # Instead, we relocate shared libraries at runtime.
  7095. ;;
  7096. msdosdjgpp*)
  7097. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7098. # on systems that don't support them.
  7099. lt_prog_compiler_can_build_shared=no
  7100. enable_shared=no
  7101. ;;
  7102. *nto* | *qnx*)
  7103. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7104. # it will coredump.
  7105. lt_prog_compiler_pic='-fPIC -shared'
  7106. ;;
  7107. sysv4*MP*)
  7108. if test -d /usr/nec; then
  7109. lt_prog_compiler_pic=-Kconform_pic
  7110. fi
  7111. ;;
  7112. *)
  7113. lt_prog_compiler_pic='-fPIC'
  7114. ;;
  7115. esac
  7116. case $cc_basename in
  7117. nvcc*) # Cuda Compiler Driver 2.2
  7118. lt_prog_compiler_wl='-Xlinker '
  7119. if test -n "$lt_prog_compiler_pic"; then
  7120. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7121. fi
  7122. ;;
  7123. esac
  7124. else
  7125. # PORTME Check for flag to pass linker flags through the system compiler.
  7126. case $host_os in
  7127. aix*)
  7128. lt_prog_compiler_wl='-Wl,'
  7129. if test "$host_cpu" = ia64; then
  7130. # AIX 5 now supports IA64 processor
  7131. lt_prog_compiler_static='-Bstatic'
  7132. else
  7133. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7134. fi
  7135. ;;
  7136. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7137. # This hack is so that the source file can tell whether it is being
  7138. # built for inclusion in a dll (and should export symbols for example).
  7139. lt_prog_compiler_pic='-DDLL_EXPORT'
  7140. ;;
  7141. hpux9* | hpux10* | hpux11*)
  7142. lt_prog_compiler_wl='-Wl,'
  7143. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7144. # not for PA HP-UX.
  7145. case $host_cpu in
  7146. hppa*64*|ia64*)
  7147. # +Z the default
  7148. ;;
  7149. *)
  7150. lt_prog_compiler_pic='+Z'
  7151. ;;
  7152. esac
  7153. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7154. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7155. ;;
  7156. irix5* | irix6* | nonstopux*)
  7157. lt_prog_compiler_wl='-Wl,'
  7158. # PIC (with -KPIC) is the default.
  7159. lt_prog_compiler_static='-non_shared'
  7160. ;;
  7161. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7162. case $cc_basename in
  7163. # old Intel for x86_64 which still supported -KPIC.
  7164. ecc*)
  7165. lt_prog_compiler_wl='-Wl,'
  7166. lt_prog_compiler_pic='-KPIC'
  7167. lt_prog_compiler_static='-static'
  7168. ;;
  7169. # icc used to be incompatible with GCC.
  7170. # ICC 10 doesn't accept -KPIC any more.
  7171. icc* | ifort*)
  7172. lt_prog_compiler_wl='-Wl,'
  7173. lt_prog_compiler_pic='-fPIC'
  7174. lt_prog_compiler_static='-static'
  7175. ;;
  7176. # Lahey Fortran 8.1.
  7177. lf95*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. lt_prog_compiler_pic='--shared'
  7180. lt_prog_compiler_static='--static'
  7181. ;;
  7182. nagfor*)
  7183. # NAG Fortran compiler
  7184. lt_prog_compiler_wl='-Wl,-Wl,,'
  7185. lt_prog_compiler_pic='-PIC'
  7186. lt_prog_compiler_static='-Bstatic'
  7187. ;;
  7188. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7189. # Portland Group compilers (*not* the Pentium gcc compiler,
  7190. # which looks to be a dead project)
  7191. lt_prog_compiler_wl='-Wl,'
  7192. lt_prog_compiler_pic='-fpic'
  7193. lt_prog_compiler_static='-Bstatic'
  7194. ;;
  7195. ccc*)
  7196. lt_prog_compiler_wl='-Wl,'
  7197. # All Alpha code is PIC.
  7198. lt_prog_compiler_static='-non_shared'
  7199. ;;
  7200. xl* | bgxl* | bgf* | mpixl*)
  7201. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7202. lt_prog_compiler_wl='-Wl,'
  7203. lt_prog_compiler_pic='-qpic'
  7204. lt_prog_compiler_static='-qstaticlink'
  7205. ;;
  7206. *)
  7207. case `$CC -V 2>&1 | sed 5q` in
  7208. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7209. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7210. lt_prog_compiler_pic='-KPIC'
  7211. lt_prog_compiler_static='-Bstatic'
  7212. lt_prog_compiler_wl=''
  7213. ;;
  7214. *Sun\ F* | *Sun*Fortran*)
  7215. lt_prog_compiler_pic='-KPIC'
  7216. lt_prog_compiler_static='-Bstatic'
  7217. lt_prog_compiler_wl='-Qoption ld '
  7218. ;;
  7219. *Sun\ C*)
  7220. # Sun C 5.9
  7221. lt_prog_compiler_pic='-KPIC'
  7222. lt_prog_compiler_static='-Bstatic'
  7223. lt_prog_compiler_wl='-Wl,'
  7224. ;;
  7225. *Intel*\ [CF]*Compiler*)
  7226. lt_prog_compiler_wl='-Wl,'
  7227. lt_prog_compiler_pic='-fPIC'
  7228. lt_prog_compiler_static='-static'
  7229. ;;
  7230. *Portland\ Group*)
  7231. lt_prog_compiler_wl='-Wl,'
  7232. lt_prog_compiler_pic='-fpic'
  7233. lt_prog_compiler_static='-Bstatic'
  7234. ;;
  7235. esac
  7236. ;;
  7237. esac
  7238. ;;
  7239. newsos6)
  7240. lt_prog_compiler_pic='-KPIC'
  7241. lt_prog_compiler_static='-Bstatic'
  7242. ;;
  7243. *nto* | *qnx*)
  7244. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7245. # it will coredump.
  7246. lt_prog_compiler_pic='-fPIC -shared'
  7247. ;;
  7248. osf3* | osf4* | osf5*)
  7249. lt_prog_compiler_wl='-Wl,'
  7250. # All OSF/1 code is PIC.
  7251. lt_prog_compiler_static='-non_shared'
  7252. ;;
  7253. rdos*)
  7254. lt_prog_compiler_static='-non_shared'
  7255. ;;
  7256. solaris*)
  7257. lt_prog_compiler_pic='-KPIC'
  7258. lt_prog_compiler_static='-Bstatic'
  7259. case $cc_basename in
  7260. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7261. lt_prog_compiler_wl='-Qoption ld ';;
  7262. *)
  7263. lt_prog_compiler_wl='-Wl,';;
  7264. esac
  7265. ;;
  7266. sunos4*)
  7267. lt_prog_compiler_wl='-Qoption ld '
  7268. lt_prog_compiler_pic='-PIC'
  7269. lt_prog_compiler_static='-Bstatic'
  7270. ;;
  7271. sysv4 | sysv4.2uw2* | sysv4.3*)
  7272. lt_prog_compiler_wl='-Wl,'
  7273. lt_prog_compiler_pic='-KPIC'
  7274. lt_prog_compiler_static='-Bstatic'
  7275. ;;
  7276. sysv4*MP*)
  7277. if test -d /usr/nec ;then
  7278. lt_prog_compiler_pic='-Kconform_pic'
  7279. lt_prog_compiler_static='-Bstatic'
  7280. fi
  7281. ;;
  7282. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7283. lt_prog_compiler_wl='-Wl,'
  7284. lt_prog_compiler_pic='-KPIC'
  7285. lt_prog_compiler_static='-Bstatic'
  7286. ;;
  7287. unicos*)
  7288. lt_prog_compiler_wl='-Wl,'
  7289. lt_prog_compiler_can_build_shared=no
  7290. ;;
  7291. uts4*)
  7292. lt_prog_compiler_pic='-pic'
  7293. lt_prog_compiler_static='-Bstatic'
  7294. ;;
  7295. *)
  7296. lt_prog_compiler_can_build_shared=no
  7297. ;;
  7298. esac
  7299. fi
  7300. case $host_os in
  7301. # For platforms which do not support PIC, -DPIC is meaningless:
  7302. *djgpp*)
  7303. lt_prog_compiler_pic=
  7304. ;;
  7305. *)
  7306. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7307. ;;
  7308. esac
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7310. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7311. if ${lt_cv_prog_compiler_pic+:} false; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7315. fi
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7317. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7318. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7319. #
  7320. # Check to make sure the PIC flag actually works.
  7321. #
  7322. if test -n "$lt_prog_compiler_pic"; then
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7324. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7325. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7326. $as_echo_n "(cached) " >&6
  7327. else
  7328. lt_cv_prog_compiler_pic_works=no
  7329. ac_outfile=conftest.$ac_objext
  7330. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7331. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7332. # Insert the option either (1) after the last *FLAGS variable, or
  7333. # (2) before a word containing "conftest.", or (3) at the end.
  7334. # Note that $ac_compile itself does not contain backslashes and begins
  7335. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7336. # The option is referenced via a variable to avoid confusing sed.
  7337. lt_compile=`echo "$ac_compile" | $SED \
  7338. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7339. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7340. -e 's:$: $lt_compiler_flag:'`
  7341. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7342. (eval "$lt_compile" 2>conftest.err)
  7343. ac_status=$?
  7344. cat conftest.err >&5
  7345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7346. if (exit $ac_status) && test -s "$ac_outfile"; then
  7347. # The compiler can only warn and ignore the option if not recognized
  7348. # So say no if there are warnings other than the usual output.
  7349. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7350. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7351. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7352. lt_cv_prog_compiler_pic_works=yes
  7353. fi
  7354. fi
  7355. $RM conftest*
  7356. fi
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7358. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7359. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7360. case $lt_prog_compiler_pic in
  7361. "" | " "*) ;;
  7362. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7363. esac
  7364. else
  7365. lt_prog_compiler_pic=
  7366. lt_prog_compiler_can_build_shared=no
  7367. fi
  7368. fi
  7369. #
  7370. # Check to make sure the static flag actually works.
  7371. #
  7372. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7374. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7375. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7376. $as_echo_n "(cached) " >&6
  7377. else
  7378. lt_cv_prog_compiler_static_works=no
  7379. save_LDFLAGS="$LDFLAGS"
  7380. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7381. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7382. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7383. # The linker can only warn and ignore the option if not recognized
  7384. # So say no if there are warnings
  7385. if test -s conftest.err; then
  7386. # Append any errors to the config.log.
  7387. cat conftest.err 1>&5
  7388. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7389. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7390. if diff conftest.exp conftest.er2 >/dev/null; then
  7391. lt_cv_prog_compiler_static_works=yes
  7392. fi
  7393. else
  7394. lt_cv_prog_compiler_static_works=yes
  7395. fi
  7396. fi
  7397. $RM -r conftest*
  7398. LDFLAGS="$save_LDFLAGS"
  7399. fi
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7401. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7402. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7403. :
  7404. else
  7405. lt_prog_compiler_static=
  7406. fi
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7408. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7409. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7410. $as_echo_n "(cached) " >&6
  7411. else
  7412. lt_cv_prog_compiler_c_o=no
  7413. $RM -r conftest 2>/dev/null
  7414. mkdir conftest
  7415. cd conftest
  7416. mkdir out
  7417. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7418. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7419. # Insert the option either (1) after the last *FLAGS variable, or
  7420. # (2) before a word containing "conftest.", or (3) at the end.
  7421. # Note that $ac_compile itself does not contain backslashes and begins
  7422. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7423. lt_compile=`echo "$ac_compile" | $SED \
  7424. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7425. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7426. -e 's:$: $lt_compiler_flag:'`
  7427. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7428. (eval "$lt_compile" 2>out/conftest.err)
  7429. ac_status=$?
  7430. cat out/conftest.err >&5
  7431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7432. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7433. then
  7434. # The compiler can only warn and ignore the option if not recognized
  7435. # So say no if there are warnings
  7436. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7437. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7438. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7439. lt_cv_prog_compiler_c_o=yes
  7440. fi
  7441. fi
  7442. chmod u+w . 2>&5
  7443. $RM conftest*
  7444. # SGI C++ compiler will create directory out/ii_files/ for
  7445. # template instantiation
  7446. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7447. $RM out/* && rmdir out
  7448. cd ..
  7449. $RM -r conftest
  7450. $RM conftest*
  7451. fi
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7453. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7455. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7456. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7457. $as_echo_n "(cached) " >&6
  7458. else
  7459. lt_cv_prog_compiler_c_o=no
  7460. $RM -r conftest 2>/dev/null
  7461. mkdir conftest
  7462. cd conftest
  7463. mkdir out
  7464. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7465. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7466. # Insert the option either (1) after the last *FLAGS variable, or
  7467. # (2) before a word containing "conftest.", or (3) at the end.
  7468. # Note that $ac_compile itself does not contain backslashes and begins
  7469. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7470. lt_compile=`echo "$ac_compile" | $SED \
  7471. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7472. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7473. -e 's:$: $lt_compiler_flag:'`
  7474. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7475. (eval "$lt_compile" 2>out/conftest.err)
  7476. ac_status=$?
  7477. cat out/conftest.err >&5
  7478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7479. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7480. then
  7481. # The compiler can only warn and ignore the option if not recognized
  7482. # So say no if there are warnings
  7483. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7484. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7485. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7486. lt_cv_prog_compiler_c_o=yes
  7487. fi
  7488. fi
  7489. chmod u+w . 2>&5
  7490. $RM conftest*
  7491. # SGI C++ compiler will create directory out/ii_files/ for
  7492. # template instantiation
  7493. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7494. $RM out/* && rmdir out
  7495. cd ..
  7496. $RM -r conftest
  7497. $RM conftest*
  7498. fi
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7500. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7501. hard_links="nottested"
  7502. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7503. # do not overwrite the value of need_locks provided by the user
  7504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7505. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7506. hard_links=yes
  7507. $RM conftest*
  7508. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7509. touch conftest.a
  7510. ln conftest.a conftest.b 2>&5 || hard_links=no
  7511. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7513. $as_echo "$hard_links" >&6; }
  7514. if test "$hard_links" = no; then
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7516. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7517. need_locks=warn
  7518. fi
  7519. else
  7520. need_locks=no
  7521. fi
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7523. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7524. runpath_var=
  7525. allow_undefined_flag=
  7526. always_export_symbols=no
  7527. archive_cmds=
  7528. archive_expsym_cmds=
  7529. compiler_needs_object=no
  7530. enable_shared_with_static_runtimes=no
  7531. export_dynamic_flag_spec=
  7532. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7533. hardcode_automatic=no
  7534. hardcode_direct=no
  7535. hardcode_direct_absolute=no
  7536. hardcode_libdir_flag_spec=
  7537. hardcode_libdir_separator=
  7538. hardcode_minus_L=no
  7539. hardcode_shlibpath_var=unsupported
  7540. inherit_rpath=no
  7541. link_all_deplibs=unknown
  7542. module_cmds=
  7543. module_expsym_cmds=
  7544. old_archive_from_new_cmds=
  7545. old_archive_from_expsyms_cmds=
  7546. thread_safe_flag_spec=
  7547. whole_archive_flag_spec=
  7548. # include_expsyms should be a list of space-separated symbols to be *always*
  7549. # included in the symbol list
  7550. include_expsyms=
  7551. # exclude_expsyms can be an extended regexp of symbols to exclude
  7552. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7553. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7554. # as well as any symbol that contains `d'.
  7555. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7556. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7557. # platforms (ab)use it in PIC code, but their linkers get confused if
  7558. # the symbol is explicitly referenced. Since portable code cannot
  7559. # rely on this symbol name, it's probably fine to never include it in
  7560. # preloaded symbol tables.
  7561. # Exclude shared library initialization/finalization symbols.
  7562. extract_expsyms_cmds=
  7563. case $host_os in
  7564. cygwin* | mingw* | pw32* | cegcc*)
  7565. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7566. # When not using gcc, we currently assume that we are using
  7567. # Microsoft Visual C++.
  7568. if test "$GCC" != yes; then
  7569. with_gnu_ld=no
  7570. fi
  7571. ;;
  7572. interix*)
  7573. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7574. with_gnu_ld=yes
  7575. ;;
  7576. openbsd*)
  7577. with_gnu_ld=no
  7578. ;;
  7579. esac
  7580. ld_shlibs=yes
  7581. # On some targets, GNU ld is compatible enough with the native linker
  7582. # that we're better off using the native interface for both.
  7583. lt_use_gnu_ld_interface=no
  7584. if test "$with_gnu_ld" = yes; then
  7585. case $host_os in
  7586. aix*)
  7587. # The AIX port of GNU ld has always aspired to compatibility
  7588. # with the native linker. However, as the warning in the GNU ld
  7589. # block says, versions before 2.19.5* couldn't really create working
  7590. # shared libraries, regardless of the interface used.
  7591. case `$LD -v 2>&1` in
  7592. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7593. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7594. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7595. *)
  7596. lt_use_gnu_ld_interface=yes
  7597. ;;
  7598. esac
  7599. ;;
  7600. *)
  7601. lt_use_gnu_ld_interface=yes
  7602. ;;
  7603. esac
  7604. fi
  7605. if test "$lt_use_gnu_ld_interface" = yes; then
  7606. # If archive_cmds runs LD, not CC, wlarc should be empty
  7607. wlarc='${wl}'
  7608. # Set some defaults for GNU ld with shared library support. These
  7609. # are reset later if shared libraries are not supported. Putting them
  7610. # here allows them to be overridden if necessary.
  7611. runpath_var=LD_RUN_PATH
  7612. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7613. export_dynamic_flag_spec='${wl}--export-dynamic'
  7614. # ancient GNU ld didn't support --whole-archive et. al.
  7615. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7616. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7617. else
  7618. whole_archive_flag_spec=
  7619. fi
  7620. supports_anon_versioning=no
  7621. case `$LD -v 2>&1` in
  7622. *GNU\ gold*) supports_anon_versioning=yes ;;
  7623. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7624. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7625. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7626. *\ 2.11.*) ;; # other 2.11 versions
  7627. *) supports_anon_versioning=yes ;;
  7628. esac
  7629. # See if GNU ld supports shared libraries.
  7630. case $host_os in
  7631. aix[3-9]*)
  7632. # On AIX/PPC, the GNU linker is very broken
  7633. if test "$host_cpu" != ia64; then
  7634. ld_shlibs=no
  7635. cat <<_LT_EOF 1>&2
  7636. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7637. *** to be unable to reliably create shared libraries on AIX.
  7638. *** Therefore, libtool is disabling shared libraries support. If you
  7639. *** really care for shared libraries, you may want to install binutils
  7640. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7641. *** You will then need to restart the configuration process.
  7642. _LT_EOF
  7643. fi
  7644. ;;
  7645. amigaos*)
  7646. case $host_cpu in
  7647. powerpc)
  7648. # see comment about AmigaOS4 .so support
  7649. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7650. archive_expsym_cmds=''
  7651. ;;
  7652. m68k)
  7653. 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)'
  7654. hardcode_libdir_flag_spec='-L$libdir'
  7655. hardcode_minus_L=yes
  7656. ;;
  7657. esac
  7658. ;;
  7659. beos*)
  7660. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7661. allow_undefined_flag=unsupported
  7662. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7663. # support --undefined. This deserves some investigation. FIXME
  7664. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7665. else
  7666. ld_shlibs=no
  7667. fi
  7668. ;;
  7669. cygwin* | mingw* | pw32* | cegcc*)
  7670. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7671. # as there is no search path for DLLs.
  7672. hardcode_libdir_flag_spec='-L$libdir'
  7673. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7674. allow_undefined_flag=unsupported
  7675. always_export_symbols=no
  7676. enable_shared_with_static_runtimes=yes
  7677. 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'
  7678. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7679. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7680. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7681. # If the export-symbols file already is a .def file (1st line
  7682. # is EXPORTS), use it as is; otherwise, prepend...
  7683. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7684. cp $export_symbols $output_objdir/$soname.def;
  7685. else
  7686. echo EXPORTS > $output_objdir/$soname.def;
  7687. cat $export_symbols >> $output_objdir/$soname.def;
  7688. fi~
  7689. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7690. else
  7691. ld_shlibs=no
  7692. fi
  7693. ;;
  7694. haiku*)
  7695. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7696. link_all_deplibs=yes
  7697. ;;
  7698. interix[3-9]*)
  7699. hardcode_direct=no
  7700. hardcode_shlibpath_var=no
  7701. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7702. export_dynamic_flag_spec='${wl}-E'
  7703. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7704. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7705. # default) and relocated if they conflict, which is a slow very memory
  7706. # consuming and fragmenting process. To avoid this, we pick a random,
  7707. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7708. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7709. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7710. 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'
  7711. ;;
  7712. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7713. tmp_diet=no
  7714. if test "$host_os" = linux-dietlibc; then
  7715. case $cc_basename in
  7716. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7717. esac
  7718. fi
  7719. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7720. && test "$tmp_diet" = no
  7721. then
  7722. tmp_addflag=' $pic_flag'
  7723. tmp_sharedflag='-shared'
  7724. case $cc_basename,$host_cpu in
  7725. pgcc*) # Portland Group C compiler
  7726. 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'
  7727. tmp_addflag=' $pic_flag'
  7728. ;;
  7729. pgf77* | pgf90* | pgf95* | pgfortran*)
  7730. # Portland Group f77 and f90 compilers
  7731. 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'
  7732. tmp_addflag=' $pic_flag -Mnomain' ;;
  7733. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7734. tmp_addflag=' -i_dynamic' ;;
  7735. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7736. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7737. ifc* | ifort*) # Intel Fortran compiler
  7738. tmp_addflag=' -nofor_main' ;;
  7739. lf95*) # Lahey Fortran 8.1
  7740. whole_archive_flag_spec=
  7741. tmp_sharedflag='--shared' ;;
  7742. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7743. tmp_sharedflag='-qmkshrobj'
  7744. tmp_addflag= ;;
  7745. nvcc*) # Cuda Compiler Driver 2.2
  7746. 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'
  7747. compiler_needs_object=yes
  7748. ;;
  7749. esac
  7750. case `$CC -V 2>&1 | sed 5q` in
  7751. *Sun\ C*) # Sun C 5.9
  7752. 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'
  7753. compiler_needs_object=yes
  7754. tmp_sharedflag='-G' ;;
  7755. *Sun\ F*) # Sun Fortran 8.3
  7756. tmp_sharedflag='-G' ;;
  7757. esac
  7758. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7759. if test "x$supports_anon_versioning" = xyes; then
  7760. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7761. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7762. echo "local: *; };" >> $output_objdir/$libname.ver~
  7763. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7764. fi
  7765. case $cc_basename in
  7766. xlf* | bgf* | bgxlf* | mpixlf*)
  7767. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7768. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7769. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7770. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7771. if test "x$supports_anon_versioning" = xyes; then
  7772. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7773. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7774. echo "local: *; };" >> $output_objdir/$libname.ver~
  7775. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7776. fi
  7777. ;;
  7778. esac
  7779. else
  7780. ld_shlibs=no
  7781. fi
  7782. ;;
  7783. netbsd*)
  7784. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7785. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7786. wlarc=
  7787. else
  7788. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7789. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7790. fi
  7791. ;;
  7792. solaris*)
  7793. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7794. ld_shlibs=no
  7795. cat <<_LT_EOF 1>&2
  7796. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7797. *** create shared libraries on Solaris systems. Therefore, libtool
  7798. *** is disabling shared libraries support. We urge you to upgrade GNU
  7799. *** binutils to release 2.9.1 or newer. Another option is to modify
  7800. *** your PATH or compiler configuration so that the native linker is
  7801. *** used, and then restart.
  7802. _LT_EOF
  7803. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7804. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7805. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7806. else
  7807. ld_shlibs=no
  7808. fi
  7809. ;;
  7810. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7811. case `$LD -v 2>&1` in
  7812. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7813. ld_shlibs=no
  7814. cat <<_LT_EOF 1>&2
  7815. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7816. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7817. *** is disabling shared libraries support. We urge you to upgrade GNU
  7818. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7819. *** your PATH or compiler configuration so that the native linker is
  7820. *** used, and then restart.
  7821. _LT_EOF
  7822. ;;
  7823. *)
  7824. # For security reasons, it is highly recommended that you always
  7825. # use absolute paths for naming shared libraries, and exclude the
  7826. # DT_RUNPATH tag from executables and libraries. But doing so
  7827. # requires that you compile everything twice, which is a pain.
  7828. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7829. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7830. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7831. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7832. else
  7833. ld_shlibs=no
  7834. fi
  7835. ;;
  7836. esac
  7837. ;;
  7838. sunos4*)
  7839. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7840. wlarc=
  7841. hardcode_direct=yes
  7842. hardcode_shlibpath_var=no
  7843. ;;
  7844. *)
  7845. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7846. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7847. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7848. else
  7849. ld_shlibs=no
  7850. fi
  7851. ;;
  7852. esac
  7853. if test "$ld_shlibs" = no; then
  7854. runpath_var=
  7855. hardcode_libdir_flag_spec=
  7856. export_dynamic_flag_spec=
  7857. whole_archive_flag_spec=
  7858. fi
  7859. else
  7860. # PORTME fill in a description of your system's linker (not GNU ld)
  7861. case $host_os in
  7862. aix3*)
  7863. allow_undefined_flag=unsupported
  7864. always_export_symbols=yes
  7865. 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'
  7866. # Note: this linker hardcodes the directories in LIBPATH if there
  7867. # are no directories specified by -L.
  7868. hardcode_minus_L=yes
  7869. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7870. # Neither direct hardcoding nor static linking is supported with a
  7871. # broken collect2.
  7872. hardcode_direct=unsupported
  7873. fi
  7874. ;;
  7875. aix[4-9]*)
  7876. if test "$host_cpu" = ia64; then
  7877. # On IA64, the linker does run time linking by default, so we don't
  7878. # have to do anything special.
  7879. aix_use_runtimelinking=no
  7880. exp_sym_flag='-Bexport'
  7881. no_entry_flag=""
  7882. else
  7883. # If we're using GNU nm, then we don't want the "-C" option.
  7884. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7885. # Also, AIX nm treats weak defined symbols like other global
  7886. # defined symbols, whereas GNU nm marks them as "W".
  7887. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7888. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7889. else
  7890. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7891. fi
  7892. aix_use_runtimelinking=no
  7893. # Test if we are trying to use run time linking or normal
  7894. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7895. # need to do runtime linking.
  7896. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7897. for ld_flag in $LDFLAGS; do
  7898. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7899. aix_use_runtimelinking=yes
  7900. break
  7901. fi
  7902. done
  7903. ;;
  7904. esac
  7905. exp_sym_flag='-bexport'
  7906. no_entry_flag='-bnoentry'
  7907. fi
  7908. # When large executables or shared objects are built, AIX ld can
  7909. # have problems creating the table of contents. If linking a library
  7910. # or program results in "error TOC overflow" add -mminimal-toc to
  7911. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7912. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7913. archive_cmds=''
  7914. hardcode_direct=yes
  7915. hardcode_direct_absolute=yes
  7916. hardcode_libdir_separator=':'
  7917. link_all_deplibs=yes
  7918. file_list_spec='${wl}-f,'
  7919. if test "$GCC" = yes; then
  7920. case $host_os in aix4.[012]|aix4.[012].*)
  7921. # We only want to do this on AIX 4.2 and lower, the check
  7922. # below for broken collect2 doesn't work under 4.3+
  7923. collect2name=`${CC} -print-prog-name=collect2`
  7924. if test -f "$collect2name" &&
  7925. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7926. then
  7927. # We have reworked collect2
  7928. :
  7929. else
  7930. # We have old collect2
  7931. hardcode_direct=unsupported
  7932. # It fails to find uninstalled libraries when the uninstalled
  7933. # path is not listed in the libpath. Setting hardcode_minus_L
  7934. # to unsupported forces relinking
  7935. hardcode_minus_L=yes
  7936. hardcode_libdir_flag_spec='-L$libdir'
  7937. hardcode_libdir_separator=
  7938. fi
  7939. ;;
  7940. esac
  7941. shared_flag='-shared'
  7942. if test "$aix_use_runtimelinking" = yes; then
  7943. shared_flag="$shared_flag "'${wl}-G'
  7944. fi
  7945. else
  7946. # not using gcc
  7947. if test "$host_cpu" = ia64; then
  7948. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7949. # chokes on -Wl,-G. The following line is correct:
  7950. shared_flag='-G'
  7951. else
  7952. if test "$aix_use_runtimelinking" = yes; then
  7953. shared_flag='${wl}-G'
  7954. else
  7955. shared_flag='${wl}-bM:SRE'
  7956. fi
  7957. fi
  7958. fi
  7959. export_dynamic_flag_spec='${wl}-bexpall'
  7960. # It seems that -bexpall does not export symbols beginning with
  7961. # underscore (_), so it is better to generate a list of symbols to export.
  7962. always_export_symbols=yes
  7963. if test "$aix_use_runtimelinking" = yes; then
  7964. # Warning - without using the other runtime loading flags (-brtl),
  7965. # -berok will link without error, but may produce a broken library.
  7966. allow_undefined_flag='-berok'
  7967. # Determine the default libpath from the value encoded in an
  7968. # empty executable.
  7969. if test "${lt_cv_aix_libpath+set}" = set; then
  7970. aix_libpath=$lt_cv_aix_libpath
  7971. else
  7972. if ${lt_cv_aix_libpath_+:} false; then :
  7973. $as_echo_n "(cached) " >&6
  7974. else
  7975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7976. /* end confdefs.h. */
  7977. int
  7978. main ()
  7979. {
  7980. ;
  7981. return 0;
  7982. }
  7983. _ACEOF
  7984. if ac_fn_c_try_link "$LINENO"; then :
  7985. lt_aix_libpath_sed='
  7986. /Import File Strings/,/^$/ {
  7987. /^0/ {
  7988. s/^0 *\([^ ]*\) *$/\1/
  7989. p
  7990. }
  7991. }'
  7992. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7993. # Check for a 64-bit object if we didn't find anything.
  7994. if test -z "$lt_cv_aix_libpath_"; then
  7995. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7996. fi
  7997. fi
  7998. rm -f core conftest.err conftest.$ac_objext \
  7999. conftest$ac_exeext conftest.$ac_ext
  8000. if test -z "$lt_cv_aix_libpath_"; then
  8001. lt_cv_aix_libpath_="/usr/lib:/lib"
  8002. fi
  8003. fi
  8004. aix_libpath=$lt_cv_aix_libpath_
  8005. fi
  8006. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8007. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8008. else
  8009. if test "$host_cpu" = ia64; then
  8010. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8011. allow_undefined_flag="-z nodefs"
  8012. 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"
  8013. else
  8014. # Determine the default libpath from the value encoded in an
  8015. # empty executable.
  8016. if test "${lt_cv_aix_libpath+set}" = set; then
  8017. aix_libpath=$lt_cv_aix_libpath
  8018. else
  8019. if ${lt_cv_aix_libpath_+:} false; then :
  8020. $as_echo_n "(cached) " >&6
  8021. else
  8022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8023. /* end confdefs.h. */
  8024. int
  8025. main ()
  8026. {
  8027. ;
  8028. return 0;
  8029. }
  8030. _ACEOF
  8031. if ac_fn_c_try_link "$LINENO"; then :
  8032. lt_aix_libpath_sed='
  8033. /Import File Strings/,/^$/ {
  8034. /^0/ {
  8035. s/^0 *\([^ ]*\) *$/\1/
  8036. p
  8037. }
  8038. }'
  8039. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8040. # Check for a 64-bit object if we didn't find anything.
  8041. if test -z "$lt_cv_aix_libpath_"; then
  8042. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8043. fi
  8044. fi
  8045. rm -f core conftest.err conftest.$ac_objext \
  8046. conftest$ac_exeext conftest.$ac_ext
  8047. if test -z "$lt_cv_aix_libpath_"; then
  8048. lt_cv_aix_libpath_="/usr/lib:/lib"
  8049. fi
  8050. fi
  8051. aix_libpath=$lt_cv_aix_libpath_
  8052. fi
  8053. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8054. # Warning - without using the other run time loading flags,
  8055. # -berok will link without error, but may produce a broken library.
  8056. no_undefined_flag=' ${wl}-bernotok'
  8057. allow_undefined_flag=' ${wl}-berok'
  8058. if test "$with_gnu_ld" = yes; then
  8059. # We only use this code for GNU lds that support --whole-archive.
  8060. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8061. else
  8062. # Exported symbols can be pulled into shared objects from archives
  8063. whole_archive_flag_spec='$convenience'
  8064. fi
  8065. archive_cmds_need_lc=yes
  8066. # This is similar to how AIX traditionally builds its shared libraries.
  8067. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8068. fi
  8069. fi
  8070. ;;
  8071. amigaos*)
  8072. case $host_cpu in
  8073. powerpc)
  8074. # see comment about AmigaOS4 .so support
  8075. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8076. archive_expsym_cmds=''
  8077. ;;
  8078. m68k)
  8079. 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)'
  8080. hardcode_libdir_flag_spec='-L$libdir'
  8081. hardcode_minus_L=yes
  8082. ;;
  8083. esac
  8084. ;;
  8085. bsdi[45]*)
  8086. export_dynamic_flag_spec=-rdynamic
  8087. ;;
  8088. cygwin* | mingw* | pw32* | cegcc*)
  8089. # When not using gcc, we currently assume that we are using
  8090. # Microsoft Visual C++.
  8091. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8092. # no search path for DLLs.
  8093. case $cc_basename in
  8094. cl*)
  8095. # Native MSVC
  8096. hardcode_libdir_flag_spec=' '
  8097. allow_undefined_flag=unsupported
  8098. always_export_symbols=yes
  8099. file_list_spec='@'
  8100. # Tell ltmain to make .lib files, not .a files.
  8101. libext=lib
  8102. # Tell ltmain to make .dll files, not .so files.
  8103. shrext_cmds=".dll"
  8104. # FIXME: Setting linknames here is a bad hack.
  8105. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8106. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8107. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8108. else
  8109. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8110. fi~
  8111. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8112. linknames='
  8113. # The linker will not automatically build a static lib if we build a DLL.
  8114. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8115. enable_shared_with_static_runtimes=yes
  8116. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8117. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8118. # Don't use ranlib
  8119. old_postinstall_cmds='chmod 644 $oldlib'
  8120. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8121. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8122. case $lt_outputfile in
  8123. *.exe|*.EXE) ;;
  8124. *)
  8125. lt_outputfile="$lt_outputfile.exe"
  8126. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8127. ;;
  8128. esac~
  8129. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8130. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8131. $RM "$lt_outputfile.manifest";
  8132. fi'
  8133. ;;
  8134. *)
  8135. # Assume MSVC wrapper
  8136. hardcode_libdir_flag_spec=' '
  8137. allow_undefined_flag=unsupported
  8138. # Tell ltmain to make .lib files, not .a files.
  8139. libext=lib
  8140. # Tell ltmain to make .dll files, not .so files.
  8141. shrext_cmds=".dll"
  8142. # FIXME: Setting linknames here is a bad hack.
  8143. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8144. # The linker will automatically build a .lib file if we build a DLL.
  8145. old_archive_from_new_cmds='true'
  8146. # FIXME: Should let the user specify the lib program.
  8147. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8148. enable_shared_with_static_runtimes=yes
  8149. ;;
  8150. esac
  8151. ;;
  8152. darwin* | rhapsody*)
  8153. archive_cmds_need_lc=no
  8154. hardcode_direct=no
  8155. hardcode_automatic=yes
  8156. hardcode_shlibpath_var=unsupported
  8157. if test "$lt_cv_ld_force_load" = "yes"; then
  8158. 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\"`'
  8159. else
  8160. whole_archive_flag_spec=''
  8161. fi
  8162. link_all_deplibs=yes
  8163. allow_undefined_flag="$_lt_dar_allow_undefined"
  8164. case $cc_basename in
  8165. ifort*) _lt_dar_can_shared=yes ;;
  8166. *) _lt_dar_can_shared=$GCC ;;
  8167. esac
  8168. if test "$_lt_dar_can_shared" = "yes"; then
  8169. output_verbose_link_cmd=func_echo_all
  8170. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8171. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8172. 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}"
  8173. 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}"
  8174. else
  8175. ld_shlibs=no
  8176. fi
  8177. ;;
  8178. dgux*)
  8179. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8180. hardcode_libdir_flag_spec='-L$libdir'
  8181. hardcode_shlibpath_var=no
  8182. ;;
  8183. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8184. # support. Future versions do this automatically, but an explicit c++rt0.o
  8185. # does not break anything, and helps significantly (at the cost of a little
  8186. # extra space).
  8187. freebsd2.2*)
  8188. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8189. hardcode_libdir_flag_spec='-R$libdir'
  8190. hardcode_direct=yes
  8191. hardcode_shlibpath_var=no
  8192. ;;
  8193. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8194. freebsd2.*)
  8195. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8196. hardcode_direct=yes
  8197. hardcode_minus_L=yes
  8198. hardcode_shlibpath_var=no
  8199. ;;
  8200. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8201. freebsd* | dragonfly*)
  8202. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8203. hardcode_libdir_flag_spec='-R$libdir'
  8204. hardcode_direct=yes
  8205. hardcode_shlibpath_var=no
  8206. ;;
  8207. hpux9*)
  8208. if test "$GCC" = yes; then
  8209. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8210. else
  8211. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8212. fi
  8213. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8214. hardcode_libdir_separator=:
  8215. hardcode_direct=yes
  8216. # hardcode_minus_L: Not really in the search PATH,
  8217. # but as the default location of the library.
  8218. hardcode_minus_L=yes
  8219. export_dynamic_flag_spec='${wl}-E'
  8220. ;;
  8221. hpux10*)
  8222. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8223. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8224. else
  8225. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8226. fi
  8227. if test "$with_gnu_ld" = no; then
  8228. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8229. hardcode_libdir_separator=:
  8230. hardcode_direct=yes
  8231. hardcode_direct_absolute=yes
  8232. export_dynamic_flag_spec='${wl}-E'
  8233. # hardcode_minus_L: Not really in the search PATH,
  8234. # but as the default location of the library.
  8235. hardcode_minus_L=yes
  8236. fi
  8237. ;;
  8238. hpux11*)
  8239. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8240. case $host_cpu in
  8241. hppa*64*)
  8242. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8243. ;;
  8244. ia64*)
  8245. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8246. ;;
  8247. *)
  8248. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8249. ;;
  8250. esac
  8251. else
  8252. case $host_cpu in
  8253. hppa*64*)
  8254. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8255. ;;
  8256. ia64*)
  8257. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8258. ;;
  8259. *)
  8260. # Older versions of the 11.00 compiler do not understand -b yet
  8261. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8263. $as_echo_n "checking if $CC understands -b... " >&6; }
  8264. if ${lt_cv_prog_compiler__b+:} false; then :
  8265. $as_echo_n "(cached) " >&6
  8266. else
  8267. lt_cv_prog_compiler__b=no
  8268. save_LDFLAGS="$LDFLAGS"
  8269. LDFLAGS="$LDFLAGS -b"
  8270. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8271. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8272. # The linker can only warn and ignore the option if not recognized
  8273. # So say no if there are warnings
  8274. if test -s conftest.err; then
  8275. # Append any errors to the config.log.
  8276. cat conftest.err 1>&5
  8277. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8278. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8279. if diff conftest.exp conftest.er2 >/dev/null; then
  8280. lt_cv_prog_compiler__b=yes
  8281. fi
  8282. else
  8283. lt_cv_prog_compiler__b=yes
  8284. fi
  8285. fi
  8286. $RM -r conftest*
  8287. LDFLAGS="$save_LDFLAGS"
  8288. fi
  8289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8290. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8291. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8292. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8293. else
  8294. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8295. fi
  8296. ;;
  8297. esac
  8298. fi
  8299. if test "$with_gnu_ld" = no; then
  8300. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8301. hardcode_libdir_separator=:
  8302. case $host_cpu in
  8303. hppa*64*|ia64*)
  8304. hardcode_direct=no
  8305. hardcode_shlibpath_var=no
  8306. ;;
  8307. *)
  8308. hardcode_direct=yes
  8309. hardcode_direct_absolute=yes
  8310. export_dynamic_flag_spec='${wl}-E'
  8311. # hardcode_minus_L: Not really in the search PATH,
  8312. # but as the default location of the library.
  8313. hardcode_minus_L=yes
  8314. ;;
  8315. esac
  8316. fi
  8317. ;;
  8318. irix5* | irix6* | nonstopux*)
  8319. if test "$GCC" = yes; then
  8320. 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'
  8321. # Try to use the -exported_symbol ld option, if it does not
  8322. # work, assume that -exports_file does not work either and
  8323. # implicitly export all symbols.
  8324. # This should be the same for all languages, so no per-tag cache variable.
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8326. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8327. if ${lt_cv_irix_exported_symbol+:} false; then :
  8328. $as_echo_n "(cached) " >&6
  8329. else
  8330. save_LDFLAGS="$LDFLAGS"
  8331. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8333. /* end confdefs.h. */
  8334. int foo (void) { return 0; }
  8335. _ACEOF
  8336. if ac_fn_c_try_link "$LINENO"; then :
  8337. lt_cv_irix_exported_symbol=yes
  8338. else
  8339. lt_cv_irix_exported_symbol=no
  8340. fi
  8341. rm -f core conftest.err conftest.$ac_objext \
  8342. conftest$ac_exeext conftest.$ac_ext
  8343. LDFLAGS="$save_LDFLAGS"
  8344. fi
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8346. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8347. if test "$lt_cv_irix_exported_symbol" = yes; then
  8348. 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'
  8349. fi
  8350. else
  8351. 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'
  8352. 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'
  8353. fi
  8354. archive_cmds_need_lc='no'
  8355. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8356. hardcode_libdir_separator=:
  8357. inherit_rpath=yes
  8358. link_all_deplibs=yes
  8359. ;;
  8360. netbsd*)
  8361. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8362. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8363. else
  8364. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8365. fi
  8366. hardcode_libdir_flag_spec='-R$libdir'
  8367. hardcode_direct=yes
  8368. hardcode_shlibpath_var=no
  8369. ;;
  8370. newsos6)
  8371. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8372. hardcode_direct=yes
  8373. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8374. hardcode_libdir_separator=:
  8375. hardcode_shlibpath_var=no
  8376. ;;
  8377. *nto* | *qnx*)
  8378. ;;
  8379. openbsd*)
  8380. if test -f /usr/libexec/ld.so; then
  8381. hardcode_direct=yes
  8382. hardcode_shlibpath_var=no
  8383. hardcode_direct_absolute=yes
  8384. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8385. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8386. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8387. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8388. export_dynamic_flag_spec='${wl}-E'
  8389. else
  8390. case $host_os in
  8391. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8392. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8393. hardcode_libdir_flag_spec='-R$libdir'
  8394. ;;
  8395. *)
  8396. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8397. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8398. ;;
  8399. esac
  8400. fi
  8401. else
  8402. ld_shlibs=no
  8403. fi
  8404. ;;
  8405. os2*)
  8406. hardcode_libdir_flag_spec='-L$libdir'
  8407. hardcode_minus_L=yes
  8408. allow_undefined_flag=unsupported
  8409. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8410. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8411. ;;
  8412. osf3*)
  8413. if test "$GCC" = yes; then
  8414. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8415. 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'
  8416. else
  8417. allow_undefined_flag=' -expect_unresolved \*'
  8418. 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'
  8419. fi
  8420. archive_cmds_need_lc='no'
  8421. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8422. hardcode_libdir_separator=:
  8423. ;;
  8424. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8425. if test "$GCC" = yes; then
  8426. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8427. 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'
  8428. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8429. else
  8430. allow_undefined_flag=' -expect_unresolved \*'
  8431. 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'
  8432. 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~
  8433. $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'
  8434. # Both c and cxx compiler support -rpath directly
  8435. hardcode_libdir_flag_spec='-rpath $libdir'
  8436. fi
  8437. archive_cmds_need_lc='no'
  8438. hardcode_libdir_separator=:
  8439. ;;
  8440. solaris*)
  8441. no_undefined_flag=' -z defs'
  8442. if test "$GCC" = yes; then
  8443. wlarc='${wl}'
  8444. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8446. $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'
  8447. else
  8448. case `$CC -V 2>&1` in
  8449. *"Compilers 5.0"*)
  8450. wlarc=''
  8451. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8452. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8453. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8454. ;;
  8455. *)
  8456. wlarc='${wl}'
  8457. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8458. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8459. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8460. ;;
  8461. esac
  8462. fi
  8463. hardcode_libdir_flag_spec='-R$libdir'
  8464. hardcode_shlibpath_var=no
  8465. case $host_os in
  8466. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8467. *)
  8468. # The compiler driver will combine and reorder linker options,
  8469. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8470. # but is careful enough not to reorder.
  8471. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8472. if test "$GCC" = yes; then
  8473. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8474. else
  8475. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8476. fi
  8477. ;;
  8478. esac
  8479. link_all_deplibs=yes
  8480. ;;
  8481. sunos4*)
  8482. if test "x$host_vendor" = xsequent; then
  8483. # Use $CC to link under sequent, because it throws in some extra .o
  8484. # files that make .init and .fini sections work.
  8485. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8486. else
  8487. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8488. fi
  8489. hardcode_libdir_flag_spec='-L$libdir'
  8490. hardcode_direct=yes
  8491. hardcode_minus_L=yes
  8492. hardcode_shlibpath_var=no
  8493. ;;
  8494. sysv4)
  8495. case $host_vendor in
  8496. sni)
  8497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8498. hardcode_direct=yes # is this really true???
  8499. ;;
  8500. siemens)
  8501. ## LD is ld it makes a PLAMLIB
  8502. ## CC just makes a GrossModule.
  8503. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8504. reload_cmds='$CC -r -o $output$reload_objs'
  8505. hardcode_direct=no
  8506. ;;
  8507. motorola)
  8508. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8509. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8510. ;;
  8511. esac
  8512. runpath_var='LD_RUN_PATH'
  8513. hardcode_shlibpath_var=no
  8514. ;;
  8515. sysv4.3*)
  8516. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8517. hardcode_shlibpath_var=no
  8518. export_dynamic_flag_spec='-Bexport'
  8519. ;;
  8520. sysv4*MP*)
  8521. if test -d /usr/nec; then
  8522. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8523. hardcode_shlibpath_var=no
  8524. runpath_var=LD_RUN_PATH
  8525. hardcode_runpath_var=yes
  8526. ld_shlibs=yes
  8527. fi
  8528. ;;
  8529. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8530. no_undefined_flag='${wl}-z,text'
  8531. archive_cmds_need_lc=no
  8532. hardcode_shlibpath_var=no
  8533. runpath_var='LD_RUN_PATH'
  8534. if test "$GCC" = yes; then
  8535. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8536. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. else
  8538. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8539. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. fi
  8541. ;;
  8542. sysv5* | sco3.2v5* | sco5v6*)
  8543. # Note: We can NOT use -z defs as we might desire, because we do not
  8544. # link with -lc, and that would cause any symbols used from libc to
  8545. # always be unresolved, which means just about no library would
  8546. # ever link correctly. If we're not using GNU ld we use -z text
  8547. # though, which does catch some bad symbols but isn't as heavy-handed
  8548. # as -z defs.
  8549. no_undefined_flag='${wl}-z,text'
  8550. allow_undefined_flag='${wl}-z,nodefs'
  8551. archive_cmds_need_lc=no
  8552. hardcode_shlibpath_var=no
  8553. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8554. hardcode_libdir_separator=':'
  8555. link_all_deplibs=yes
  8556. export_dynamic_flag_spec='${wl}-Bexport'
  8557. runpath_var='LD_RUN_PATH'
  8558. if test "$GCC" = yes; then
  8559. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8560. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. else
  8562. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8563. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. fi
  8565. ;;
  8566. uts4*)
  8567. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8568. hardcode_libdir_flag_spec='-L$libdir'
  8569. hardcode_shlibpath_var=no
  8570. ;;
  8571. *)
  8572. ld_shlibs=no
  8573. ;;
  8574. esac
  8575. if test x$host_vendor = xsni; then
  8576. case $host in
  8577. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8578. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8579. ;;
  8580. esac
  8581. fi
  8582. fi
  8583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8584. $as_echo "$ld_shlibs" >&6; }
  8585. test "$ld_shlibs" = no && can_build_shared=no
  8586. with_gnu_ld=$with_gnu_ld
  8587. #
  8588. # Do we need to explicitly link libc?
  8589. #
  8590. case "x$archive_cmds_need_lc" in
  8591. x|xyes)
  8592. # Assume -lc should be added
  8593. archive_cmds_need_lc=yes
  8594. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8595. case $archive_cmds in
  8596. *'~'*)
  8597. # FIXME: we may have to deal with multi-command sequences.
  8598. ;;
  8599. '$CC '*)
  8600. # Test whether the compiler implicitly links with -lc since on some
  8601. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8602. # to ld, don't add -lc before -lgcc.
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8604. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8605. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8606. $as_echo_n "(cached) " >&6
  8607. else
  8608. $RM conftest*
  8609. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8610. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8611. (eval $ac_compile) 2>&5
  8612. ac_status=$?
  8613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8614. test $ac_status = 0; } 2>conftest.err; then
  8615. soname=conftest
  8616. lib=conftest
  8617. libobjs=conftest.$ac_objext
  8618. deplibs=
  8619. wl=$lt_prog_compiler_wl
  8620. pic_flag=$lt_prog_compiler_pic
  8621. compiler_flags=-v
  8622. linker_flags=-v
  8623. verstring=
  8624. output_objdir=.
  8625. libname=conftest
  8626. lt_save_allow_undefined_flag=$allow_undefined_flag
  8627. allow_undefined_flag=
  8628. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8629. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8630. ac_status=$?
  8631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8632. test $ac_status = 0; }
  8633. then
  8634. lt_cv_archive_cmds_need_lc=no
  8635. else
  8636. lt_cv_archive_cmds_need_lc=yes
  8637. fi
  8638. allow_undefined_flag=$lt_save_allow_undefined_flag
  8639. else
  8640. cat conftest.err 1>&5
  8641. fi
  8642. $RM conftest*
  8643. fi
  8644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8645. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8646. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8647. ;;
  8648. esac
  8649. fi
  8650. ;;
  8651. esac
  8652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8653. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8654. if test "$GCC" = yes; then
  8655. case $host_os in
  8656. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8657. *) lt_awk_arg="/^libraries:/" ;;
  8658. esac
  8659. case $host_os in
  8660. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8661. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8662. esac
  8663. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8664. case $lt_search_path_spec in
  8665. *\;*)
  8666. # if the path contains ";" then we assume it to be the separator
  8667. # otherwise default to the standard path separator (i.e. ":") - it is
  8668. # assumed that no part of a normal pathname contains ";" but that should
  8669. # okay in the real world where ";" in dirpaths is itself problematic.
  8670. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8671. ;;
  8672. *)
  8673. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8674. ;;
  8675. esac
  8676. # Ok, now we have the path, separated by spaces, we can step through it
  8677. # and add multilib dir if necessary...
  8678. lt_tmp_lt_search_path_spec=
  8679. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8680. # ...but if some path already ends with the multilib dir we assume
  8681. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8682. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8683. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8684. lt_multi_os_dir=
  8685. ;;
  8686. esac
  8687. for lt_sys_path in $lt_search_path_spec; do
  8688. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8689. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8690. elif test -n "$lt_multi_os_dir"; then
  8691. test -d "$lt_sys_path" && \
  8692. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8693. fi
  8694. done
  8695. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8696. BEGIN {RS=" "; FS="/|\n";} {
  8697. lt_foo="";
  8698. lt_count=0;
  8699. for (lt_i = NF; lt_i > 0; lt_i--) {
  8700. if ($lt_i != "" && $lt_i != ".") {
  8701. if ($lt_i == "..") {
  8702. lt_count++;
  8703. } else {
  8704. if (lt_count == 0) {
  8705. lt_foo="/" $lt_i lt_foo;
  8706. } else {
  8707. lt_count--;
  8708. }
  8709. }
  8710. }
  8711. }
  8712. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8713. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8714. }'`
  8715. # AWK program above erroneously prepends '/' to C:/dos/paths
  8716. # for these hosts.
  8717. case $host_os in
  8718. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8719. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8720. esac
  8721. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8722. else
  8723. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8724. fi
  8725. library_names_spec=
  8726. libname_spec='lib$name'
  8727. soname_spec=
  8728. shrext_cmds=".so"
  8729. postinstall_cmds=
  8730. postuninstall_cmds=
  8731. finish_cmds=
  8732. finish_eval=
  8733. shlibpath_var=
  8734. shlibpath_overrides_runpath=unknown
  8735. version_type=none
  8736. dynamic_linker="$host_os ld.so"
  8737. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8738. need_lib_prefix=unknown
  8739. hardcode_into_libs=no
  8740. # when you set need_version to no, make sure it does not cause -set_version
  8741. # flags to be left without arguments
  8742. need_version=unknown
  8743. case $host_os in
  8744. aix3*)
  8745. version_type=linux # correct to gnu/linux during the next big refactor
  8746. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8747. shlibpath_var=LIBPATH
  8748. # AIX 3 has no versioning support, so we append a major version to the name.
  8749. soname_spec='${libname}${release}${shared_ext}$major'
  8750. ;;
  8751. aix[4-9]*)
  8752. version_type=linux # correct to gnu/linux during the next big refactor
  8753. need_lib_prefix=no
  8754. need_version=no
  8755. hardcode_into_libs=yes
  8756. if test "$host_cpu" = ia64; then
  8757. # AIX 5 supports IA64
  8758. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8759. shlibpath_var=LD_LIBRARY_PATH
  8760. else
  8761. # With GCC up to 2.95.x, collect2 would create an import file
  8762. # for dependence libraries. The import file would start with
  8763. # the line `#! .'. This would cause the generated library to
  8764. # depend on `.', always an invalid library. This was fixed in
  8765. # development snapshots of GCC prior to 3.0.
  8766. case $host_os in
  8767. aix4 | aix4.[01] | aix4.[01].*)
  8768. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8769. echo ' yes '
  8770. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8771. :
  8772. else
  8773. can_build_shared=no
  8774. fi
  8775. ;;
  8776. esac
  8777. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8778. # soname into executable. Probably we can add versioning support to
  8779. # collect2, so additional links can be useful in future.
  8780. if test "$aix_use_runtimelinking" = yes; then
  8781. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8782. # instead of lib<name>.a to let people know that these are not
  8783. # typical AIX shared libraries.
  8784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8785. else
  8786. # We preserve .a as extension for shared libraries through AIX4.2
  8787. # and later when we are not doing run time linking.
  8788. library_names_spec='${libname}${release}.a $libname.a'
  8789. soname_spec='${libname}${release}${shared_ext}$major'
  8790. fi
  8791. shlibpath_var=LIBPATH
  8792. fi
  8793. ;;
  8794. amigaos*)
  8795. case $host_cpu in
  8796. powerpc)
  8797. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8798. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8800. ;;
  8801. m68k)
  8802. library_names_spec='$libname.ixlibrary $libname.a'
  8803. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8804. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  8805. ;;
  8806. esac
  8807. ;;
  8808. beos*)
  8809. library_names_spec='${libname}${shared_ext}'
  8810. dynamic_linker="$host_os ld.so"
  8811. shlibpath_var=LIBRARY_PATH
  8812. ;;
  8813. bsdi[45]*)
  8814. version_type=linux # correct to gnu/linux during the next big refactor
  8815. need_version=no
  8816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8817. soname_spec='${libname}${release}${shared_ext}$major'
  8818. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8819. shlibpath_var=LD_LIBRARY_PATH
  8820. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8821. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8822. # the default ld.so.conf also contains /usr/contrib/lib and
  8823. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8824. # libtool to hard-code these into programs
  8825. ;;
  8826. cygwin* | mingw* | pw32* | cegcc*)
  8827. version_type=windows
  8828. shrext_cmds=".dll"
  8829. need_version=no
  8830. need_lib_prefix=no
  8831. case $GCC,$cc_basename in
  8832. yes,*)
  8833. # gcc
  8834. library_names_spec='$libname.dll.a'
  8835. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8836. postinstall_cmds='base_file=`basename \${file}`~
  8837. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8838. dldir=$destdir/`dirname \$dlpath`~
  8839. test -d \$dldir || mkdir -p \$dldir~
  8840. $install_prog $dir/$dlname \$dldir/$dlname~
  8841. chmod a+x \$dldir/$dlname~
  8842. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8843. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8844. fi'
  8845. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8846. dlpath=$dir/\$dldll~
  8847. $RM \$dlpath'
  8848. shlibpath_overrides_runpath=yes
  8849. case $host_os in
  8850. cygwin*)
  8851. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8852. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8853. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8854. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8855. ;;
  8856. mingw* | cegcc*)
  8857. # MinGW DLLs use traditional 'lib' prefix
  8858. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8859. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8860. ;;
  8861. pw32*)
  8862. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8863. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8864. ;;
  8865. esac
  8866. dynamic_linker='Win32 ld.exe'
  8867. ;;
  8868. *,cl*)
  8869. # Native MSVC
  8870. libname_spec='$name'
  8871. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8872. library_names_spec='${libname}.dll.lib'
  8873. case $build_os in
  8874. mingw*)
  8875. sys_lib_search_path_spec=
  8876. lt_save_ifs=$IFS
  8877. IFS=';'
  8878. for lt_path in $LIB
  8879. do
  8880. IFS=$lt_save_ifs
  8881. # Let DOS variable expansion print the short 8.3 style file name.
  8882. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8883. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8884. done
  8885. IFS=$lt_save_ifs
  8886. # Convert to MSYS style.
  8887. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8888. ;;
  8889. cygwin*)
  8890. # Convert to unix form, then to dos form, then back to unix form
  8891. # but this time dos style (no spaces!) so that the unix form looks
  8892. # like /cygdrive/c/PROGRA~1:/cygdr...
  8893. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8894. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8895. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8896. ;;
  8897. *)
  8898. sys_lib_search_path_spec="$LIB"
  8899. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8900. # It is most probably a Windows format PATH.
  8901. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8902. else
  8903. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8904. fi
  8905. # FIXME: find the short name or the path components, as spaces are
  8906. # common. (e.g. "Program Files" -> "PROGRA~1")
  8907. ;;
  8908. esac
  8909. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8910. postinstall_cmds='base_file=`basename \${file}`~
  8911. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8912. dldir=$destdir/`dirname \$dlpath`~
  8913. test -d \$dldir || mkdir -p \$dldir~
  8914. $install_prog $dir/$dlname \$dldir/$dlname'
  8915. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8916. dlpath=$dir/\$dldll~
  8917. $RM \$dlpath'
  8918. shlibpath_overrides_runpath=yes
  8919. dynamic_linker='Win32 link.exe'
  8920. ;;
  8921. *)
  8922. # Assume MSVC wrapper
  8923. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8924. dynamic_linker='Win32 ld.exe'
  8925. ;;
  8926. esac
  8927. # FIXME: first we should search . and the directory the executable is in
  8928. shlibpath_var=PATH
  8929. ;;
  8930. darwin* | rhapsody*)
  8931. dynamic_linker="$host_os dyld"
  8932. version_type=darwin
  8933. need_lib_prefix=no
  8934. need_version=no
  8935. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8936. soname_spec='${libname}${release}${major}$shared_ext'
  8937. shlibpath_overrides_runpath=yes
  8938. shlibpath_var=DYLD_LIBRARY_PATH
  8939. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8940. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8941. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8942. ;;
  8943. dgux*)
  8944. version_type=linux # correct to gnu/linux during the next big refactor
  8945. need_lib_prefix=no
  8946. need_version=no
  8947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8948. soname_spec='${libname}${release}${shared_ext}$major'
  8949. shlibpath_var=LD_LIBRARY_PATH
  8950. ;;
  8951. freebsd* | dragonfly*)
  8952. # DragonFly does not have aout. When/if they implement a new
  8953. # versioning mechanism, adjust this.
  8954. if test -x /usr/bin/objformat; then
  8955. objformat=`/usr/bin/objformat`
  8956. else
  8957. case $host_os in
  8958. freebsd[23].*) objformat=aout ;;
  8959. *) objformat=elf ;;
  8960. esac
  8961. fi
  8962. version_type=freebsd-$objformat
  8963. case $version_type in
  8964. freebsd-elf*)
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8966. need_version=no
  8967. need_lib_prefix=no
  8968. ;;
  8969. freebsd-*)
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8971. need_version=yes
  8972. ;;
  8973. esac
  8974. shlibpath_var=LD_LIBRARY_PATH
  8975. case $host_os in
  8976. freebsd2.*)
  8977. shlibpath_overrides_runpath=yes
  8978. ;;
  8979. freebsd3.[01]* | freebsdelf3.[01]*)
  8980. shlibpath_overrides_runpath=yes
  8981. hardcode_into_libs=yes
  8982. ;;
  8983. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8984. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8985. shlibpath_overrides_runpath=no
  8986. hardcode_into_libs=yes
  8987. ;;
  8988. *) # from 4.6 on, and DragonFly
  8989. shlibpath_overrides_runpath=yes
  8990. hardcode_into_libs=yes
  8991. ;;
  8992. esac
  8993. ;;
  8994. gnu*)
  8995. version_type=linux # correct to gnu/linux during the next big refactor
  8996. need_lib_prefix=no
  8997. need_version=no
  8998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8999. soname_spec='${libname}${release}${shared_ext}$major'
  9000. shlibpath_var=LD_LIBRARY_PATH
  9001. shlibpath_overrides_runpath=no
  9002. hardcode_into_libs=yes
  9003. ;;
  9004. haiku*)
  9005. version_type=linux # correct to gnu/linux during the next big refactor
  9006. need_lib_prefix=no
  9007. need_version=no
  9008. dynamic_linker="$host_os runtime_loader"
  9009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9010. soname_spec='${libname}${release}${shared_ext}$major'
  9011. shlibpath_var=LIBRARY_PATH
  9012. shlibpath_overrides_runpath=yes
  9013. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9014. hardcode_into_libs=yes
  9015. ;;
  9016. hpux9* | hpux10* | hpux11*)
  9017. # Give a soname corresponding to the major version so that dld.sl refuses to
  9018. # link against other versions.
  9019. version_type=sunos
  9020. need_lib_prefix=no
  9021. need_version=no
  9022. case $host_cpu in
  9023. ia64*)
  9024. shrext_cmds='.so'
  9025. hardcode_into_libs=yes
  9026. dynamic_linker="$host_os dld.so"
  9027. shlibpath_var=LD_LIBRARY_PATH
  9028. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9030. soname_spec='${libname}${release}${shared_ext}$major'
  9031. if test "X$HPUX_IA64_MODE" = X32; then
  9032. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9033. else
  9034. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9035. fi
  9036. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9037. ;;
  9038. hppa*64*)
  9039. shrext_cmds='.sl'
  9040. hardcode_into_libs=yes
  9041. dynamic_linker="$host_os dld.sl"
  9042. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9043. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9045. soname_spec='${libname}${release}${shared_ext}$major'
  9046. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9047. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9048. ;;
  9049. *)
  9050. shrext_cmds='.sl'
  9051. dynamic_linker="$host_os dld.sl"
  9052. shlibpath_var=SHLIB_PATH
  9053. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9055. soname_spec='${libname}${release}${shared_ext}$major'
  9056. ;;
  9057. esac
  9058. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9059. postinstall_cmds='chmod 555 $lib'
  9060. # or fails outright, so override atomically:
  9061. install_override_mode=555
  9062. ;;
  9063. interix[3-9]*)
  9064. version_type=linux # correct to gnu/linux during the next big refactor
  9065. need_lib_prefix=no
  9066. need_version=no
  9067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9068. soname_spec='${libname}${release}${shared_ext}$major'
  9069. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9070. shlibpath_var=LD_LIBRARY_PATH
  9071. shlibpath_overrides_runpath=no
  9072. hardcode_into_libs=yes
  9073. ;;
  9074. irix5* | irix6* | nonstopux*)
  9075. case $host_os in
  9076. nonstopux*) version_type=nonstopux ;;
  9077. *)
  9078. if test "$lt_cv_prog_gnu_ld" = yes; then
  9079. version_type=linux # correct to gnu/linux during the next big refactor
  9080. else
  9081. version_type=irix
  9082. fi ;;
  9083. esac
  9084. need_lib_prefix=no
  9085. need_version=no
  9086. soname_spec='${libname}${release}${shared_ext}$major'
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9088. case $host_os in
  9089. irix5* | nonstopux*)
  9090. libsuff= shlibsuff=
  9091. ;;
  9092. *)
  9093. case $LD in # libtool.m4 will add one of these switches to LD
  9094. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9095. libsuff= shlibsuff= libmagic=32-bit;;
  9096. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9097. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9098. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9099. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9100. *) libsuff= shlibsuff= libmagic=never-match;;
  9101. esac
  9102. ;;
  9103. esac
  9104. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9105. shlibpath_overrides_runpath=no
  9106. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9107. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9108. hardcode_into_libs=yes
  9109. ;;
  9110. # No shared lib support for Linux oldld, aout, or coff.
  9111. linux*oldld* | linux*aout* | linux*coff*)
  9112. dynamic_linker=no
  9113. ;;
  9114. # This must be glibc/ELF.
  9115. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9116. version_type=linux # correct to gnu/linux during the next big refactor
  9117. need_lib_prefix=no
  9118. need_version=no
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9120. soname_spec='${libname}${release}${shared_ext}$major'
  9121. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9122. shlibpath_var=LD_LIBRARY_PATH
  9123. shlibpath_overrides_runpath=no
  9124. # Some binutils ld are patched to set DT_RUNPATH
  9125. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9126. $as_echo_n "(cached) " >&6
  9127. else
  9128. lt_cv_shlibpath_overrides_runpath=no
  9129. save_LDFLAGS=$LDFLAGS
  9130. save_libdir=$libdir
  9131. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9132. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9134. /* end confdefs.h. */
  9135. int
  9136. main ()
  9137. {
  9138. ;
  9139. return 0;
  9140. }
  9141. _ACEOF
  9142. if ac_fn_c_try_link "$LINENO"; then :
  9143. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9144. lt_cv_shlibpath_overrides_runpath=yes
  9145. fi
  9146. fi
  9147. rm -f core conftest.err conftest.$ac_objext \
  9148. conftest$ac_exeext conftest.$ac_ext
  9149. LDFLAGS=$save_LDFLAGS
  9150. libdir=$save_libdir
  9151. fi
  9152. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9153. # This implies no fast_install, which is unacceptable.
  9154. # Some rework will be needed to allow for fast_install
  9155. # before this can be enabled.
  9156. hardcode_into_libs=yes
  9157. # Append ld.so.conf contents to the search path
  9158. if test -f /etc/ld.so.conf; then
  9159. 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' ' '`
  9160. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9161. fi
  9162. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9163. # powerpc, because MkLinux only supported shared libraries with the
  9164. # GNU dynamic linker. Since this was broken with cross compilers,
  9165. # most powerpc-linux boxes support dynamic linking these days and
  9166. # people can always --disable-shared, the test was removed, and we
  9167. # assume the GNU/Linux dynamic linker is in use.
  9168. dynamic_linker='GNU/Linux ld.so'
  9169. ;;
  9170. netbsd*)
  9171. version_type=sunos
  9172. need_lib_prefix=no
  9173. need_version=no
  9174. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9176. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9177. dynamic_linker='NetBSD (a.out) ld.so'
  9178. else
  9179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9180. soname_spec='${libname}${release}${shared_ext}$major'
  9181. dynamic_linker='NetBSD ld.elf_so'
  9182. fi
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. shlibpath_overrides_runpath=yes
  9185. hardcode_into_libs=yes
  9186. ;;
  9187. newsos6)
  9188. version_type=linux # correct to gnu/linux during the next big refactor
  9189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9190. shlibpath_var=LD_LIBRARY_PATH
  9191. shlibpath_overrides_runpath=yes
  9192. ;;
  9193. *nto* | *qnx*)
  9194. version_type=qnx
  9195. need_lib_prefix=no
  9196. need_version=no
  9197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9198. soname_spec='${libname}${release}${shared_ext}$major'
  9199. shlibpath_var=LD_LIBRARY_PATH
  9200. shlibpath_overrides_runpath=no
  9201. hardcode_into_libs=yes
  9202. dynamic_linker='ldqnx.so'
  9203. ;;
  9204. openbsd*)
  9205. version_type=sunos
  9206. sys_lib_dlsearch_path_spec="/usr/lib"
  9207. need_lib_prefix=no
  9208. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9209. case $host_os in
  9210. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9211. *) need_version=no ;;
  9212. esac
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9214. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9217. case $host_os in
  9218. openbsd2.[89] | openbsd2.[89].*)
  9219. shlibpath_overrides_runpath=no
  9220. ;;
  9221. *)
  9222. shlibpath_overrides_runpath=yes
  9223. ;;
  9224. esac
  9225. else
  9226. shlibpath_overrides_runpath=yes
  9227. fi
  9228. ;;
  9229. os2*)
  9230. libname_spec='$name'
  9231. shrext_cmds=".dll"
  9232. need_lib_prefix=no
  9233. library_names_spec='$libname${shared_ext} $libname.a'
  9234. dynamic_linker='OS/2 ld.exe'
  9235. shlibpath_var=LIBPATH
  9236. ;;
  9237. osf3* | osf4* | osf5*)
  9238. version_type=osf
  9239. need_lib_prefix=no
  9240. need_version=no
  9241. soname_spec='${libname}${release}${shared_ext}$major'
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9243. shlibpath_var=LD_LIBRARY_PATH
  9244. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9245. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9246. ;;
  9247. rdos*)
  9248. dynamic_linker=no
  9249. ;;
  9250. solaris*)
  9251. version_type=linux # correct to gnu/linux during the next big refactor
  9252. need_lib_prefix=no
  9253. need_version=no
  9254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9255. soname_spec='${libname}${release}${shared_ext}$major'
  9256. shlibpath_var=LD_LIBRARY_PATH
  9257. shlibpath_overrides_runpath=yes
  9258. hardcode_into_libs=yes
  9259. # ldd complains unless libraries are executable
  9260. postinstall_cmds='chmod +x $lib'
  9261. ;;
  9262. sunos4*)
  9263. version_type=sunos
  9264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9265. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9266. shlibpath_var=LD_LIBRARY_PATH
  9267. shlibpath_overrides_runpath=yes
  9268. if test "$with_gnu_ld" = yes; then
  9269. need_lib_prefix=no
  9270. fi
  9271. need_version=yes
  9272. ;;
  9273. sysv4 | sysv4.3*)
  9274. version_type=linux # correct to gnu/linux during the next big refactor
  9275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9276. soname_spec='${libname}${release}${shared_ext}$major'
  9277. shlibpath_var=LD_LIBRARY_PATH
  9278. case $host_vendor in
  9279. sni)
  9280. shlibpath_overrides_runpath=no
  9281. need_lib_prefix=no
  9282. runpath_var=LD_RUN_PATH
  9283. ;;
  9284. siemens)
  9285. need_lib_prefix=no
  9286. ;;
  9287. motorola)
  9288. need_lib_prefix=no
  9289. need_version=no
  9290. shlibpath_overrides_runpath=no
  9291. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9292. ;;
  9293. esac
  9294. ;;
  9295. sysv4*MP*)
  9296. if test -d /usr/nec ;then
  9297. version_type=linux # correct to gnu/linux during the next big refactor
  9298. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9299. soname_spec='$libname${shared_ext}.$major'
  9300. shlibpath_var=LD_LIBRARY_PATH
  9301. fi
  9302. ;;
  9303. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9304. version_type=freebsd-elf
  9305. need_lib_prefix=no
  9306. need_version=no
  9307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9308. soname_spec='${libname}${release}${shared_ext}$major'
  9309. shlibpath_var=LD_LIBRARY_PATH
  9310. shlibpath_overrides_runpath=yes
  9311. hardcode_into_libs=yes
  9312. if test "$with_gnu_ld" = yes; then
  9313. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9314. else
  9315. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9316. case $host_os in
  9317. sco3.2v5*)
  9318. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9319. ;;
  9320. esac
  9321. fi
  9322. sys_lib_dlsearch_path_spec='/usr/lib'
  9323. ;;
  9324. tpf*)
  9325. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9326. version_type=linux # correct to gnu/linux during the next big refactor
  9327. need_lib_prefix=no
  9328. need_version=no
  9329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9330. shlibpath_var=LD_LIBRARY_PATH
  9331. shlibpath_overrides_runpath=no
  9332. hardcode_into_libs=yes
  9333. ;;
  9334. uts4*)
  9335. version_type=linux # correct to gnu/linux during the next big refactor
  9336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9337. soname_spec='${libname}${release}${shared_ext}$major'
  9338. shlibpath_var=LD_LIBRARY_PATH
  9339. ;;
  9340. *)
  9341. dynamic_linker=no
  9342. ;;
  9343. esac
  9344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9345. $as_echo "$dynamic_linker" >&6; }
  9346. test "$dynamic_linker" = no && can_build_shared=no
  9347. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9348. if test "$GCC" = yes; then
  9349. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9350. fi
  9351. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9352. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9353. fi
  9354. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9355. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9356. fi
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9358. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9359. hardcode_action=
  9360. if test -n "$hardcode_libdir_flag_spec" ||
  9361. test -n "$runpath_var" ||
  9362. test "X$hardcode_automatic" = "Xyes" ; then
  9363. # We can hardcode non-existent directories.
  9364. if test "$hardcode_direct" != no &&
  9365. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9366. # have to relink, otherwise we might link with an installed library
  9367. # when we should be linking with a yet-to-be-installed one
  9368. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9369. test "$hardcode_minus_L" != no; then
  9370. # Linking always hardcodes the temporary library directory.
  9371. hardcode_action=relink
  9372. else
  9373. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9374. hardcode_action=immediate
  9375. fi
  9376. else
  9377. # We cannot hardcode anything, or else we can only hardcode existing
  9378. # directories.
  9379. hardcode_action=unsupported
  9380. fi
  9381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9382. $as_echo "$hardcode_action" >&6; }
  9383. if test "$hardcode_action" = relink ||
  9384. test "$inherit_rpath" = yes; then
  9385. # Fast installation is not supported
  9386. enable_fast_install=no
  9387. elif test "$shlibpath_overrides_runpath" = yes ||
  9388. test "$enable_shared" = no; then
  9389. # Fast installation is not necessary
  9390. enable_fast_install=needless
  9391. fi
  9392. if test "x$enable_dlopen" != xyes; then
  9393. enable_dlopen=unknown
  9394. enable_dlopen_self=unknown
  9395. enable_dlopen_self_static=unknown
  9396. else
  9397. lt_cv_dlopen=no
  9398. lt_cv_dlopen_libs=
  9399. case $host_os in
  9400. beos*)
  9401. lt_cv_dlopen="load_add_on"
  9402. lt_cv_dlopen_libs=
  9403. lt_cv_dlopen_self=yes
  9404. ;;
  9405. mingw* | pw32* | cegcc*)
  9406. lt_cv_dlopen="LoadLibrary"
  9407. lt_cv_dlopen_libs=
  9408. ;;
  9409. cygwin*)
  9410. lt_cv_dlopen="dlopen"
  9411. lt_cv_dlopen_libs=
  9412. ;;
  9413. darwin*)
  9414. # if libdl is installed we need to link against it
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9416. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9417. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9418. $as_echo_n "(cached) " >&6
  9419. else
  9420. ac_check_lib_save_LIBS=$LIBS
  9421. LIBS="-ldl $LIBS"
  9422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9423. /* end confdefs.h. */
  9424. /* Override any GCC internal prototype to avoid an error.
  9425. Use char because int might match the return type of a GCC
  9426. builtin and then its argument prototype would still apply. */
  9427. #ifdef __cplusplus
  9428. extern "C"
  9429. #endif
  9430. char dlopen ();
  9431. int
  9432. main ()
  9433. {
  9434. return dlopen ();
  9435. ;
  9436. return 0;
  9437. }
  9438. _ACEOF
  9439. if ac_fn_c_try_link "$LINENO"; then :
  9440. ac_cv_lib_dl_dlopen=yes
  9441. else
  9442. ac_cv_lib_dl_dlopen=no
  9443. fi
  9444. rm -f core conftest.err conftest.$ac_objext \
  9445. conftest$ac_exeext conftest.$ac_ext
  9446. LIBS=$ac_check_lib_save_LIBS
  9447. fi
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9449. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9450. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9451. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9452. else
  9453. lt_cv_dlopen="dyld"
  9454. lt_cv_dlopen_libs=
  9455. lt_cv_dlopen_self=yes
  9456. fi
  9457. ;;
  9458. *)
  9459. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9460. if test "x$ac_cv_func_shl_load" = xyes; then :
  9461. lt_cv_dlopen="shl_load"
  9462. else
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9464. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9465. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9466. $as_echo_n "(cached) " >&6
  9467. else
  9468. ac_check_lib_save_LIBS=$LIBS
  9469. LIBS="-ldld $LIBS"
  9470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9471. /* end confdefs.h. */
  9472. /* Override any GCC internal prototype to avoid an error.
  9473. Use char because int might match the return type of a GCC
  9474. builtin and then its argument prototype would still apply. */
  9475. #ifdef __cplusplus
  9476. extern "C"
  9477. #endif
  9478. char shl_load ();
  9479. int
  9480. main ()
  9481. {
  9482. return shl_load ();
  9483. ;
  9484. return 0;
  9485. }
  9486. _ACEOF
  9487. if ac_fn_c_try_link "$LINENO"; then :
  9488. ac_cv_lib_dld_shl_load=yes
  9489. else
  9490. ac_cv_lib_dld_shl_load=no
  9491. fi
  9492. rm -f core conftest.err conftest.$ac_objext \
  9493. conftest$ac_exeext conftest.$ac_ext
  9494. LIBS=$ac_check_lib_save_LIBS
  9495. fi
  9496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9497. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9498. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9499. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9500. else
  9501. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9502. if test "x$ac_cv_func_dlopen" = xyes; then :
  9503. lt_cv_dlopen="dlopen"
  9504. else
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9506. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9507. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9508. $as_echo_n "(cached) " >&6
  9509. else
  9510. ac_check_lib_save_LIBS=$LIBS
  9511. LIBS="-ldl $LIBS"
  9512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9513. /* end confdefs.h. */
  9514. /* Override any GCC internal prototype to avoid an error.
  9515. Use char because int might match the return type of a GCC
  9516. builtin and then its argument prototype would still apply. */
  9517. #ifdef __cplusplus
  9518. extern "C"
  9519. #endif
  9520. char dlopen ();
  9521. int
  9522. main ()
  9523. {
  9524. return dlopen ();
  9525. ;
  9526. return 0;
  9527. }
  9528. _ACEOF
  9529. if ac_fn_c_try_link "$LINENO"; then :
  9530. ac_cv_lib_dl_dlopen=yes
  9531. else
  9532. ac_cv_lib_dl_dlopen=no
  9533. fi
  9534. rm -f core conftest.err conftest.$ac_objext \
  9535. conftest$ac_exeext conftest.$ac_ext
  9536. LIBS=$ac_check_lib_save_LIBS
  9537. fi
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9539. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9540. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9541. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9542. else
  9543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9544. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9545. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9546. $as_echo_n "(cached) " >&6
  9547. else
  9548. ac_check_lib_save_LIBS=$LIBS
  9549. LIBS="-lsvld $LIBS"
  9550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9551. /* end confdefs.h. */
  9552. /* Override any GCC internal prototype to avoid an error.
  9553. Use char because int might match the return type of a GCC
  9554. builtin and then its argument prototype would still apply. */
  9555. #ifdef __cplusplus
  9556. extern "C"
  9557. #endif
  9558. char dlopen ();
  9559. int
  9560. main ()
  9561. {
  9562. return dlopen ();
  9563. ;
  9564. return 0;
  9565. }
  9566. _ACEOF
  9567. if ac_fn_c_try_link "$LINENO"; then :
  9568. ac_cv_lib_svld_dlopen=yes
  9569. else
  9570. ac_cv_lib_svld_dlopen=no
  9571. fi
  9572. rm -f core conftest.err conftest.$ac_objext \
  9573. conftest$ac_exeext conftest.$ac_ext
  9574. LIBS=$ac_check_lib_save_LIBS
  9575. fi
  9576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9577. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9578. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9579. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9580. else
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9582. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9583. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9584. $as_echo_n "(cached) " >&6
  9585. else
  9586. ac_check_lib_save_LIBS=$LIBS
  9587. LIBS="-ldld $LIBS"
  9588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9589. /* end confdefs.h. */
  9590. /* Override any GCC internal prototype to avoid an error.
  9591. Use char because int might match the return type of a GCC
  9592. builtin and then its argument prototype would still apply. */
  9593. #ifdef __cplusplus
  9594. extern "C"
  9595. #endif
  9596. char dld_link ();
  9597. int
  9598. main ()
  9599. {
  9600. return dld_link ();
  9601. ;
  9602. return 0;
  9603. }
  9604. _ACEOF
  9605. if ac_fn_c_try_link "$LINENO"; then :
  9606. ac_cv_lib_dld_dld_link=yes
  9607. else
  9608. ac_cv_lib_dld_dld_link=no
  9609. fi
  9610. rm -f core conftest.err conftest.$ac_objext \
  9611. conftest$ac_exeext conftest.$ac_ext
  9612. LIBS=$ac_check_lib_save_LIBS
  9613. fi
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9615. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9616. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9617. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9618. fi
  9619. fi
  9620. fi
  9621. fi
  9622. fi
  9623. fi
  9624. ;;
  9625. esac
  9626. if test "x$lt_cv_dlopen" != xno; then
  9627. enable_dlopen=yes
  9628. else
  9629. enable_dlopen=no
  9630. fi
  9631. case $lt_cv_dlopen in
  9632. dlopen)
  9633. save_CPPFLAGS="$CPPFLAGS"
  9634. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9635. save_LDFLAGS="$LDFLAGS"
  9636. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9637. save_LIBS="$LIBS"
  9638. LIBS="$lt_cv_dlopen_libs $LIBS"
  9639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9640. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9641. if ${lt_cv_dlopen_self+:} false; then :
  9642. $as_echo_n "(cached) " >&6
  9643. else
  9644. if test "$cross_compiling" = yes; then :
  9645. lt_cv_dlopen_self=cross
  9646. else
  9647. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9648. lt_status=$lt_dlunknown
  9649. cat > conftest.$ac_ext <<_LT_EOF
  9650. #line $LINENO "configure"
  9651. #include "confdefs.h"
  9652. #if HAVE_DLFCN_H
  9653. #include <dlfcn.h>
  9654. #endif
  9655. #include <stdio.h>
  9656. #ifdef RTLD_GLOBAL
  9657. # define LT_DLGLOBAL RTLD_GLOBAL
  9658. #else
  9659. # ifdef DL_GLOBAL
  9660. # define LT_DLGLOBAL DL_GLOBAL
  9661. # else
  9662. # define LT_DLGLOBAL 0
  9663. # endif
  9664. #endif
  9665. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9666. find out it does not work in some platform. */
  9667. #ifndef LT_DLLAZY_OR_NOW
  9668. # ifdef RTLD_LAZY
  9669. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9670. # else
  9671. # ifdef DL_LAZY
  9672. # define LT_DLLAZY_OR_NOW DL_LAZY
  9673. # else
  9674. # ifdef RTLD_NOW
  9675. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9676. # else
  9677. # ifdef DL_NOW
  9678. # define LT_DLLAZY_OR_NOW DL_NOW
  9679. # else
  9680. # define LT_DLLAZY_OR_NOW 0
  9681. # endif
  9682. # endif
  9683. # endif
  9684. # endif
  9685. #endif
  9686. /* When -fvisbility=hidden is used, assume the code has been annotated
  9687. correspondingly for the symbols needed. */
  9688. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9689. int fnord () __attribute__((visibility("default")));
  9690. #endif
  9691. int fnord () { return 42; }
  9692. int main ()
  9693. {
  9694. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9695. int status = $lt_dlunknown;
  9696. if (self)
  9697. {
  9698. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9699. else
  9700. {
  9701. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9702. else puts (dlerror ());
  9703. }
  9704. /* dlclose (self); */
  9705. }
  9706. else
  9707. puts (dlerror ());
  9708. return status;
  9709. }
  9710. _LT_EOF
  9711. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9712. (eval $ac_link) 2>&5
  9713. ac_status=$?
  9714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9715. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9716. (./conftest; exit; ) >&5 2>/dev/null
  9717. lt_status=$?
  9718. case x$lt_status in
  9719. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9720. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9721. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9722. esac
  9723. else :
  9724. # compilation failed
  9725. lt_cv_dlopen_self=no
  9726. fi
  9727. fi
  9728. rm -fr conftest*
  9729. fi
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9731. $as_echo "$lt_cv_dlopen_self" >&6; }
  9732. if test "x$lt_cv_dlopen_self" = xyes; then
  9733. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9735. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9736. if ${lt_cv_dlopen_self_static+:} false; then :
  9737. $as_echo_n "(cached) " >&6
  9738. else
  9739. if test "$cross_compiling" = yes; then :
  9740. lt_cv_dlopen_self_static=cross
  9741. else
  9742. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9743. lt_status=$lt_dlunknown
  9744. cat > conftest.$ac_ext <<_LT_EOF
  9745. #line $LINENO "configure"
  9746. #include "confdefs.h"
  9747. #if HAVE_DLFCN_H
  9748. #include <dlfcn.h>
  9749. #endif
  9750. #include <stdio.h>
  9751. #ifdef RTLD_GLOBAL
  9752. # define LT_DLGLOBAL RTLD_GLOBAL
  9753. #else
  9754. # ifdef DL_GLOBAL
  9755. # define LT_DLGLOBAL DL_GLOBAL
  9756. # else
  9757. # define LT_DLGLOBAL 0
  9758. # endif
  9759. #endif
  9760. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9761. find out it does not work in some platform. */
  9762. #ifndef LT_DLLAZY_OR_NOW
  9763. # ifdef RTLD_LAZY
  9764. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9765. # else
  9766. # ifdef DL_LAZY
  9767. # define LT_DLLAZY_OR_NOW DL_LAZY
  9768. # else
  9769. # ifdef RTLD_NOW
  9770. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9771. # else
  9772. # ifdef DL_NOW
  9773. # define LT_DLLAZY_OR_NOW DL_NOW
  9774. # else
  9775. # define LT_DLLAZY_OR_NOW 0
  9776. # endif
  9777. # endif
  9778. # endif
  9779. # endif
  9780. #endif
  9781. /* When -fvisbility=hidden is used, assume the code has been annotated
  9782. correspondingly for the symbols needed. */
  9783. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9784. int fnord () __attribute__((visibility("default")));
  9785. #endif
  9786. int fnord () { return 42; }
  9787. int main ()
  9788. {
  9789. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9790. int status = $lt_dlunknown;
  9791. if (self)
  9792. {
  9793. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9794. else
  9795. {
  9796. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9797. else puts (dlerror ());
  9798. }
  9799. /* dlclose (self); */
  9800. }
  9801. else
  9802. puts (dlerror ());
  9803. return status;
  9804. }
  9805. _LT_EOF
  9806. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9807. (eval $ac_link) 2>&5
  9808. ac_status=$?
  9809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9810. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9811. (./conftest; exit; ) >&5 2>/dev/null
  9812. lt_status=$?
  9813. case x$lt_status in
  9814. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9815. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9816. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9817. esac
  9818. else :
  9819. # compilation failed
  9820. lt_cv_dlopen_self_static=no
  9821. fi
  9822. fi
  9823. rm -fr conftest*
  9824. fi
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9826. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9827. fi
  9828. CPPFLAGS="$save_CPPFLAGS"
  9829. LDFLAGS="$save_LDFLAGS"
  9830. LIBS="$save_LIBS"
  9831. ;;
  9832. esac
  9833. case $lt_cv_dlopen_self in
  9834. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9835. *) enable_dlopen_self=unknown ;;
  9836. esac
  9837. case $lt_cv_dlopen_self_static in
  9838. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9839. *) enable_dlopen_self_static=unknown ;;
  9840. esac
  9841. fi
  9842. striplib=
  9843. old_striplib=
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9845. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9846. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9847. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9848. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9850. $as_echo "yes" >&6; }
  9851. else
  9852. # FIXME - insert some real tests, host_os isn't really good enough
  9853. case $host_os in
  9854. darwin*)
  9855. if test -n "$STRIP" ; then
  9856. striplib="$STRIP -x"
  9857. old_striplib="$STRIP -S"
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9859. $as_echo "yes" >&6; }
  9860. else
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9862. $as_echo "no" >&6; }
  9863. fi
  9864. ;;
  9865. *)
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9867. $as_echo "no" >&6; }
  9868. ;;
  9869. esac
  9870. fi
  9871. # Report which library types will actually be built
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9873. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9875. $as_echo "$can_build_shared" >&6; }
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9877. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9878. test "$can_build_shared" = "no" && enable_shared=no
  9879. # On AIX, shared libraries and static libraries use the same namespace, and
  9880. # are all built from PIC.
  9881. case $host_os in
  9882. aix3*)
  9883. test "$enable_shared" = yes && enable_static=no
  9884. if test -n "$RANLIB"; then
  9885. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9886. postinstall_cmds='$RANLIB $lib'
  9887. fi
  9888. ;;
  9889. aix[4-9]*)
  9890. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9891. test "$enable_shared" = yes && enable_static=no
  9892. fi
  9893. ;;
  9894. esac
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9896. $as_echo "$enable_shared" >&6; }
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9898. $as_echo_n "checking whether to build static libraries... " >&6; }
  9899. # Make sure either enable_shared or enable_static is yes.
  9900. test "$enable_shared" = yes || enable_static=yes
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9902. $as_echo "$enable_static" >&6; }
  9903. fi
  9904. ac_ext=c
  9905. ac_cpp='$CPP $CPPFLAGS'
  9906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9909. CC="$lt_save_CC"
  9910. ac_config_commands="$ac_config_commands libtool"
  9911. # Only expand once:
  9912. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9913. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9914. LT_REVISION=$SDL_INTERFACE_AGE
  9915. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9916. ac_ext=c
  9917. ac_cpp='$CPP $CPPFLAGS'
  9918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9921. if test -n "$ac_tool_prefix"; then
  9922. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9923. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9925. $as_echo_n "checking for $ac_word... " >&6; }
  9926. if ${ac_cv_prog_CC+:} false; then :
  9927. $as_echo_n "(cached) " >&6
  9928. else
  9929. if test -n "$CC"; then
  9930. ac_cv_prog_CC="$CC" # Let the user override the test.
  9931. else
  9932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9933. for as_dir in $PATH
  9934. do
  9935. IFS=$as_save_IFS
  9936. test -z "$as_dir" && as_dir=.
  9937. for ac_exec_ext in '' $ac_executable_extensions; do
  9938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9939. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9941. break 2
  9942. fi
  9943. done
  9944. done
  9945. IFS=$as_save_IFS
  9946. fi
  9947. fi
  9948. CC=$ac_cv_prog_CC
  9949. if test -n "$CC"; then
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9951. $as_echo "$CC" >&6; }
  9952. else
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9954. $as_echo "no" >&6; }
  9955. fi
  9956. fi
  9957. if test -z "$ac_cv_prog_CC"; then
  9958. ac_ct_CC=$CC
  9959. # Extract the first word of "gcc", so it can be a program name with args.
  9960. set dummy gcc; ac_word=$2
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9962. $as_echo_n "checking for $ac_word... " >&6; }
  9963. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9964. $as_echo_n "(cached) " >&6
  9965. else
  9966. if test -n "$ac_ct_CC"; then
  9967. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9968. else
  9969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9970. for as_dir in $PATH
  9971. do
  9972. IFS=$as_save_IFS
  9973. test -z "$as_dir" && as_dir=.
  9974. for ac_exec_ext in '' $ac_executable_extensions; do
  9975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9976. ac_cv_prog_ac_ct_CC="gcc"
  9977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9978. break 2
  9979. fi
  9980. done
  9981. done
  9982. IFS=$as_save_IFS
  9983. fi
  9984. fi
  9985. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9986. if test -n "$ac_ct_CC"; then
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9988. $as_echo "$ac_ct_CC" >&6; }
  9989. else
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9991. $as_echo "no" >&6; }
  9992. fi
  9993. if test "x$ac_ct_CC" = x; then
  9994. CC=""
  9995. else
  9996. case $cross_compiling:$ac_tool_warned in
  9997. yes:)
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10000. ac_tool_warned=yes ;;
  10001. esac
  10002. CC=$ac_ct_CC
  10003. fi
  10004. else
  10005. CC="$ac_cv_prog_CC"
  10006. fi
  10007. if test -z "$CC"; then
  10008. if test -n "$ac_tool_prefix"; then
  10009. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10010. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10012. $as_echo_n "checking for $ac_word... " >&6; }
  10013. if ${ac_cv_prog_CC+:} false; then :
  10014. $as_echo_n "(cached) " >&6
  10015. else
  10016. if test -n "$CC"; then
  10017. ac_cv_prog_CC="$CC" # Let the user override the test.
  10018. else
  10019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10020. for as_dir in $PATH
  10021. do
  10022. IFS=$as_save_IFS
  10023. test -z "$as_dir" && as_dir=.
  10024. for ac_exec_ext in '' $ac_executable_extensions; do
  10025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10026. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10028. break 2
  10029. fi
  10030. done
  10031. done
  10032. IFS=$as_save_IFS
  10033. fi
  10034. fi
  10035. CC=$ac_cv_prog_CC
  10036. if test -n "$CC"; then
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10038. $as_echo "$CC" >&6; }
  10039. else
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10041. $as_echo "no" >&6; }
  10042. fi
  10043. fi
  10044. fi
  10045. if test -z "$CC"; then
  10046. # Extract the first word of "cc", so it can be a program name with args.
  10047. set dummy cc; ac_word=$2
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10049. $as_echo_n "checking for $ac_word... " >&6; }
  10050. if ${ac_cv_prog_CC+:} false; then :
  10051. $as_echo_n "(cached) " >&6
  10052. else
  10053. if test -n "$CC"; then
  10054. ac_cv_prog_CC="$CC" # Let the user override the test.
  10055. else
  10056. ac_prog_rejected=no
  10057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10058. for as_dir in $PATH
  10059. do
  10060. IFS=$as_save_IFS
  10061. test -z "$as_dir" && as_dir=.
  10062. for ac_exec_ext in '' $ac_executable_extensions; do
  10063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10064. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10065. ac_prog_rejected=yes
  10066. continue
  10067. fi
  10068. ac_cv_prog_CC="cc"
  10069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10070. break 2
  10071. fi
  10072. done
  10073. done
  10074. IFS=$as_save_IFS
  10075. if test $ac_prog_rejected = yes; then
  10076. # We found a bogon in the path, so make sure we never use it.
  10077. set dummy $ac_cv_prog_CC
  10078. shift
  10079. if test $# != 0; then
  10080. # We chose a different compiler from the bogus one.
  10081. # However, it has the same basename, so the bogon will be chosen
  10082. # first if we set CC to just the basename; use the full file name.
  10083. shift
  10084. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10085. fi
  10086. fi
  10087. fi
  10088. fi
  10089. CC=$ac_cv_prog_CC
  10090. if test -n "$CC"; then
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10092. $as_echo "$CC" >&6; }
  10093. else
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10095. $as_echo "no" >&6; }
  10096. fi
  10097. fi
  10098. if test -z "$CC"; then
  10099. if test -n "$ac_tool_prefix"; then
  10100. for ac_prog in cl.exe
  10101. do
  10102. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10103. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10105. $as_echo_n "checking for $ac_word... " >&6; }
  10106. if ${ac_cv_prog_CC+:} false; then :
  10107. $as_echo_n "(cached) " >&6
  10108. else
  10109. if test -n "$CC"; then
  10110. ac_cv_prog_CC="$CC" # Let the user override the test.
  10111. else
  10112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10113. for as_dir in $PATH
  10114. do
  10115. IFS=$as_save_IFS
  10116. test -z "$as_dir" && as_dir=.
  10117. for ac_exec_ext in '' $ac_executable_extensions; do
  10118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10119. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10121. break 2
  10122. fi
  10123. done
  10124. done
  10125. IFS=$as_save_IFS
  10126. fi
  10127. fi
  10128. CC=$ac_cv_prog_CC
  10129. if test -n "$CC"; then
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10131. $as_echo "$CC" >&6; }
  10132. else
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10134. $as_echo "no" >&6; }
  10135. fi
  10136. test -n "$CC" && break
  10137. done
  10138. fi
  10139. if test -z "$CC"; then
  10140. ac_ct_CC=$CC
  10141. for ac_prog in cl.exe
  10142. do
  10143. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10144. set dummy $ac_prog; ac_word=$2
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10146. $as_echo_n "checking for $ac_word... " >&6; }
  10147. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10148. $as_echo_n "(cached) " >&6
  10149. else
  10150. if test -n "$ac_ct_CC"; then
  10151. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10152. else
  10153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10154. for as_dir in $PATH
  10155. do
  10156. IFS=$as_save_IFS
  10157. test -z "$as_dir" && as_dir=.
  10158. for ac_exec_ext in '' $ac_executable_extensions; do
  10159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10160. ac_cv_prog_ac_ct_CC="$ac_prog"
  10161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10162. break 2
  10163. fi
  10164. done
  10165. done
  10166. IFS=$as_save_IFS
  10167. fi
  10168. fi
  10169. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10170. if test -n "$ac_ct_CC"; then
  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10172. $as_echo "$ac_ct_CC" >&6; }
  10173. else
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10175. $as_echo "no" >&6; }
  10176. fi
  10177. test -n "$ac_ct_CC" && break
  10178. done
  10179. if test "x$ac_ct_CC" = x; then
  10180. CC=""
  10181. else
  10182. case $cross_compiling:$ac_tool_warned in
  10183. yes:)
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10185. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10186. ac_tool_warned=yes ;;
  10187. esac
  10188. CC=$ac_ct_CC
  10189. fi
  10190. fi
  10191. fi
  10192. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10193. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10194. as_fn_error $? "no acceptable C compiler found in \$PATH
  10195. See \`config.log' for more details" "$LINENO" 5; }
  10196. # Provide some information about the compiler.
  10197. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10198. set X $ac_compile
  10199. ac_compiler=$2
  10200. for ac_option in --version -v -V -qversion; do
  10201. { { ac_try="$ac_compiler $ac_option >&5"
  10202. case "(($ac_try" in
  10203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10204. *) ac_try_echo=$ac_try;;
  10205. esac
  10206. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10207. $as_echo "$ac_try_echo"; } >&5
  10208. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10209. ac_status=$?
  10210. if test -s conftest.err; then
  10211. sed '10a\
  10212. ... rest of stderr output deleted ...
  10213. 10q' conftest.err >conftest.er1
  10214. cat conftest.er1 >&5
  10215. fi
  10216. rm -f conftest.er1 conftest.err
  10217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10218. test $ac_status = 0; }
  10219. done
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10221. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10222. if ${ac_cv_c_compiler_gnu+:} false; then :
  10223. $as_echo_n "(cached) " >&6
  10224. else
  10225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10226. /* end confdefs.h. */
  10227. int
  10228. main ()
  10229. {
  10230. #ifndef __GNUC__
  10231. choke me
  10232. #endif
  10233. ;
  10234. return 0;
  10235. }
  10236. _ACEOF
  10237. if ac_fn_c_try_compile "$LINENO"; then :
  10238. ac_compiler_gnu=yes
  10239. else
  10240. ac_compiler_gnu=no
  10241. fi
  10242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10243. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10244. fi
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10246. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10247. if test $ac_compiler_gnu = yes; then
  10248. GCC=yes
  10249. else
  10250. GCC=
  10251. fi
  10252. ac_test_CFLAGS=${CFLAGS+set}
  10253. ac_save_CFLAGS=$CFLAGS
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10255. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10256. if ${ac_cv_prog_cc_g+:} false; then :
  10257. $as_echo_n "(cached) " >&6
  10258. else
  10259. ac_save_c_werror_flag=$ac_c_werror_flag
  10260. ac_c_werror_flag=yes
  10261. ac_cv_prog_cc_g=no
  10262. CFLAGS="-g"
  10263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10264. /* end confdefs.h. */
  10265. int
  10266. main ()
  10267. {
  10268. ;
  10269. return 0;
  10270. }
  10271. _ACEOF
  10272. if ac_fn_c_try_compile "$LINENO"; then :
  10273. ac_cv_prog_cc_g=yes
  10274. else
  10275. CFLAGS=""
  10276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10277. /* end confdefs.h. */
  10278. int
  10279. main ()
  10280. {
  10281. ;
  10282. return 0;
  10283. }
  10284. _ACEOF
  10285. if ac_fn_c_try_compile "$LINENO"; then :
  10286. else
  10287. ac_c_werror_flag=$ac_save_c_werror_flag
  10288. CFLAGS="-g"
  10289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10290. /* end confdefs.h. */
  10291. int
  10292. main ()
  10293. {
  10294. ;
  10295. return 0;
  10296. }
  10297. _ACEOF
  10298. if ac_fn_c_try_compile "$LINENO"; then :
  10299. ac_cv_prog_cc_g=yes
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10302. fi
  10303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10304. fi
  10305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10306. ac_c_werror_flag=$ac_save_c_werror_flag
  10307. fi
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10309. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10310. if test "$ac_test_CFLAGS" = set; then
  10311. CFLAGS=$ac_save_CFLAGS
  10312. elif test $ac_cv_prog_cc_g = yes; then
  10313. if test "$GCC" = yes; then
  10314. CFLAGS="-g -O2"
  10315. else
  10316. CFLAGS="-g"
  10317. fi
  10318. else
  10319. if test "$GCC" = yes; then
  10320. CFLAGS="-O2"
  10321. else
  10322. CFLAGS=
  10323. fi
  10324. fi
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10326. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10327. if ${ac_cv_prog_cc_c89+:} false; then :
  10328. $as_echo_n "(cached) " >&6
  10329. else
  10330. ac_cv_prog_cc_c89=no
  10331. ac_save_CC=$CC
  10332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10333. /* end confdefs.h. */
  10334. #include <stdarg.h>
  10335. #include <stdio.h>
  10336. struct stat;
  10337. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10338. struct buf { int x; };
  10339. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10340. static char *e (p, i)
  10341. char **p;
  10342. int i;
  10343. {
  10344. return p[i];
  10345. }
  10346. static char *f (char * (*g) (char **, int), char **p, ...)
  10347. {
  10348. char *s;
  10349. va_list v;
  10350. va_start (v,p);
  10351. s = g (p, va_arg (v,int));
  10352. va_end (v);
  10353. return s;
  10354. }
  10355. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10356. function prototypes and stuff, but not '\xHH' hex character constants.
  10357. These don't provoke an error unfortunately, instead are silently treated
  10358. as 'x'. The following induces an error, until -std is added to get
  10359. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10360. array size at least. It's necessary to write '\x00'==0 to get something
  10361. that's true only with -std. */
  10362. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10363. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10364. inside strings and character constants. */
  10365. #define FOO(x) 'x'
  10366. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10367. int test (int i, double x);
  10368. struct s1 {int (*f) (int a);};
  10369. struct s2 {int (*f) (double a);};
  10370. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10371. int argc;
  10372. char **argv;
  10373. int
  10374. main ()
  10375. {
  10376. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10377. ;
  10378. return 0;
  10379. }
  10380. _ACEOF
  10381. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10382. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10383. do
  10384. CC="$ac_save_CC $ac_arg"
  10385. if ac_fn_c_try_compile "$LINENO"; then :
  10386. ac_cv_prog_cc_c89=$ac_arg
  10387. fi
  10388. rm -f core conftest.err conftest.$ac_objext
  10389. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10390. done
  10391. rm -f conftest.$ac_ext
  10392. CC=$ac_save_CC
  10393. fi
  10394. # AC_CACHE_VAL
  10395. case "x$ac_cv_prog_cc_c89" in
  10396. x)
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10398. $as_echo "none needed" >&6; } ;;
  10399. xno)
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10401. $as_echo "unsupported" >&6; } ;;
  10402. *)
  10403. CC="$CC $ac_cv_prog_cc_c89"
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10405. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10406. esac
  10407. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10408. fi
  10409. ac_ext=c
  10410. ac_cpp='$CPP $CPPFLAGS'
  10411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10414. ac_ext=cpp
  10415. ac_cpp='$CXXCPP $CPPFLAGS'
  10416. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10417. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10418. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10419. if test -z "$CXX"; then
  10420. if test -n "$CCC"; then
  10421. CXX=$CCC
  10422. else
  10423. if test -n "$ac_tool_prefix"; then
  10424. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10425. do
  10426. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10427. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10429. $as_echo_n "checking for $ac_word... " >&6; }
  10430. if ${ac_cv_prog_CXX+:} false; then :
  10431. $as_echo_n "(cached) " >&6
  10432. else
  10433. if test -n "$CXX"; then
  10434. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10435. else
  10436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10437. for as_dir in $PATH
  10438. do
  10439. IFS=$as_save_IFS
  10440. test -z "$as_dir" && as_dir=.
  10441. for ac_exec_ext in '' $ac_executable_extensions; do
  10442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10443. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10445. break 2
  10446. fi
  10447. done
  10448. done
  10449. IFS=$as_save_IFS
  10450. fi
  10451. fi
  10452. CXX=$ac_cv_prog_CXX
  10453. if test -n "$CXX"; then
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10455. $as_echo "$CXX" >&6; }
  10456. else
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10458. $as_echo "no" >&6; }
  10459. fi
  10460. test -n "$CXX" && break
  10461. done
  10462. fi
  10463. if test -z "$CXX"; then
  10464. ac_ct_CXX=$CXX
  10465. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10466. do
  10467. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10468. set dummy $ac_prog; ac_word=$2
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10470. $as_echo_n "checking for $ac_word... " >&6; }
  10471. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10472. $as_echo_n "(cached) " >&6
  10473. else
  10474. if test -n "$ac_ct_CXX"; then
  10475. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10476. else
  10477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10478. for as_dir in $PATH
  10479. do
  10480. IFS=$as_save_IFS
  10481. test -z "$as_dir" && as_dir=.
  10482. for ac_exec_ext in '' $ac_executable_extensions; do
  10483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10484. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10486. break 2
  10487. fi
  10488. done
  10489. done
  10490. IFS=$as_save_IFS
  10491. fi
  10492. fi
  10493. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10494. if test -n "$ac_ct_CXX"; then
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10496. $as_echo "$ac_ct_CXX" >&6; }
  10497. else
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10499. $as_echo "no" >&6; }
  10500. fi
  10501. test -n "$ac_ct_CXX" && break
  10502. done
  10503. if test "x$ac_ct_CXX" = x; then
  10504. CXX="g++"
  10505. else
  10506. case $cross_compiling:$ac_tool_warned in
  10507. yes:)
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10509. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10510. ac_tool_warned=yes ;;
  10511. esac
  10512. CXX=$ac_ct_CXX
  10513. fi
  10514. fi
  10515. fi
  10516. fi
  10517. # Provide some information about the compiler.
  10518. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10519. set X $ac_compile
  10520. ac_compiler=$2
  10521. for ac_option in --version -v -V -qversion; do
  10522. { { ac_try="$ac_compiler $ac_option >&5"
  10523. case "(($ac_try" in
  10524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10525. *) ac_try_echo=$ac_try;;
  10526. esac
  10527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10528. $as_echo "$ac_try_echo"; } >&5
  10529. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10530. ac_status=$?
  10531. if test -s conftest.err; then
  10532. sed '10a\
  10533. ... rest of stderr output deleted ...
  10534. 10q' conftest.err >conftest.er1
  10535. cat conftest.er1 >&5
  10536. fi
  10537. rm -f conftest.er1 conftest.err
  10538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10539. test $ac_status = 0; }
  10540. done
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10542. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10543. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10544. $as_echo_n "(cached) " >&6
  10545. else
  10546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10547. /* end confdefs.h. */
  10548. int
  10549. main ()
  10550. {
  10551. #ifndef __GNUC__
  10552. choke me
  10553. #endif
  10554. ;
  10555. return 0;
  10556. }
  10557. _ACEOF
  10558. if ac_fn_cxx_try_compile "$LINENO"; then :
  10559. ac_compiler_gnu=yes
  10560. else
  10561. ac_compiler_gnu=no
  10562. fi
  10563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10564. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10565. fi
  10566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10567. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10568. if test $ac_compiler_gnu = yes; then
  10569. GXX=yes
  10570. else
  10571. GXX=
  10572. fi
  10573. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10574. ac_save_CXXFLAGS=$CXXFLAGS
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10576. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10577. if ${ac_cv_prog_cxx_g+:} false; then :
  10578. $as_echo_n "(cached) " >&6
  10579. else
  10580. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10581. ac_cxx_werror_flag=yes
  10582. ac_cv_prog_cxx_g=no
  10583. CXXFLAGS="-g"
  10584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10585. /* end confdefs.h. */
  10586. int
  10587. main ()
  10588. {
  10589. ;
  10590. return 0;
  10591. }
  10592. _ACEOF
  10593. if ac_fn_cxx_try_compile "$LINENO"; then :
  10594. ac_cv_prog_cxx_g=yes
  10595. else
  10596. CXXFLAGS=""
  10597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10598. /* end confdefs.h. */
  10599. int
  10600. main ()
  10601. {
  10602. ;
  10603. return 0;
  10604. }
  10605. _ACEOF
  10606. if ac_fn_cxx_try_compile "$LINENO"; then :
  10607. else
  10608. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10609. CXXFLAGS="-g"
  10610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10611. /* end confdefs.h. */
  10612. int
  10613. main ()
  10614. {
  10615. ;
  10616. return 0;
  10617. }
  10618. _ACEOF
  10619. if ac_fn_cxx_try_compile "$LINENO"; then :
  10620. ac_cv_prog_cxx_g=yes
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10623. fi
  10624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10625. fi
  10626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10627. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10628. fi
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10630. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10631. if test "$ac_test_CXXFLAGS" = set; then
  10632. CXXFLAGS=$ac_save_CXXFLAGS
  10633. elif test $ac_cv_prog_cxx_g = yes; then
  10634. if test "$GXX" = yes; then
  10635. CXXFLAGS="-g -O2"
  10636. else
  10637. CXXFLAGS="-g"
  10638. fi
  10639. else
  10640. if test "$GXX" = yes; then
  10641. CXXFLAGS="-O2"
  10642. else
  10643. CXXFLAGS=
  10644. fi
  10645. fi
  10646. ac_ext=c
  10647. ac_cpp='$CPP $CPPFLAGS'
  10648. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10649. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10650. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10651. func_stripname_cnf ()
  10652. {
  10653. case ${2} in
  10654. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10655. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10656. esac
  10657. } # func_stripname_cnf
  10658. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10659. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10660. (test "X$CXX" != "Xg++"))) ; then
  10661. ac_ext=cpp
  10662. ac_cpp='$CXXCPP $CPPFLAGS'
  10663. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10664. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10665. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10667. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10668. if test -z "$CXXCPP"; then
  10669. if ${ac_cv_prog_CXXCPP+:} false; then :
  10670. $as_echo_n "(cached) " >&6
  10671. else
  10672. # Double quotes because CXXCPP needs to be expanded
  10673. for CXXCPP in "$CXX -E" "/lib/cpp"
  10674. do
  10675. ac_preproc_ok=false
  10676. for ac_cxx_preproc_warn_flag in '' yes
  10677. do
  10678. # Use a header file that comes with gcc, so configuring glibc
  10679. # with a fresh cross-compiler works.
  10680. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10681. # <limits.h> exists even on freestanding compilers.
  10682. # On the NeXT, cc -E runs the code through the compiler's parser,
  10683. # not just through cpp. "Syntax error" is here to catch this case.
  10684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10685. /* end confdefs.h. */
  10686. #ifdef __STDC__
  10687. # include <limits.h>
  10688. #else
  10689. # include <assert.h>
  10690. #endif
  10691. Syntax error
  10692. _ACEOF
  10693. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10694. else
  10695. # Broken: fails on valid input.
  10696. continue
  10697. fi
  10698. rm -f conftest.err conftest.i conftest.$ac_ext
  10699. # OK, works on sane cases. Now check whether nonexistent headers
  10700. # can be detected and how.
  10701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10702. /* end confdefs.h. */
  10703. #include <ac_nonexistent.h>
  10704. _ACEOF
  10705. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10706. # Broken: success on invalid input.
  10707. continue
  10708. else
  10709. # Passes both tests.
  10710. ac_preproc_ok=:
  10711. break
  10712. fi
  10713. rm -f conftest.err conftest.i conftest.$ac_ext
  10714. done
  10715. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10716. rm -f conftest.i conftest.err conftest.$ac_ext
  10717. if $ac_preproc_ok; then :
  10718. break
  10719. fi
  10720. done
  10721. ac_cv_prog_CXXCPP=$CXXCPP
  10722. fi
  10723. CXXCPP=$ac_cv_prog_CXXCPP
  10724. else
  10725. ac_cv_prog_CXXCPP=$CXXCPP
  10726. fi
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10728. $as_echo "$CXXCPP" >&6; }
  10729. ac_preproc_ok=false
  10730. for ac_cxx_preproc_warn_flag in '' yes
  10731. do
  10732. # Use a header file that comes with gcc, so configuring glibc
  10733. # with a fresh cross-compiler works.
  10734. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10735. # <limits.h> exists even on freestanding compilers.
  10736. # On the NeXT, cc -E runs the code through the compiler's parser,
  10737. # not just through cpp. "Syntax error" is here to catch this case.
  10738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10739. /* end confdefs.h. */
  10740. #ifdef __STDC__
  10741. # include <limits.h>
  10742. #else
  10743. # include <assert.h>
  10744. #endif
  10745. Syntax error
  10746. _ACEOF
  10747. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10748. else
  10749. # Broken: fails on valid input.
  10750. continue
  10751. fi
  10752. rm -f conftest.err conftest.i conftest.$ac_ext
  10753. # OK, works on sane cases. Now check whether nonexistent headers
  10754. # can be detected and how.
  10755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10756. /* end confdefs.h. */
  10757. #include <ac_nonexistent.h>
  10758. _ACEOF
  10759. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10760. # Broken: success on invalid input.
  10761. continue
  10762. else
  10763. # Passes both tests.
  10764. ac_preproc_ok=:
  10765. break
  10766. fi
  10767. rm -f conftest.err conftest.i conftest.$ac_ext
  10768. done
  10769. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10770. rm -f conftest.i conftest.err conftest.$ac_ext
  10771. if $ac_preproc_ok; then :
  10772. else
  10773. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10774. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10775. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10776. See \`config.log' for more details" "$LINENO" 5; }
  10777. fi
  10778. ac_ext=c
  10779. ac_cpp='$CPP $CPPFLAGS'
  10780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10783. else
  10784. _lt_caught_CXX_error=yes
  10785. fi
  10786. ac_ext=cpp
  10787. ac_cpp='$CXXCPP $CPPFLAGS'
  10788. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10789. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10790. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10791. archive_cmds_need_lc_CXX=no
  10792. allow_undefined_flag_CXX=
  10793. always_export_symbols_CXX=no
  10794. archive_expsym_cmds_CXX=
  10795. compiler_needs_object_CXX=no
  10796. export_dynamic_flag_spec_CXX=
  10797. hardcode_direct_CXX=no
  10798. hardcode_direct_absolute_CXX=no
  10799. hardcode_libdir_flag_spec_CXX=
  10800. hardcode_libdir_separator_CXX=
  10801. hardcode_minus_L_CXX=no
  10802. hardcode_shlibpath_var_CXX=unsupported
  10803. hardcode_automatic_CXX=no
  10804. inherit_rpath_CXX=no
  10805. module_cmds_CXX=
  10806. module_expsym_cmds_CXX=
  10807. link_all_deplibs_CXX=unknown
  10808. old_archive_cmds_CXX=$old_archive_cmds
  10809. reload_flag_CXX=$reload_flag
  10810. reload_cmds_CXX=$reload_cmds
  10811. no_undefined_flag_CXX=
  10812. whole_archive_flag_spec_CXX=
  10813. enable_shared_with_static_runtimes_CXX=no
  10814. # Source file extension for C++ test sources.
  10815. ac_ext=cpp
  10816. # Object file extension for compiled C++ test sources.
  10817. objext=o
  10818. objext_CXX=$objext
  10819. # No sense in running all these tests if we already determined that
  10820. # the CXX compiler isn't working. Some variables (like enable_shared)
  10821. # are currently assumed to apply to all compilers on this platform,
  10822. # and will be corrupted by setting them based on a non-working compiler.
  10823. if test "$_lt_caught_CXX_error" != yes; then
  10824. # Code to be used in simple compile tests
  10825. lt_simple_compile_test_code="int some_variable = 0;"
  10826. # Code to be used in simple link tests
  10827. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10828. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10829. # If no C compiler was specified, use CC.
  10830. LTCC=${LTCC-"$CC"}
  10831. # If no C compiler flags were specified, use CFLAGS.
  10832. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10833. # Allow CC to be a program name with arguments.
  10834. compiler=$CC
  10835. # save warnings/boilerplate of simple test code
  10836. ac_outfile=conftest.$ac_objext
  10837. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10838. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10839. _lt_compiler_boilerplate=`cat conftest.err`
  10840. $RM conftest*
  10841. ac_outfile=conftest.$ac_objext
  10842. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10843. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10844. _lt_linker_boilerplate=`cat conftest.err`
  10845. $RM -r conftest*
  10846. # Allow CC to be a program name with arguments.
  10847. lt_save_CC=$CC
  10848. lt_save_CFLAGS=$CFLAGS
  10849. lt_save_LD=$LD
  10850. lt_save_GCC=$GCC
  10851. GCC=$GXX
  10852. lt_save_with_gnu_ld=$with_gnu_ld
  10853. lt_save_path_LD=$lt_cv_path_LD
  10854. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10855. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10856. else
  10857. $as_unset lt_cv_prog_gnu_ld
  10858. fi
  10859. if test -n "${lt_cv_path_LDCXX+set}"; then
  10860. lt_cv_path_LD=$lt_cv_path_LDCXX
  10861. else
  10862. $as_unset lt_cv_path_LD
  10863. fi
  10864. test -z "${LDCXX+set}" || LD=$LDCXX
  10865. CC=${CXX-"c++"}
  10866. CFLAGS=$CXXFLAGS
  10867. compiler=$CC
  10868. compiler_CXX=$CC
  10869. for cc_temp in $compiler""; do
  10870. case $cc_temp in
  10871. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10872. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10873. \-*) ;;
  10874. *) break;;
  10875. esac
  10876. done
  10877. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10878. if test -n "$compiler"; then
  10879. # We don't want -fno-exception when compiling C++ code, so set the
  10880. # no_builtin_flag separately
  10881. if test "$GXX" = yes; then
  10882. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10883. else
  10884. lt_prog_compiler_no_builtin_flag_CXX=
  10885. fi
  10886. if test "$GXX" = yes; then
  10887. # Set up default GNU C++ configuration
  10888. # Check whether --with-gnu-ld was given.
  10889. if test "${with_gnu_ld+set}" = set; then :
  10890. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10891. else
  10892. with_gnu_ld=no
  10893. fi
  10894. ac_prog=ld
  10895. if test "$GCC" = yes; then
  10896. # Check if gcc -print-prog-name=ld gives a path.
  10897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10898. $as_echo_n "checking for ld used by $CC... " >&6; }
  10899. case $host in
  10900. *-*-mingw*)
  10901. # gcc leaves a trailing carriage return which upsets mingw
  10902. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10903. *)
  10904. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10905. esac
  10906. case $ac_prog in
  10907. # Accept absolute paths.
  10908. [\\/]* | ?:[\\/]*)
  10909. re_direlt='/[^/][^/]*/\.\./'
  10910. # Canonicalize the pathname of ld
  10911. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10912. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10913. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10914. done
  10915. test -z "$LD" && LD="$ac_prog"
  10916. ;;
  10917. "")
  10918. # If it fails, then pretend we aren't using GCC.
  10919. ac_prog=ld
  10920. ;;
  10921. *)
  10922. # If it is relative, then search for the first ld in PATH.
  10923. with_gnu_ld=unknown
  10924. ;;
  10925. esac
  10926. elif test "$with_gnu_ld" = yes; then
  10927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10928. $as_echo_n "checking for GNU ld... " >&6; }
  10929. else
  10930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10931. $as_echo_n "checking for non-GNU ld... " >&6; }
  10932. fi
  10933. if ${lt_cv_path_LD+:} false; then :
  10934. $as_echo_n "(cached) " >&6
  10935. else
  10936. if test -z "$LD"; then
  10937. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10938. for ac_dir in $PATH; do
  10939. IFS="$lt_save_ifs"
  10940. test -z "$ac_dir" && ac_dir=.
  10941. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10942. lt_cv_path_LD="$ac_dir/$ac_prog"
  10943. # Check to see if the program is GNU ld. I'd rather use --version,
  10944. # but apparently some variants of GNU ld only accept -v.
  10945. # Break only if it was the GNU/non-GNU ld that we prefer.
  10946. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10947. *GNU* | *'with BFD'*)
  10948. test "$with_gnu_ld" != no && break
  10949. ;;
  10950. *)
  10951. test "$with_gnu_ld" != yes && break
  10952. ;;
  10953. esac
  10954. fi
  10955. done
  10956. IFS="$lt_save_ifs"
  10957. else
  10958. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10959. fi
  10960. fi
  10961. LD="$lt_cv_path_LD"
  10962. if test -n "$LD"; then
  10963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10964. $as_echo "$LD" >&6; }
  10965. else
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10967. $as_echo "no" >&6; }
  10968. fi
  10969. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10971. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10972. if ${lt_cv_prog_gnu_ld+:} false; then :
  10973. $as_echo_n "(cached) " >&6
  10974. else
  10975. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10976. case `$LD -v 2>&1 </dev/null` in
  10977. *GNU* | *'with BFD'*)
  10978. lt_cv_prog_gnu_ld=yes
  10979. ;;
  10980. *)
  10981. lt_cv_prog_gnu_ld=no
  10982. ;;
  10983. esac
  10984. fi
  10985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10986. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10987. with_gnu_ld=$lt_cv_prog_gnu_ld
  10988. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10989. # archiving commands below assume that GNU ld is being used.
  10990. if test "$with_gnu_ld" = yes; then
  10991. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10992. 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'
  10993. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10994. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10995. # If archive_cmds runs LD, not CC, wlarc should be empty
  10996. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10997. # investigate it a little bit more. (MM)
  10998. wlarc='${wl}'
  10999. # ancient GNU ld didn't support --whole-archive et. al.
  11000. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11001. $GREP 'no-whole-archive' > /dev/null; then
  11002. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11003. else
  11004. whole_archive_flag_spec_CXX=
  11005. fi
  11006. else
  11007. with_gnu_ld=no
  11008. wlarc=
  11009. # A generic and very simple default shared library creation
  11010. # command for GNU C++ for the case where it uses the native
  11011. # linker, instead of GNU ld. If possible, this setting should
  11012. # overridden to take advantage of the native linker features on
  11013. # the platform it is being used on.
  11014. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11015. fi
  11016. # Commands to make compiler produce verbose output that lists
  11017. # what "hidden" libraries, object files and flags are used when
  11018. # linking a shared library.
  11019. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11020. else
  11021. GXX=no
  11022. with_gnu_ld=no
  11023. wlarc=
  11024. fi
  11025. # PORTME: fill in a description of your system's C++ link characteristics
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11027. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11028. ld_shlibs_CXX=yes
  11029. case $host_os in
  11030. aix3*)
  11031. # FIXME: insert proper C++ library support
  11032. ld_shlibs_CXX=no
  11033. ;;
  11034. aix[4-9]*)
  11035. if test "$host_cpu" = ia64; then
  11036. # On IA64, the linker does run time linking by default, so we don't
  11037. # have to do anything special.
  11038. aix_use_runtimelinking=no
  11039. exp_sym_flag='-Bexport'
  11040. no_entry_flag=""
  11041. else
  11042. aix_use_runtimelinking=no
  11043. # Test if we are trying to use run time linking or normal
  11044. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11045. # need to do runtime linking.
  11046. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11047. for ld_flag in $LDFLAGS; do
  11048. case $ld_flag in
  11049. *-brtl*)
  11050. aix_use_runtimelinking=yes
  11051. break
  11052. ;;
  11053. esac
  11054. done
  11055. ;;
  11056. esac
  11057. exp_sym_flag='-bexport'
  11058. no_entry_flag='-bnoentry'
  11059. fi
  11060. # When large executables or shared objects are built, AIX ld can
  11061. # have problems creating the table of contents. If linking a library
  11062. # or program results in "error TOC overflow" add -mminimal-toc to
  11063. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11064. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11065. archive_cmds_CXX=''
  11066. hardcode_direct_CXX=yes
  11067. hardcode_direct_absolute_CXX=yes
  11068. hardcode_libdir_separator_CXX=':'
  11069. link_all_deplibs_CXX=yes
  11070. file_list_spec_CXX='${wl}-f,'
  11071. if test "$GXX" = yes; then
  11072. case $host_os in aix4.[012]|aix4.[012].*)
  11073. # We only want to do this on AIX 4.2 and lower, the check
  11074. # below for broken collect2 doesn't work under 4.3+
  11075. collect2name=`${CC} -print-prog-name=collect2`
  11076. if test -f "$collect2name" &&
  11077. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11078. then
  11079. # We have reworked collect2
  11080. :
  11081. else
  11082. # We have old collect2
  11083. hardcode_direct_CXX=unsupported
  11084. # It fails to find uninstalled libraries when the uninstalled
  11085. # path is not listed in the libpath. Setting hardcode_minus_L
  11086. # to unsupported forces relinking
  11087. hardcode_minus_L_CXX=yes
  11088. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11089. hardcode_libdir_separator_CXX=
  11090. fi
  11091. esac
  11092. shared_flag='-shared'
  11093. if test "$aix_use_runtimelinking" = yes; then
  11094. shared_flag="$shared_flag "'${wl}-G'
  11095. fi
  11096. else
  11097. # not using gcc
  11098. if test "$host_cpu" = ia64; then
  11099. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11100. # chokes on -Wl,-G. The following line is correct:
  11101. shared_flag='-G'
  11102. else
  11103. if test "$aix_use_runtimelinking" = yes; then
  11104. shared_flag='${wl}-G'
  11105. else
  11106. shared_flag='${wl}-bM:SRE'
  11107. fi
  11108. fi
  11109. fi
  11110. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11111. # It seems that -bexpall does not export symbols beginning with
  11112. # underscore (_), so it is better to generate a list of symbols to
  11113. # export.
  11114. always_export_symbols_CXX=yes
  11115. if test "$aix_use_runtimelinking" = yes; then
  11116. # Warning - without using the other runtime loading flags (-brtl),
  11117. # -berok will link without error, but may produce a broken library.
  11118. allow_undefined_flag_CXX='-berok'
  11119. # Determine the default libpath from the value encoded in an empty
  11120. # executable.
  11121. if test "${lt_cv_aix_libpath+set}" = set; then
  11122. aix_libpath=$lt_cv_aix_libpath
  11123. else
  11124. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11125. $as_echo_n "(cached) " >&6
  11126. else
  11127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11128. /* end confdefs.h. */
  11129. int
  11130. main ()
  11131. {
  11132. ;
  11133. return 0;
  11134. }
  11135. _ACEOF
  11136. if ac_fn_cxx_try_link "$LINENO"; then :
  11137. lt_aix_libpath_sed='
  11138. /Import File Strings/,/^$/ {
  11139. /^0/ {
  11140. s/^0 *\([^ ]*\) *$/\1/
  11141. p
  11142. }
  11143. }'
  11144. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11145. # Check for a 64-bit object if we didn't find anything.
  11146. if test -z "$lt_cv_aix_libpath__CXX"; then
  11147. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11148. fi
  11149. fi
  11150. rm -f core conftest.err conftest.$ac_objext \
  11151. conftest$ac_exeext conftest.$ac_ext
  11152. if test -z "$lt_cv_aix_libpath__CXX"; then
  11153. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11154. fi
  11155. fi
  11156. aix_libpath=$lt_cv_aix_libpath__CXX
  11157. fi
  11158. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11159. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11160. else
  11161. if test "$host_cpu" = ia64; then
  11162. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11163. allow_undefined_flag_CXX="-z nodefs"
  11164. 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"
  11165. else
  11166. # Determine the default libpath from the value encoded in an
  11167. # empty executable.
  11168. if test "${lt_cv_aix_libpath+set}" = set; then
  11169. aix_libpath=$lt_cv_aix_libpath
  11170. else
  11171. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11172. $as_echo_n "(cached) " >&6
  11173. else
  11174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11175. /* end confdefs.h. */
  11176. int
  11177. main ()
  11178. {
  11179. ;
  11180. return 0;
  11181. }
  11182. _ACEOF
  11183. if ac_fn_cxx_try_link "$LINENO"; then :
  11184. lt_aix_libpath_sed='
  11185. /Import File Strings/,/^$/ {
  11186. /^0/ {
  11187. s/^0 *\([^ ]*\) *$/\1/
  11188. p
  11189. }
  11190. }'
  11191. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11192. # Check for a 64-bit object if we didn't find anything.
  11193. if test -z "$lt_cv_aix_libpath__CXX"; then
  11194. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11195. fi
  11196. fi
  11197. rm -f core conftest.err conftest.$ac_objext \
  11198. conftest$ac_exeext conftest.$ac_ext
  11199. if test -z "$lt_cv_aix_libpath__CXX"; then
  11200. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11201. fi
  11202. fi
  11203. aix_libpath=$lt_cv_aix_libpath__CXX
  11204. fi
  11205. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11206. # Warning - without using the other run time loading flags,
  11207. # -berok will link without error, but may produce a broken library.
  11208. no_undefined_flag_CXX=' ${wl}-bernotok'
  11209. allow_undefined_flag_CXX=' ${wl}-berok'
  11210. if test "$with_gnu_ld" = yes; then
  11211. # We only use this code for GNU lds that support --whole-archive.
  11212. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11213. else
  11214. # Exported symbols can be pulled into shared objects from archives
  11215. whole_archive_flag_spec_CXX='$convenience'
  11216. fi
  11217. archive_cmds_need_lc_CXX=yes
  11218. # This is similar to how AIX traditionally builds its shared
  11219. # libraries.
  11220. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11221. fi
  11222. fi
  11223. ;;
  11224. beos*)
  11225. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11226. allow_undefined_flag_CXX=unsupported
  11227. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11228. # support --undefined. This deserves some investigation. FIXME
  11229. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11230. else
  11231. ld_shlibs_CXX=no
  11232. fi
  11233. ;;
  11234. chorus*)
  11235. case $cc_basename in
  11236. *)
  11237. # FIXME: insert proper C++ library support
  11238. ld_shlibs_CXX=no
  11239. ;;
  11240. esac
  11241. ;;
  11242. cygwin* | mingw* | pw32* | cegcc*)
  11243. case $GXX,$cc_basename in
  11244. ,cl* | no,cl*)
  11245. # Native MSVC
  11246. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11247. # no search path for DLLs.
  11248. hardcode_libdir_flag_spec_CXX=' '
  11249. allow_undefined_flag_CXX=unsupported
  11250. always_export_symbols_CXX=yes
  11251. file_list_spec_CXX='@'
  11252. # Tell ltmain to make .lib files, not .a files.
  11253. libext=lib
  11254. # Tell ltmain to make .dll files, not .so files.
  11255. shrext_cmds=".dll"
  11256. # FIXME: Setting linknames here is a bad hack.
  11257. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11258. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11259. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11260. else
  11261. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11262. fi~
  11263. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11264. linknames='
  11265. # The linker will not automatically build a static lib if we build a DLL.
  11266. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11267. enable_shared_with_static_runtimes_CXX=yes
  11268. # Don't use ranlib
  11269. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11270. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11271. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11272. case $lt_outputfile in
  11273. *.exe|*.EXE) ;;
  11274. *)
  11275. lt_outputfile="$lt_outputfile.exe"
  11276. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11277. ;;
  11278. esac~
  11279. func_to_tool_file "$lt_outputfile"~
  11280. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11281. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11282. $RM "$lt_outputfile.manifest";
  11283. fi'
  11284. ;;
  11285. *)
  11286. # g++
  11287. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11288. # as there is no search path for DLLs.
  11289. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11290. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11291. allow_undefined_flag_CXX=unsupported
  11292. always_export_symbols_CXX=no
  11293. enable_shared_with_static_runtimes_CXX=yes
  11294. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11295. 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'
  11296. # If the export-symbols file already is a .def file (1st line
  11297. # is EXPORTS), use it as is; otherwise, prepend...
  11298. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11299. cp $export_symbols $output_objdir/$soname.def;
  11300. else
  11301. echo EXPORTS > $output_objdir/$soname.def;
  11302. cat $export_symbols >> $output_objdir/$soname.def;
  11303. fi~
  11304. $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'
  11305. else
  11306. ld_shlibs_CXX=no
  11307. fi
  11308. ;;
  11309. esac
  11310. ;;
  11311. darwin* | rhapsody*)
  11312. archive_cmds_need_lc_CXX=no
  11313. hardcode_direct_CXX=no
  11314. hardcode_automatic_CXX=yes
  11315. hardcode_shlibpath_var_CXX=unsupported
  11316. if test "$lt_cv_ld_force_load" = "yes"; then
  11317. 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\"`'
  11318. else
  11319. whole_archive_flag_spec_CXX=''
  11320. fi
  11321. link_all_deplibs_CXX=yes
  11322. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11323. case $cc_basename in
  11324. ifort*) _lt_dar_can_shared=yes ;;
  11325. *) _lt_dar_can_shared=$GCC ;;
  11326. esac
  11327. if test "$_lt_dar_can_shared" = "yes"; then
  11328. output_verbose_link_cmd=func_echo_all
  11329. 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}"
  11330. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11331. 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}"
  11332. 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}"
  11333. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11334. 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}"
  11335. 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}"
  11336. fi
  11337. else
  11338. ld_shlibs_CXX=no
  11339. fi
  11340. ;;
  11341. dgux*)
  11342. case $cc_basename in
  11343. ec++*)
  11344. # FIXME: insert proper C++ library support
  11345. ld_shlibs_CXX=no
  11346. ;;
  11347. ghcx*)
  11348. # Green Hills C++ Compiler
  11349. # FIXME: insert proper C++ library support
  11350. ld_shlibs_CXX=no
  11351. ;;
  11352. *)
  11353. # FIXME: insert proper C++ library support
  11354. ld_shlibs_CXX=no
  11355. ;;
  11356. esac
  11357. ;;
  11358. freebsd2.*)
  11359. # C++ shared libraries reported to be fairly broken before
  11360. # switch to ELF
  11361. ld_shlibs_CXX=no
  11362. ;;
  11363. freebsd-elf*)
  11364. archive_cmds_need_lc_CXX=no
  11365. ;;
  11366. freebsd* | dragonfly*)
  11367. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11368. # conventions
  11369. ld_shlibs_CXX=yes
  11370. ;;
  11371. gnu*)
  11372. ;;
  11373. haiku*)
  11374. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11375. link_all_deplibs_CXX=yes
  11376. ;;
  11377. hpux9*)
  11378. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11379. hardcode_libdir_separator_CXX=:
  11380. export_dynamic_flag_spec_CXX='${wl}-E'
  11381. hardcode_direct_CXX=yes
  11382. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11383. # but as the default
  11384. # location of the library.
  11385. case $cc_basename in
  11386. CC*)
  11387. # FIXME: insert proper C++ library support
  11388. ld_shlibs_CXX=no
  11389. ;;
  11390. aCC*)
  11391. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11392. # Commands to make compiler produce verbose output that lists
  11393. # what "hidden" libraries, object files and flags are used when
  11394. # linking a shared library.
  11395. #
  11396. # There doesn't appear to be a way to prevent this compiler from
  11397. # explicitly linking system object files so we need to strip them
  11398. # from the output so that they don't get included in the library
  11399. # dependencies.
  11400. 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"'
  11401. ;;
  11402. *)
  11403. if test "$GXX" = yes; then
  11404. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11405. else
  11406. # FIXME: insert proper C++ library support
  11407. ld_shlibs_CXX=no
  11408. fi
  11409. ;;
  11410. esac
  11411. ;;
  11412. hpux10*|hpux11*)
  11413. if test $with_gnu_ld = no; then
  11414. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11415. hardcode_libdir_separator_CXX=:
  11416. case $host_cpu in
  11417. hppa*64*|ia64*)
  11418. ;;
  11419. *)
  11420. export_dynamic_flag_spec_CXX='${wl}-E'
  11421. ;;
  11422. esac
  11423. fi
  11424. case $host_cpu in
  11425. hppa*64*|ia64*)
  11426. hardcode_direct_CXX=no
  11427. hardcode_shlibpath_var_CXX=no
  11428. ;;
  11429. *)
  11430. hardcode_direct_CXX=yes
  11431. hardcode_direct_absolute_CXX=yes
  11432. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11433. # but as the default
  11434. # location of the library.
  11435. ;;
  11436. esac
  11437. case $cc_basename in
  11438. CC*)
  11439. # FIXME: insert proper C++ library support
  11440. ld_shlibs_CXX=no
  11441. ;;
  11442. aCC*)
  11443. case $host_cpu in
  11444. hppa*64*)
  11445. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11446. ;;
  11447. ia64*)
  11448. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11449. ;;
  11450. *)
  11451. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11452. ;;
  11453. esac
  11454. # Commands to make compiler produce verbose output that lists
  11455. # what "hidden" libraries, object files and flags are used when
  11456. # linking a shared library.
  11457. #
  11458. # There doesn't appear to be a way to prevent this compiler from
  11459. # explicitly linking system object files so we need to strip them
  11460. # from the output so that they don't get included in the library
  11461. # dependencies.
  11462. 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"'
  11463. ;;
  11464. *)
  11465. if test "$GXX" = yes; then
  11466. if test $with_gnu_ld = no; then
  11467. case $host_cpu in
  11468. hppa*64*)
  11469. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11470. ;;
  11471. ia64*)
  11472. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11473. ;;
  11474. *)
  11475. 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'
  11476. ;;
  11477. esac
  11478. fi
  11479. else
  11480. # FIXME: insert proper C++ library support
  11481. ld_shlibs_CXX=no
  11482. fi
  11483. ;;
  11484. esac
  11485. ;;
  11486. interix[3-9]*)
  11487. hardcode_direct_CXX=no
  11488. hardcode_shlibpath_var_CXX=no
  11489. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11490. export_dynamic_flag_spec_CXX='${wl}-E'
  11491. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11492. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11493. # default) and relocated if they conflict, which is a slow very memory
  11494. # consuming and fragmenting process. To avoid this, we pick a random,
  11495. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11496. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11497. 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'
  11498. 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'
  11499. ;;
  11500. irix5* | irix6*)
  11501. case $cc_basename in
  11502. CC*)
  11503. # SGI C++
  11504. 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'
  11505. # Archives containing C++ object files must be created using
  11506. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11507. # necessary to make sure instantiated templates are included
  11508. # in the archive.
  11509. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11510. ;;
  11511. *)
  11512. if test "$GXX" = yes; then
  11513. if test "$with_gnu_ld" = no; then
  11514. 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'
  11515. else
  11516. 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'
  11517. fi
  11518. fi
  11519. link_all_deplibs_CXX=yes
  11520. ;;
  11521. esac
  11522. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11523. hardcode_libdir_separator_CXX=:
  11524. inherit_rpath_CXX=yes
  11525. ;;
  11526. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11527. case $cc_basename in
  11528. KCC*)
  11529. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11530. # KCC will only create a shared library if the output file
  11531. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11532. # to its proper name (with version) after linking.
  11533. 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'
  11534. 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'
  11535. # Commands to make compiler produce verbose output that lists
  11536. # what "hidden" libraries, object files and flags are used when
  11537. # linking a shared library.
  11538. #
  11539. # There doesn't appear to be a way to prevent this compiler from
  11540. # explicitly linking system object files so we need to strip them
  11541. # from the output so that they don't get included in the library
  11542. # dependencies.
  11543. 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"'
  11544. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11545. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11546. # Archives containing C++ object files must be created using
  11547. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11548. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11549. ;;
  11550. icpc* | ecpc* )
  11551. # Intel C++
  11552. with_gnu_ld=yes
  11553. # version 8.0 and above of icpc choke on multiply defined symbols
  11554. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11555. # earlier do not add the objects themselves.
  11556. case `$CC -V 2>&1` in
  11557. *"Version 7."*)
  11558. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11559. 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'
  11560. ;;
  11561. *) # Version 8.0 or newer
  11562. tmp_idyn=
  11563. case $host_cpu in
  11564. ia64*) tmp_idyn=' -i_dynamic';;
  11565. esac
  11566. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11567. 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'
  11568. ;;
  11569. esac
  11570. archive_cmds_need_lc_CXX=no
  11571. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11572. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11573. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11574. ;;
  11575. pgCC* | pgcpp*)
  11576. # Portland Group C++ compiler
  11577. case `$CC -V` in
  11578. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11579. prelink_cmds_CXX='tpldir=Template.dir~
  11580. rm -rf $tpldir~
  11581. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11582. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11583. old_archive_cmds_CXX='tpldir=Template.dir~
  11584. rm -rf $tpldir~
  11585. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11586. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11587. $RANLIB $oldlib'
  11588. archive_cmds_CXX='tpldir=Template.dir~
  11589. rm -rf $tpldir~
  11590. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11591. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11592. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11593. rm -rf $tpldir~
  11594. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11595. $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'
  11596. ;;
  11597. *) # Version 6 and above use weak symbols
  11598. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11599. 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'
  11600. ;;
  11601. esac
  11602. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11603. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11604. 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'
  11605. ;;
  11606. cxx*)
  11607. # Compaq C++
  11608. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11609. 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'
  11610. runpath_var=LD_RUN_PATH
  11611. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11612. hardcode_libdir_separator_CXX=:
  11613. # Commands to make compiler produce verbose output that lists
  11614. # what "hidden" libraries, object files and flags are used when
  11615. # linking a shared library.
  11616. #
  11617. # There doesn't appear to be a way to prevent this compiler from
  11618. # explicitly linking system object files so we need to strip them
  11619. # from the output so that they don't get included in the library
  11620. # dependencies.
  11621. 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'
  11622. ;;
  11623. xl* | mpixl* | bgxl*)
  11624. # IBM XL 8.0 on PPC, with GNU ld
  11625. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11626. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11627. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11628. if test "x$supports_anon_versioning" = xyes; then
  11629. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11630. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11631. echo "local: *; };" >> $output_objdir/$libname.ver~
  11632. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11633. fi
  11634. ;;
  11635. *)
  11636. case `$CC -V 2>&1 | sed 5q` in
  11637. *Sun\ C*)
  11638. # Sun C++ 5.9
  11639. no_undefined_flag_CXX=' -zdefs'
  11640. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11641. 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'
  11642. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11643. 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'
  11644. compiler_needs_object_CXX=yes
  11645. # Not sure whether something based on
  11646. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11647. # would be better.
  11648. output_verbose_link_cmd='func_echo_all'
  11649. # Archives containing C++ object files must be created using
  11650. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11651. # necessary to make sure instantiated templates are included
  11652. # in the archive.
  11653. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11654. ;;
  11655. esac
  11656. ;;
  11657. esac
  11658. ;;
  11659. lynxos*)
  11660. # FIXME: insert proper C++ library support
  11661. ld_shlibs_CXX=no
  11662. ;;
  11663. m88k*)
  11664. # FIXME: insert proper C++ library support
  11665. ld_shlibs_CXX=no
  11666. ;;
  11667. mvs*)
  11668. case $cc_basename in
  11669. cxx*)
  11670. # FIXME: insert proper C++ library support
  11671. ld_shlibs_CXX=no
  11672. ;;
  11673. *)
  11674. # FIXME: insert proper C++ library support
  11675. ld_shlibs_CXX=no
  11676. ;;
  11677. esac
  11678. ;;
  11679. netbsd*)
  11680. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11681. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11682. wlarc=
  11683. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11684. hardcode_direct_CXX=yes
  11685. hardcode_shlibpath_var_CXX=no
  11686. fi
  11687. # Workaround some broken pre-1.5 toolchains
  11688. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11689. ;;
  11690. *nto* | *qnx*)
  11691. ld_shlibs_CXX=yes
  11692. ;;
  11693. openbsd2*)
  11694. # C++ shared libraries are fairly broken
  11695. ld_shlibs_CXX=no
  11696. ;;
  11697. openbsd*)
  11698. if test -f /usr/libexec/ld.so; then
  11699. hardcode_direct_CXX=yes
  11700. hardcode_shlibpath_var_CXX=no
  11701. hardcode_direct_absolute_CXX=yes
  11702. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11703. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11704. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11705. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11706. export_dynamic_flag_spec_CXX='${wl}-E'
  11707. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11708. fi
  11709. output_verbose_link_cmd=func_echo_all
  11710. else
  11711. ld_shlibs_CXX=no
  11712. fi
  11713. ;;
  11714. osf3* | osf4* | osf5*)
  11715. case $cc_basename in
  11716. KCC*)
  11717. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11718. # KCC will only create a shared library if the output file
  11719. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11720. # to its proper name (with version) after linking.
  11721. 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'
  11722. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11723. hardcode_libdir_separator_CXX=:
  11724. # Archives containing C++ object files must be created using
  11725. # the KAI C++ compiler.
  11726. case $host in
  11727. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11728. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11729. esac
  11730. ;;
  11731. RCC*)
  11732. # Rational C++ 2.4.1
  11733. # FIXME: insert proper C++ library support
  11734. ld_shlibs_CXX=no
  11735. ;;
  11736. cxx*)
  11737. case $host in
  11738. osf3*)
  11739. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11740. 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'
  11741. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11742. ;;
  11743. *)
  11744. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11745. 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'
  11746. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11747. echo "-hidden">> $lib.exp~
  11748. $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~
  11749. $RM $lib.exp'
  11750. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11751. ;;
  11752. esac
  11753. hardcode_libdir_separator_CXX=:
  11754. # Commands to make compiler produce verbose output that lists
  11755. # what "hidden" libraries, object files and flags are used when
  11756. # linking a shared library.
  11757. #
  11758. # There doesn't appear to be a way to prevent this compiler from
  11759. # explicitly linking system object files so we need to strip them
  11760. # from the output so that they don't get included in the library
  11761. # dependencies.
  11762. 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"'
  11763. ;;
  11764. *)
  11765. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11766. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11767. case $host in
  11768. osf3*)
  11769. 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'
  11770. ;;
  11771. *)
  11772. 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'
  11773. ;;
  11774. esac
  11775. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11776. hardcode_libdir_separator_CXX=:
  11777. # Commands to make compiler produce verbose output that lists
  11778. # what "hidden" libraries, object files and flags are used when
  11779. # linking a shared library.
  11780. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11781. else
  11782. # FIXME: insert proper C++ library support
  11783. ld_shlibs_CXX=no
  11784. fi
  11785. ;;
  11786. esac
  11787. ;;
  11788. psos*)
  11789. # FIXME: insert proper C++ library support
  11790. ld_shlibs_CXX=no
  11791. ;;
  11792. sunos4*)
  11793. case $cc_basename in
  11794. CC*)
  11795. # Sun C++ 4.x
  11796. # FIXME: insert proper C++ library support
  11797. ld_shlibs_CXX=no
  11798. ;;
  11799. lcc*)
  11800. # Lucid
  11801. # FIXME: insert proper C++ library support
  11802. ld_shlibs_CXX=no
  11803. ;;
  11804. *)
  11805. # FIXME: insert proper C++ library support
  11806. ld_shlibs_CXX=no
  11807. ;;
  11808. esac
  11809. ;;
  11810. solaris*)
  11811. case $cc_basename in
  11812. CC* | sunCC*)
  11813. # Sun C++ 4.2, 5.x and Centerline C++
  11814. archive_cmds_need_lc_CXX=yes
  11815. no_undefined_flag_CXX=' -zdefs'
  11816. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11817. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11818. $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'
  11819. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11820. hardcode_shlibpath_var_CXX=no
  11821. case $host_os in
  11822. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11823. *)
  11824. # The compiler driver will combine and reorder linker options,
  11825. # but understands `-z linker_flag'.
  11826. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11827. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11828. ;;
  11829. esac
  11830. link_all_deplibs_CXX=yes
  11831. output_verbose_link_cmd='func_echo_all'
  11832. # Archives containing C++ object files must be created using
  11833. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11834. # necessary to make sure instantiated templates are included
  11835. # in the archive.
  11836. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11837. ;;
  11838. gcx*)
  11839. # Green Hills C++ Compiler
  11840. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11841. # The C++ compiler must be used to create the archive.
  11842. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11843. ;;
  11844. *)
  11845. # GNU C++ compiler with Solaris linker
  11846. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11847. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11848. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11849. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11850. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11851. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11852. # Commands to make compiler produce verbose output that lists
  11853. # what "hidden" libraries, object files and flags are used when
  11854. # linking a shared library.
  11855. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11856. else
  11857. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11858. # platform.
  11859. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11860. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11861. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11862. # Commands to make compiler produce verbose output that lists
  11863. # what "hidden" libraries, object files and flags are used when
  11864. # linking a shared library.
  11865. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11866. fi
  11867. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11868. case $host_os in
  11869. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11870. *)
  11871. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11872. ;;
  11873. esac
  11874. fi
  11875. ;;
  11876. esac
  11877. ;;
  11878. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11879. no_undefined_flag_CXX='${wl}-z,text'
  11880. archive_cmds_need_lc_CXX=no
  11881. hardcode_shlibpath_var_CXX=no
  11882. runpath_var='LD_RUN_PATH'
  11883. case $cc_basename in
  11884. CC*)
  11885. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11886. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11887. ;;
  11888. *)
  11889. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11890. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11891. ;;
  11892. esac
  11893. ;;
  11894. sysv5* | sco3.2v5* | sco5v6*)
  11895. # Note: We can NOT use -z defs as we might desire, because we do not
  11896. # link with -lc, and that would cause any symbols used from libc to
  11897. # always be unresolved, which means just about no library would
  11898. # ever link correctly. If we're not using GNU ld we use -z text
  11899. # though, which does catch some bad symbols but isn't as heavy-handed
  11900. # as -z defs.
  11901. no_undefined_flag_CXX='${wl}-z,text'
  11902. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11903. archive_cmds_need_lc_CXX=no
  11904. hardcode_shlibpath_var_CXX=no
  11905. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11906. hardcode_libdir_separator_CXX=':'
  11907. link_all_deplibs_CXX=yes
  11908. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11909. runpath_var='LD_RUN_PATH'
  11910. case $cc_basename in
  11911. CC*)
  11912. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11913. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11914. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11915. '"$old_archive_cmds_CXX"
  11916. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11917. '"$reload_cmds_CXX"
  11918. ;;
  11919. *)
  11920. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11921. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11922. ;;
  11923. esac
  11924. ;;
  11925. tandem*)
  11926. case $cc_basename in
  11927. NCC*)
  11928. # NonStop-UX NCC 3.20
  11929. # FIXME: insert proper C++ library support
  11930. ld_shlibs_CXX=no
  11931. ;;
  11932. *)
  11933. # FIXME: insert proper C++ library support
  11934. ld_shlibs_CXX=no
  11935. ;;
  11936. esac
  11937. ;;
  11938. vxworks*)
  11939. # FIXME: insert proper C++ library support
  11940. ld_shlibs_CXX=no
  11941. ;;
  11942. *)
  11943. # FIXME: insert proper C++ library support
  11944. ld_shlibs_CXX=no
  11945. ;;
  11946. esac
  11947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11948. $as_echo "$ld_shlibs_CXX" >&6; }
  11949. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11950. GCC_CXX="$GXX"
  11951. LD_CXX="$LD"
  11952. ## CAVEAT EMPTOR:
  11953. ## There is no encapsulation within the following macros, do not change
  11954. ## the running order or otherwise move them around unless you know exactly
  11955. ## what you are doing...
  11956. # Dependencies to place before and after the object being linked:
  11957. predep_objects_CXX=
  11958. postdep_objects_CXX=
  11959. predeps_CXX=
  11960. postdeps_CXX=
  11961. compiler_lib_search_path_CXX=
  11962. cat > conftest.$ac_ext <<_LT_EOF
  11963. class Foo
  11964. {
  11965. public:
  11966. Foo (void) { a = 0; }
  11967. private:
  11968. int a;
  11969. };
  11970. _LT_EOF
  11971. _lt_libdeps_save_CFLAGS=$CFLAGS
  11972. case "$CC $CFLAGS " in #(
  11973. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11974. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11975. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11976. esac
  11977. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11978. (eval $ac_compile) 2>&5
  11979. ac_status=$?
  11980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11981. test $ac_status = 0; }; then
  11982. # Parse the compiler output and extract the necessary
  11983. # objects, libraries and library flags.
  11984. # Sentinel used to keep track of whether or not we are before
  11985. # the conftest object file.
  11986. pre_test_object_deps_done=no
  11987. for p in `eval "$output_verbose_link_cmd"`; do
  11988. case ${prev}${p} in
  11989. -L* | -R* | -l*)
  11990. # Some compilers place space between "-{L,R}" and the path.
  11991. # Remove the space.
  11992. if test $p = "-L" ||
  11993. test $p = "-R"; then
  11994. prev=$p
  11995. continue
  11996. fi
  11997. # Expand the sysroot to ease extracting the directories later.
  11998. if test -z "$prev"; then
  11999. case $p in
  12000. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12001. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12002. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12003. esac
  12004. fi
  12005. case $p in
  12006. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12007. esac
  12008. if test "$pre_test_object_deps_done" = no; then
  12009. case ${prev} in
  12010. -L | -R)
  12011. # Internal compiler library paths should come after those
  12012. # provided the user. The postdeps already come after the
  12013. # user supplied libs so there is no need to process them.
  12014. if test -z "$compiler_lib_search_path_CXX"; then
  12015. compiler_lib_search_path_CXX="${prev}${p}"
  12016. else
  12017. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12018. fi
  12019. ;;
  12020. # The "-l" case would never come before the object being
  12021. # linked, so don't bother handling this case.
  12022. esac
  12023. else
  12024. if test -z "$postdeps_CXX"; then
  12025. postdeps_CXX="${prev}${p}"
  12026. else
  12027. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12028. fi
  12029. fi
  12030. prev=
  12031. ;;
  12032. *.lto.$objext) ;; # Ignore GCC LTO objects
  12033. *.$objext)
  12034. # This assumes that the test object file only shows up
  12035. # once in the compiler output.
  12036. if test "$p" = "conftest.$objext"; then
  12037. pre_test_object_deps_done=yes
  12038. continue
  12039. fi
  12040. if test "$pre_test_object_deps_done" = no; then
  12041. if test -z "$predep_objects_CXX"; then
  12042. predep_objects_CXX="$p"
  12043. else
  12044. predep_objects_CXX="$predep_objects_CXX $p"
  12045. fi
  12046. else
  12047. if test -z "$postdep_objects_CXX"; then
  12048. postdep_objects_CXX="$p"
  12049. else
  12050. postdep_objects_CXX="$postdep_objects_CXX $p"
  12051. fi
  12052. fi
  12053. ;;
  12054. *) ;; # Ignore the rest.
  12055. esac
  12056. done
  12057. # Clean up.
  12058. rm -f a.out a.exe
  12059. else
  12060. echo "libtool.m4: error: problem compiling CXX test program"
  12061. fi
  12062. $RM -f confest.$objext
  12063. CFLAGS=$_lt_libdeps_save_CFLAGS
  12064. # PORTME: override above test on systems where it is broken
  12065. case $host_os in
  12066. interix[3-9]*)
  12067. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12068. # hack all around it, let's just trust "g++" to DTRT.
  12069. predep_objects_CXX=
  12070. postdep_objects_CXX=
  12071. postdeps_CXX=
  12072. ;;
  12073. linux*)
  12074. case `$CC -V 2>&1 | sed 5q` in
  12075. *Sun\ C*)
  12076. # Sun C++ 5.9
  12077. # The more standards-conforming stlport4 library is
  12078. # incompatible with the Cstd library. Avoid specifying
  12079. # it if it's in CXXFLAGS. Ignore libCrun as
  12080. # -library=stlport4 depends on it.
  12081. case " $CXX $CXXFLAGS " in
  12082. *" -library=stlport4 "*)
  12083. solaris_use_stlport4=yes
  12084. ;;
  12085. esac
  12086. if test "$solaris_use_stlport4" != yes; then
  12087. postdeps_CXX='-library=Cstd -library=Crun'
  12088. fi
  12089. ;;
  12090. esac
  12091. ;;
  12092. solaris*)
  12093. case $cc_basename in
  12094. CC* | sunCC*)
  12095. # The more standards-conforming stlport4 library is
  12096. # incompatible with the Cstd library. Avoid specifying
  12097. # it if it's in CXXFLAGS. Ignore libCrun as
  12098. # -library=stlport4 depends on it.
  12099. case " $CXX $CXXFLAGS " in
  12100. *" -library=stlport4 "*)
  12101. solaris_use_stlport4=yes
  12102. ;;
  12103. esac
  12104. # Adding this requires a known-good setup of shared libraries for
  12105. # Sun compiler versions before 5.6, else PIC objects from an old
  12106. # archive will be linked into the output, leading to subtle bugs.
  12107. if test "$solaris_use_stlport4" != yes; then
  12108. postdeps_CXX='-library=Cstd -library=Crun'
  12109. fi
  12110. ;;
  12111. esac
  12112. ;;
  12113. esac
  12114. case " $postdeps_CXX " in
  12115. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12116. esac
  12117. compiler_lib_search_dirs_CXX=
  12118. if test -n "${compiler_lib_search_path_CXX}"; then
  12119. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12120. fi
  12121. lt_prog_compiler_wl_CXX=
  12122. lt_prog_compiler_pic_CXX=
  12123. lt_prog_compiler_static_CXX=
  12124. # C++ specific cases for pic, static, wl, etc.
  12125. if test "$GXX" = yes; then
  12126. lt_prog_compiler_wl_CXX='-Wl,'
  12127. lt_prog_compiler_static_CXX='-static'
  12128. case $host_os in
  12129. aix*)
  12130. # All AIX code is PIC.
  12131. if test "$host_cpu" = ia64; then
  12132. # AIX 5 now supports IA64 processor
  12133. lt_prog_compiler_static_CXX='-Bstatic'
  12134. fi
  12135. ;;
  12136. amigaos*)
  12137. case $host_cpu in
  12138. powerpc)
  12139. # see comment about AmigaOS4 .so support
  12140. lt_prog_compiler_pic_CXX='-fPIC'
  12141. ;;
  12142. m68k)
  12143. # FIXME: we need at least 68020 code to build shared libraries, but
  12144. # adding the `-m68020' flag to GCC prevents building anything better,
  12145. # like `-m68040'.
  12146. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12147. ;;
  12148. esac
  12149. ;;
  12150. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12151. # PIC is the default for these OSes.
  12152. ;;
  12153. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12154. # This hack is so that the source file can tell whether it is being
  12155. # built for inclusion in a dll (and should export symbols for example).
  12156. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12157. # (--disable-auto-import) libraries
  12158. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12159. ;;
  12160. darwin* | rhapsody*)
  12161. # PIC is the default on this platform
  12162. # Common symbols not allowed in MH_DYLIB files
  12163. lt_prog_compiler_pic_CXX='-fno-common'
  12164. ;;
  12165. *djgpp*)
  12166. # DJGPP does not support shared libraries at all
  12167. lt_prog_compiler_pic_CXX=
  12168. ;;
  12169. haiku*)
  12170. # PIC is the default for Haiku.
  12171. # The "-static" flag exists, but is broken.
  12172. lt_prog_compiler_static_CXX=
  12173. ;;
  12174. interix[3-9]*)
  12175. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12176. # Instead, we relocate shared libraries at runtime.
  12177. ;;
  12178. sysv4*MP*)
  12179. if test -d /usr/nec; then
  12180. lt_prog_compiler_pic_CXX=-Kconform_pic
  12181. fi
  12182. ;;
  12183. hpux*)
  12184. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12185. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12186. # sets the default TLS model and affects inlining.
  12187. case $host_cpu in
  12188. hppa*64*)
  12189. ;;
  12190. *)
  12191. lt_prog_compiler_pic_CXX='-fPIC'
  12192. ;;
  12193. esac
  12194. ;;
  12195. *qnx* | *nto*)
  12196. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12197. # it will coredump.
  12198. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12199. ;;
  12200. *)
  12201. lt_prog_compiler_pic_CXX='-fPIC'
  12202. ;;
  12203. esac
  12204. else
  12205. case $host_os in
  12206. aix[4-9]*)
  12207. # All AIX code is PIC.
  12208. if test "$host_cpu" = ia64; then
  12209. # AIX 5 now supports IA64 processor
  12210. lt_prog_compiler_static_CXX='-Bstatic'
  12211. else
  12212. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12213. fi
  12214. ;;
  12215. chorus*)
  12216. case $cc_basename in
  12217. cxch68*)
  12218. # Green Hills C++ Compiler
  12219. # _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"
  12220. ;;
  12221. esac
  12222. ;;
  12223. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12224. # This hack is so that the source file can tell whether it is being
  12225. # built for inclusion in a dll (and should export symbols for example).
  12226. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12227. ;;
  12228. dgux*)
  12229. case $cc_basename in
  12230. ec++*)
  12231. lt_prog_compiler_pic_CXX='-KPIC'
  12232. ;;
  12233. ghcx*)
  12234. # Green Hills C++ Compiler
  12235. lt_prog_compiler_pic_CXX='-pic'
  12236. ;;
  12237. *)
  12238. ;;
  12239. esac
  12240. ;;
  12241. freebsd* | dragonfly*)
  12242. # FreeBSD uses GNU C++
  12243. ;;
  12244. hpux9* | hpux10* | hpux11*)
  12245. case $cc_basename in
  12246. CC*)
  12247. lt_prog_compiler_wl_CXX='-Wl,'
  12248. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12249. if test "$host_cpu" != ia64; then
  12250. lt_prog_compiler_pic_CXX='+Z'
  12251. fi
  12252. ;;
  12253. aCC*)
  12254. lt_prog_compiler_wl_CXX='-Wl,'
  12255. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12256. case $host_cpu in
  12257. hppa*64*|ia64*)
  12258. # +Z the default
  12259. ;;
  12260. *)
  12261. lt_prog_compiler_pic_CXX='+Z'
  12262. ;;
  12263. esac
  12264. ;;
  12265. *)
  12266. ;;
  12267. esac
  12268. ;;
  12269. interix*)
  12270. # This is c89, which is MS Visual C++ (no shared libs)
  12271. # Anyone wants to do a port?
  12272. ;;
  12273. irix5* | irix6* | nonstopux*)
  12274. case $cc_basename in
  12275. CC*)
  12276. lt_prog_compiler_wl_CXX='-Wl,'
  12277. lt_prog_compiler_static_CXX='-non_shared'
  12278. # CC pic flag -KPIC is the default.
  12279. ;;
  12280. *)
  12281. ;;
  12282. esac
  12283. ;;
  12284. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12285. case $cc_basename in
  12286. KCC*)
  12287. # KAI C++ Compiler
  12288. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12289. lt_prog_compiler_pic_CXX='-fPIC'
  12290. ;;
  12291. ecpc* )
  12292. # old Intel C++ for x86_64 which still supported -KPIC.
  12293. lt_prog_compiler_wl_CXX='-Wl,'
  12294. lt_prog_compiler_pic_CXX='-KPIC'
  12295. lt_prog_compiler_static_CXX='-static'
  12296. ;;
  12297. icpc* )
  12298. # Intel C++, used to be incompatible with GCC.
  12299. # ICC 10 doesn't accept -KPIC any more.
  12300. lt_prog_compiler_wl_CXX='-Wl,'
  12301. lt_prog_compiler_pic_CXX='-fPIC'
  12302. lt_prog_compiler_static_CXX='-static'
  12303. ;;
  12304. pgCC* | pgcpp*)
  12305. # Portland Group C++ compiler
  12306. lt_prog_compiler_wl_CXX='-Wl,'
  12307. lt_prog_compiler_pic_CXX='-fpic'
  12308. lt_prog_compiler_static_CXX='-Bstatic'
  12309. ;;
  12310. cxx*)
  12311. # Compaq C++
  12312. # Make sure the PIC flag is empty. It appears that all Alpha
  12313. # Linux and Compaq Tru64 Unix objects are PIC.
  12314. lt_prog_compiler_pic_CXX=
  12315. lt_prog_compiler_static_CXX='-non_shared'
  12316. ;;
  12317. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12318. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12319. lt_prog_compiler_wl_CXX='-Wl,'
  12320. lt_prog_compiler_pic_CXX='-qpic'
  12321. lt_prog_compiler_static_CXX='-qstaticlink'
  12322. ;;
  12323. *)
  12324. case `$CC -V 2>&1 | sed 5q` in
  12325. *Sun\ C*)
  12326. # Sun C++ 5.9
  12327. lt_prog_compiler_pic_CXX='-KPIC'
  12328. lt_prog_compiler_static_CXX='-Bstatic'
  12329. lt_prog_compiler_wl_CXX='-Qoption ld '
  12330. ;;
  12331. esac
  12332. ;;
  12333. esac
  12334. ;;
  12335. lynxos*)
  12336. ;;
  12337. m88k*)
  12338. ;;
  12339. mvs*)
  12340. case $cc_basename in
  12341. cxx*)
  12342. lt_prog_compiler_pic_CXX='-W c,exportall'
  12343. ;;
  12344. *)
  12345. ;;
  12346. esac
  12347. ;;
  12348. netbsd*)
  12349. ;;
  12350. *qnx* | *nto*)
  12351. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12352. # it will coredump.
  12353. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12354. ;;
  12355. osf3* | osf4* | osf5*)
  12356. case $cc_basename in
  12357. KCC*)
  12358. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12359. ;;
  12360. RCC*)
  12361. # Rational C++ 2.4.1
  12362. lt_prog_compiler_pic_CXX='-pic'
  12363. ;;
  12364. cxx*)
  12365. # Digital/Compaq C++
  12366. lt_prog_compiler_wl_CXX='-Wl,'
  12367. # Make sure the PIC flag is empty. It appears that all Alpha
  12368. # Linux and Compaq Tru64 Unix objects are PIC.
  12369. lt_prog_compiler_pic_CXX=
  12370. lt_prog_compiler_static_CXX='-non_shared'
  12371. ;;
  12372. *)
  12373. ;;
  12374. esac
  12375. ;;
  12376. psos*)
  12377. ;;
  12378. solaris*)
  12379. case $cc_basename in
  12380. CC* | sunCC*)
  12381. # Sun C++ 4.2, 5.x and Centerline C++
  12382. lt_prog_compiler_pic_CXX='-KPIC'
  12383. lt_prog_compiler_static_CXX='-Bstatic'
  12384. lt_prog_compiler_wl_CXX='-Qoption ld '
  12385. ;;
  12386. gcx*)
  12387. # Green Hills C++ Compiler
  12388. lt_prog_compiler_pic_CXX='-PIC'
  12389. ;;
  12390. *)
  12391. ;;
  12392. esac
  12393. ;;
  12394. sunos4*)
  12395. case $cc_basename in
  12396. CC*)
  12397. # Sun C++ 4.x
  12398. lt_prog_compiler_pic_CXX='-pic'
  12399. lt_prog_compiler_static_CXX='-Bstatic'
  12400. ;;
  12401. lcc*)
  12402. # Lucid
  12403. lt_prog_compiler_pic_CXX='-pic'
  12404. ;;
  12405. *)
  12406. ;;
  12407. esac
  12408. ;;
  12409. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12410. case $cc_basename in
  12411. CC*)
  12412. lt_prog_compiler_wl_CXX='-Wl,'
  12413. lt_prog_compiler_pic_CXX='-KPIC'
  12414. lt_prog_compiler_static_CXX='-Bstatic'
  12415. ;;
  12416. esac
  12417. ;;
  12418. tandem*)
  12419. case $cc_basename in
  12420. NCC*)
  12421. # NonStop-UX NCC 3.20
  12422. lt_prog_compiler_pic_CXX='-KPIC'
  12423. ;;
  12424. *)
  12425. ;;
  12426. esac
  12427. ;;
  12428. vxworks*)
  12429. ;;
  12430. *)
  12431. lt_prog_compiler_can_build_shared_CXX=no
  12432. ;;
  12433. esac
  12434. fi
  12435. case $host_os in
  12436. # For platforms which do not support PIC, -DPIC is meaningless:
  12437. *djgpp*)
  12438. lt_prog_compiler_pic_CXX=
  12439. ;;
  12440. *)
  12441. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12442. ;;
  12443. esac
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12445. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12446. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12447. $as_echo_n "(cached) " >&6
  12448. else
  12449. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12450. fi
  12451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12452. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12453. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12454. #
  12455. # Check to make sure the PIC flag actually works.
  12456. #
  12457. if test -n "$lt_prog_compiler_pic_CXX"; then
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12459. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12460. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12461. $as_echo_n "(cached) " >&6
  12462. else
  12463. lt_cv_prog_compiler_pic_works_CXX=no
  12464. ac_outfile=conftest.$ac_objext
  12465. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12466. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12467. # Insert the option either (1) after the last *FLAGS variable, or
  12468. # (2) before a word containing "conftest.", or (3) at the end.
  12469. # Note that $ac_compile itself does not contain backslashes and begins
  12470. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12471. # The option is referenced via a variable to avoid confusing sed.
  12472. lt_compile=`echo "$ac_compile" | $SED \
  12473. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12474. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12475. -e 's:$: $lt_compiler_flag:'`
  12476. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12477. (eval "$lt_compile" 2>conftest.err)
  12478. ac_status=$?
  12479. cat conftest.err >&5
  12480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12481. if (exit $ac_status) && test -s "$ac_outfile"; then
  12482. # The compiler can only warn and ignore the option if not recognized
  12483. # So say no if there are warnings other than the usual output.
  12484. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12485. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12486. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12487. lt_cv_prog_compiler_pic_works_CXX=yes
  12488. fi
  12489. fi
  12490. $RM conftest*
  12491. fi
  12492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12493. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12494. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12495. case $lt_prog_compiler_pic_CXX in
  12496. "" | " "*) ;;
  12497. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12498. esac
  12499. else
  12500. lt_prog_compiler_pic_CXX=
  12501. lt_prog_compiler_can_build_shared_CXX=no
  12502. fi
  12503. fi
  12504. #
  12505. # Check to make sure the static flag actually works.
  12506. #
  12507. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12509. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12510. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12511. $as_echo_n "(cached) " >&6
  12512. else
  12513. lt_cv_prog_compiler_static_works_CXX=no
  12514. save_LDFLAGS="$LDFLAGS"
  12515. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12516. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12517. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12518. # The linker can only warn and ignore the option if not recognized
  12519. # So say no if there are warnings
  12520. if test -s conftest.err; then
  12521. # Append any errors to the config.log.
  12522. cat conftest.err 1>&5
  12523. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12524. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12525. if diff conftest.exp conftest.er2 >/dev/null; then
  12526. lt_cv_prog_compiler_static_works_CXX=yes
  12527. fi
  12528. else
  12529. lt_cv_prog_compiler_static_works_CXX=yes
  12530. fi
  12531. fi
  12532. $RM -r conftest*
  12533. LDFLAGS="$save_LDFLAGS"
  12534. fi
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12536. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12537. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12538. :
  12539. else
  12540. lt_prog_compiler_static_CXX=
  12541. fi
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12543. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12544. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12545. $as_echo_n "(cached) " >&6
  12546. else
  12547. lt_cv_prog_compiler_c_o_CXX=no
  12548. $RM -r conftest 2>/dev/null
  12549. mkdir conftest
  12550. cd conftest
  12551. mkdir out
  12552. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12553. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12554. # Insert the option either (1) after the last *FLAGS variable, or
  12555. # (2) before a word containing "conftest.", or (3) at the end.
  12556. # Note that $ac_compile itself does not contain backslashes and begins
  12557. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12558. lt_compile=`echo "$ac_compile" | $SED \
  12559. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12560. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12561. -e 's:$: $lt_compiler_flag:'`
  12562. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12563. (eval "$lt_compile" 2>out/conftest.err)
  12564. ac_status=$?
  12565. cat out/conftest.err >&5
  12566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12567. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12568. then
  12569. # The compiler can only warn and ignore the option if not recognized
  12570. # So say no if there are warnings
  12571. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12572. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12573. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12574. lt_cv_prog_compiler_c_o_CXX=yes
  12575. fi
  12576. fi
  12577. chmod u+w . 2>&5
  12578. $RM conftest*
  12579. # SGI C++ compiler will create directory out/ii_files/ for
  12580. # template instantiation
  12581. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12582. $RM out/* && rmdir out
  12583. cd ..
  12584. $RM -r conftest
  12585. $RM conftest*
  12586. fi
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12588. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12590. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12591. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12592. $as_echo_n "(cached) " >&6
  12593. else
  12594. lt_cv_prog_compiler_c_o_CXX=no
  12595. $RM -r conftest 2>/dev/null
  12596. mkdir conftest
  12597. cd conftest
  12598. mkdir out
  12599. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12600. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12601. # Insert the option either (1) after the last *FLAGS variable, or
  12602. # (2) before a word containing "conftest.", or (3) at the end.
  12603. # Note that $ac_compile itself does not contain backslashes and begins
  12604. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12605. lt_compile=`echo "$ac_compile" | $SED \
  12606. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12607. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12608. -e 's:$: $lt_compiler_flag:'`
  12609. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12610. (eval "$lt_compile" 2>out/conftest.err)
  12611. ac_status=$?
  12612. cat out/conftest.err >&5
  12613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12614. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12615. then
  12616. # The compiler can only warn and ignore the option if not recognized
  12617. # So say no if there are warnings
  12618. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12619. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12620. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12621. lt_cv_prog_compiler_c_o_CXX=yes
  12622. fi
  12623. fi
  12624. chmod u+w . 2>&5
  12625. $RM conftest*
  12626. # SGI C++ compiler will create directory out/ii_files/ for
  12627. # template instantiation
  12628. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12629. $RM out/* && rmdir out
  12630. cd ..
  12631. $RM -r conftest
  12632. $RM conftest*
  12633. fi
  12634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12635. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12636. hard_links="nottested"
  12637. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12638. # do not overwrite the value of need_locks provided by the user
  12639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12640. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12641. hard_links=yes
  12642. $RM conftest*
  12643. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12644. touch conftest.a
  12645. ln conftest.a conftest.b 2>&5 || hard_links=no
  12646. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12648. $as_echo "$hard_links" >&6; }
  12649. if test "$hard_links" = no; then
  12650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12651. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12652. need_locks=warn
  12653. fi
  12654. else
  12655. need_locks=no
  12656. fi
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12658. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12659. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12660. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12661. case $host_os in
  12662. aix[4-9]*)
  12663. # If we're using GNU nm, then we don't want the "-C" option.
  12664. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12665. # Also, AIX nm treats weak defined symbols like other global defined
  12666. # symbols, whereas GNU nm marks them as "W".
  12667. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12668. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12669. else
  12670. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12671. fi
  12672. ;;
  12673. pw32*)
  12674. export_symbols_cmds_CXX="$ltdll_cmds"
  12675. ;;
  12676. cygwin* | mingw* | cegcc*)
  12677. case $cc_basename in
  12678. cl*)
  12679. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12680. ;;
  12681. *)
  12682. 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'
  12683. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12684. ;;
  12685. esac
  12686. ;;
  12687. *)
  12688. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12689. ;;
  12690. esac
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12692. $as_echo "$ld_shlibs_CXX" >&6; }
  12693. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12694. with_gnu_ld_CXX=$with_gnu_ld
  12695. #
  12696. # Do we need to explicitly link libc?
  12697. #
  12698. case "x$archive_cmds_need_lc_CXX" in
  12699. x|xyes)
  12700. # Assume -lc should be added
  12701. archive_cmds_need_lc_CXX=yes
  12702. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12703. case $archive_cmds_CXX in
  12704. *'~'*)
  12705. # FIXME: we may have to deal with multi-command sequences.
  12706. ;;
  12707. '$CC '*)
  12708. # Test whether the compiler implicitly links with -lc since on some
  12709. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12710. # to ld, don't add -lc before -lgcc.
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12712. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12713. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12714. $as_echo_n "(cached) " >&6
  12715. else
  12716. $RM conftest*
  12717. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12719. (eval $ac_compile) 2>&5
  12720. ac_status=$?
  12721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12722. test $ac_status = 0; } 2>conftest.err; then
  12723. soname=conftest
  12724. lib=conftest
  12725. libobjs=conftest.$ac_objext
  12726. deplibs=
  12727. wl=$lt_prog_compiler_wl_CXX
  12728. pic_flag=$lt_prog_compiler_pic_CXX
  12729. compiler_flags=-v
  12730. linker_flags=-v
  12731. verstring=
  12732. output_objdir=.
  12733. libname=conftest
  12734. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12735. allow_undefined_flag_CXX=
  12736. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12737. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12738. ac_status=$?
  12739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12740. test $ac_status = 0; }
  12741. then
  12742. lt_cv_archive_cmds_need_lc_CXX=no
  12743. else
  12744. lt_cv_archive_cmds_need_lc_CXX=yes
  12745. fi
  12746. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12747. else
  12748. cat conftest.err 1>&5
  12749. fi
  12750. $RM conftest*
  12751. fi
  12752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12753. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12754. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12755. ;;
  12756. esac
  12757. fi
  12758. ;;
  12759. esac
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12761. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12762. library_names_spec=
  12763. libname_spec='lib$name'
  12764. soname_spec=
  12765. shrext_cmds=".so"
  12766. postinstall_cmds=
  12767. postuninstall_cmds=
  12768. finish_cmds=
  12769. finish_eval=
  12770. shlibpath_var=
  12771. shlibpath_overrides_runpath=unknown
  12772. version_type=none
  12773. dynamic_linker="$host_os ld.so"
  12774. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12775. need_lib_prefix=unknown
  12776. hardcode_into_libs=no
  12777. # when you set need_version to no, make sure it does not cause -set_version
  12778. # flags to be left without arguments
  12779. need_version=unknown
  12780. case $host_os in
  12781. aix3*)
  12782. version_type=linux # correct to gnu/linux during the next big refactor
  12783. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12784. shlibpath_var=LIBPATH
  12785. # AIX 3 has no versioning support, so we append a major version to the name.
  12786. soname_spec='${libname}${release}${shared_ext}$major'
  12787. ;;
  12788. aix[4-9]*)
  12789. version_type=linux # correct to gnu/linux during the next big refactor
  12790. need_lib_prefix=no
  12791. need_version=no
  12792. hardcode_into_libs=yes
  12793. if test "$host_cpu" = ia64; then
  12794. # AIX 5 supports IA64
  12795. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12796. shlibpath_var=LD_LIBRARY_PATH
  12797. else
  12798. # With GCC up to 2.95.x, collect2 would create an import file
  12799. # for dependence libraries. The import file would start with
  12800. # the line `#! .'. This would cause the generated library to
  12801. # depend on `.', always an invalid library. This was fixed in
  12802. # development snapshots of GCC prior to 3.0.
  12803. case $host_os in
  12804. aix4 | aix4.[01] | aix4.[01].*)
  12805. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12806. echo ' yes '
  12807. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12808. :
  12809. else
  12810. can_build_shared=no
  12811. fi
  12812. ;;
  12813. esac
  12814. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12815. # soname into executable. Probably we can add versioning support to
  12816. # collect2, so additional links can be useful in future.
  12817. if test "$aix_use_runtimelinking" = yes; then
  12818. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12819. # instead of lib<name>.a to let people know that these are not
  12820. # typical AIX shared libraries.
  12821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12822. else
  12823. # We preserve .a as extension for shared libraries through AIX4.2
  12824. # and later when we are not doing run time linking.
  12825. library_names_spec='${libname}${release}.a $libname.a'
  12826. soname_spec='${libname}${release}${shared_ext}$major'
  12827. fi
  12828. shlibpath_var=LIBPATH
  12829. fi
  12830. ;;
  12831. amigaos*)
  12832. case $host_cpu in
  12833. powerpc)
  12834. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12835. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12837. ;;
  12838. m68k)
  12839. library_names_spec='$libname.ixlibrary $libname.a'
  12840. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12841. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  12842. ;;
  12843. esac
  12844. ;;
  12845. beos*)
  12846. library_names_spec='${libname}${shared_ext}'
  12847. dynamic_linker="$host_os ld.so"
  12848. shlibpath_var=LIBRARY_PATH
  12849. ;;
  12850. bsdi[45]*)
  12851. version_type=linux # correct to gnu/linux during the next big refactor
  12852. need_version=no
  12853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12854. soname_spec='${libname}${release}${shared_ext}$major'
  12855. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12856. shlibpath_var=LD_LIBRARY_PATH
  12857. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12858. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12859. # the default ld.so.conf also contains /usr/contrib/lib and
  12860. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12861. # libtool to hard-code these into programs
  12862. ;;
  12863. cygwin* | mingw* | pw32* | cegcc*)
  12864. version_type=windows
  12865. shrext_cmds=".dll"
  12866. need_version=no
  12867. need_lib_prefix=no
  12868. case $GCC,$cc_basename in
  12869. yes,*)
  12870. # gcc
  12871. library_names_spec='$libname.dll.a'
  12872. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12873. postinstall_cmds='base_file=`basename \${file}`~
  12874. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12875. dldir=$destdir/`dirname \$dlpath`~
  12876. test -d \$dldir || mkdir -p \$dldir~
  12877. $install_prog $dir/$dlname \$dldir/$dlname~
  12878. chmod a+x \$dldir/$dlname~
  12879. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12880. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12881. fi'
  12882. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12883. dlpath=$dir/\$dldll~
  12884. $RM \$dlpath'
  12885. shlibpath_overrides_runpath=yes
  12886. case $host_os in
  12887. cygwin*)
  12888. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12889. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12890. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12891. ;;
  12892. mingw* | cegcc*)
  12893. # MinGW DLLs use traditional 'lib' prefix
  12894. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12895. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12896. ;;
  12897. pw32*)
  12898. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12899. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12900. ;;
  12901. esac
  12902. dynamic_linker='Win32 ld.exe'
  12903. ;;
  12904. *,cl*)
  12905. # Native MSVC
  12906. libname_spec='$name'
  12907. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12908. library_names_spec='${libname}.dll.lib'
  12909. case $build_os in
  12910. mingw*)
  12911. sys_lib_search_path_spec=
  12912. lt_save_ifs=$IFS
  12913. IFS=';'
  12914. for lt_path in $LIB
  12915. do
  12916. IFS=$lt_save_ifs
  12917. # Let DOS variable expansion print the short 8.3 style file name.
  12918. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12919. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12920. done
  12921. IFS=$lt_save_ifs
  12922. # Convert to MSYS style.
  12923. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12924. ;;
  12925. cygwin*)
  12926. # Convert to unix form, then to dos form, then back to unix form
  12927. # but this time dos style (no spaces!) so that the unix form looks
  12928. # like /cygdrive/c/PROGRA~1:/cygdr...
  12929. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12930. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12931. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12932. ;;
  12933. *)
  12934. sys_lib_search_path_spec="$LIB"
  12935. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12936. # It is most probably a Windows format PATH.
  12937. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12938. else
  12939. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12940. fi
  12941. # FIXME: find the short name or the path components, as spaces are
  12942. # common. (e.g. "Program Files" -> "PROGRA~1")
  12943. ;;
  12944. esac
  12945. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12946. postinstall_cmds='base_file=`basename \${file}`~
  12947. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12948. dldir=$destdir/`dirname \$dlpath`~
  12949. test -d \$dldir || mkdir -p \$dldir~
  12950. $install_prog $dir/$dlname \$dldir/$dlname'
  12951. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12952. dlpath=$dir/\$dldll~
  12953. $RM \$dlpath'
  12954. shlibpath_overrides_runpath=yes
  12955. dynamic_linker='Win32 link.exe'
  12956. ;;
  12957. *)
  12958. # Assume MSVC wrapper
  12959. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12960. dynamic_linker='Win32 ld.exe'
  12961. ;;
  12962. esac
  12963. # FIXME: first we should search . and the directory the executable is in
  12964. shlibpath_var=PATH
  12965. ;;
  12966. darwin* | rhapsody*)
  12967. dynamic_linker="$host_os dyld"
  12968. version_type=darwin
  12969. need_lib_prefix=no
  12970. need_version=no
  12971. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12972. soname_spec='${libname}${release}${major}$shared_ext'
  12973. shlibpath_overrides_runpath=yes
  12974. shlibpath_var=DYLD_LIBRARY_PATH
  12975. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12976. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12977. ;;
  12978. dgux*)
  12979. version_type=linux # correct to gnu/linux during the next big refactor
  12980. need_lib_prefix=no
  12981. need_version=no
  12982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12983. soname_spec='${libname}${release}${shared_ext}$major'
  12984. shlibpath_var=LD_LIBRARY_PATH
  12985. ;;
  12986. freebsd* | dragonfly*)
  12987. # DragonFly does not have aout. When/if they implement a new
  12988. # versioning mechanism, adjust this.
  12989. if test -x /usr/bin/objformat; then
  12990. objformat=`/usr/bin/objformat`
  12991. else
  12992. case $host_os in
  12993. freebsd[23].*) objformat=aout ;;
  12994. *) objformat=elf ;;
  12995. esac
  12996. fi
  12997. version_type=freebsd-$objformat
  12998. case $version_type in
  12999. freebsd-elf*)
  13000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13001. need_version=no
  13002. need_lib_prefix=no
  13003. ;;
  13004. freebsd-*)
  13005. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13006. need_version=yes
  13007. ;;
  13008. esac
  13009. shlibpath_var=LD_LIBRARY_PATH
  13010. case $host_os in
  13011. freebsd2.*)
  13012. shlibpath_overrides_runpath=yes
  13013. ;;
  13014. freebsd3.[01]* | freebsdelf3.[01]*)
  13015. shlibpath_overrides_runpath=yes
  13016. hardcode_into_libs=yes
  13017. ;;
  13018. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13019. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13020. shlibpath_overrides_runpath=no
  13021. hardcode_into_libs=yes
  13022. ;;
  13023. *) # from 4.6 on, and DragonFly
  13024. shlibpath_overrides_runpath=yes
  13025. hardcode_into_libs=yes
  13026. ;;
  13027. esac
  13028. ;;
  13029. gnu*)
  13030. version_type=linux # correct to gnu/linux during the next big refactor
  13031. need_lib_prefix=no
  13032. need_version=no
  13033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13034. soname_spec='${libname}${release}${shared_ext}$major'
  13035. shlibpath_var=LD_LIBRARY_PATH
  13036. shlibpath_overrides_runpath=no
  13037. hardcode_into_libs=yes
  13038. ;;
  13039. haiku*)
  13040. version_type=linux # correct to gnu/linux during the next big refactor
  13041. need_lib_prefix=no
  13042. need_version=no
  13043. dynamic_linker="$host_os runtime_loader"
  13044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13045. soname_spec='${libname}${release}${shared_ext}$major'
  13046. shlibpath_var=LIBRARY_PATH
  13047. shlibpath_overrides_runpath=yes
  13048. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13049. hardcode_into_libs=yes
  13050. ;;
  13051. hpux9* | hpux10* | hpux11*)
  13052. # Give a soname corresponding to the major version so that dld.sl refuses to
  13053. # link against other versions.
  13054. version_type=sunos
  13055. need_lib_prefix=no
  13056. need_version=no
  13057. case $host_cpu in
  13058. ia64*)
  13059. shrext_cmds='.so'
  13060. hardcode_into_libs=yes
  13061. dynamic_linker="$host_os dld.so"
  13062. shlibpath_var=LD_LIBRARY_PATH
  13063. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13065. soname_spec='${libname}${release}${shared_ext}$major'
  13066. if test "X$HPUX_IA64_MODE" = X32; then
  13067. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13068. else
  13069. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13070. fi
  13071. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13072. ;;
  13073. hppa*64*)
  13074. shrext_cmds='.sl'
  13075. hardcode_into_libs=yes
  13076. dynamic_linker="$host_os dld.sl"
  13077. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13078. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13080. soname_spec='${libname}${release}${shared_ext}$major'
  13081. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13082. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13083. ;;
  13084. *)
  13085. shrext_cmds='.sl'
  13086. dynamic_linker="$host_os dld.sl"
  13087. shlibpath_var=SHLIB_PATH
  13088. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13090. soname_spec='${libname}${release}${shared_ext}$major'
  13091. ;;
  13092. esac
  13093. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13094. postinstall_cmds='chmod 555 $lib'
  13095. # or fails outright, so override atomically:
  13096. install_override_mode=555
  13097. ;;
  13098. interix[3-9]*)
  13099. version_type=linux # correct to gnu/linux during the next big refactor
  13100. need_lib_prefix=no
  13101. need_version=no
  13102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13103. soname_spec='${libname}${release}${shared_ext}$major'
  13104. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13105. shlibpath_var=LD_LIBRARY_PATH
  13106. shlibpath_overrides_runpath=no
  13107. hardcode_into_libs=yes
  13108. ;;
  13109. irix5* | irix6* | nonstopux*)
  13110. case $host_os in
  13111. nonstopux*) version_type=nonstopux ;;
  13112. *)
  13113. if test "$lt_cv_prog_gnu_ld" = yes; then
  13114. version_type=linux # correct to gnu/linux during the next big refactor
  13115. else
  13116. version_type=irix
  13117. fi ;;
  13118. esac
  13119. need_lib_prefix=no
  13120. need_version=no
  13121. soname_spec='${libname}${release}${shared_ext}$major'
  13122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13123. case $host_os in
  13124. irix5* | nonstopux*)
  13125. libsuff= shlibsuff=
  13126. ;;
  13127. *)
  13128. case $LD in # libtool.m4 will add one of these switches to LD
  13129. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13130. libsuff= shlibsuff= libmagic=32-bit;;
  13131. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13132. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13133. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13134. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13135. *) libsuff= shlibsuff= libmagic=never-match;;
  13136. esac
  13137. ;;
  13138. esac
  13139. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13140. shlibpath_overrides_runpath=no
  13141. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13142. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13143. hardcode_into_libs=yes
  13144. ;;
  13145. # No shared lib support for Linux oldld, aout, or coff.
  13146. linux*oldld* | linux*aout* | linux*coff*)
  13147. dynamic_linker=no
  13148. ;;
  13149. # This must be glibc/ELF.
  13150. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13151. version_type=linux # correct to gnu/linux during the next big refactor
  13152. need_lib_prefix=no
  13153. need_version=no
  13154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13155. soname_spec='${libname}${release}${shared_ext}$major'
  13156. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13157. shlibpath_var=LD_LIBRARY_PATH
  13158. shlibpath_overrides_runpath=no
  13159. # Some binutils ld are patched to set DT_RUNPATH
  13160. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13161. $as_echo_n "(cached) " >&6
  13162. else
  13163. lt_cv_shlibpath_overrides_runpath=no
  13164. save_LDFLAGS=$LDFLAGS
  13165. save_libdir=$libdir
  13166. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13167. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13169. /* end confdefs.h. */
  13170. int
  13171. main ()
  13172. {
  13173. ;
  13174. return 0;
  13175. }
  13176. _ACEOF
  13177. if ac_fn_cxx_try_link "$LINENO"; then :
  13178. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13179. lt_cv_shlibpath_overrides_runpath=yes
  13180. fi
  13181. fi
  13182. rm -f core conftest.err conftest.$ac_objext \
  13183. conftest$ac_exeext conftest.$ac_ext
  13184. LDFLAGS=$save_LDFLAGS
  13185. libdir=$save_libdir
  13186. fi
  13187. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13188. # This implies no fast_install, which is unacceptable.
  13189. # Some rework will be needed to allow for fast_install
  13190. # before this can be enabled.
  13191. hardcode_into_libs=yes
  13192. # Append ld.so.conf contents to the search path
  13193. if test -f /etc/ld.so.conf; then
  13194. 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' ' '`
  13195. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13196. fi
  13197. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13198. # powerpc, because MkLinux only supported shared libraries with the
  13199. # GNU dynamic linker. Since this was broken with cross compilers,
  13200. # most powerpc-linux boxes support dynamic linking these days and
  13201. # people can always --disable-shared, the test was removed, and we
  13202. # assume the GNU/Linux dynamic linker is in use.
  13203. dynamic_linker='GNU/Linux ld.so'
  13204. ;;
  13205. netbsd*)
  13206. version_type=sunos
  13207. need_lib_prefix=no
  13208. need_version=no
  13209. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13211. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13212. dynamic_linker='NetBSD (a.out) ld.so'
  13213. else
  13214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13215. soname_spec='${libname}${release}${shared_ext}$major'
  13216. dynamic_linker='NetBSD ld.elf_so'
  13217. fi
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. shlibpath_overrides_runpath=yes
  13220. hardcode_into_libs=yes
  13221. ;;
  13222. newsos6)
  13223. version_type=linux # correct to gnu/linux during the next big refactor
  13224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13225. shlibpath_var=LD_LIBRARY_PATH
  13226. shlibpath_overrides_runpath=yes
  13227. ;;
  13228. *nto* | *qnx*)
  13229. version_type=qnx
  13230. need_lib_prefix=no
  13231. need_version=no
  13232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13233. soname_spec='${libname}${release}${shared_ext}$major'
  13234. shlibpath_var=LD_LIBRARY_PATH
  13235. shlibpath_overrides_runpath=no
  13236. hardcode_into_libs=yes
  13237. dynamic_linker='ldqnx.so'
  13238. ;;
  13239. openbsd*)
  13240. version_type=sunos
  13241. sys_lib_dlsearch_path_spec="/usr/lib"
  13242. need_lib_prefix=no
  13243. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13244. case $host_os in
  13245. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13246. *) need_version=no ;;
  13247. esac
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13249. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13250. shlibpath_var=LD_LIBRARY_PATH
  13251. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13252. case $host_os in
  13253. openbsd2.[89] | openbsd2.[89].*)
  13254. shlibpath_overrides_runpath=no
  13255. ;;
  13256. *)
  13257. shlibpath_overrides_runpath=yes
  13258. ;;
  13259. esac
  13260. else
  13261. shlibpath_overrides_runpath=yes
  13262. fi
  13263. ;;
  13264. os2*)
  13265. libname_spec='$name'
  13266. shrext_cmds=".dll"
  13267. need_lib_prefix=no
  13268. library_names_spec='$libname${shared_ext} $libname.a'
  13269. dynamic_linker='OS/2 ld.exe'
  13270. shlibpath_var=LIBPATH
  13271. ;;
  13272. osf3* | osf4* | osf5*)
  13273. version_type=osf
  13274. need_lib_prefix=no
  13275. need_version=no
  13276. soname_spec='${libname}${release}${shared_ext}$major'
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13278. shlibpath_var=LD_LIBRARY_PATH
  13279. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13280. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13281. ;;
  13282. rdos*)
  13283. dynamic_linker=no
  13284. ;;
  13285. solaris*)
  13286. version_type=linux # correct to gnu/linux during the next big refactor
  13287. need_lib_prefix=no
  13288. need_version=no
  13289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13290. soname_spec='${libname}${release}${shared_ext}$major'
  13291. shlibpath_var=LD_LIBRARY_PATH
  13292. shlibpath_overrides_runpath=yes
  13293. hardcode_into_libs=yes
  13294. # ldd complains unless libraries are executable
  13295. postinstall_cmds='chmod +x $lib'
  13296. ;;
  13297. sunos4*)
  13298. version_type=sunos
  13299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13300. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13301. shlibpath_var=LD_LIBRARY_PATH
  13302. shlibpath_overrides_runpath=yes
  13303. if test "$with_gnu_ld" = yes; then
  13304. need_lib_prefix=no
  13305. fi
  13306. need_version=yes
  13307. ;;
  13308. sysv4 | sysv4.3*)
  13309. version_type=linux # correct to gnu/linux during the next big refactor
  13310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13311. soname_spec='${libname}${release}${shared_ext}$major'
  13312. shlibpath_var=LD_LIBRARY_PATH
  13313. case $host_vendor in
  13314. sni)
  13315. shlibpath_overrides_runpath=no
  13316. need_lib_prefix=no
  13317. runpath_var=LD_RUN_PATH
  13318. ;;
  13319. siemens)
  13320. need_lib_prefix=no
  13321. ;;
  13322. motorola)
  13323. need_lib_prefix=no
  13324. need_version=no
  13325. shlibpath_overrides_runpath=no
  13326. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13327. ;;
  13328. esac
  13329. ;;
  13330. sysv4*MP*)
  13331. if test -d /usr/nec ;then
  13332. version_type=linux # correct to gnu/linux during the next big refactor
  13333. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13334. soname_spec='$libname${shared_ext}.$major'
  13335. shlibpath_var=LD_LIBRARY_PATH
  13336. fi
  13337. ;;
  13338. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13339. version_type=freebsd-elf
  13340. need_lib_prefix=no
  13341. need_version=no
  13342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13343. soname_spec='${libname}${release}${shared_ext}$major'
  13344. shlibpath_var=LD_LIBRARY_PATH
  13345. shlibpath_overrides_runpath=yes
  13346. hardcode_into_libs=yes
  13347. if test "$with_gnu_ld" = yes; then
  13348. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13349. else
  13350. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13351. case $host_os in
  13352. sco3.2v5*)
  13353. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13354. ;;
  13355. esac
  13356. fi
  13357. sys_lib_dlsearch_path_spec='/usr/lib'
  13358. ;;
  13359. tpf*)
  13360. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13361. version_type=linux # correct to gnu/linux during the next big refactor
  13362. need_lib_prefix=no
  13363. need_version=no
  13364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13365. shlibpath_var=LD_LIBRARY_PATH
  13366. shlibpath_overrides_runpath=no
  13367. hardcode_into_libs=yes
  13368. ;;
  13369. uts4*)
  13370. version_type=linux # correct to gnu/linux during the next big refactor
  13371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13372. soname_spec='${libname}${release}${shared_ext}$major'
  13373. shlibpath_var=LD_LIBRARY_PATH
  13374. ;;
  13375. *)
  13376. dynamic_linker=no
  13377. ;;
  13378. esac
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13380. $as_echo "$dynamic_linker" >&6; }
  13381. test "$dynamic_linker" = no && can_build_shared=no
  13382. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13383. if test "$GCC" = yes; then
  13384. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13385. fi
  13386. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13387. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13388. fi
  13389. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13390. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13391. fi
  13392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13393. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13394. hardcode_action_CXX=
  13395. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13396. test -n "$runpath_var_CXX" ||
  13397. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13398. # We can hardcode non-existent directories.
  13399. if test "$hardcode_direct_CXX" != no &&
  13400. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13401. # have to relink, otherwise we might link with an installed library
  13402. # when we should be linking with a yet-to-be-installed one
  13403. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13404. test "$hardcode_minus_L_CXX" != no; then
  13405. # Linking always hardcodes the temporary library directory.
  13406. hardcode_action_CXX=relink
  13407. else
  13408. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13409. hardcode_action_CXX=immediate
  13410. fi
  13411. else
  13412. # We cannot hardcode anything, or else we can only hardcode existing
  13413. # directories.
  13414. hardcode_action_CXX=unsupported
  13415. fi
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13417. $as_echo "$hardcode_action_CXX" >&6; }
  13418. if test "$hardcode_action_CXX" = relink ||
  13419. test "$inherit_rpath_CXX" = yes; then
  13420. # Fast installation is not supported
  13421. enable_fast_install=no
  13422. elif test "$shlibpath_overrides_runpath" = yes ||
  13423. test "$enable_shared" = no; then
  13424. # Fast installation is not necessary
  13425. enable_fast_install=needless
  13426. fi
  13427. fi # test -n "$compiler"
  13428. CC=$lt_save_CC
  13429. CFLAGS=$lt_save_CFLAGS
  13430. LDCXX=$LD
  13431. LD=$lt_save_LD
  13432. GCC=$lt_save_GCC
  13433. with_gnu_ld=$lt_save_with_gnu_ld
  13434. lt_cv_path_LDCXX=$lt_cv_path_LD
  13435. lt_cv_path_LD=$lt_save_path_LD
  13436. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13437. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13438. fi # test "$_lt_caught_CXX_error" != yes
  13439. ac_ext=c
  13440. ac_cpp='$CPP $CPPFLAGS'
  13441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13444. # Find a good install program. We prefer a C program (faster),
  13445. # so one script is as good as another. But avoid the broken or
  13446. # incompatible versions:
  13447. # SysV /etc/install, /usr/sbin/install
  13448. # SunOS /usr/etc/install
  13449. # IRIX /sbin/install
  13450. # AIX /bin/install
  13451. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13452. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13453. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13454. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13455. # OS/2's system install, which has a completely different semantic
  13456. # ./install, which can be erroneously created by make from ./install.sh.
  13457. # Reject install programs that cannot install multiple files.
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13459. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13460. if test -z "$INSTALL"; then
  13461. if ${ac_cv_path_install+:} false; then :
  13462. $as_echo_n "(cached) " >&6
  13463. else
  13464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13465. for as_dir in $PATH
  13466. do
  13467. IFS=$as_save_IFS
  13468. test -z "$as_dir" && as_dir=.
  13469. # Account for people who put trailing slashes in PATH elements.
  13470. case $as_dir/ in #((
  13471. ./ | .// | /[cC]/* | \
  13472. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13473. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13474. /usr/ucb/* ) ;;
  13475. *)
  13476. # OSF1 and SCO ODT 3.0 have their own names for install.
  13477. # Don't use installbsd from OSF since it installs stuff as root
  13478. # by default.
  13479. for ac_prog in ginstall scoinst install; do
  13480. for ac_exec_ext in '' $ac_executable_extensions; do
  13481. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13482. if test $ac_prog = install &&
  13483. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13484. # AIX install. It has an incompatible calling convention.
  13485. :
  13486. elif test $ac_prog = install &&
  13487. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13488. # program-specific install script used by HP pwplus--don't use.
  13489. :
  13490. else
  13491. rm -rf conftest.one conftest.two conftest.dir
  13492. echo one > conftest.one
  13493. echo two > conftest.two
  13494. mkdir conftest.dir
  13495. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13496. test -s conftest.one && test -s conftest.two &&
  13497. test -s conftest.dir/conftest.one &&
  13498. test -s conftest.dir/conftest.two
  13499. then
  13500. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13501. break 3
  13502. fi
  13503. fi
  13504. fi
  13505. done
  13506. done
  13507. ;;
  13508. esac
  13509. done
  13510. IFS=$as_save_IFS
  13511. rm -rf conftest.one conftest.two conftest.dir
  13512. fi
  13513. if test "${ac_cv_path_install+set}" = set; then
  13514. INSTALL=$ac_cv_path_install
  13515. else
  13516. # As a last resort, use the slow shell script. Don't cache a
  13517. # value for INSTALL within a source directory, because that will
  13518. # break other packages using the cache if that directory is
  13519. # removed, or if the value is a relative name.
  13520. INSTALL=$ac_install_sh
  13521. fi
  13522. fi
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13524. $as_echo "$INSTALL" >&6; }
  13525. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13526. # It thinks the first close brace ends the variable substitution.
  13527. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13528. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13529. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13531. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13532. set x ${MAKE-make}
  13533. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13534. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13535. $as_echo_n "(cached) " >&6
  13536. else
  13537. cat >conftest.make <<\_ACEOF
  13538. SHELL = /bin/sh
  13539. all:
  13540. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13541. _ACEOF
  13542. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13543. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13544. *@@@%%%=?*=@@@%%%*)
  13545. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13546. *)
  13547. eval ac_cv_prog_make_${ac_make}_set=no;;
  13548. esac
  13549. rm -f conftest.make
  13550. fi
  13551. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13553. $as_echo "yes" >&6; }
  13554. SET_MAKE=
  13555. else
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13557. $as_echo "no" >&6; }
  13558. SET_MAKE="MAKE=${MAKE-make}"
  13559. fi
  13560. if test -n "$ac_tool_prefix"; then
  13561. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13562. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13564. $as_echo_n "checking for $ac_word... " >&6; }
  13565. if ${ac_cv_prog_WINDRES+:} false; then :
  13566. $as_echo_n "(cached) " >&6
  13567. else
  13568. if test -n "$WINDRES"; then
  13569. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13570. else
  13571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13572. for as_dir in $PATH
  13573. do
  13574. IFS=$as_save_IFS
  13575. test -z "$as_dir" && as_dir=.
  13576. for ac_exec_ext in '' $ac_executable_extensions; do
  13577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13578. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13580. break 2
  13581. fi
  13582. done
  13583. done
  13584. IFS=$as_save_IFS
  13585. fi
  13586. fi
  13587. WINDRES=$ac_cv_prog_WINDRES
  13588. if test -n "$WINDRES"; then
  13589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13590. $as_echo "$WINDRES" >&6; }
  13591. else
  13592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13593. $as_echo "no" >&6; }
  13594. fi
  13595. fi
  13596. if test -z "$ac_cv_prog_WINDRES"; then
  13597. ac_ct_WINDRES=$WINDRES
  13598. # Extract the first word of "windres", so it can be a program name with args.
  13599. set dummy windres; ac_word=$2
  13600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13601. $as_echo_n "checking for $ac_word... " >&6; }
  13602. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13603. $as_echo_n "(cached) " >&6
  13604. else
  13605. if test -n "$ac_ct_WINDRES"; then
  13606. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13607. else
  13608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13609. for as_dir in $PATH
  13610. do
  13611. IFS=$as_save_IFS
  13612. test -z "$as_dir" && as_dir=.
  13613. for ac_exec_ext in '' $ac_executable_extensions; do
  13614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13615. ac_cv_prog_ac_ct_WINDRES="windres"
  13616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13617. break 2
  13618. fi
  13619. done
  13620. done
  13621. IFS=$as_save_IFS
  13622. fi
  13623. fi
  13624. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13625. if test -n "$ac_ct_WINDRES"; then
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13627. $as_echo "$ac_ct_WINDRES" >&6; }
  13628. else
  13629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13630. $as_echo "no" >&6; }
  13631. fi
  13632. if test "x$ac_ct_WINDRES" = x; then
  13633. WINDRES=":"
  13634. else
  13635. case $cross_compiling:$ac_tool_warned in
  13636. yes:)
  13637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13639. ac_tool_warned=yes ;;
  13640. esac
  13641. WINDRES=$ac_ct_WINDRES
  13642. fi
  13643. else
  13644. WINDRES="$ac_cv_prog_WINDRES"
  13645. fi
  13646. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13647. if test -n "$ac_tool_prefix"; then
  13648. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13649. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13651. $as_echo_n "checking for $ac_word... " >&6; }
  13652. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13653. $as_echo_n "(cached) " >&6
  13654. else
  13655. case $PKG_CONFIG in
  13656. [\\/]* | ?:[\\/]*)
  13657. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13658. ;;
  13659. *)
  13660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13661. for as_dir in $PATH
  13662. do
  13663. IFS=$as_save_IFS
  13664. test -z "$as_dir" && as_dir=.
  13665. for ac_exec_ext in '' $ac_executable_extensions; do
  13666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13667. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13669. break 2
  13670. fi
  13671. done
  13672. done
  13673. IFS=$as_save_IFS
  13674. ;;
  13675. esac
  13676. fi
  13677. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13678. if test -n "$PKG_CONFIG"; then
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13680. $as_echo "$PKG_CONFIG" >&6; }
  13681. else
  13682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13683. $as_echo "no" >&6; }
  13684. fi
  13685. fi
  13686. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13687. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13688. # Extract the first word of "pkg-config", so it can be a program name with args.
  13689. set dummy pkg-config; ac_word=$2
  13690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13691. $as_echo_n "checking for $ac_word... " >&6; }
  13692. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13693. $as_echo_n "(cached) " >&6
  13694. else
  13695. case $ac_pt_PKG_CONFIG in
  13696. [\\/]* | ?:[\\/]*)
  13697. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13698. ;;
  13699. *)
  13700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13701. for as_dir in $PATH
  13702. do
  13703. IFS=$as_save_IFS
  13704. test -z "$as_dir" && as_dir=.
  13705. for ac_exec_ext in '' $ac_executable_extensions; do
  13706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13707. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13709. break 2
  13710. fi
  13711. done
  13712. done
  13713. IFS=$as_save_IFS
  13714. ;;
  13715. esac
  13716. fi
  13717. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13718. if test -n "$ac_pt_PKG_CONFIG"; then
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13720. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13721. else
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13723. $as_echo "no" >&6; }
  13724. fi
  13725. if test "x$ac_pt_PKG_CONFIG" = x; then
  13726. PKG_CONFIG=""
  13727. else
  13728. case $cross_compiling:$ac_tool_warned in
  13729. yes:)
  13730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13731. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13732. ac_tool_warned=yes ;;
  13733. esac
  13734. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13735. fi
  13736. else
  13737. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13738. fi
  13739. fi
  13740. if test -n "$PKG_CONFIG"; then
  13741. _pkg_min_version=0.9.0
  13742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13743. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13744. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13746. $as_echo "yes" >&6; }
  13747. else
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13749. $as_echo "no" >&6; }
  13750. PKG_CONFIG=""
  13751. fi
  13752. fi
  13753. case "$host" in
  13754. *-*-mingw32*)
  13755. # Except on msys, where make can't handle full pathnames (bug 1972)
  13756. ;;
  13757. *)
  13758. srcdir=`cd $srcdir && pwd`
  13759. ;;
  13760. esac
  13761. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13762. if test x$srcdir != x.; then
  13763. INCLUDE="-Iinclude $INCLUDE"
  13764. elif test -d .hg; then
  13765. as_fn_error $? "
  13766. *** When building from Mercurial you should configure and build in a
  13767. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13768. " "$LINENO" 5
  13769. fi
  13770. BASE_CFLAGS=""
  13771. BASE_LDFLAGS=""
  13772. case "$host" in
  13773. *-*-cygwin*)
  13774. # We build SDL on cygwin without the UNIX emulation layer
  13775. save_CFLAGS="$CFLAGS"
  13776. have_no_cygwin=no
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13778. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13779. CFLAGS="$save_CFLAGS -mno-cygwin"
  13780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13781. /* end confdefs.h. */
  13782. int
  13783. main ()
  13784. {
  13785. ;
  13786. return 0;
  13787. }
  13788. _ACEOF
  13789. if ac_fn_c_try_compile "$LINENO"; then :
  13790. have_no_cygwin=yes
  13791. fi
  13792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13794. $as_echo "$have_no_cygwin" >&6; }
  13795. CFLAGS="$save_CFLAGS"
  13796. if test x$have_no_cygwin = xyes; then
  13797. BASE_CFLAGS="-mno-cygwin"
  13798. BASE_LDFLAGS="-mno-cygwin"
  13799. fi
  13800. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13801. ;;
  13802. esac
  13803. # Uncomment the following line if you want to force SDL and applications
  13804. # built with it to be compiled for a particular architecture.
  13805. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13806. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13807. # The default optimization for SDL is -O3 (Bug #31)
  13808. if test "x$orig_CFLAGS" = x; then
  13809. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13810. fi
  13811. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13812. BUILD_LDFLAGS="$LDFLAGS"
  13813. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13814. ## These are common directories to find software packages
  13815. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13816. # if test -d $path/include; then
  13817. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13818. # fi
  13819. # if test -d $path/lib; then
  13820. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13821. # fi
  13822. #done
  13823. SDL_CFLAGS="$BASE_CFLAGS"
  13824. SDL_LIBS="-lSDL2"
  13825. if test "x$BASE_LDFLAGS" != x; then
  13826. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13827. fi
  13828. if test "x$EXTRA_CFLAGS" != x; then
  13829. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13830. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13831. fi
  13832. if test "x$EXTRA_LDFLAGS" != x; then
  13833. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13834. fi
  13835. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13836. find_lib()
  13837. {
  13838. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13839. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13840. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13841. if test "$cross_compiling" = yes; then
  13842. host_lib_path=""
  13843. else
  13844. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13845. fi
  13846. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13847. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13848. if test x$lib != x; then
  13849. echo $lib
  13850. return
  13851. fi
  13852. done
  13853. # Try again, this time allowing more than one version digit after the .so
  13854. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13855. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13856. if test x$lib != x; then
  13857. echo $lib
  13858. return
  13859. fi
  13860. done
  13861. }
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13863. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13864. if ${ac_cv_c_const+:} false; then :
  13865. $as_echo_n "(cached) " >&6
  13866. else
  13867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13868. /* end confdefs.h. */
  13869. int
  13870. main ()
  13871. {
  13872. #ifndef __cplusplus
  13873. /* Ultrix mips cc rejects this sort of thing. */
  13874. typedef int charset[2];
  13875. const charset cs = { 0, 0 };
  13876. /* SunOS 4.1.1 cc rejects this. */
  13877. char const *const *pcpcc;
  13878. char **ppc;
  13879. /* NEC SVR4.0.2 mips cc rejects this. */
  13880. struct point {int x, y;};
  13881. static struct point const zero = {0,0};
  13882. /* AIX XL C 1.02.0.0 rejects this.
  13883. It does not let you subtract one const X* pointer from another in
  13884. an arm of an if-expression whose if-part is not a constant
  13885. expression */
  13886. const char *g = "string";
  13887. pcpcc = &g + (g ? g-g : 0);
  13888. /* HPUX 7.0 cc rejects these. */
  13889. ++pcpcc;
  13890. ppc = (char**) pcpcc;
  13891. pcpcc = (char const *const *) ppc;
  13892. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13893. char tx;
  13894. char *t = &tx;
  13895. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13896. *t++ = 0;
  13897. if (s) return 0;
  13898. }
  13899. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13900. int x[] = {25, 17};
  13901. const int *foo = &x[0];
  13902. ++foo;
  13903. }
  13904. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13905. typedef const int *iptr;
  13906. iptr p = 0;
  13907. ++p;
  13908. }
  13909. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13910. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13911. struct s { int j; const int *ap[3]; } bx;
  13912. struct s *b = &bx; b->j = 5;
  13913. }
  13914. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13915. const int foo = 10;
  13916. if (!foo) return 0;
  13917. }
  13918. return !cs[0] && !zero.x;
  13919. #endif
  13920. ;
  13921. return 0;
  13922. }
  13923. _ACEOF
  13924. if ac_fn_c_try_compile "$LINENO"; then :
  13925. ac_cv_c_const=yes
  13926. else
  13927. ac_cv_c_const=no
  13928. fi
  13929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13930. fi
  13931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13932. $as_echo "$ac_cv_c_const" >&6; }
  13933. if test $ac_cv_c_const = no; then
  13934. $as_echo "#define const /**/" >>confdefs.h
  13935. fi
  13936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13937. $as_echo_n "checking for inline... " >&6; }
  13938. if ${ac_cv_c_inline+:} false; then :
  13939. $as_echo_n "(cached) " >&6
  13940. else
  13941. ac_cv_c_inline=no
  13942. for ac_kw in inline __inline__ __inline; do
  13943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13944. /* end confdefs.h. */
  13945. #ifndef __cplusplus
  13946. typedef int foo_t;
  13947. static $ac_kw foo_t static_foo () {return 0; }
  13948. $ac_kw foo_t foo () {return 0; }
  13949. #endif
  13950. _ACEOF
  13951. if ac_fn_c_try_compile "$LINENO"; then :
  13952. ac_cv_c_inline=$ac_kw
  13953. fi
  13954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13955. test "$ac_cv_c_inline" != no && break
  13956. done
  13957. fi
  13958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13959. $as_echo "$ac_cv_c_inline" >&6; }
  13960. case $ac_cv_c_inline in
  13961. inline | yes) ;;
  13962. *)
  13963. case $ac_cv_c_inline in
  13964. no) ac_val=;;
  13965. *) ac_val=$ac_cv_c_inline;;
  13966. esac
  13967. cat >>confdefs.h <<_ACEOF
  13968. #ifndef __cplusplus
  13969. #define inline $ac_val
  13970. #endif
  13971. _ACEOF
  13972. ;;
  13973. esac
  13974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13975. $as_echo_n "checking for working volatile... " >&6; }
  13976. if ${ac_cv_c_volatile+:} false; then :
  13977. $as_echo_n "(cached) " >&6
  13978. else
  13979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13980. /* end confdefs.h. */
  13981. int
  13982. main ()
  13983. {
  13984. volatile int x;
  13985. int * volatile y = (int *) 0;
  13986. return !x && !y;
  13987. ;
  13988. return 0;
  13989. }
  13990. _ACEOF
  13991. if ac_fn_c_try_compile "$LINENO"; then :
  13992. ac_cv_c_volatile=yes
  13993. else
  13994. ac_cv_c_volatile=no
  13995. fi
  13996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13997. fi
  13998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13999. $as_echo "$ac_cv_c_volatile" >&6; }
  14000. if test $ac_cv_c_volatile = no; then
  14001. $as_echo "#define volatile /**/" >>confdefs.h
  14002. fi
  14003. # Check whether --enable-assertions was given.
  14004. if test "${enable_assertions+set}" = set; then :
  14005. enableval=$enable_assertions;
  14006. else
  14007. enable_assertions=auto
  14008. fi
  14009. case "$enable_assertions" in
  14010. auto) # Use optimization settings to determine assertion level
  14011. ;;
  14012. disabled)
  14013. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14014. ;;
  14015. release)
  14016. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14017. ;;
  14018. enabled)
  14019. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14020. ;;
  14021. paranoid)
  14022. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14023. ;;
  14024. *)
  14025. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14026. ;;
  14027. esac
  14028. # Check whether --enable-dependency-tracking was given.
  14029. if test "${enable_dependency_tracking+set}" = set; then :
  14030. enableval=$enable_dependency_tracking;
  14031. else
  14032. enable_dependency_tracking=yes
  14033. fi
  14034. if test x$enable_dependency_tracking = xyes; then
  14035. have_gcc_mmd_mt=no
  14036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14037. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14039. /* end confdefs.h. */
  14040. #if !defined(__GNUC__) || __GNUC__ < 3
  14041. #error Dependency tracking requires GCC 3.0 or newer
  14042. #endif
  14043. int
  14044. main ()
  14045. {
  14046. ;
  14047. return 0;
  14048. }
  14049. _ACEOF
  14050. if ac_fn_c_try_compile "$LINENO"; then :
  14051. have_gcc_mmd_mt=yes
  14052. fi
  14053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14055. $as_echo "$have_gcc_mmd_mt" >&6; }
  14056. if test x$have_gcc_mmd_mt = xyes; then
  14057. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14058. fi
  14059. fi
  14060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14061. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14062. have_no_undefined=no
  14063. case "$host" in
  14064. *-*-openbsd*)
  14065. ;;
  14066. *)
  14067. save_LDFLAGS="$LDFLAGS"
  14068. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14070. /* end confdefs.h. */
  14071. int
  14072. main ()
  14073. {
  14074. ;
  14075. return 0;
  14076. }
  14077. _ACEOF
  14078. if ac_fn_c_try_link "$LINENO"; then :
  14079. have_no_undefined=yes
  14080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14081. fi
  14082. rm -f core conftest.err conftest.$ac_objext \
  14083. conftest$ac_exeext conftest.$ac_ext
  14084. LDFLAGS="$save_LDFLAGS"
  14085. ;;
  14086. esac
  14087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14088. $as_echo "$have_no_undefined" >&6; }
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14090. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14091. have_dynamicbase=no
  14092. case "$host" in
  14093. *)
  14094. save_LDFLAGS="$LDFLAGS"
  14095. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14097. /* end confdefs.h. */
  14098. int
  14099. main ()
  14100. {
  14101. ;
  14102. return 0;
  14103. }
  14104. _ACEOF
  14105. if ac_fn_c_try_link "$LINENO"; then :
  14106. have_dynamicbase=yes
  14107. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14108. fi
  14109. rm -f core conftest.err conftest.$ac_objext \
  14110. conftest$ac_exeext conftest.$ac_ext
  14111. LDFLAGS="$save_LDFLAGS"
  14112. ;;
  14113. esac
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14115. $as_echo "$have_dynamicbase" >&6; }
  14116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14117. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14118. have_nxcompat=no
  14119. case "$host" in
  14120. *)
  14121. save_LDFLAGS="$LDFLAGS"
  14122. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14124. /* end confdefs.h. */
  14125. int
  14126. main ()
  14127. {
  14128. ;
  14129. return 0;
  14130. }
  14131. _ACEOF
  14132. if ac_fn_c_try_link "$LINENO"; then :
  14133. have_nxcompat=yes
  14134. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14135. fi
  14136. rm -f core conftest.err conftest.$ac_objext \
  14137. conftest$ac_exeext conftest.$ac_ext
  14138. LDFLAGS="$save_LDFLAGS"
  14139. ;;
  14140. esac
  14141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14142. $as_echo "$have_nxcompat" >&6; }
  14143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14144. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14145. have_high_entropy_va=no
  14146. case "$host" in
  14147. *)
  14148. save_LDFLAGS="$LDFLAGS"
  14149. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14151. /* end confdefs.h. */
  14152. int
  14153. main ()
  14154. {
  14155. ;
  14156. return 0;
  14157. }
  14158. _ACEOF
  14159. if ac_fn_c_try_link "$LINENO"; then :
  14160. have_high_entropy_va=yes
  14161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14162. fi
  14163. rm -f core conftest.err conftest.$ac_objext \
  14164. conftest$ac_exeext conftest.$ac_ext
  14165. LDFLAGS="$save_LDFLAGS"
  14166. ;;
  14167. esac
  14168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14169. $as_echo "$have_high_entropy_va" >&6; }
  14170. # Check whether --enable-libc was given.
  14171. if test "${enable_libc+set}" = set; then :
  14172. enableval=$enable_libc;
  14173. else
  14174. enable_libc=yes
  14175. fi
  14176. if test x$enable_libc = xyes; then
  14177. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14179. $as_echo_n "checking for ANSI C header files... " >&6; }
  14180. if ${ac_cv_header_stdc+:} false; then :
  14181. $as_echo_n "(cached) " >&6
  14182. else
  14183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14184. /* end confdefs.h. */
  14185. #include <stdlib.h>
  14186. #include <stdarg.h>
  14187. #include <string.h>
  14188. #include <float.h>
  14189. int
  14190. main ()
  14191. {
  14192. ;
  14193. return 0;
  14194. }
  14195. _ACEOF
  14196. if ac_fn_c_try_compile "$LINENO"; then :
  14197. ac_cv_header_stdc=yes
  14198. else
  14199. ac_cv_header_stdc=no
  14200. fi
  14201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14202. if test $ac_cv_header_stdc = yes; then
  14203. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14205. /* end confdefs.h. */
  14206. #include <string.h>
  14207. _ACEOF
  14208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14209. $EGREP "memchr" >/dev/null 2>&1; then :
  14210. else
  14211. ac_cv_header_stdc=no
  14212. fi
  14213. rm -f conftest*
  14214. fi
  14215. if test $ac_cv_header_stdc = yes; then
  14216. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14218. /* end confdefs.h. */
  14219. #include <stdlib.h>
  14220. _ACEOF
  14221. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14222. $EGREP "free" >/dev/null 2>&1; then :
  14223. else
  14224. ac_cv_header_stdc=no
  14225. fi
  14226. rm -f conftest*
  14227. fi
  14228. if test $ac_cv_header_stdc = yes; then
  14229. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14230. if test "$cross_compiling" = yes; then :
  14231. :
  14232. else
  14233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14234. /* end confdefs.h. */
  14235. #include <ctype.h>
  14236. #include <stdlib.h>
  14237. #if ((' ' & 0x0FF) == 0x020)
  14238. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14239. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14240. #else
  14241. # define ISLOWER(c) \
  14242. (('a' <= (c) && (c) <= 'i') \
  14243. || ('j' <= (c) && (c) <= 'r') \
  14244. || ('s' <= (c) && (c) <= 'z'))
  14245. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14246. #endif
  14247. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14248. int
  14249. main ()
  14250. {
  14251. int i;
  14252. for (i = 0; i < 256; i++)
  14253. if (XOR (islower (i), ISLOWER (i))
  14254. || toupper (i) != TOUPPER (i))
  14255. return 2;
  14256. return 0;
  14257. }
  14258. _ACEOF
  14259. if ac_fn_c_try_run "$LINENO"; then :
  14260. else
  14261. ac_cv_header_stdc=no
  14262. fi
  14263. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14264. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14265. fi
  14266. fi
  14267. fi
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14269. $as_echo "$ac_cv_header_stdc" >&6; }
  14270. if test $ac_cv_header_stdc = yes; then
  14271. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14272. fi
  14273. 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
  14274. do :
  14275. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14276. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14277. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14278. cat >>confdefs.h <<_ACEOF
  14279. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14280. _ACEOF
  14281. fi
  14282. done
  14283. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14284. if test "x$ac_cv_type_size_t" = xyes; then :
  14285. else
  14286. cat >>confdefs.h <<_ACEOF
  14287. #define size_t unsigned int
  14288. _ACEOF
  14289. fi
  14290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14291. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14292. if ${ac_cv_define_M_PI+:} false; then :
  14293. $as_echo_n "(cached) " >&6
  14294. else
  14295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14296. /* end confdefs.h. */
  14297. #include <math.h>
  14298. #ifdef M_PI
  14299. YES_IS_DEFINED
  14300. #endif
  14301. _ACEOF
  14302. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14303. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14304. ac_cv_define_M_PI=yes
  14305. else
  14306. ac_cv_define_M_PI=no
  14307. fi
  14308. rm -f conftest*
  14309. fi
  14310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14311. $as_echo "$ac_cv_define_M_PI" >&6; }
  14312. if test "$ac_cv_define_M_PI" = "yes" ; then
  14313. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14314. fi
  14315. case "$host" in
  14316. *-*-cygwin* | *-*-mingw32*)
  14317. ;;
  14318. *)
  14319. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14320. # for constant arguments. Useless!
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14322. $as_echo_n "checking for working alloca.h... " >&6; }
  14323. if ${ac_cv_working_alloca_h+:} false; then :
  14324. $as_echo_n "(cached) " >&6
  14325. else
  14326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14327. /* end confdefs.h. */
  14328. #include <alloca.h>
  14329. int
  14330. main ()
  14331. {
  14332. char *p = (char *) alloca (2 * sizeof (int));
  14333. if (p) return 0;
  14334. ;
  14335. return 0;
  14336. }
  14337. _ACEOF
  14338. if ac_fn_c_try_link "$LINENO"; then :
  14339. ac_cv_working_alloca_h=yes
  14340. else
  14341. ac_cv_working_alloca_h=no
  14342. fi
  14343. rm -f core conftest.err conftest.$ac_objext \
  14344. conftest$ac_exeext conftest.$ac_ext
  14345. fi
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14347. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14348. if test $ac_cv_working_alloca_h = yes; then
  14349. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14350. fi
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14352. $as_echo_n "checking for alloca... " >&6; }
  14353. if ${ac_cv_func_alloca_works+:} false; then :
  14354. $as_echo_n "(cached) " >&6
  14355. else
  14356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14357. /* end confdefs.h. */
  14358. #ifdef __GNUC__
  14359. # define alloca __builtin_alloca
  14360. #else
  14361. # ifdef _MSC_VER
  14362. # include <malloc.h>
  14363. # define alloca _alloca
  14364. # else
  14365. # ifdef HAVE_ALLOCA_H
  14366. # include <alloca.h>
  14367. # else
  14368. # ifdef _AIX
  14369. #pragma alloca
  14370. # else
  14371. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14372. void *alloca (size_t);
  14373. # endif
  14374. # endif
  14375. # endif
  14376. # endif
  14377. #endif
  14378. int
  14379. main ()
  14380. {
  14381. char *p = (char *) alloca (1);
  14382. if (p) return 0;
  14383. ;
  14384. return 0;
  14385. }
  14386. _ACEOF
  14387. if ac_fn_c_try_link "$LINENO"; then :
  14388. ac_cv_func_alloca_works=yes
  14389. else
  14390. ac_cv_func_alloca_works=no
  14391. fi
  14392. rm -f core conftest.err conftest.$ac_objext \
  14393. conftest$ac_exeext conftest.$ac_ext
  14394. fi
  14395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14396. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14397. if test $ac_cv_func_alloca_works = yes; then
  14398. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14399. else
  14400. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14401. # that cause trouble. Some versions do not even contain alloca or
  14402. # contain a buggy version. If you still want to use their alloca,
  14403. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14404. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14405. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14407. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14408. if ${ac_cv_os_cray+:} false; then :
  14409. $as_echo_n "(cached) " >&6
  14410. else
  14411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14412. /* end confdefs.h. */
  14413. #if defined CRAY && ! defined CRAY2
  14414. webecray
  14415. #else
  14416. wenotbecray
  14417. #endif
  14418. _ACEOF
  14419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14420. $EGREP "webecray" >/dev/null 2>&1; then :
  14421. ac_cv_os_cray=yes
  14422. else
  14423. ac_cv_os_cray=no
  14424. fi
  14425. rm -f conftest*
  14426. fi
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14428. $as_echo "$ac_cv_os_cray" >&6; }
  14429. if test $ac_cv_os_cray = yes; then
  14430. for ac_func in _getb67 GETB67 getb67; do
  14431. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14432. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14433. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14434. cat >>confdefs.h <<_ACEOF
  14435. #define CRAY_STACKSEG_END $ac_func
  14436. _ACEOF
  14437. break
  14438. fi
  14439. done
  14440. fi
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14442. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14443. if ${ac_cv_c_stack_direction+:} false; then :
  14444. $as_echo_n "(cached) " >&6
  14445. else
  14446. if test "$cross_compiling" = yes; then :
  14447. ac_cv_c_stack_direction=0
  14448. else
  14449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14450. /* end confdefs.h. */
  14451. $ac_includes_default
  14452. int
  14453. find_stack_direction (int *addr, int depth)
  14454. {
  14455. int dir, dummy = 0;
  14456. if (! addr)
  14457. addr = &dummy;
  14458. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14459. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14460. return dir + dummy;
  14461. }
  14462. int
  14463. main (int argc, char **argv)
  14464. {
  14465. return find_stack_direction (0, argc + !argv + 20) < 0;
  14466. }
  14467. _ACEOF
  14468. if ac_fn_c_try_run "$LINENO"; then :
  14469. ac_cv_c_stack_direction=1
  14470. else
  14471. ac_cv_c_stack_direction=-1
  14472. fi
  14473. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14474. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14475. fi
  14476. fi
  14477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14478. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14479. cat >>confdefs.h <<_ACEOF
  14480. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14481. _ACEOF
  14482. fi
  14483. ;;
  14484. esac
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14486. $as_echo_n "checking for working memcmp... " >&6; }
  14487. if ${ac_cv_func_memcmp_working+:} false; then :
  14488. $as_echo_n "(cached) " >&6
  14489. else
  14490. if test "$cross_compiling" = yes; then :
  14491. ac_cv_func_memcmp_working=no
  14492. else
  14493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14494. /* end confdefs.h. */
  14495. $ac_includes_default
  14496. int
  14497. main ()
  14498. {
  14499. /* Some versions of memcmp are not 8-bit clean. */
  14500. char c0 = '\100', c1 = '\200', c2 = '\201';
  14501. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14502. return 1;
  14503. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14504. or more and with at least one buffer not starting on a 4-byte boundary.
  14505. William Lewis provided this test program. */
  14506. {
  14507. char foo[21];
  14508. char bar[21];
  14509. int i;
  14510. for (i = 0; i < 4; i++)
  14511. {
  14512. char *a = foo + i;
  14513. char *b = bar + i;
  14514. strcpy (a, "--------01111111");
  14515. strcpy (b, "--------10000000");
  14516. if (memcmp (a, b, 16) >= 0)
  14517. return 1;
  14518. }
  14519. return 0;
  14520. }
  14521. ;
  14522. return 0;
  14523. }
  14524. _ACEOF
  14525. if ac_fn_c_try_run "$LINENO"; then :
  14526. ac_cv_func_memcmp_working=yes
  14527. else
  14528. ac_cv_func_memcmp_working=no
  14529. fi
  14530. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14531. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14532. fi
  14533. fi
  14534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14535. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14536. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14537. *" memcmp.$ac_objext "* ) ;;
  14538. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14539. ;;
  14540. esac
  14541. if test x$ac_cv_func_memcmp_working = xyes; then
  14542. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14543. fi
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14545. $as_echo_n "checking for working strtod... " >&6; }
  14546. if ${ac_cv_func_strtod+:} false; then :
  14547. $as_echo_n "(cached) " >&6
  14548. else
  14549. if test "$cross_compiling" = yes; then :
  14550. ac_cv_func_strtod=no
  14551. else
  14552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14553. /* end confdefs.h. */
  14554. $ac_includes_default
  14555. #ifndef strtod
  14556. double strtod ();
  14557. #endif
  14558. int
  14559. main()
  14560. {
  14561. {
  14562. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14563. char *string = " +69";
  14564. char *term;
  14565. double value;
  14566. value = strtod (string, &term);
  14567. if (value != 69 || term != (string + 4))
  14568. return 1;
  14569. }
  14570. {
  14571. /* Under Solaris 2.4, strtod returns the wrong value for the
  14572. terminating character under some conditions. */
  14573. char *string = "NaN";
  14574. char *term;
  14575. strtod (string, &term);
  14576. if (term != string && *(term - 1) == 0)
  14577. return 1;
  14578. }
  14579. return 0;
  14580. }
  14581. _ACEOF
  14582. if ac_fn_c_try_run "$LINENO"; then :
  14583. ac_cv_func_strtod=yes
  14584. else
  14585. ac_cv_func_strtod=no
  14586. fi
  14587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14588. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14589. fi
  14590. fi
  14591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14592. $as_echo "$ac_cv_func_strtod" >&6; }
  14593. if test $ac_cv_func_strtod = no; then
  14594. case " $LIBOBJS " in
  14595. *" strtod.$ac_objext "* ) ;;
  14596. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14597. ;;
  14598. esac
  14599. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14600. if test "x$ac_cv_func_pow" = xyes; then :
  14601. fi
  14602. if test $ac_cv_func_pow = no; then
  14603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14604. $as_echo_n "checking for pow in -lm... " >&6; }
  14605. if ${ac_cv_lib_m_pow+:} false; then :
  14606. $as_echo_n "(cached) " >&6
  14607. else
  14608. ac_check_lib_save_LIBS=$LIBS
  14609. LIBS="-lm $LIBS"
  14610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14611. /* end confdefs.h. */
  14612. /* Override any GCC internal prototype to avoid an error.
  14613. Use char because int might match the return type of a GCC
  14614. builtin and then its argument prototype would still apply. */
  14615. #ifdef __cplusplus
  14616. extern "C"
  14617. #endif
  14618. char pow ();
  14619. int
  14620. main ()
  14621. {
  14622. return pow ();
  14623. ;
  14624. return 0;
  14625. }
  14626. _ACEOF
  14627. if ac_fn_c_try_link "$LINENO"; then :
  14628. ac_cv_lib_m_pow=yes
  14629. else
  14630. ac_cv_lib_m_pow=no
  14631. fi
  14632. rm -f core conftest.err conftest.$ac_objext \
  14633. conftest$ac_exeext conftest.$ac_ext
  14634. LIBS=$ac_check_lib_save_LIBS
  14635. fi
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14637. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14638. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14639. POW_LIB=-lm
  14640. else
  14641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14642. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14643. fi
  14644. fi
  14645. fi
  14646. if test x$ac_cv_func_strtod = xyes; then
  14647. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14648. fi
  14649. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14650. if test "x$ac_cv_func_mprotect" = xyes; then :
  14651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14652. /* end confdefs.h. */
  14653. #include <sys/types.h>
  14654. #include <sys/mman.h>
  14655. int
  14656. main ()
  14657. {
  14658. ;
  14659. return 0;
  14660. }
  14661. _ACEOF
  14662. if ac_fn_c_try_compile "$LINENO"; then :
  14663. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14664. fi
  14665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14666. fi
  14667. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr 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 poll _Exit
  14668. do :
  14669. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14670. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14671. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14672. cat >>confdefs.h <<_ACEOF
  14673. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14674. _ACEOF
  14675. fi
  14676. done
  14677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14678. $as_echo_n "checking for pow in -lm... " >&6; }
  14679. if ${ac_cv_lib_m_pow+:} false; then :
  14680. $as_echo_n "(cached) " >&6
  14681. else
  14682. ac_check_lib_save_LIBS=$LIBS
  14683. LIBS="-lm $LIBS"
  14684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14685. /* end confdefs.h. */
  14686. /* Override any GCC internal prototype to avoid an error.
  14687. Use char because int might match the return type of a GCC
  14688. builtin and then its argument prototype would still apply. */
  14689. #ifdef __cplusplus
  14690. extern "C"
  14691. #endif
  14692. char pow ();
  14693. int
  14694. main ()
  14695. {
  14696. return pow ();
  14697. ;
  14698. return 0;
  14699. }
  14700. _ACEOF
  14701. if ac_fn_c_try_link "$LINENO"; then :
  14702. ac_cv_lib_m_pow=yes
  14703. else
  14704. ac_cv_lib_m_pow=no
  14705. fi
  14706. rm -f core conftest.err conftest.$ac_objext \
  14707. conftest$ac_exeext conftest.$ac_ext
  14708. LIBS=$ac_check_lib_save_LIBS
  14709. fi
  14710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14711. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14712. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14713. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14714. fi
  14715. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14716. do :
  14717. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14718. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14719. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14720. cat >>confdefs.h <<_ACEOF
  14721. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14722. _ACEOF
  14723. fi
  14724. done
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14726. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14727. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14728. $as_echo_n "(cached) " >&6
  14729. else
  14730. ac_check_lib_save_LIBS=$LIBS
  14731. LIBS="-liconv $LIBS"
  14732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14733. /* end confdefs.h. */
  14734. /* Override any GCC internal prototype to avoid an error.
  14735. Use char because int might match the return type of a GCC
  14736. builtin and then its argument prototype would still apply. */
  14737. #ifdef __cplusplus
  14738. extern "C"
  14739. #endif
  14740. char iconv_open ();
  14741. int
  14742. main ()
  14743. {
  14744. return iconv_open ();
  14745. ;
  14746. return 0;
  14747. }
  14748. _ACEOF
  14749. if ac_fn_c_try_link "$LINENO"; then :
  14750. ac_cv_lib_iconv_iconv_open=yes
  14751. else
  14752. ac_cv_lib_iconv_iconv_open=no
  14753. fi
  14754. rm -f core conftest.err conftest.$ac_objext \
  14755. conftest$ac_exeext conftest.$ac_ext
  14756. LIBS=$ac_check_lib_save_LIBS
  14757. fi
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14759. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14760. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14761. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14762. fi
  14763. for ac_func in iconv
  14764. do :
  14765. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14766. if test "x$ac_cv_func_iconv" = xyes; then :
  14767. cat >>confdefs.h <<_ACEOF
  14768. #define HAVE_ICONV 1
  14769. _ACEOF
  14770. fi
  14771. done
  14772. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14773. "
  14774. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14775. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14776. fi
  14777. for ac_header in libunwind.h
  14778. do :
  14779. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14780. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14781. cat >>confdefs.h <<_ACEOF
  14782. #define HAVE_LIBUNWIND_H 1
  14783. _ACEOF
  14784. fi
  14785. done
  14786. fi
  14787. # Check whether --enable-gcc-atomics was given.
  14788. if test "${enable_gcc_atomics+set}" = set; then :
  14789. enableval=$enable_gcc_atomics;
  14790. else
  14791. enable_gcc_atomics=yes
  14792. fi
  14793. if test x$enable_gcc_atomics = xyes; then
  14794. have_gcc_atomics=no
  14795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14796. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14798. /* end confdefs.h. */
  14799. int
  14800. main ()
  14801. {
  14802. int a;
  14803. void *x, *y, *z;
  14804. __sync_lock_test_and_set(&a, 4);
  14805. __sync_lock_test_and_set(&x, y);
  14806. __sync_fetch_and_add(&a, 1);
  14807. __sync_bool_compare_and_swap(&a, 5, 10);
  14808. __sync_bool_compare_and_swap(&x, y, z);
  14809. ;
  14810. return 0;
  14811. }
  14812. _ACEOF
  14813. if ac_fn_c_try_link "$LINENO"; then :
  14814. have_gcc_atomics=yes
  14815. fi
  14816. rm -f core conftest.err conftest.$ac_objext \
  14817. conftest$ac_exeext conftest.$ac_ext
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14819. $as_echo "$have_gcc_atomics" >&6; }
  14820. if test x$have_gcc_atomics = xyes; then
  14821. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14822. else
  14823. # See if we have the minimum operation needed for GCC atomics
  14824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14825. /* end confdefs.h. */
  14826. int
  14827. main ()
  14828. {
  14829. int a;
  14830. __sync_lock_test_and_set(&a, 1);
  14831. __sync_lock_release(&a);
  14832. ;
  14833. return 0;
  14834. }
  14835. _ACEOF
  14836. if ac_fn_c_try_link "$LINENO"; then :
  14837. have_gcc_sync_lock_test_and_set=yes
  14838. fi
  14839. rm -f core conftest.err conftest.$ac_objext \
  14840. conftest$ac_exeext conftest.$ac_ext
  14841. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14842. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14843. fi
  14844. fi
  14845. fi
  14846. # Standard C sources
  14847. SOURCES="$SOURCES $srcdir/src/*.c"
  14848. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14849. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14850. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14851. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14852. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14853. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14854. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14855. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14856. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14857. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14858. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14859. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14860. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14861. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14862. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14863. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14864. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14865. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14866. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14867. # Check whether --enable-atomic was given.
  14868. if test "${enable_atomic+set}" = set; then :
  14869. enableval=$enable_atomic;
  14870. else
  14871. enable_atomic=yes
  14872. fi
  14873. if test x$enable_atomic != xyes; then
  14874. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14875. else
  14876. SUMMARY_modules="${SUMMARY_modules} atomic"
  14877. fi
  14878. # Check whether --enable-audio was given.
  14879. if test "${enable_audio+set}" = set; then :
  14880. enableval=$enable_audio;
  14881. else
  14882. enable_audio=yes
  14883. fi
  14884. if test x$enable_audio != xyes; then
  14885. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14886. else
  14887. SUMMARY_modules="${SUMMARY_modules} audio"
  14888. fi
  14889. # Check whether --enable-video was given.
  14890. if test "${enable_video+set}" = set; then :
  14891. enableval=$enable_video;
  14892. else
  14893. enable_video=yes
  14894. fi
  14895. if test x$enable_video != xyes; then
  14896. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14897. else
  14898. SUMMARY_modules="${SUMMARY_modules} video"
  14899. fi
  14900. # Check whether --enable-render was given.
  14901. if test "${enable_render+set}" = set; then :
  14902. enableval=$enable_render;
  14903. else
  14904. enable_render=yes
  14905. fi
  14906. if test x$enable_render != xyes; then
  14907. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14908. else
  14909. SUMMARY_modules="${SUMMARY_modules} render"
  14910. fi
  14911. # Check whether --enable-events was given.
  14912. if test "${enable_events+set}" = set; then :
  14913. enableval=$enable_events;
  14914. else
  14915. enable_events=yes
  14916. fi
  14917. if test x$enable_events != xyes; then
  14918. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14919. else
  14920. SUMMARY_modules="${SUMMARY_modules} events"
  14921. fi
  14922. # Check whether --enable-joystick was given.
  14923. if test "${enable_joystick+set}" = set; then :
  14924. enableval=$enable_joystick;
  14925. else
  14926. enable_joystick=yes
  14927. fi
  14928. if test x$enable_joystick != xyes; then
  14929. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14930. else
  14931. SUMMARY_modules="${SUMMARY_modules} joystick"
  14932. fi
  14933. # Check whether --enable-haptic was given.
  14934. if test "${enable_haptic+set}" = set; then :
  14935. enableval=$enable_haptic;
  14936. else
  14937. enable_haptic=yes
  14938. fi
  14939. if test x$enable_haptic != xyes; then
  14940. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14941. else
  14942. SUMMARY_modules="${SUMMARY_modules} haptic"
  14943. fi
  14944. # Check whether --enable-sensor was given.
  14945. if test "${enable_sensor+set}" = set; then :
  14946. enableval=$enable_sensor;
  14947. else
  14948. enable_sensor=yes
  14949. fi
  14950. if test x$enable_sensor != xyes; then
  14951. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14952. else
  14953. SUMMARY_modules="${SUMMARY_modules} sensor"
  14954. fi
  14955. # Check whether --enable-power was given.
  14956. if test "${enable_power+set}" = set; then :
  14957. enableval=$enable_power;
  14958. else
  14959. enable_power=yes
  14960. fi
  14961. if test x$enable_power != xyes; then
  14962. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14963. else
  14964. SUMMARY_modules="${SUMMARY_modules} power"
  14965. fi
  14966. # Check whether --enable-filesystem was given.
  14967. if test "${enable_filesystem+set}" = set; then :
  14968. enableval=$enable_filesystem;
  14969. else
  14970. enable_filesystem=yes
  14971. fi
  14972. if test x$enable_filesystem != xyes; then
  14973. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14974. else
  14975. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14976. fi
  14977. # Check whether --enable-threads was given.
  14978. if test "${enable_threads+set}" = set; then :
  14979. enableval=$enable_threads;
  14980. else
  14981. enable_threads=yes
  14982. fi
  14983. if test x$enable_threads != xyes; then
  14984. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14985. else
  14986. SUMMARY_modules="${SUMMARY_modules} threads"
  14987. fi
  14988. # Check whether --enable-timers was given.
  14989. if test "${enable_timers+set}" = set; then :
  14990. enableval=$enable_timers;
  14991. else
  14992. enable_timers=yes
  14993. fi
  14994. if test x$enable_timers != xyes; then
  14995. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14996. else
  14997. SUMMARY_modules="${SUMMARY_modules} timers"
  14998. fi
  14999. # Check whether --enable-file was given.
  15000. if test "${enable_file+set}" = set; then :
  15001. enableval=$enable_file;
  15002. else
  15003. enable_file=yes
  15004. fi
  15005. if test x$enable_file != xyes; then
  15006. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15007. else
  15008. SUMMARY_modules="${SUMMARY_modules} file"
  15009. fi
  15010. # Check whether --enable-loadso was given.
  15011. if test "${enable_loadso+set}" = set; then :
  15012. enableval=$enable_loadso;
  15013. else
  15014. enable_loadso=yes
  15015. fi
  15016. if test x$enable_loadso != xyes; then
  15017. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15018. else
  15019. SUMMARY_modules="${SUMMARY_modules} loadso"
  15020. fi
  15021. # Check whether --enable-cpuinfo was given.
  15022. if test "${enable_cpuinfo+set}" = set; then :
  15023. enableval=$enable_cpuinfo;
  15024. else
  15025. enable_cpuinfo=yes
  15026. fi
  15027. if test x$enable_cpuinfo != xyes; then
  15028. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15029. else
  15030. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15031. fi
  15032. # Check whether --enable-assembly was given.
  15033. if test "${enable_assembly+set}" = set; then :
  15034. enableval=$enable_assembly;
  15035. else
  15036. enable_assembly=yes
  15037. fi
  15038. if test x$enable_assembly = xyes; then
  15039. SUMMARY_modules="${SUMMARY_modules} assembly"
  15040. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15041. # Make sure that we don't generate floating point code that would
  15042. # cause illegal instruction exceptions on older processors
  15043. case "$host" in
  15044. *-*-darwin*)
  15045. # Don't need to worry about Apple hardware, it's all SSE capable
  15046. default_ssemath=yes
  15047. ;;
  15048. *64-*-*)
  15049. # x86 64-bit architectures all have SSE instructions
  15050. default_ssemath=yes
  15051. ;;
  15052. *)
  15053. default_ssemath=no
  15054. ;;
  15055. esac
  15056. # Check whether --enable-ssemath was given.
  15057. if test "${enable_ssemath+set}" = set; then :
  15058. enableval=$enable_ssemath;
  15059. else
  15060. enable_ssemath=$default_ssemath
  15061. fi
  15062. if test x$enable_ssemath = xno; then
  15063. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15064. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15065. fi
  15066. fi
  15067. # Check whether --enable-mmx was given.
  15068. if test "${enable_mmx+set}" = set; then :
  15069. enableval=$enable_mmx;
  15070. else
  15071. enable_mmx=yes
  15072. fi
  15073. if test x$enable_mmx = xyes; then
  15074. save_CFLAGS="$CFLAGS"
  15075. have_gcc_mmx=no
  15076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15077. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15078. mmx_CFLAGS="-mmmx"
  15079. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15081. /* end confdefs.h. */
  15082. #ifdef __MINGW32__
  15083. #include <_mingw.h>
  15084. #ifdef __MINGW64_VERSION_MAJOR
  15085. #include <intrin.h>
  15086. #else
  15087. #include <mmintrin.h>
  15088. #endif
  15089. #else
  15090. #include <mmintrin.h>
  15091. #endif
  15092. #ifndef __MMX__
  15093. #error Assembler CPP flag not enabled
  15094. #endif
  15095. int
  15096. main ()
  15097. {
  15098. ;
  15099. return 0;
  15100. }
  15101. _ACEOF
  15102. if ac_fn_c_try_compile "$LINENO"; then :
  15103. have_gcc_mmx=yes
  15104. fi
  15105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15107. $as_echo "$have_gcc_mmx" >&6; }
  15108. CFLAGS="$save_CFLAGS"
  15109. if test x$have_gcc_mmx = xyes; then
  15110. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15111. SUMMARY_math="${SUMMARY_math} mmx"
  15112. fi
  15113. fi
  15114. # Check whether --enable-3dnow was given.
  15115. if test "${enable_3dnow+set}" = set; then :
  15116. enableval=$enable_3dnow;
  15117. else
  15118. enable_3dnow=yes
  15119. fi
  15120. if test x$enable_3dnow = xyes; then
  15121. save_CFLAGS="$CFLAGS"
  15122. have_gcc_3dnow=no
  15123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15124. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15125. amd3dnow_CFLAGS="-m3dnow"
  15126. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15128. /* end confdefs.h. */
  15129. #include <mm3dnow.h>
  15130. #ifndef __3dNOW__
  15131. #error Assembler CPP flag not enabled
  15132. #endif
  15133. int
  15134. main ()
  15135. {
  15136. void *p = 0;
  15137. _m_prefetch(p);
  15138. ;
  15139. return 0;
  15140. }
  15141. _ACEOF
  15142. if ac_fn_c_try_link "$LINENO"; then :
  15143. have_gcc_3dnow=yes
  15144. fi
  15145. rm -f core conftest.err conftest.$ac_objext \
  15146. conftest$ac_exeext conftest.$ac_ext
  15147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15148. $as_echo "$have_gcc_3dnow" >&6; }
  15149. CFLAGS="$save_CFLAGS"
  15150. if test x$have_gcc_3dnow = xyes; then
  15151. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15152. SUMMARY_math="${SUMMARY_math} 3dnow"
  15153. fi
  15154. fi
  15155. # Check whether --enable-sse was given.
  15156. if test "${enable_sse+set}" = set; then :
  15157. enableval=$enable_sse;
  15158. else
  15159. enable_sse=yes
  15160. fi
  15161. if test x$enable_sse = xyes; then
  15162. save_CFLAGS="$CFLAGS"
  15163. have_gcc_sse=no
  15164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15165. $as_echo_n "checking for GCC -msse option... " >&6; }
  15166. sse_CFLAGS="-msse"
  15167. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15169. /* end confdefs.h. */
  15170. #ifdef __MINGW32__
  15171. #include <_mingw.h>
  15172. #ifdef __MINGW64_VERSION_MAJOR
  15173. #include <intrin.h>
  15174. #else
  15175. #include <xmmintrin.h>
  15176. #endif
  15177. #else
  15178. #include <xmmintrin.h>
  15179. #endif
  15180. #ifndef __SSE__
  15181. #error Assembler CPP flag not enabled
  15182. #endif
  15183. int
  15184. main ()
  15185. {
  15186. ;
  15187. return 0;
  15188. }
  15189. _ACEOF
  15190. if ac_fn_c_try_compile "$LINENO"; then :
  15191. have_gcc_sse=yes
  15192. fi
  15193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15195. $as_echo "$have_gcc_sse" >&6; }
  15196. CFLAGS="$save_CFLAGS"
  15197. if test x$have_gcc_sse = xyes; then
  15198. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15199. SUMMARY_math="${SUMMARY_math} sse"
  15200. fi
  15201. fi
  15202. # Check whether --enable-sse2 was given.
  15203. if test "${enable_sse2+set}" = set; then :
  15204. enableval=$enable_sse2;
  15205. else
  15206. enable_sse2=$default_ssemath
  15207. fi
  15208. if test x$enable_sse2 = xyes; then
  15209. save_CFLAGS="$CFLAGS"
  15210. have_gcc_sse2=no
  15211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15212. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15213. sse2_CFLAGS="-msse2"
  15214. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15216. /* end confdefs.h. */
  15217. #ifdef __MINGW32__
  15218. #include <_mingw.h>
  15219. #ifdef __MINGW64_VERSION_MAJOR
  15220. #include <intrin.h>
  15221. #else
  15222. #include <emmintrin.h>
  15223. #endif
  15224. #else
  15225. #include <emmintrin.h>
  15226. #endif
  15227. #ifndef __SSE2__
  15228. #error Assembler CPP flag not enabled
  15229. #endif
  15230. int
  15231. main ()
  15232. {
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. if ac_fn_c_try_compile "$LINENO"; then :
  15238. have_gcc_sse2=yes
  15239. fi
  15240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15242. $as_echo "$have_gcc_sse2" >&6; }
  15243. CFLAGS="$save_CFLAGS"
  15244. if test x$have_gcc_sse2 = xyes; then
  15245. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15246. SUMMARY_math="${SUMMARY_math} sse2"
  15247. fi
  15248. fi
  15249. # Check whether --enable-sse3 was given.
  15250. if test "${enable_sse3+set}" = set; then :
  15251. enableval=$enable_sse3;
  15252. else
  15253. enable_sse3=$default_ssemath
  15254. fi
  15255. if test x$enable_sse3 = xyes; then
  15256. save_CFLAGS="$CFLAGS"
  15257. have_gcc_sse3=no
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15259. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15260. sse3_CFLAGS="-msse3"
  15261. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15263. /* end confdefs.h. */
  15264. #ifdef __MINGW32__
  15265. #include <_mingw.h>
  15266. #ifdef __MINGW64_VERSION_MAJOR
  15267. #include <intrin.h>
  15268. #else
  15269. #include <pmmintrin.h>
  15270. #endif
  15271. #else
  15272. #include <pmmintrin.h>
  15273. #endif
  15274. #ifndef __SSE2__
  15275. #error Assembler CPP flag not enabled
  15276. #endif
  15277. int
  15278. main ()
  15279. {
  15280. ;
  15281. return 0;
  15282. }
  15283. _ACEOF
  15284. if ac_fn_c_try_compile "$LINENO"; then :
  15285. have_gcc_sse3=yes
  15286. fi
  15287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15289. $as_echo "$have_gcc_sse3" >&6; }
  15290. CFLAGS="$save_CFLAGS"
  15291. if test x$have_gcc_sse3 = xyes; then
  15292. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15293. SUMMARY_math="${SUMMARY_math} sse3"
  15294. fi
  15295. fi
  15296. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15297. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15298. have_immintrin_h_hdr=yes
  15299. else
  15300. have_immintrin_h_hdr=no
  15301. fi
  15302. if test x$have_immintrin_h_hdr = xyes; then
  15303. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15304. fi
  15305. # Check whether --enable-altivec was given.
  15306. if test "${enable_altivec+set}" = set; then :
  15307. enableval=$enable_altivec;
  15308. else
  15309. enable_altivec=yes
  15310. fi
  15311. if test x$enable_altivec = xyes; then
  15312. save_CFLAGS="$CFLAGS"
  15313. have_gcc_altivec=no
  15314. have_altivec_h_hdr=no
  15315. altivec_CFLAGS="-maltivec"
  15316. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15318. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15320. /* end confdefs.h. */
  15321. #include <altivec.h>
  15322. vector unsigned int vzero() {
  15323. return vec_splat_u32(0);
  15324. }
  15325. int
  15326. main ()
  15327. {
  15328. ;
  15329. return 0;
  15330. }
  15331. _ACEOF
  15332. if ac_fn_c_try_compile "$LINENO"; then :
  15333. have_gcc_altivec=yes
  15334. have_altivec_h_hdr=yes
  15335. fi
  15336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15338. $as_echo "$have_gcc_altivec" >&6; }
  15339. if test x$have_gcc_altivec = xno; then
  15340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15341. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15343. /* end confdefs.h. */
  15344. vector unsigned int vzero() {
  15345. return vec_splat_u32(0);
  15346. }
  15347. int
  15348. main ()
  15349. {
  15350. ;
  15351. return 0;
  15352. }
  15353. _ACEOF
  15354. if ac_fn_c_try_compile "$LINENO"; then :
  15355. have_gcc_altivec=yes
  15356. fi
  15357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15359. $as_echo "$have_gcc_altivec" >&6; }
  15360. fi
  15361. if test x$have_gcc_altivec = xno; then
  15362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15363. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15364. altivec_CFLAGS="-faltivec"
  15365. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15367. /* end confdefs.h. */
  15368. #include <altivec.h>
  15369. vector unsigned int vzero() {
  15370. return vec_splat_u32(0);
  15371. }
  15372. int
  15373. main ()
  15374. {
  15375. ;
  15376. return 0;
  15377. }
  15378. _ACEOF
  15379. if ac_fn_c_try_compile "$LINENO"; then :
  15380. have_gcc_altivec=yes
  15381. have_altivec_h_hdr=yes
  15382. fi
  15383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15385. $as_echo "$have_gcc_altivec" >&6; }
  15386. fi
  15387. if test x$have_gcc_altivec = xno; then
  15388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15389. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15391. /* end confdefs.h. */
  15392. vector unsigned int vzero() {
  15393. return vec_splat_u32(0);
  15394. }
  15395. int
  15396. main ()
  15397. {
  15398. ;
  15399. return 0;
  15400. }
  15401. _ACEOF
  15402. if ac_fn_c_try_compile "$LINENO"; then :
  15403. have_gcc_altivec=yes
  15404. fi
  15405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15407. $as_echo "$have_gcc_altivec" >&6; }
  15408. fi
  15409. CFLAGS="$save_CFLAGS"
  15410. if test x$have_gcc_altivec = xyes; then
  15411. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15412. if test x$have_altivec_h_hdr = xyes; then
  15413. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15414. fi
  15415. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15416. SUMMARY_math="${SUMMARY_math} altivec"
  15417. fi
  15418. fi
  15419. fi
  15420. CheckOSS()
  15421. {
  15422. # Check whether --enable-oss was given.
  15423. if test "${enable_oss+set}" = set; then :
  15424. enableval=$enable_oss;
  15425. else
  15426. enable_oss=maybe
  15427. fi
  15428. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15429. # use sndio instead. So on there, we default to disabled. You can force
  15430. # it on if you really want, though.
  15431. if test x$enable_oss = xmaybe; then
  15432. enable_oss=yes
  15433. case "$host" in
  15434. *-*-openbsd*)
  15435. enable_oss=no;;
  15436. esac
  15437. fi
  15438. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15440. $as_echo_n "checking for OSS audio support... " >&6; }
  15441. have_oss=no
  15442. if test x$have_oss != xyes; then
  15443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15444. /* end confdefs.h. */
  15445. #include <sys/soundcard.h>
  15446. int
  15447. main ()
  15448. {
  15449. int arg = SNDCTL_DSP_SETFRAGMENT;
  15450. ;
  15451. return 0;
  15452. }
  15453. _ACEOF
  15454. if ac_fn_c_try_compile "$LINENO"; then :
  15455. have_oss=yes
  15456. fi
  15457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15458. fi
  15459. if test x$have_oss != xyes; then
  15460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15461. /* end confdefs.h. */
  15462. #include <soundcard.h>
  15463. int
  15464. main ()
  15465. {
  15466. int arg = SNDCTL_DSP_SETFRAGMENT;
  15467. ;
  15468. return 0;
  15469. }
  15470. _ACEOF
  15471. if ac_fn_c_try_compile "$LINENO"; then :
  15472. have_oss=yes
  15473. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15474. fi
  15475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15476. fi
  15477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15478. $as_echo "$have_oss" >&6; }
  15479. if test x$have_oss = xyes; then
  15480. SUMMARY_audio="${SUMMARY_audio} oss"
  15481. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15482. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15483. have_audio=yes
  15484. # We may need to link with ossaudio emulation library
  15485. case "$host" in
  15486. *-*-openbsd*|*-*-netbsd*)
  15487. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15488. esac
  15489. fi
  15490. fi
  15491. }
  15492. CheckALSA()
  15493. {
  15494. # Check whether --enable-alsa was given.
  15495. if test "${enable_alsa+set}" = set; then :
  15496. enableval=$enable_alsa;
  15497. else
  15498. enable_alsa=yes
  15499. fi
  15500. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15501. alsa_save_CFLAGS="$CFLAGS"
  15502. alsa_save_LDFLAGS="$LDFLAGS"
  15503. alsa_save_LIBS="$LIBS"
  15504. alsa_found=yes
  15505. # Check whether --with-alsa-prefix was given.
  15506. if test "${with_alsa_prefix+set}" = set; then :
  15507. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15508. else
  15509. alsa_prefix=""
  15510. fi
  15511. # Check whether --with-alsa-inc-prefix was given.
  15512. if test "${with_alsa_inc_prefix+set}" = set; then :
  15513. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15514. else
  15515. alsa_inc_prefix=""
  15516. fi
  15517. # Check whether --enable-alsatest was given.
  15518. if test "${enable_alsatest+set}" = set; then :
  15519. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15520. else
  15521. enable_alsatest=yes
  15522. fi
  15523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15524. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15525. if test "$alsa_inc_prefix" != "" ; then
  15526. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15527. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15528. fi
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15530. $as_echo "$ALSA_CFLAGS" >&6; }
  15531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15532. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15533. if test "$alsa_prefix" != "" ; then
  15534. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15535. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15536. fi
  15537. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15538. LIBS=`echo $LIBS | sed 's/-lm//'`
  15539. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15540. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15541. LIBS=`echo $LIBS | sed 's/ //'`
  15542. LIBS="$ALSA_LIBS $LIBS"
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15544. $as_echo "$ALSA_LIBS" >&6; }
  15545. min_alsa_version=1.0.11
  15546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15547. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15548. no_alsa=""
  15549. alsa_min_major_version=`echo $min_alsa_version | \
  15550. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15551. alsa_min_minor_version=`echo $min_alsa_version | \
  15552. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15553. alsa_min_micro_version=`echo $min_alsa_version | \
  15554. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15555. ac_ext=c
  15556. ac_cpp='$CPP $CPPFLAGS'
  15557. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15558. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15559. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15561. /* end confdefs.h. */
  15562. #include <alsa/asoundlib.h>
  15563. int
  15564. main ()
  15565. {
  15566. /* ensure backward compatibility */
  15567. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15568. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15569. #endif
  15570. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15571. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15572. #endif
  15573. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15574. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15575. #endif
  15576. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15577. exit(0);
  15578. # else
  15579. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15580. # error not present
  15581. # endif
  15582. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15583. exit(0);
  15584. # else
  15585. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15586. # error not present
  15587. # endif
  15588. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15589. # error not present
  15590. # endif
  15591. # endif
  15592. # endif
  15593. exit(0);
  15594. ;
  15595. return 0;
  15596. }
  15597. _ACEOF
  15598. if ac_fn_c_try_compile "$LINENO"; then :
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15600. $as_echo "found." >&6; }
  15601. else
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15603. $as_echo "not present." >&6; }
  15604. alsa_found=no
  15605. fi
  15606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15607. ac_ext=c
  15608. ac_cpp='$CPP $CPPFLAGS'
  15609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15612. if test "x$enable_alsatest" = "xyes"; then
  15613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15614. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15615. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15616. $as_echo_n "(cached) " >&6
  15617. else
  15618. ac_check_lib_save_LIBS=$LIBS
  15619. LIBS="-lasound $LIBS"
  15620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15621. /* end confdefs.h. */
  15622. /* Override any GCC internal prototype to avoid an error.
  15623. Use char because int might match the return type of a GCC
  15624. builtin and then its argument prototype would still apply. */
  15625. #ifdef __cplusplus
  15626. extern "C"
  15627. #endif
  15628. char snd_ctl_open ();
  15629. int
  15630. main ()
  15631. {
  15632. return snd_ctl_open ();
  15633. ;
  15634. return 0;
  15635. }
  15636. _ACEOF
  15637. if ac_fn_c_try_link "$LINENO"; then :
  15638. ac_cv_lib_asound_snd_ctl_open=yes
  15639. else
  15640. ac_cv_lib_asound_snd_ctl_open=no
  15641. fi
  15642. rm -f core conftest.err conftest.$ac_objext \
  15643. conftest$ac_exeext conftest.$ac_ext
  15644. LIBS=$ac_check_lib_save_LIBS
  15645. fi
  15646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15647. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15648. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15649. cat >>confdefs.h <<_ACEOF
  15650. #define HAVE_LIBASOUND 1
  15651. _ACEOF
  15652. LIBS="-lasound $LIBS"
  15653. else
  15654. alsa_found=no
  15655. fi
  15656. fi
  15657. if test "x$alsa_found" = "xyes" ; then
  15658. have_alsa=yes
  15659. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15660. LIBS=`echo $LIBS | sed 's/ //'`
  15661. LIBS="-lasound $LIBS"
  15662. fi
  15663. if test "x$alsa_found" = "xno" ; then
  15664. have_alsa=no
  15665. CFLAGS="$alsa_save_CFLAGS"
  15666. LDFLAGS="$alsa_save_LDFLAGS"
  15667. LIBS="$alsa_save_LIBS"
  15668. ALSA_CFLAGS=""
  15669. ALSA_LIBS=""
  15670. fi
  15671. # Restore all flags from before the ALSA detection runs
  15672. CFLAGS="$alsa_save_CFLAGS"
  15673. LDFLAGS="$alsa_save_LDFLAGS"
  15674. LIBS="$alsa_save_LIBS"
  15675. if test x$have_alsa = xyes; then
  15676. # Check whether --enable-alsa-shared was given.
  15677. if test "${enable_alsa_shared+set}" = set; then :
  15678. enableval=$enable_alsa_shared;
  15679. else
  15680. enable_alsa_shared=yes
  15681. fi
  15682. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15683. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15684. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15685. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15686. if test x$have_loadso != xyes && \
  15687. test x$enable_alsa_shared = xyes; then
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15689. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15690. fi
  15691. if test x$have_loadso = xyes && \
  15692. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15693. echo "-- dynamic libasound -> $alsa_lib"
  15694. cat >>confdefs.h <<_ACEOF
  15695. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15696. _ACEOF
  15697. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15698. else
  15699. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15700. SUMMARY_audio="${SUMMARY_audio} alsa"
  15701. fi
  15702. have_audio=yes
  15703. fi
  15704. fi
  15705. }
  15706. CheckJACK()
  15707. {
  15708. # Check whether --enable-jack was given.
  15709. if test "${enable_jack+set}" = set; then :
  15710. enableval=$enable_jack;
  15711. else
  15712. enable_jack=yes
  15713. fi
  15714. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15715. pkg_failed=no
  15716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15717. $as_echo_n "checking for JACK... " >&6; }
  15718. if test -n "$JACK_CFLAGS"; then
  15719. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15720. elif test -n "$PKG_CONFIG"; then
  15721. if test -n "$PKG_CONFIG" && \
  15722. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15723. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15724. ac_status=$?
  15725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15726. test $ac_status = 0; }; then
  15727. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15728. else
  15729. pkg_failed=yes
  15730. fi
  15731. else
  15732. pkg_failed=untried
  15733. fi
  15734. if test -n "$JACK_LIBS"; then
  15735. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15736. elif test -n "$PKG_CONFIG"; then
  15737. if test -n "$PKG_CONFIG" && \
  15738. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15739. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15740. ac_status=$?
  15741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15742. test $ac_status = 0; }; then
  15743. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15744. else
  15745. pkg_failed=yes
  15746. fi
  15747. else
  15748. pkg_failed=untried
  15749. fi
  15750. if test $pkg_failed = yes; then
  15751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15752. $as_echo "no" >&6; }
  15753. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15754. _pkg_short_errors_supported=yes
  15755. else
  15756. _pkg_short_errors_supported=no
  15757. fi
  15758. if test $_pkg_short_errors_supported = yes; then
  15759. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15760. else
  15761. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15762. fi
  15763. # Put the nasty error message in config.log where it belongs
  15764. echo "$JACK_PKG_ERRORS" >&5
  15765. audio_jack=no
  15766. elif test $pkg_failed = untried; then
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15768. $as_echo "no" >&6; }
  15769. audio_jack=no
  15770. else
  15771. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15772. JACK_LIBS=$pkg_cv_JACK_LIBS
  15773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15774. $as_echo "yes" >&6; }
  15775. audio_jack=yes
  15776. fi
  15777. if test x$audio_jack = xyes; then
  15778. # Check whether --enable-jack-shared was given.
  15779. if test "${enable_jack_shared+set}" = set; then :
  15780. enableval=$enable_jack_shared;
  15781. else
  15782. enable_jack_shared=yes
  15783. fi
  15784. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15785. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15786. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15787. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15788. if test x$have_loadso != xyes && \
  15789. test x$enable_jack_shared = xyes; then
  15790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15791. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15792. fi
  15793. if test x$have_loadso = xyes && \
  15794. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15795. echo "-- dynamic libjack -> $jack_lib"
  15796. cat >>confdefs.h <<_ACEOF
  15797. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15798. _ACEOF
  15799. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15800. case "$host" in
  15801. # On Solaris, jack must be linked deferred explicitly
  15802. # to prevent undefined symbol failures.
  15803. *-*-solaris*)
  15804. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15805. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15806. esac
  15807. else
  15808. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15809. SUMMARY_audio="${SUMMARY_audio} jack"
  15810. fi
  15811. have_audio=yes
  15812. fi
  15813. fi
  15814. }
  15815. CheckESD()
  15816. {
  15817. # Check whether --enable-esd was given.
  15818. if test "${enable_esd+set}" = set; then :
  15819. enableval=$enable_esd;
  15820. else
  15821. enable_esd=yes
  15822. fi
  15823. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15824. # Check whether --with-esd-prefix was given.
  15825. if test "${with_esd_prefix+set}" = set; then :
  15826. withval=$with_esd_prefix; esd_prefix="$withval"
  15827. else
  15828. esd_prefix=""
  15829. fi
  15830. # Check whether --with-esd-exec-prefix was given.
  15831. if test "${with_esd_exec_prefix+set}" = set; then :
  15832. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15833. else
  15834. esd_exec_prefix=""
  15835. fi
  15836. # Check whether --enable-esdtest was given.
  15837. if test "${enable_esdtest+set}" = set; then :
  15838. enableval=$enable_esdtest;
  15839. else
  15840. enable_esdtest=yes
  15841. fi
  15842. if test x$esd_exec_prefix != x ; then
  15843. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15844. if test x${ESD_CONFIG+set} != xset ; then
  15845. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15846. fi
  15847. fi
  15848. if test x$esd_prefix != x ; then
  15849. esd_args="$esd_args --prefix=$esd_prefix"
  15850. if test x${ESD_CONFIG+set} != xset ; then
  15851. ESD_CONFIG=$esd_prefix/bin/esd-config
  15852. fi
  15853. fi
  15854. # Extract the first word of "esd-config", so it can be a program name with args.
  15855. set dummy esd-config; ac_word=$2
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15857. $as_echo_n "checking for $ac_word... " >&6; }
  15858. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15859. $as_echo_n "(cached) " >&6
  15860. else
  15861. case $ESD_CONFIG in
  15862. [\\/]* | ?:[\\/]*)
  15863. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15864. ;;
  15865. *)
  15866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15867. for as_dir in $PATH
  15868. do
  15869. IFS=$as_save_IFS
  15870. test -z "$as_dir" && as_dir=.
  15871. for ac_exec_ext in '' $ac_executable_extensions; do
  15872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15873. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15875. break 2
  15876. fi
  15877. done
  15878. done
  15879. IFS=$as_save_IFS
  15880. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15881. ;;
  15882. esac
  15883. fi
  15884. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15885. if test -n "$ESD_CONFIG"; then
  15886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15887. $as_echo "$ESD_CONFIG" >&6; }
  15888. else
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15890. $as_echo "no" >&6; }
  15891. fi
  15892. min_esd_version=0.2.8
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15894. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15895. no_esd=""
  15896. if test "$ESD_CONFIG" = "no" ; then
  15897. no_esd=yes
  15898. else
  15899. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15900. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15901. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15902. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15903. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15904. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15905. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15906. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15907. if test "x$enable_esdtest" = "xyes" ; then
  15908. ac_save_CFLAGS="$CFLAGS"
  15909. ac_save_LIBS="$LIBS"
  15910. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15911. LIBS="$LIBS $ESD_LIBS"
  15912. rm -f conf.esdtest
  15913. if test "$cross_compiling" = yes; then :
  15914. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15915. else
  15916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15917. /* end confdefs.h. */
  15918. #include <stdio.h>
  15919. #include <stdlib.h>
  15920. #include <string.h>
  15921. #include <esd.h>
  15922. char*
  15923. my_strdup (char *str)
  15924. {
  15925. char *new_str;
  15926. if (str)
  15927. {
  15928. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15929. strcpy (new_str, str);
  15930. }
  15931. else
  15932. new_str = NULL;
  15933. return new_str;
  15934. }
  15935. int main ()
  15936. {
  15937. int major, minor, micro;
  15938. char *tmp_version;
  15939. system ("touch conf.esdtest");
  15940. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15941. tmp_version = my_strdup("$min_esd_version");
  15942. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15943. printf("%s, bad version string\n", "$min_esd_version");
  15944. exit(1);
  15945. }
  15946. if (($esd_major_version > major) ||
  15947. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15948. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15949. {
  15950. return 0;
  15951. }
  15952. else
  15953. {
  15954. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15955. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15956. printf("*** best to upgrade to the required version.\n");
  15957. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15958. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15959. printf("*** config.cache before re-running configure\n");
  15960. return 1;
  15961. }
  15962. }
  15963. _ACEOF
  15964. if ac_fn_c_try_run "$LINENO"; then :
  15965. else
  15966. no_esd=yes
  15967. fi
  15968. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15969. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15970. fi
  15971. CFLAGS="$ac_save_CFLAGS"
  15972. LIBS="$ac_save_LIBS"
  15973. fi
  15974. fi
  15975. if test "x$no_esd" = x ; then
  15976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15977. $as_echo "yes" >&6; }
  15978. have_esd=yes
  15979. else
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15981. $as_echo "no" >&6; }
  15982. if test "$ESD_CONFIG" = "no" ; then
  15983. echo "*** The esd-config script installed by ESD could not be found"
  15984. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15985. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15986. echo "*** full path to esd-config."
  15987. else
  15988. if test -f conf.esdtest ; then
  15989. :
  15990. else
  15991. echo "*** Could not run ESD test program, checking why..."
  15992. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15993. LIBS="$LIBS $ESD_LIBS"
  15994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15995. /* end confdefs.h. */
  15996. #include <stdio.h>
  15997. #include <esd.h>
  15998. int
  15999. main ()
  16000. {
  16001. return 0;
  16002. ;
  16003. return 0;
  16004. }
  16005. _ACEOF
  16006. if ac_fn_c_try_link "$LINENO"; then :
  16007. echo "*** The test program compiled, but did not run. This usually means"
  16008. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16009. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16010. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16011. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16012. echo "*** is required on your system"
  16013. echo "***"
  16014. echo "*** If you have an old version installed, it is best to remove it, although"
  16015. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16016. else
  16017. echo "*** The test program failed to compile or link. See the file config.log for the"
  16018. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16019. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16020. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16021. fi
  16022. rm -f core conftest.err conftest.$ac_objext \
  16023. conftest$ac_exeext conftest.$ac_ext
  16024. CFLAGS="$ac_save_CFLAGS"
  16025. LIBS="$ac_save_LIBS"
  16026. fi
  16027. fi
  16028. ESD_CFLAGS=""
  16029. ESD_LIBS=""
  16030. have_esd=no
  16031. fi
  16032. rm -f conf.esdtest
  16033. if test x$have_esd = xyes; then
  16034. # Check whether --enable-esd-shared was given.
  16035. if test "${enable_esd_shared+set}" = set; then :
  16036. enableval=$enable_esd_shared;
  16037. else
  16038. enable_esd_shared=yes
  16039. fi
  16040. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16041. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16042. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16043. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16044. if test x$have_loadso != xyes && \
  16045. test x$enable_esd_shared = xyes; then
  16046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16047. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16048. fi
  16049. if test x$have_loadso = xyes && \
  16050. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16051. echo "-- dynamic libesd -> $esd_lib"
  16052. cat >>confdefs.h <<_ACEOF
  16053. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16054. _ACEOF
  16055. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16056. else
  16057. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16058. SUMMARY_audio="${SUMMARY_audio} esd"
  16059. fi
  16060. have_audio=yes
  16061. fi
  16062. fi
  16063. }
  16064. CheckPulseAudio()
  16065. {
  16066. # Check whether --enable-pulseaudio was given.
  16067. if test "${enable_pulseaudio+set}" = set; then :
  16068. enableval=$enable_pulseaudio;
  16069. else
  16070. enable_pulseaudio=yes
  16071. fi
  16072. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16073. pkg_failed=no
  16074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16075. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16076. if test -n "$PULSEAUDIO_CFLAGS"; then
  16077. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16078. elif test -n "$PKG_CONFIG"; then
  16079. if test -n "$PKG_CONFIG" && \
  16080. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16081. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16082. ac_status=$?
  16083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16084. test $ac_status = 0; }; then
  16085. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16086. else
  16087. pkg_failed=yes
  16088. fi
  16089. else
  16090. pkg_failed=untried
  16091. fi
  16092. if test -n "$PULSEAUDIO_LIBS"; then
  16093. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16094. elif test -n "$PKG_CONFIG"; then
  16095. if test -n "$PKG_CONFIG" && \
  16096. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16097. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16098. ac_status=$?
  16099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16100. test $ac_status = 0; }; then
  16101. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16102. else
  16103. pkg_failed=yes
  16104. fi
  16105. else
  16106. pkg_failed=untried
  16107. fi
  16108. if test $pkg_failed = yes; then
  16109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16110. $as_echo "no" >&6; }
  16111. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16112. _pkg_short_errors_supported=yes
  16113. else
  16114. _pkg_short_errors_supported=no
  16115. fi
  16116. if test $_pkg_short_errors_supported = yes; then
  16117. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16118. else
  16119. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16120. fi
  16121. # Put the nasty error message in config.log where it belongs
  16122. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16123. audio_pulseaudio=no
  16124. elif test $pkg_failed = untried; then
  16125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16126. $as_echo "no" >&6; }
  16127. audio_pulseaudio=no
  16128. else
  16129. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16130. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16132. $as_echo "yes" >&6; }
  16133. audio_pulseaudio=yes
  16134. fi
  16135. if test x$audio_pulseaudio = xyes; then
  16136. # Check whether --enable-pulseaudio-shared was given.
  16137. if test "${enable_pulseaudio_shared+set}" = set; then :
  16138. enableval=$enable_pulseaudio_shared;
  16139. else
  16140. enable_pulseaudio_shared=yes
  16141. fi
  16142. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16143. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16144. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16145. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16146. if test x$have_loadso != xyes && \
  16147. test x$enable_pulseaudio_shared = xyes; then
  16148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16149. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16150. fi
  16151. if test x$have_loadso = xyes && \
  16152. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16153. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16154. cat >>confdefs.h <<_ACEOF
  16155. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16156. _ACEOF
  16157. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16158. case "$host" in
  16159. # On Solaris, pulseaudio must be linked deferred explicitly
  16160. # to prevent undefined symbol failures.
  16161. *-*-solaris*)
  16162. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16163. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16164. esac
  16165. else
  16166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16167. SUMMARY_audio="${SUMMARY_audio} pulse"
  16168. fi
  16169. have_audio=yes
  16170. fi
  16171. fi
  16172. }
  16173. CheckARTSC()
  16174. {
  16175. # Check whether --enable-arts was given.
  16176. if test "${enable_arts+set}" = set; then :
  16177. enableval=$enable_arts;
  16178. else
  16179. enable_arts=yes
  16180. fi
  16181. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16182. # Extract the first word of "artsc-config", so it can be a program name with args.
  16183. set dummy artsc-config; ac_word=$2
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16185. $as_echo_n "checking for $ac_word... " >&6; }
  16186. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16187. $as_echo_n "(cached) " >&6
  16188. else
  16189. case $ARTSCONFIG in
  16190. [\\/]* | ?:[\\/]*)
  16191. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16192. ;;
  16193. *)
  16194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16195. for as_dir in $PATH
  16196. do
  16197. IFS=$as_save_IFS
  16198. test -z "$as_dir" && as_dir=.
  16199. for ac_exec_ext in '' $ac_executable_extensions; do
  16200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16201. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16203. break 2
  16204. fi
  16205. done
  16206. done
  16207. IFS=$as_save_IFS
  16208. ;;
  16209. esac
  16210. fi
  16211. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16212. if test -n "$ARTSCONFIG"; then
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16214. $as_echo "$ARTSCONFIG" >&6; }
  16215. else
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16217. $as_echo "no" >&6; }
  16218. fi
  16219. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16220. : # arts isn't installed
  16221. else
  16222. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16223. ARTS_LIBS=`$ARTSCONFIG --libs`
  16224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16225. $as_echo_n "checking for aRts development environment... " >&6; }
  16226. audio_arts=no
  16227. save_CFLAGS="$CFLAGS"
  16228. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16230. /* end confdefs.h. */
  16231. #include <artsc.h>
  16232. int
  16233. main ()
  16234. {
  16235. arts_stream_t stream;
  16236. ;
  16237. return 0;
  16238. }
  16239. _ACEOF
  16240. if ac_fn_c_try_compile "$LINENO"; then :
  16241. audio_arts=yes
  16242. fi
  16243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16244. CFLAGS="$save_CFLAGS"
  16245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16246. $as_echo "$audio_arts" >&6; }
  16247. if test x$audio_arts = xyes; then
  16248. # Check whether --enable-arts-shared was given.
  16249. if test "${enable_arts_shared+set}" = set; then :
  16250. enableval=$enable_arts_shared;
  16251. else
  16252. enable_arts_shared=yes
  16253. fi
  16254. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16255. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16256. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16257. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16258. if test x$have_loadso != xyes && \
  16259. test x$enable_arts_shared = xyes; then
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16261. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16262. fi
  16263. if test x$have_loadso = xyes && \
  16264. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16265. echo "-- dynamic libartsc -> $arts_lib"
  16266. cat >>confdefs.h <<_ACEOF
  16267. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16268. _ACEOF
  16269. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16270. else
  16271. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16272. SUMMARY_audio="${SUMMARY_audio} arts"
  16273. fi
  16274. have_audio=yes
  16275. fi
  16276. fi
  16277. fi
  16278. }
  16279. CheckNAS()
  16280. {
  16281. # Check whether --enable-nas was given.
  16282. if test "${enable_nas+set}" = set; then :
  16283. enableval=$enable_nas;
  16284. else
  16285. enable_nas=yes
  16286. fi
  16287. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16288. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16289. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16290. have_nas_hdr=yes
  16291. fi
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16293. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16294. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16295. $as_echo_n "(cached) " >&6
  16296. else
  16297. ac_check_lib_save_LIBS=$LIBS
  16298. LIBS="-laudio $LIBS"
  16299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16300. /* end confdefs.h. */
  16301. /* Override any GCC internal prototype to avoid an error.
  16302. Use char because int might match the return type of a GCC
  16303. builtin and then its argument prototype would still apply. */
  16304. #ifdef __cplusplus
  16305. extern "C"
  16306. #endif
  16307. char AuOpenServer ();
  16308. int
  16309. main ()
  16310. {
  16311. return AuOpenServer ();
  16312. ;
  16313. return 0;
  16314. }
  16315. _ACEOF
  16316. if ac_fn_c_try_link "$LINENO"; then :
  16317. ac_cv_lib_audio_AuOpenServer=yes
  16318. else
  16319. ac_cv_lib_audio_AuOpenServer=no
  16320. fi
  16321. rm -f core conftest.err conftest.$ac_objext \
  16322. conftest$ac_exeext conftest.$ac_ext
  16323. LIBS=$ac_check_lib_save_LIBS
  16324. fi
  16325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16326. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16327. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16328. have_nas_lib=yes
  16329. fi
  16330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16331. $as_echo_n "checking for NAS audio support... " >&6; }
  16332. have_nas=no
  16333. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16334. have_nas=yes
  16335. NAS_LIBS="-laudio"
  16336. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16337. have_nas=yes
  16338. NAS_CFLAGS="-I/usr/X11R6/include/"
  16339. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16340. fi
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16342. $as_echo "$have_nas" >&6; }
  16343. if test x$have_nas = xyes; then
  16344. # Check whether --enable-nas-shared was given.
  16345. if test "${enable_nas_shared+set}" = set; then :
  16346. enableval=$enable_nas_shared;
  16347. else
  16348. enable_nas_shared=yes
  16349. fi
  16350. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16351. if test x$have_loadso != xyes && \
  16352. test x$enable_nas_shared = xyes; then
  16353. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16354. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16355. fi
  16356. if test x$have_loadso = xyes && \
  16357. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16358. echo "-- dynamic libaudio -> $nas_lib"
  16359. cat >>confdefs.h <<_ACEOF
  16360. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16361. _ACEOF
  16362. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16363. else
  16364. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16365. SUMMARY_audio="${SUMMARY_audio} nas"
  16366. fi
  16367. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16368. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16369. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16370. have_audio=yes
  16371. fi
  16372. fi
  16373. }
  16374. CheckSNDIO()
  16375. {
  16376. # Check whether --enable-sndio was given.
  16377. if test "${enable_sndio+set}" = set; then :
  16378. enableval=$enable_sndio;
  16379. else
  16380. enable_sndio=yes
  16381. fi
  16382. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16383. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16384. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16385. have_sndio_hdr=yes
  16386. fi
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16388. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16389. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16390. $as_echo_n "(cached) " >&6
  16391. else
  16392. ac_check_lib_save_LIBS=$LIBS
  16393. LIBS="-lsndio $LIBS"
  16394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16395. /* end confdefs.h. */
  16396. /* Override any GCC internal prototype to avoid an error.
  16397. Use char because int might match the return type of a GCC
  16398. builtin and then its argument prototype would still apply. */
  16399. #ifdef __cplusplus
  16400. extern "C"
  16401. #endif
  16402. char sio_open ();
  16403. int
  16404. main ()
  16405. {
  16406. return sio_open ();
  16407. ;
  16408. return 0;
  16409. }
  16410. _ACEOF
  16411. if ac_fn_c_try_link "$LINENO"; then :
  16412. ac_cv_lib_sndio_sio_open=yes
  16413. else
  16414. ac_cv_lib_sndio_sio_open=no
  16415. fi
  16416. rm -f core conftest.err conftest.$ac_objext \
  16417. conftest$ac_exeext conftest.$ac_ext
  16418. LIBS=$ac_check_lib_save_LIBS
  16419. fi
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16421. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16422. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16423. have_sndio_lib=yes
  16424. fi
  16425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16426. $as_echo_n "checking for sndio audio support... " >&6; }
  16427. have_sndio=no
  16428. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16429. have_sndio=yes
  16430. SNDIO_LIBS="-lsndio"
  16431. fi
  16432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16433. $as_echo "$have_sndio" >&6; }
  16434. if test x$have_sndio = xyes; then
  16435. # Check whether --enable-sndio-shared was given.
  16436. if test "${enable_sndio_shared+set}" = set; then :
  16437. enableval=$enable_sndio_shared;
  16438. else
  16439. enable_sndio_shared=yes
  16440. fi
  16441. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16442. if test x$have_loadso != xyes && \
  16443. test x$enable_sndio_shared = xyes; then
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16445. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16446. fi
  16447. if test x$have_loadso = xyes && \
  16448. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16449. echo "-- dynamic libsndio -> $sndio_lib"
  16450. cat >>confdefs.h <<_ACEOF
  16451. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16452. _ACEOF
  16453. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16454. else
  16455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16456. SUMMARY_audio="${SUMMARY_audio} sndio"
  16457. fi
  16458. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16459. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16460. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16461. have_audio=yes
  16462. fi
  16463. fi
  16464. }
  16465. CheckFusionSound()
  16466. {
  16467. # Check whether --enable-fusionsound was given.
  16468. if test "${enable_fusionsound+set}" = set; then :
  16469. enableval=$enable_fusionsound;
  16470. else
  16471. enable_fusionsound=no
  16472. fi
  16473. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16474. pkg_failed=no
  16475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16476. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16477. if test -n "$FUSIONSOUND_CFLAGS"; then
  16478. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16479. elif test -n "$PKG_CONFIG"; then
  16480. if test -n "$PKG_CONFIG" && \
  16481. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16482. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16483. ac_status=$?
  16484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16485. test $ac_status = 0; }; then
  16486. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16487. else
  16488. pkg_failed=yes
  16489. fi
  16490. else
  16491. pkg_failed=untried
  16492. fi
  16493. if test -n "$FUSIONSOUND_LIBS"; then
  16494. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16495. elif test -n "$PKG_CONFIG"; then
  16496. if test -n "$PKG_CONFIG" && \
  16497. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16498. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16499. ac_status=$?
  16500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16501. test $ac_status = 0; }; then
  16502. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16503. else
  16504. pkg_failed=yes
  16505. fi
  16506. else
  16507. pkg_failed=untried
  16508. fi
  16509. if test $pkg_failed = yes; then
  16510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16511. $as_echo "no" >&6; }
  16512. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16513. _pkg_short_errors_supported=yes
  16514. else
  16515. _pkg_short_errors_supported=no
  16516. fi
  16517. if test $_pkg_short_errors_supported = yes; then
  16518. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16519. else
  16520. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16521. fi
  16522. # Put the nasty error message in config.log where it belongs
  16523. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16524. fusionsound=no
  16525. elif test $pkg_failed = untried; then
  16526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16527. $as_echo "no" >&6; }
  16528. fusionsound=no
  16529. else
  16530. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16531. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16533. $as_echo "yes" >&6; }
  16534. fusionsound=yes
  16535. fi
  16536. if test x$fusionsound = xyes; then
  16537. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16538. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16539. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16540. # Check whether --enable-fusionsound-shared was given.
  16541. if test "${enable_fusionsound_shared+set}" = set; then :
  16542. enableval=$enable_fusionsound_shared;
  16543. else
  16544. enable_fusionsound_shared=yes
  16545. fi
  16546. fusionsound_shared=no
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16548. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16549. if test x$have_loadso != xyes && \
  16550. test x$enable_fusionsound_shared = xyes; then
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16552. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16553. fi
  16554. if test x$have_loadso = xyes && \
  16555. test x$enable_fusionsound_shared = xyes; then
  16556. cat >>confdefs.h <<_ACEOF
  16557. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16558. _ACEOF
  16559. fusionsound_shared=yes
  16560. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16561. else
  16562. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16563. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16564. fi
  16565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16566. $as_echo "$fusionsound_shared" >&6; }
  16567. have_audio=yes
  16568. fi
  16569. fi
  16570. }
  16571. CheckDiskAudio()
  16572. {
  16573. # Check whether --enable-diskaudio was given.
  16574. if test "${enable_diskaudio+set}" = set; then :
  16575. enableval=$enable_diskaudio;
  16576. else
  16577. enable_diskaudio=yes
  16578. fi
  16579. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16580. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16581. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16582. SUMMARY_audio="${SUMMARY_audio} disk"
  16583. fi
  16584. }
  16585. CheckDummyAudio()
  16586. {
  16587. # Check whether --enable-dummyaudio was given.
  16588. if test "${enable_dummyaudio+set}" = set; then :
  16589. enableval=$enable_dummyaudio;
  16590. else
  16591. enable_dummyaudio=yes
  16592. fi
  16593. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16594. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16595. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16596. SUMMARY_audio="${SUMMARY_audio} dummy"
  16597. fi
  16598. }
  16599. CheckLibSampleRate()
  16600. {
  16601. # Check whether --enable-libsamplerate was given.
  16602. if test "${enable_libsamplerate+set}" = set; then :
  16603. enableval=$enable_libsamplerate;
  16604. else
  16605. enable_libsamplerate=yes
  16606. fi
  16607. if test x$enable_libsamplerate = xyes; then
  16608. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16609. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16610. have_samplerate_h_hdr=yes
  16611. else
  16612. have_samplerate_h_hdr=no
  16613. fi
  16614. if test x$have_samplerate_h_hdr = xyes; then
  16615. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16616. # Check whether --enable-libsamplerate-shared was given.
  16617. if test "${enable_libsamplerate_shared+set}" = set; then :
  16618. enableval=$enable_libsamplerate_shared;
  16619. else
  16620. enable_libsamplerate_shared=yes
  16621. fi
  16622. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16623. if test x$have_loadso != xyes && \
  16624. test x$enable_libsamplerate_shared = xyes; then
  16625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16626. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16627. fi
  16628. if test x$have_loadso = xyes && \
  16629. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16630. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16631. cat >>confdefs.h <<_ACEOF
  16632. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16633. _ACEOF
  16634. else
  16635. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16636. fi
  16637. fi
  16638. fi
  16639. }
  16640. CheckVisibilityHidden()
  16641. {
  16642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16643. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16644. have_gcc_fvisibility=no
  16645. visibility_CFLAGS="-fvisibility=hidden"
  16646. save_CFLAGS="$CFLAGS"
  16647. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16649. /* end confdefs.h. */
  16650. #if !defined(__GNUC__) || __GNUC__ < 4
  16651. #error SDL only uses visibility attributes in GCC 4 or newer
  16652. #endif
  16653. int
  16654. main ()
  16655. {
  16656. ;
  16657. return 0;
  16658. }
  16659. _ACEOF
  16660. if ac_fn_c_try_compile "$LINENO"; then :
  16661. have_gcc_fvisibility=yes
  16662. fi
  16663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16665. $as_echo "$have_gcc_fvisibility" >&6; }
  16666. CFLAGS="$save_CFLAGS"
  16667. if test x$have_gcc_fvisibility = xyes; then
  16668. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16669. fi
  16670. }
  16671. CheckNoStrictAliasing()
  16672. {
  16673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16674. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16675. have_gcc_no_strict_aliasing=no
  16676. save_CFLAGS="$CFLAGS"
  16677. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16679. /* end confdefs.h. */
  16680. int x = 0;
  16681. int
  16682. main ()
  16683. {
  16684. ;
  16685. return 0;
  16686. }
  16687. _ACEOF
  16688. if ac_fn_c_try_compile "$LINENO"; then :
  16689. have_gcc_no_strict_aliasing=yes
  16690. fi
  16691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16693. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16694. CFLAGS="$save_CFLAGS"
  16695. if test x$have_gcc_no_strict_aliasing = xyes; then
  16696. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16697. fi
  16698. }
  16699. CheckStackBoundary()
  16700. {
  16701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16702. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16703. have_gcc_preferred_stack_boundary=no
  16704. save_CFLAGS="$CFLAGS"
  16705. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16707. /* end confdefs.h. */
  16708. int x = 0;
  16709. int
  16710. main ()
  16711. {
  16712. ;
  16713. return 0;
  16714. }
  16715. _ACEOF
  16716. if ac_fn_c_try_compile "$LINENO"; then :
  16717. have_gcc_preferred_stack_boundary=yes
  16718. fi
  16719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16721. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16722. CFLAGS="$save_CFLAGS"
  16723. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16724. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16725. fi
  16726. }
  16727. CheckDeclarationAfterStatement()
  16728. {
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16730. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16731. have_gcc_declaration_after_statement=no
  16732. save_CFLAGS="$CFLAGS"
  16733. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16735. /* end confdefs.h. */
  16736. int x = 0;
  16737. int
  16738. main ()
  16739. {
  16740. ;
  16741. return 0;
  16742. }
  16743. _ACEOF
  16744. if ac_fn_c_try_compile "$LINENO"; then :
  16745. have_gcc_declaration_after_statement=yes
  16746. fi
  16747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16749. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16750. CFLAGS="$save_CFLAGS"
  16751. if test x$have_gcc_declaration_after_statement = xyes; then
  16752. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16753. fi
  16754. }
  16755. CheckWarnAll()
  16756. {
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16758. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16759. have_gcc_Wall=no
  16760. save_CFLAGS="$CFLAGS"
  16761. CFLAGS="$save_CFLAGS -Wall"
  16762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16763. /* end confdefs.h. */
  16764. int x = 0;
  16765. int
  16766. main ()
  16767. {
  16768. ;
  16769. return 0;
  16770. }
  16771. _ACEOF
  16772. if ac_fn_c_try_compile "$LINENO"; then :
  16773. have_gcc_Wall=yes
  16774. fi
  16775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16777. $as_echo "$have_gcc_Wall" >&6; }
  16778. CFLAGS="$save_CFLAGS"
  16779. if test x$have_gcc_Wall = xyes; then
  16780. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16782. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16783. need_gcc_Wno_multichar=no
  16784. case "$host" in
  16785. *-*-haiku*)
  16786. need_gcc_Wno_multichar=yes
  16787. ;;
  16788. esac
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16790. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16791. if test x$need_gcc_Wno_multichar = xyes; then
  16792. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16793. fi
  16794. fi
  16795. }
  16796. CheckWayland()
  16797. {
  16798. # Check whether --enable-video-wayland was given.
  16799. if test "${enable_video_wayland+set}" = set; then :
  16800. enableval=$enable_video_wayland;
  16801. else
  16802. enable_video_wayland=yes
  16803. fi
  16804. # Check whether --enable-video-wayland-qt-touch was given.
  16805. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16806. enableval=$enable_video_wayland_qt_touch;
  16807. else
  16808. enable_video_wayland_qt_touch=yes
  16809. fi
  16810. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16812. $as_echo_n "checking for Wayland support... " >&6; }
  16813. video_wayland=no
  16814. if test x$video_opengl_egl = xyes && \
  16815. test x$video_opengles_v2 = xyes; then
  16816. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16817. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16818. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16819. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16820. video_wayland=yes
  16821. fi
  16822. fi
  16823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16824. $as_echo "$video_wayland" >&6; }
  16825. if test x$video_wayland = xyes; then
  16826. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16827. if test x$enable_video_wayland_qt_touch = xyes; then
  16828. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16829. fi
  16830. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16831. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16832. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16833. # Check whether --enable-wayland-shared was given.
  16834. if test "${enable_wayland_shared+set}" = set; then :
  16835. enableval=$enable_wayland_shared;
  16836. else
  16837. enable_wayland_shared=maybe
  16838. fi
  16839. case "$host" in
  16840. *)
  16841. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16842. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16843. if test x$wayland_egl_lib = x; then
  16844. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16845. fi
  16846. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16847. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16848. ;;
  16849. esac
  16850. if test x$enable_wayland_shared = xmaybe; then
  16851. enable_wayland_shared=yes
  16852. fi
  16853. if test x$have_loadso != xyes && \
  16854. test x$enable_wayland_shared = xyes; then
  16855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16856. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16857. enable_wayland_shared=no
  16858. fi
  16859. if test x$have_loadso = xyes && \
  16860. test x$enable_wayland_shared = xyes && \
  16861. test x$wayland_client_lib != x && \
  16862. test x$wayland_egl_lib != x && \
  16863. test x$wayland_cursor_lib != x && \
  16864. test x$xkbcommon_lib != x; then
  16865. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16866. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16867. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16868. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16869. cat >>confdefs.h <<_ACEOF
  16870. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16871. _ACEOF
  16872. cat >>confdefs.h <<_ACEOF
  16873. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16874. _ACEOF
  16875. cat >>confdefs.h <<_ACEOF
  16876. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16877. _ACEOF
  16878. cat >>confdefs.h <<_ACEOF
  16879. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16880. _ACEOF
  16881. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16882. else
  16883. enable_wayland_shared=no
  16884. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16885. SUMMARY_video="${SUMMARY_video} wayland"
  16886. fi
  16887. have_video=yes
  16888. fi
  16889. fi
  16890. }
  16891. CheckNativeClient()
  16892. {
  16893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16894. /* end confdefs.h. */
  16895. #if !defined(__native_client__)
  16896. #error "NO NACL"
  16897. #endif
  16898. int
  16899. main ()
  16900. {
  16901. ;
  16902. return 0;
  16903. }
  16904. _ACEOF
  16905. if ac_fn_c_try_compile "$LINENO"; then :
  16906. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16907. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16908. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16909. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16910. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16911. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16912. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16913. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16914. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16915. SUMMARY_audio="${SUMMARY_audio} nacl"
  16916. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16917. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16918. fi
  16919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16920. }
  16921. CheckRPI()
  16922. {
  16923. # Check whether --enable-video-rpi was given.
  16924. if test "${enable_video_rpi+set}" = set; then :
  16925. enableval=$enable_video_rpi;
  16926. else
  16927. enable_video_rpi=yes
  16928. fi
  16929. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16930. pkg_failed=no
  16931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  16932. $as_echo_n "checking for RPI... " >&6; }
  16933. if test -n "$RPI_CFLAGS"; then
  16934. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  16935. elif test -n "$PKG_CONFIG"; then
  16936. if test -n "$PKG_CONFIG" && \
  16937. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  16938. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  16939. ac_status=$?
  16940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16941. test $ac_status = 0; }; then
  16942. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  16943. else
  16944. pkg_failed=yes
  16945. fi
  16946. else
  16947. pkg_failed=untried
  16948. fi
  16949. if test -n "$RPI_LIBS"; then
  16950. pkg_cv_RPI_LIBS="$RPI_LIBS"
  16951. elif test -n "$PKG_CONFIG"; then
  16952. if test -n "$PKG_CONFIG" && \
  16953. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  16954. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  16955. ac_status=$?
  16956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16957. test $ac_status = 0; }; then
  16958. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  16959. else
  16960. pkg_failed=yes
  16961. fi
  16962. else
  16963. pkg_failed=untried
  16964. fi
  16965. if test $pkg_failed = yes; then
  16966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16967. $as_echo "no" >&6; }
  16968. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16969. _pkg_short_errors_supported=yes
  16970. else
  16971. _pkg_short_errors_supported=no
  16972. fi
  16973. if test $_pkg_short_errors_supported = yes; then
  16974. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  16975. else
  16976. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  16977. fi
  16978. # Put the nasty error message in config.log where it belongs
  16979. echo "$RPI_PKG_ERRORS" >&5
  16980. video_rpi=no
  16981. elif test $pkg_failed = untried; then
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16983. $as_echo "no" >&6; }
  16984. video_rpi=no
  16985. else
  16986. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  16987. RPI_LIBS=$pkg_cv_RPI_LIBS
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16989. $as_echo "yes" >&6; }
  16990. video_rpi=yes
  16991. fi
  16992. if test x$video_rpi = xno; then
  16993. if test x$ARCH = xnetbsd; then
  16994. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16995. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16996. else
  16997. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16998. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16999. fi
  17000. fi
  17001. # Save the original compiler flags and libraries
  17002. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17003. # Add the Raspberry Pi compiler flags and libraries
  17004. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17006. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17007. have_video_rpi=no
  17008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17009. /* end confdefs.h. */
  17010. #include <bcm_host.h>
  17011. int
  17012. main ()
  17013. {
  17014. bcm_host_init();
  17015. ;
  17016. return 0;
  17017. }
  17018. _ACEOF
  17019. if ac_fn_c_try_link "$LINENO"; then :
  17020. have_video_rpi=yes
  17021. fi
  17022. rm -f core conftest.err conftest.$ac_objext \
  17023. conftest$ac_exeext conftest.$ac_ext
  17024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17025. $as_echo "$have_video_rpi" >&6; }
  17026. # Restore the compiler flags and libraries
  17027. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17028. if test x$have_video_rpi = xyes; then
  17029. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17030. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17031. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17033. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17034. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17035. SUMMARY_video="${SUMMARY_video} rpi"
  17036. fi
  17037. fi
  17038. }
  17039. CheckX11()
  17040. {
  17041. # Check whether --enable-video-x11 was given.
  17042. if test "${enable_video_x11+set}" = set; then :
  17043. enableval=$enable_video_x11;
  17044. else
  17045. enable_video_x11=yes
  17046. fi
  17047. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17048. case "$host" in
  17049. *-*-darwin*)
  17050. # This isn't necessary for X11, but fixes GLX detection
  17051. if test "x$x_includes" = xNONE && \
  17052. test "x$x_libraries" = xNONE && \
  17053. test -d /usr/X11R6/include && \
  17054. test -d /usr/X11R6/lib; then
  17055. x_includes="/usr/X11R6/include"
  17056. x_libraries="/usr/X11R6/lib"
  17057. fi
  17058. ;;
  17059. esac
  17060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17061. $as_echo_n "checking for X... " >&6; }
  17062. # Check whether --with-x was given.
  17063. if test "${with_x+set}" = set; then :
  17064. withval=$with_x;
  17065. fi
  17066. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17067. if test "x$with_x" = xno; then
  17068. # The user explicitly disabled X.
  17069. have_x=disabled
  17070. else
  17071. case $x_includes,$x_libraries in #(
  17072. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17073. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17074. $as_echo_n "(cached) " >&6
  17075. else
  17076. # One or both of the vars are not set, and there is no cached value.
  17077. ac_x_includes=no ac_x_libraries=no
  17078. rm -f -r conftest.dir
  17079. if mkdir conftest.dir; then
  17080. cd conftest.dir
  17081. cat >Imakefile <<'_ACEOF'
  17082. incroot:
  17083. @echo incroot='${INCROOT}'
  17084. usrlibdir:
  17085. @echo usrlibdir='${USRLIBDIR}'
  17086. libdir:
  17087. @echo libdir='${LIBDIR}'
  17088. _ACEOF
  17089. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17090. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17091. for ac_var in incroot usrlibdir libdir; do
  17092. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17093. done
  17094. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17095. for ac_extension in a so sl dylib la dll; do
  17096. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17097. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17098. ac_im_usrlibdir=$ac_im_libdir; break
  17099. fi
  17100. done
  17101. # Screen out bogus values from the imake configuration. They are
  17102. # bogus both because they are the default anyway, and because
  17103. # using them would break gcc on systems where it needs fixed includes.
  17104. case $ac_im_incroot in
  17105. /usr/include) ac_x_includes= ;;
  17106. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17107. esac
  17108. case $ac_im_usrlibdir in
  17109. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17110. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17111. esac
  17112. fi
  17113. cd ..
  17114. rm -f -r conftest.dir
  17115. fi
  17116. # Standard set of common directories for X headers.
  17117. # Check X11 before X11Rn because it is often a symlink to the current release.
  17118. ac_x_header_dirs='
  17119. /usr/X11/include
  17120. /usr/X11R7/include
  17121. /usr/X11R6/include
  17122. /usr/X11R5/include
  17123. /usr/X11R4/include
  17124. /usr/include/X11
  17125. /usr/include/X11R7
  17126. /usr/include/X11R6
  17127. /usr/include/X11R5
  17128. /usr/include/X11R4
  17129. /usr/local/X11/include
  17130. /usr/local/X11R7/include
  17131. /usr/local/X11R6/include
  17132. /usr/local/X11R5/include
  17133. /usr/local/X11R4/include
  17134. /usr/local/include/X11
  17135. /usr/local/include/X11R7
  17136. /usr/local/include/X11R6
  17137. /usr/local/include/X11R5
  17138. /usr/local/include/X11R4
  17139. /usr/X386/include
  17140. /usr/x386/include
  17141. /usr/XFree86/include/X11
  17142. /usr/include
  17143. /usr/local/include
  17144. /usr/unsupported/include
  17145. /usr/athena/include
  17146. /usr/local/x11r5/include
  17147. /usr/lpp/Xamples/include
  17148. /usr/openwin/include
  17149. /usr/openwin/share/include'
  17150. if test "$ac_x_includes" = no; then
  17151. # Guess where to find include files, by looking for Xlib.h.
  17152. # First, try using that file with no special directory specified.
  17153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17154. /* end confdefs.h. */
  17155. #include <X11/Xlib.h>
  17156. _ACEOF
  17157. if ac_fn_c_try_cpp "$LINENO"; then :
  17158. # We can compile using X headers with no special include directory.
  17159. ac_x_includes=
  17160. else
  17161. for ac_dir in $ac_x_header_dirs; do
  17162. if test -r "$ac_dir/X11/Xlib.h"; then
  17163. ac_x_includes=$ac_dir
  17164. break
  17165. fi
  17166. done
  17167. fi
  17168. rm -f conftest.err conftest.i conftest.$ac_ext
  17169. fi # $ac_x_includes = no
  17170. if test "$ac_x_libraries" = no; then
  17171. # Check for the libraries.
  17172. # See if we find them without any special options.
  17173. # Don't add to $LIBS permanently.
  17174. ac_save_LIBS=$LIBS
  17175. LIBS="-lX11 $LIBS"
  17176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17177. /* end confdefs.h. */
  17178. #include <X11/Xlib.h>
  17179. int
  17180. main ()
  17181. {
  17182. XrmInitialize ()
  17183. ;
  17184. return 0;
  17185. }
  17186. _ACEOF
  17187. if ac_fn_c_try_link "$LINENO"; then :
  17188. LIBS=$ac_save_LIBS
  17189. # We can link X programs with no special library path.
  17190. ac_x_libraries=
  17191. else
  17192. LIBS=$ac_save_LIBS
  17193. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17194. do
  17195. # Don't even attempt the hair of trying to link an X program!
  17196. for ac_extension in a so sl dylib la dll; do
  17197. if test -r "$ac_dir/libX11.$ac_extension"; then
  17198. ac_x_libraries=$ac_dir
  17199. break 2
  17200. fi
  17201. done
  17202. done
  17203. fi
  17204. rm -f core conftest.err conftest.$ac_objext \
  17205. conftest$ac_exeext conftest.$ac_ext
  17206. fi # $ac_x_libraries = no
  17207. case $ac_x_includes,$ac_x_libraries in #(
  17208. no,* | *,no | *\'*)
  17209. # Didn't find X, or a directory has "'" in its name.
  17210. ac_cv_have_x="have_x=no";; #(
  17211. *)
  17212. # Record where we found X for the cache.
  17213. ac_cv_have_x="have_x=yes\
  17214. ac_x_includes='$ac_x_includes'\
  17215. ac_x_libraries='$ac_x_libraries'"
  17216. esac
  17217. fi
  17218. ;; #(
  17219. *) have_x=yes;;
  17220. esac
  17221. eval "$ac_cv_have_x"
  17222. fi # $with_x != no
  17223. if test "$have_x" != yes; then
  17224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17225. $as_echo "$have_x" >&6; }
  17226. no_x=yes
  17227. else
  17228. # If each of the values was on the command line, it overrides each guess.
  17229. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17230. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17231. # Update the cache value to reflect the command line values.
  17232. ac_cv_have_x="have_x=yes\
  17233. ac_x_includes='$x_includes'\
  17234. ac_x_libraries='$x_libraries'"
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17236. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17237. fi
  17238. if test "$no_x" = yes; then
  17239. # Not all programs may use this symbol, but it does not hurt to define it.
  17240. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17241. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17242. else
  17243. if test -n "$x_includes"; then
  17244. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17245. fi
  17246. # It would also be nice to do this for all -L options, not just this one.
  17247. if test -n "$x_libraries"; then
  17248. X_LIBS="$X_LIBS -L$x_libraries"
  17249. # For Solaris; some versions of Sun CC require a space after -R and
  17250. # others require no space. Words are not sufficient . . . .
  17251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17252. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17253. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17254. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17255. ac_c_werror_flag=yes
  17256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17257. /* end confdefs.h. */
  17258. int
  17259. main ()
  17260. {
  17261. ;
  17262. return 0;
  17263. }
  17264. _ACEOF
  17265. if ac_fn_c_try_link "$LINENO"; then :
  17266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17267. $as_echo "no" >&6; }
  17268. X_LIBS="$X_LIBS -R$x_libraries"
  17269. else
  17270. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17272. /* end confdefs.h. */
  17273. int
  17274. main ()
  17275. {
  17276. ;
  17277. return 0;
  17278. }
  17279. _ACEOF
  17280. if ac_fn_c_try_link "$LINENO"; then :
  17281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17282. $as_echo "yes" >&6; }
  17283. X_LIBS="$X_LIBS -R $x_libraries"
  17284. else
  17285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17286. $as_echo "neither works" >&6; }
  17287. fi
  17288. rm -f core conftest.err conftest.$ac_objext \
  17289. conftest$ac_exeext conftest.$ac_ext
  17290. fi
  17291. rm -f core conftest.err conftest.$ac_objext \
  17292. conftest$ac_exeext conftest.$ac_ext
  17293. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17294. LIBS=$ac_xsave_LIBS
  17295. fi
  17296. # Check for system-dependent libraries X programs must link with.
  17297. # Do this before checking for the system-independent R6 libraries
  17298. # (-lICE), since we may need -lsocket or whatever for X linking.
  17299. if test "$ISC" = yes; then
  17300. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17301. else
  17302. # Martyn Johnson says this is needed for Ultrix, if the X
  17303. # libraries were built with DECnet support. And Karl Berry says
  17304. # the Alpha needs dnet_stub (dnet does not exist).
  17305. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17307. /* end confdefs.h. */
  17308. /* Override any GCC internal prototype to avoid an error.
  17309. Use char because int might match the return type of a GCC
  17310. builtin and then its argument prototype would still apply. */
  17311. #ifdef __cplusplus
  17312. extern "C"
  17313. #endif
  17314. char XOpenDisplay ();
  17315. int
  17316. main ()
  17317. {
  17318. return XOpenDisplay ();
  17319. ;
  17320. return 0;
  17321. }
  17322. _ACEOF
  17323. if ac_fn_c_try_link "$LINENO"; then :
  17324. else
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17326. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17327. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17328. $as_echo_n "(cached) " >&6
  17329. else
  17330. ac_check_lib_save_LIBS=$LIBS
  17331. LIBS="-ldnet $LIBS"
  17332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17333. /* end confdefs.h. */
  17334. /* Override any GCC internal prototype to avoid an error.
  17335. Use char because int might match the return type of a GCC
  17336. builtin and then its argument prototype would still apply. */
  17337. #ifdef __cplusplus
  17338. extern "C"
  17339. #endif
  17340. char dnet_ntoa ();
  17341. int
  17342. main ()
  17343. {
  17344. return dnet_ntoa ();
  17345. ;
  17346. return 0;
  17347. }
  17348. _ACEOF
  17349. if ac_fn_c_try_link "$LINENO"; then :
  17350. ac_cv_lib_dnet_dnet_ntoa=yes
  17351. else
  17352. ac_cv_lib_dnet_dnet_ntoa=no
  17353. fi
  17354. rm -f core conftest.err conftest.$ac_objext \
  17355. conftest$ac_exeext conftest.$ac_ext
  17356. LIBS=$ac_check_lib_save_LIBS
  17357. fi
  17358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17359. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17360. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17361. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17362. fi
  17363. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17365. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17366. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17367. $as_echo_n "(cached) " >&6
  17368. else
  17369. ac_check_lib_save_LIBS=$LIBS
  17370. LIBS="-ldnet_stub $LIBS"
  17371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17372. /* end confdefs.h. */
  17373. /* Override any GCC internal prototype to avoid an error.
  17374. Use char because int might match the return type of a GCC
  17375. builtin and then its argument prototype would still apply. */
  17376. #ifdef __cplusplus
  17377. extern "C"
  17378. #endif
  17379. char dnet_ntoa ();
  17380. int
  17381. main ()
  17382. {
  17383. return dnet_ntoa ();
  17384. ;
  17385. return 0;
  17386. }
  17387. _ACEOF
  17388. if ac_fn_c_try_link "$LINENO"; then :
  17389. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17390. else
  17391. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17392. fi
  17393. rm -f core conftest.err conftest.$ac_objext \
  17394. conftest$ac_exeext conftest.$ac_ext
  17395. LIBS=$ac_check_lib_save_LIBS
  17396. fi
  17397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17398. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17399. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17400. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17401. fi
  17402. fi
  17403. fi
  17404. rm -f core conftest.err conftest.$ac_objext \
  17405. conftest$ac_exeext conftest.$ac_ext
  17406. LIBS="$ac_xsave_LIBS"
  17407. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17408. # to get the SysV transport functions.
  17409. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17410. # needs -lnsl.
  17411. # The nsl library prevents programs from opening the X display
  17412. # on Irix 5.2, according to T.E. Dickey.
  17413. # The functions gethostbyname, getservbyname, and inet_addr are
  17414. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17415. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17416. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17417. fi
  17418. if test $ac_cv_func_gethostbyname = no; then
  17419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17420. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17421. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17422. $as_echo_n "(cached) " >&6
  17423. else
  17424. ac_check_lib_save_LIBS=$LIBS
  17425. LIBS="-lnsl $LIBS"
  17426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17427. /* end confdefs.h. */
  17428. /* Override any GCC internal prototype to avoid an error.
  17429. Use char because int might match the return type of a GCC
  17430. builtin and then its argument prototype would still apply. */
  17431. #ifdef __cplusplus
  17432. extern "C"
  17433. #endif
  17434. char gethostbyname ();
  17435. int
  17436. main ()
  17437. {
  17438. return gethostbyname ();
  17439. ;
  17440. return 0;
  17441. }
  17442. _ACEOF
  17443. if ac_fn_c_try_link "$LINENO"; then :
  17444. ac_cv_lib_nsl_gethostbyname=yes
  17445. else
  17446. ac_cv_lib_nsl_gethostbyname=no
  17447. fi
  17448. rm -f core conftest.err conftest.$ac_objext \
  17449. conftest$ac_exeext conftest.$ac_ext
  17450. LIBS=$ac_check_lib_save_LIBS
  17451. fi
  17452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17453. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17454. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17455. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17456. fi
  17457. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17459. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17460. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17461. $as_echo_n "(cached) " >&6
  17462. else
  17463. ac_check_lib_save_LIBS=$LIBS
  17464. LIBS="-lbsd $LIBS"
  17465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17466. /* end confdefs.h. */
  17467. /* Override any GCC internal prototype to avoid an error.
  17468. Use char because int might match the return type of a GCC
  17469. builtin and then its argument prototype would still apply. */
  17470. #ifdef __cplusplus
  17471. extern "C"
  17472. #endif
  17473. char gethostbyname ();
  17474. int
  17475. main ()
  17476. {
  17477. return gethostbyname ();
  17478. ;
  17479. return 0;
  17480. }
  17481. _ACEOF
  17482. if ac_fn_c_try_link "$LINENO"; then :
  17483. ac_cv_lib_bsd_gethostbyname=yes
  17484. else
  17485. ac_cv_lib_bsd_gethostbyname=no
  17486. fi
  17487. rm -f core conftest.err conftest.$ac_objext \
  17488. conftest$ac_exeext conftest.$ac_ext
  17489. LIBS=$ac_check_lib_save_LIBS
  17490. fi
  17491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17492. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17493. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17494. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17495. fi
  17496. fi
  17497. fi
  17498. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17499. # socket/setsockopt and other routines are undefined under SCO ODT
  17500. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17501. # on later versions), says Simon Leinen: it contains gethostby*
  17502. # variants that don't use the name server (or something). -lsocket
  17503. # must be given before -lnsl if both are needed. We assume that
  17504. # if connect needs -lnsl, so does gethostbyname.
  17505. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17506. if test "x$ac_cv_func_connect" = xyes; then :
  17507. fi
  17508. if test $ac_cv_func_connect = no; then
  17509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17510. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17511. if ${ac_cv_lib_socket_connect+:} false; then :
  17512. $as_echo_n "(cached) " >&6
  17513. else
  17514. ac_check_lib_save_LIBS=$LIBS
  17515. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17517. /* end confdefs.h. */
  17518. /* Override any GCC internal prototype to avoid an error.
  17519. Use char because int might match the return type of a GCC
  17520. builtin and then its argument prototype would still apply. */
  17521. #ifdef __cplusplus
  17522. extern "C"
  17523. #endif
  17524. char connect ();
  17525. int
  17526. main ()
  17527. {
  17528. return connect ();
  17529. ;
  17530. return 0;
  17531. }
  17532. _ACEOF
  17533. if ac_fn_c_try_link "$LINENO"; then :
  17534. ac_cv_lib_socket_connect=yes
  17535. else
  17536. ac_cv_lib_socket_connect=no
  17537. fi
  17538. rm -f core conftest.err conftest.$ac_objext \
  17539. conftest$ac_exeext conftest.$ac_ext
  17540. LIBS=$ac_check_lib_save_LIBS
  17541. fi
  17542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17543. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17544. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17545. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17546. fi
  17547. fi
  17548. # Guillermo Gomez says -lposix is necessary on A/UX.
  17549. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17550. if test "x$ac_cv_func_remove" = xyes; then :
  17551. fi
  17552. if test $ac_cv_func_remove = no; then
  17553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17554. $as_echo_n "checking for remove in -lposix... " >&6; }
  17555. if ${ac_cv_lib_posix_remove+:} false; then :
  17556. $as_echo_n "(cached) " >&6
  17557. else
  17558. ac_check_lib_save_LIBS=$LIBS
  17559. LIBS="-lposix $LIBS"
  17560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17561. /* end confdefs.h. */
  17562. /* Override any GCC internal prototype to avoid an error.
  17563. Use char because int might match the return type of a GCC
  17564. builtin and then its argument prototype would still apply. */
  17565. #ifdef __cplusplus
  17566. extern "C"
  17567. #endif
  17568. char remove ();
  17569. int
  17570. main ()
  17571. {
  17572. return remove ();
  17573. ;
  17574. return 0;
  17575. }
  17576. _ACEOF
  17577. if ac_fn_c_try_link "$LINENO"; then :
  17578. ac_cv_lib_posix_remove=yes
  17579. else
  17580. ac_cv_lib_posix_remove=no
  17581. fi
  17582. rm -f core conftest.err conftest.$ac_objext \
  17583. conftest$ac_exeext conftest.$ac_ext
  17584. LIBS=$ac_check_lib_save_LIBS
  17585. fi
  17586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17587. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17588. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17589. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17590. fi
  17591. fi
  17592. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17593. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17594. if test "x$ac_cv_func_shmat" = xyes; then :
  17595. fi
  17596. if test $ac_cv_func_shmat = no; then
  17597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17598. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17599. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17600. $as_echo_n "(cached) " >&6
  17601. else
  17602. ac_check_lib_save_LIBS=$LIBS
  17603. LIBS="-lipc $LIBS"
  17604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17605. /* end confdefs.h. */
  17606. /* Override any GCC internal prototype to avoid an error.
  17607. Use char because int might match the return type of a GCC
  17608. builtin and then its argument prototype would still apply. */
  17609. #ifdef __cplusplus
  17610. extern "C"
  17611. #endif
  17612. char shmat ();
  17613. int
  17614. main ()
  17615. {
  17616. return shmat ();
  17617. ;
  17618. return 0;
  17619. }
  17620. _ACEOF
  17621. if ac_fn_c_try_link "$LINENO"; then :
  17622. ac_cv_lib_ipc_shmat=yes
  17623. else
  17624. ac_cv_lib_ipc_shmat=no
  17625. fi
  17626. rm -f core conftest.err conftest.$ac_objext \
  17627. conftest$ac_exeext conftest.$ac_ext
  17628. LIBS=$ac_check_lib_save_LIBS
  17629. fi
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17631. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17632. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17633. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17634. fi
  17635. fi
  17636. fi
  17637. # Check for libraries that X11R6 Xt/Xaw programs need.
  17638. ac_save_LDFLAGS=$LDFLAGS
  17639. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17640. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17641. # check for ICE first), but we must link in the order -lSM -lICE or
  17642. # we get undefined symbols. So assume we have SM if we have ICE.
  17643. # These have to be linked with before -lX11, unlike the other
  17644. # libraries we check for below, so use a different variable.
  17645. # John Interrante, Karl Berry
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17647. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17648. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17649. $as_echo_n "(cached) " >&6
  17650. else
  17651. ac_check_lib_save_LIBS=$LIBS
  17652. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17654. /* end confdefs.h. */
  17655. /* Override any GCC internal prototype to avoid an error.
  17656. Use char because int might match the return type of a GCC
  17657. builtin and then its argument prototype would still apply. */
  17658. #ifdef __cplusplus
  17659. extern "C"
  17660. #endif
  17661. char IceConnectionNumber ();
  17662. int
  17663. main ()
  17664. {
  17665. return IceConnectionNumber ();
  17666. ;
  17667. return 0;
  17668. }
  17669. _ACEOF
  17670. if ac_fn_c_try_link "$LINENO"; then :
  17671. ac_cv_lib_ICE_IceConnectionNumber=yes
  17672. else
  17673. ac_cv_lib_ICE_IceConnectionNumber=no
  17674. fi
  17675. rm -f core conftest.err conftest.$ac_objext \
  17676. conftest$ac_exeext conftest.$ac_ext
  17677. LIBS=$ac_check_lib_save_LIBS
  17678. fi
  17679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17680. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17681. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17682. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17683. fi
  17684. LDFLAGS=$ac_save_LDFLAGS
  17685. fi
  17686. if test x$have_x = xyes; then
  17687. # Check whether --enable-x11-shared was given.
  17688. if test "${enable_x11_shared+set}" = set; then :
  17689. enableval=$enable_x11_shared;
  17690. else
  17691. enable_x11_shared=maybe
  17692. fi
  17693. case "$host" in
  17694. *-*-darwin*)
  17695. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17696. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17697. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17698. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17699. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17700. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17701. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17702. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17703. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17704. ;;
  17705. *-*-openbsd*)
  17706. x11_lib='libX11.so'
  17707. x11ext_lib='libXext.so'
  17708. xcursor_lib='libXcursor.so'
  17709. xinerama_lib='libXinerama.so'
  17710. xinput_lib='libXi.so'
  17711. xrandr_lib='libXrandr.so'
  17712. xrender_lib='libXrender.so'
  17713. xss_lib='libXss.so'
  17714. xvidmode_lib='libXxf86vm.so'
  17715. ;;
  17716. *)
  17717. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17718. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17719. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17720. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17721. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17722. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17723. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17724. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17725. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17726. ;;
  17727. esac
  17728. if test x$ac_cv_func_shmat != xyes; then
  17729. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17730. fi
  17731. CFLAGS="$CFLAGS $X_CFLAGS"
  17732. LDFLAGS="$LDFLAGS $X_LIBS"
  17733. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17734. #include <X11/Xproto.h>
  17735. "
  17736. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17737. have_xext_h_hdr=yes
  17738. else
  17739. have_xext_h_hdr=no
  17740. fi
  17741. if test x$have_xext_h_hdr != xyes; then
  17742. as_fn_error $? "
  17743. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17744. " "$LINENO" 5
  17745. fi
  17746. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17747. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17748. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17749. # Needed so SDL applications can include SDL_syswm.h
  17750. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17751. if test x$enable_x11_shared = xmaybe; then
  17752. enable_x11_shared=yes
  17753. fi
  17754. if test x$have_loadso != xyes && \
  17755. test x$enable_x11_shared = xyes; then
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17757. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17758. enable_x11_shared=no
  17759. fi
  17760. if test x$have_loadso = xyes && \
  17761. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17762. echo "-- dynamic libX11 -> $x11_lib"
  17763. echo "-- dynamic libX11ext -> $x11ext_lib"
  17764. cat >>confdefs.h <<_ACEOF
  17765. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17766. _ACEOF
  17767. cat >>confdefs.h <<_ACEOF
  17768. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17769. _ACEOF
  17770. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17771. else
  17772. enable_x11_shared=no
  17773. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17774. SUMMARY_video="${SUMMARY_video} x11"
  17775. fi
  17776. have_video=yes
  17777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17778. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17779. have_const_param_XextAddDisplay=no
  17780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17781. /* end confdefs.h. */
  17782. #include <X11/Xlib.h>
  17783. #include <X11/Xproto.h>
  17784. #include <X11/extensions/Xext.h>
  17785. #include <X11/extensions/extutil.h>
  17786. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17787. int
  17788. main ()
  17789. {
  17790. ;
  17791. return 0;
  17792. }
  17793. _ACEOF
  17794. if ac_fn_c_try_compile "$LINENO"; then :
  17795. have_const_param_XextAddDisplay=yes
  17796. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17797. fi
  17798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17800. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17802. $as_echo_n "checking for XGenericEvent... " >&6; }
  17803. have_XGenericEvent=no
  17804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17805. /* end confdefs.h. */
  17806. #include <X11/Xlib.h>
  17807. int
  17808. main ()
  17809. {
  17810. Display *display;
  17811. XEvent event;
  17812. XGenericEventCookie *cookie = &event.xcookie;
  17813. XNextEvent(display, &event);
  17814. XGetEventData(display, cookie);
  17815. XFreeEventData(display, cookie);
  17816. ;
  17817. return 0;
  17818. }
  17819. _ACEOF
  17820. if ac_fn_c_try_compile "$LINENO"; then :
  17821. have_XGenericEvent=yes
  17822. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17823. fi
  17824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17826. $as_echo "$have_XGenericEvent" >&6; }
  17827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17828. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17829. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17830. $as_echo_n "(cached) " >&6
  17831. else
  17832. ac_check_lib_save_LIBS=$LIBS
  17833. LIBS="-lX11 $LIBS"
  17834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17835. /* end confdefs.h. */
  17836. /* Override any GCC internal prototype to avoid an error.
  17837. Use char because int might match the return type of a GCC
  17838. builtin and then its argument prototype would still apply. */
  17839. #ifdef __cplusplus
  17840. extern "C"
  17841. #endif
  17842. char XkbKeycodeToKeysym ();
  17843. int
  17844. main ()
  17845. {
  17846. return XkbKeycodeToKeysym ();
  17847. ;
  17848. return 0;
  17849. }
  17850. _ACEOF
  17851. if ac_fn_c_try_link "$LINENO"; then :
  17852. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17853. else
  17854. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17855. fi
  17856. rm -f core conftest.err conftest.$ac_objext \
  17857. conftest$ac_exeext conftest.$ac_ext
  17858. LIBS=$ac_check_lib_save_LIBS
  17859. fi
  17860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17861. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17862. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17863. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17864. fi
  17865. # Check whether --enable-video-x11-xcursor was given.
  17866. if test "${enable_video_x11_xcursor+set}" = set; then :
  17867. enableval=$enable_video_x11_xcursor;
  17868. else
  17869. enable_video_x11_xcursor=yes
  17870. fi
  17871. if test x$enable_video_x11_xcursor = xyes; then
  17872. definitely_enable_video_x11_xcursor=no
  17873. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17874. "
  17875. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17876. have_xcursor_h_hdr=yes
  17877. else
  17878. have_xcursor_h_hdr=no
  17879. fi
  17880. if test x$have_xcursor_h_hdr = xyes; then
  17881. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17882. echo "-- dynamic libXcursor -> $xcursor_lib"
  17883. cat >>confdefs.h <<_ACEOF
  17884. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17885. _ACEOF
  17886. definitely_enable_video_x11_xcursor=yes
  17887. else
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17889. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17890. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17891. $as_echo_n "(cached) " >&6
  17892. else
  17893. ac_check_lib_save_LIBS=$LIBS
  17894. LIBS="-lXcursor $LIBS"
  17895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17896. /* end confdefs.h. */
  17897. /* Override any GCC internal prototype to avoid an error.
  17898. Use char because int might match the return type of a GCC
  17899. builtin and then its argument prototype would still apply. */
  17900. #ifdef __cplusplus
  17901. extern "C"
  17902. #endif
  17903. char XcursorImageCreate ();
  17904. int
  17905. main ()
  17906. {
  17907. return XcursorImageCreate ();
  17908. ;
  17909. return 0;
  17910. }
  17911. _ACEOF
  17912. if ac_fn_c_try_link "$LINENO"; then :
  17913. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17914. else
  17915. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17916. fi
  17917. rm -f core conftest.err conftest.$ac_objext \
  17918. conftest$ac_exeext conftest.$ac_ext
  17919. LIBS=$ac_check_lib_save_LIBS
  17920. fi
  17921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17922. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17923. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17924. have_xcursor_lib=yes
  17925. fi
  17926. if test x$have_xcursor_lib = xyes ; then
  17927. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17928. definitely_enable_video_x11_xcursor=yes
  17929. fi
  17930. fi
  17931. fi
  17932. fi
  17933. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17934. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17935. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17936. fi
  17937. # Check whether --enable-video-x11-xdbe was given.
  17938. if test "${enable_video_x11_xdbe+set}" = set; then :
  17939. enableval=$enable_video_x11_xdbe;
  17940. else
  17941. enable_video_x11_xdbe=yes
  17942. fi
  17943. if test x$enable_video_x11_xdbe = xyes; then
  17944. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17945. "
  17946. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17947. have_dbe_h_hdr=yes
  17948. else
  17949. have_dbe_h_hdr=no
  17950. fi
  17951. if test x$have_dbe_h_hdr = xyes; then
  17952. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17953. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17954. fi
  17955. fi
  17956. # Check whether --enable-video-x11-xinerama was given.
  17957. if test "${enable_video_x11_xinerama+set}" = set; then :
  17958. enableval=$enable_video_x11_xinerama;
  17959. else
  17960. enable_video_x11_xinerama=yes
  17961. fi
  17962. if test x$enable_video_x11_xinerama = xyes; then
  17963. definitely_enable_video_x11_xinerama=no
  17964. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17965. "
  17966. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17967. have_xinerama_h_hdr=yes
  17968. else
  17969. have_xinerama_h_hdr=no
  17970. fi
  17971. if test x$have_xinerama_h_hdr = xyes; then
  17972. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17973. echo "-- dynamic libXinerama -> $xinerama_lib"
  17974. cat >>confdefs.h <<_ACEOF
  17975. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17976. _ACEOF
  17977. definitely_enable_video_x11_xinerama=yes
  17978. else
  17979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17980. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17981. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17982. $as_echo_n "(cached) " >&6
  17983. else
  17984. ac_check_lib_save_LIBS=$LIBS
  17985. LIBS="-lXinerama $LIBS"
  17986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17987. /* end confdefs.h. */
  17988. /* Override any GCC internal prototype to avoid an error.
  17989. Use char because int might match the return type of a GCC
  17990. builtin and then its argument prototype would still apply. */
  17991. #ifdef __cplusplus
  17992. extern "C"
  17993. #endif
  17994. char XineramaQueryExtension ();
  17995. int
  17996. main ()
  17997. {
  17998. return XineramaQueryExtension ();
  17999. ;
  18000. return 0;
  18001. }
  18002. _ACEOF
  18003. if ac_fn_c_try_link "$LINENO"; then :
  18004. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18005. else
  18006. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18007. fi
  18008. rm -f core conftest.err conftest.$ac_objext \
  18009. conftest$ac_exeext conftest.$ac_ext
  18010. LIBS=$ac_check_lib_save_LIBS
  18011. fi
  18012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18013. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18014. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18015. have_xinerama_lib=yes
  18016. fi
  18017. if test x$have_xinerama_lib = xyes ; then
  18018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18019. definitely_enable_video_x11_xinerama=yes
  18020. fi
  18021. fi
  18022. fi
  18023. fi
  18024. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18025. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18026. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18027. fi
  18028. # Check whether --enable-video-x11-xinput was given.
  18029. if test "${enable_video_x11_xinput+set}" = set; then :
  18030. enableval=$enable_video_x11_xinput;
  18031. else
  18032. enable_video_x11_xinput=yes
  18033. fi
  18034. if test x$enable_video_x11_xinput = xyes; then
  18035. definitely_enable_video_x11_xinput=no
  18036. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18037. "
  18038. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18039. have_xinput_h_hdr=yes
  18040. else
  18041. have_xinput_h_hdr=no
  18042. fi
  18043. if test x$have_xinput_h_hdr = xyes; then
  18044. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18045. echo "-- dynamic libXi -> $xinput_lib"
  18046. cat >>confdefs.h <<_ACEOF
  18047. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18048. _ACEOF
  18049. definitely_enable_video_x11_xinput=yes
  18050. else
  18051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18052. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18053. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18054. $as_echo_n "(cached) " >&6
  18055. else
  18056. ac_check_lib_save_LIBS=$LIBS
  18057. LIBS="-lXi $LIBS"
  18058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18059. /* end confdefs.h. */
  18060. /* Override any GCC internal prototype to avoid an error.
  18061. Use char because int might match the return type of a GCC
  18062. builtin and then its argument prototype would still apply. */
  18063. #ifdef __cplusplus
  18064. extern "C"
  18065. #endif
  18066. char XOpenDevice ();
  18067. int
  18068. main ()
  18069. {
  18070. return XOpenDevice ();
  18071. ;
  18072. return 0;
  18073. }
  18074. _ACEOF
  18075. if ac_fn_c_try_link "$LINENO"; then :
  18076. ac_cv_lib_Xi_XOpenDevice=yes
  18077. else
  18078. ac_cv_lib_Xi_XOpenDevice=no
  18079. fi
  18080. rm -f core conftest.err conftest.$ac_objext \
  18081. conftest$ac_exeext conftest.$ac_ext
  18082. LIBS=$ac_check_lib_save_LIBS
  18083. fi
  18084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18085. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18086. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18087. have_xinput_lib=yes
  18088. fi
  18089. if test x$have_xinput_lib = xyes ; then
  18090. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18091. definitely_enable_video_x11_xinput=yes
  18092. fi
  18093. fi
  18094. fi
  18095. fi
  18096. if test x$definitely_enable_video_x11_xinput = xyes; then
  18097. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18098. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18100. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18101. have_xinput2_multitouch=no
  18102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18103. /* end confdefs.h. */
  18104. #include <X11/Xlib.h>
  18105. #include <X11/Xproto.h>
  18106. #include <X11/extensions/XInput2.h>
  18107. int
  18108. main ()
  18109. {
  18110. int event_type = XI_TouchBegin;
  18111. XITouchClassInfo *t;
  18112. ;
  18113. return 0;
  18114. }
  18115. _ACEOF
  18116. if ac_fn_c_try_compile "$LINENO"; then :
  18117. have_xinput2_multitouch=yes
  18118. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18119. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18120. fi
  18121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18123. $as_echo "$have_xinput2_multitouch" >&6; }
  18124. fi
  18125. # Check whether --enable-video-x11-xrandr was given.
  18126. if test "${enable_video_x11_xrandr+set}" = set; then :
  18127. enableval=$enable_video_x11_xrandr;
  18128. else
  18129. enable_video_x11_xrandr=yes
  18130. fi
  18131. if test x$enable_video_x11_xrandr = xyes; then
  18132. definitely_enable_video_x11_xrandr=no
  18133. have_xrandr_h_hdr=no
  18134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18135. /* end confdefs.h. */
  18136. #include <X11/Xlib.h>
  18137. #include <X11/extensions/Xrandr.h>
  18138. int
  18139. main ()
  18140. {
  18141. XRRScreenResources *res = NULL;
  18142. ;
  18143. return 0;
  18144. }
  18145. _ACEOF
  18146. if ac_fn_c_try_compile "$LINENO"; then :
  18147. have_xrandr_h_hdr=yes
  18148. fi
  18149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18150. if test x$have_xrandr_h_hdr = xyes; then
  18151. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18152. echo "-- dynamic libXrandr -> $xrandr_lib"
  18153. cat >>confdefs.h <<_ACEOF
  18154. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18155. _ACEOF
  18156. definitely_enable_video_x11_xrandr=yes
  18157. else
  18158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18159. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18160. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18161. $as_echo_n "(cached) " >&6
  18162. else
  18163. ac_check_lib_save_LIBS=$LIBS
  18164. LIBS="-lXrandr $LIBS"
  18165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18166. /* end confdefs.h. */
  18167. /* Override any GCC internal prototype to avoid an error.
  18168. Use char because int might match the return type of a GCC
  18169. builtin and then its argument prototype would still apply. */
  18170. #ifdef __cplusplus
  18171. extern "C"
  18172. #endif
  18173. char XRRQueryExtension ();
  18174. int
  18175. main ()
  18176. {
  18177. return XRRQueryExtension ();
  18178. ;
  18179. return 0;
  18180. }
  18181. _ACEOF
  18182. if ac_fn_c_try_link "$LINENO"; then :
  18183. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18184. else
  18185. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18186. fi
  18187. rm -f core conftest.err conftest.$ac_objext \
  18188. conftest$ac_exeext conftest.$ac_ext
  18189. LIBS=$ac_check_lib_save_LIBS
  18190. fi
  18191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18192. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18193. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18194. have_xrandr_lib=yes
  18195. fi
  18196. if test x$have_xrandr_lib = xyes ; then
  18197. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18198. definitely_enable_video_x11_xrandr=yes
  18199. fi
  18200. fi
  18201. fi
  18202. fi
  18203. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18204. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18205. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18206. fi
  18207. # Check whether --enable-video-x11-scrnsaver was given.
  18208. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18209. enableval=$enable_video_x11_scrnsaver;
  18210. else
  18211. enable_video_x11_scrnsaver=yes
  18212. fi
  18213. if test x$enable_video_x11_scrnsaver = xyes; then
  18214. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18215. "
  18216. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18217. have_scrnsaver_h_hdr=yes
  18218. else
  18219. have_scrnsaver_h_hdr=no
  18220. fi
  18221. if test x$have_scrnsaver_h_hdr = xyes; then
  18222. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18223. echo "-- dynamic libXss -> $xss_lib"
  18224. cat >>confdefs.h <<_ACEOF
  18225. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18226. _ACEOF
  18227. definitely_enable_video_x11_scrnsaver=yes
  18228. else
  18229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18230. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18231. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18232. $as_echo_n "(cached) " >&6
  18233. else
  18234. ac_check_lib_save_LIBS=$LIBS
  18235. LIBS="-lXss $LIBS"
  18236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18237. /* end confdefs.h. */
  18238. /* Override any GCC internal prototype to avoid an error.
  18239. Use char because int might match the return type of a GCC
  18240. builtin and then its argument prototype would still apply. */
  18241. #ifdef __cplusplus
  18242. extern "C"
  18243. #endif
  18244. char XScreenSaverSuspend ();
  18245. int
  18246. main ()
  18247. {
  18248. return XScreenSaverSuspend ();
  18249. ;
  18250. return 0;
  18251. }
  18252. _ACEOF
  18253. if ac_fn_c_try_link "$LINENO"; then :
  18254. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18255. else
  18256. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18257. fi
  18258. rm -f core conftest.err conftest.$ac_objext \
  18259. conftest$ac_exeext conftest.$ac_ext
  18260. LIBS=$ac_check_lib_save_LIBS
  18261. fi
  18262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18263. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18264. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18265. have_xss_lib=yes
  18266. fi
  18267. if test x$have_xss_lib = xyes ; then
  18268. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18269. definitely_enable_video_x11_scrnsaver=yes
  18270. fi
  18271. fi
  18272. fi
  18273. fi
  18274. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18275. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18276. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18277. fi
  18278. # Check whether --enable-video-x11-xshape was given.
  18279. if test "${enable_video_x11_xshape+set}" = set; then :
  18280. enableval=$enable_video_x11_xshape;
  18281. else
  18282. enable_video_x11_xshape=yes
  18283. fi
  18284. if test x$enable_video_x11_xshape = xyes; then
  18285. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18286. "
  18287. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18288. have_shape_h_hdr=yes
  18289. else
  18290. have_shape_h_hdr=no
  18291. fi
  18292. if test x$have_shape_h_hdr = xyes; then
  18293. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18294. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18295. fi
  18296. fi
  18297. # Check whether --enable-video-x11-vm was given.
  18298. if test "${enable_video_x11_vm+set}" = set; then :
  18299. enableval=$enable_video_x11_vm;
  18300. else
  18301. enable_video_x11_vm=yes
  18302. fi
  18303. if test x$enable_video_x11_vm = xyes; then
  18304. definitely_enable_video_x11_vm=no
  18305. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18306. "
  18307. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18308. have_vm_h_hdr=yes
  18309. else
  18310. have_vm_h_hdr=no
  18311. fi
  18312. if test x$have_vm_h_hdr = xyes; then
  18313. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18314. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18315. cat >>confdefs.h <<_ACEOF
  18316. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18317. _ACEOF
  18318. definitely_enable_video_x11_vm=yes
  18319. else
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18321. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18322. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18323. $as_echo_n "(cached) " >&6
  18324. else
  18325. ac_check_lib_save_LIBS=$LIBS
  18326. LIBS="-lXxf86vm $LIBS"
  18327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18328. /* end confdefs.h. */
  18329. /* Override any GCC internal prototype to avoid an error.
  18330. Use char because int might match the return type of a GCC
  18331. builtin and then its argument prototype would still apply. */
  18332. #ifdef __cplusplus
  18333. extern "C"
  18334. #endif
  18335. char XF86VidModeQueryVersion ();
  18336. int
  18337. main ()
  18338. {
  18339. return XF86VidModeQueryVersion ();
  18340. ;
  18341. return 0;
  18342. }
  18343. _ACEOF
  18344. if ac_fn_c_try_link "$LINENO"; then :
  18345. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18346. else
  18347. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18348. fi
  18349. rm -f core conftest.err conftest.$ac_objext \
  18350. conftest$ac_exeext conftest.$ac_ext
  18351. LIBS=$ac_check_lib_save_LIBS
  18352. fi
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18354. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18355. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18356. have_vm_lib=yes
  18357. fi
  18358. if test x$have_vm_lib = xyes ; then
  18359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18360. definitely_enable_video_x11_vm=yes
  18361. fi
  18362. fi
  18363. fi
  18364. fi
  18365. if test x$definitely_enable_video_x11_vm = xyes; then
  18366. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18367. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18368. fi
  18369. fi
  18370. fi
  18371. }
  18372. CheckVivanteVideo()
  18373. {
  18374. # Check whether --enable-video-vivante was given.
  18375. if test "${enable_video_vivante+set}" = set; then :
  18376. enableval=$enable_video_vivante;
  18377. else
  18378. enable_video_vivante=yes
  18379. fi
  18380. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18382. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18383. have_vivante_vdk=no
  18384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18385. /* end confdefs.h. */
  18386. #define LINUX
  18387. #define EGL_API_FB
  18388. #include <gc_vdk.h>
  18389. int
  18390. main ()
  18391. {
  18392. ;
  18393. return 0;
  18394. }
  18395. _ACEOF
  18396. if ac_fn_c_try_compile "$LINENO"; then :
  18397. have_vivante_vdk=yes
  18398. fi
  18399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18401. $as_echo "$have_vivante_vdk" >&6; }
  18402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18403. $as_echo_n "checking for Vivante FB API... " >&6; }
  18404. have_vivante_egl=no
  18405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18406. /* end confdefs.h. */
  18407. #define LINUX
  18408. #define EGL_API_FB
  18409. #include <EGL/eglvivante.h>
  18410. int
  18411. main ()
  18412. {
  18413. ;
  18414. return 0;
  18415. }
  18416. _ACEOF
  18417. if ac_fn_c_try_compile "$LINENO"; then :
  18418. have_vivante_egl=yes
  18419. fi
  18420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18422. $as_echo "$have_vivante_egl" >&6; }
  18423. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18424. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18425. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18426. if test x$have_vivante_vdk = xyes; then
  18427. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18428. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18429. fi
  18430. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18431. SUMMARY_video="${SUMMARY_video} vivante"
  18432. have_video=yes
  18433. fi
  18434. fi
  18435. }
  18436. CheckHaikuVideo()
  18437. {
  18438. if test x$enable_video = xyes; then
  18439. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18440. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18441. have_video=yes
  18442. SUMMARY_video="${SUMMARY_video} haiku"
  18443. fi
  18444. }
  18445. CheckCOCOA()
  18446. {
  18447. # Check whether --enable-video-cocoa was given.
  18448. if test "${enable_video_cocoa+set}" = set; then :
  18449. enableval=$enable_video_cocoa;
  18450. else
  18451. enable_video_cocoa=yes
  18452. fi
  18453. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18454. save_CFLAGS="$CFLAGS"
  18455. CFLAGS="$CFLAGS -x objective-c"
  18456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18457. $as_echo_n "checking for Cocoa framework... " >&6; }
  18458. have_cocoa=no
  18459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18460. /* end confdefs.h. */
  18461. #import <Cocoa/Cocoa.h>
  18462. int
  18463. main ()
  18464. {
  18465. ;
  18466. return 0;
  18467. }
  18468. _ACEOF
  18469. if ac_fn_c_try_compile "$LINENO"; then :
  18470. have_cocoa=yes
  18471. fi
  18472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18474. $as_echo "$have_cocoa" >&6; }
  18475. CFLAGS="$save_CFLAGS"
  18476. if test x$have_cocoa = xyes; then
  18477. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18478. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18479. SUMMARY_video="${SUMMARY_video} cocoa"
  18480. have_video=yes
  18481. fi
  18482. fi
  18483. }
  18484. CheckMETAL()
  18485. {
  18486. # Check whether --enable-video-metal was given.
  18487. if test "${enable_video_metal+set}" = set; then :
  18488. enableval=$enable_video_metal;
  18489. else
  18490. enable_video_metal=yes
  18491. fi
  18492. # Check whether --enable-render-metal was given.
  18493. if test "${enable_render_metal+set}" = set; then :
  18494. enableval=$enable_render_metal;
  18495. else
  18496. enable_render_metal=yes
  18497. fi
  18498. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18499. save_CFLAGS="$CFLAGS"
  18500. CFLAGS="$CFLAGS -x objective-c"
  18501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18502. $as_echo_n "checking for Metal framework... " >&6; }
  18503. have_metal=no
  18504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18505. /* end confdefs.h. */
  18506. #import <Cocoa/Cocoa.h>
  18507. #import <Metal/Metal.h>
  18508. #import <QuartzCore/CAMetalLayer.h>
  18509. #if !TARGET_CPU_X86_64
  18510. #error Metal doesn't work on this configuration
  18511. #endif
  18512. int
  18513. main ()
  18514. {
  18515. ;
  18516. return 0;
  18517. }
  18518. _ACEOF
  18519. if ac_fn_c_try_compile "$LINENO"; then :
  18520. have_metal=yes
  18521. fi
  18522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18523. CFLAGS="$save_CFLAGS"
  18524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18525. $as_echo "$have_metal" >&6; }
  18526. if test x$have_metal = xyes; then
  18527. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18528. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18529. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18530. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18531. fi
  18532. SUMMARY_video="${SUMMARY_video} metal"
  18533. else
  18534. enable_video_metal=no
  18535. enable_render_metal=no
  18536. fi
  18537. fi
  18538. }
  18539. CheckDirectFB()
  18540. {
  18541. # Check whether --enable-video-directfb was given.
  18542. if test "${enable_video_directfb+set}" = set; then :
  18543. enableval=$enable_video_directfb;
  18544. else
  18545. enable_video_directfb=no
  18546. fi
  18547. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18548. pkg_failed=no
  18549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18550. $as_echo_n "checking for DIRECTFB... " >&6; }
  18551. if test -n "$DIRECTFB_CFLAGS"; then
  18552. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18553. elif test -n "$PKG_CONFIG"; then
  18554. if test -n "$PKG_CONFIG" && \
  18555. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18556. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18557. ac_status=$?
  18558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18559. test $ac_status = 0; }; then
  18560. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18561. else
  18562. pkg_failed=yes
  18563. fi
  18564. else
  18565. pkg_failed=untried
  18566. fi
  18567. if test -n "$DIRECTFB_LIBS"; then
  18568. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18569. elif test -n "$PKG_CONFIG"; then
  18570. if test -n "$PKG_CONFIG" && \
  18571. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18572. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18573. ac_status=$?
  18574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18575. test $ac_status = 0; }; then
  18576. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18577. else
  18578. pkg_failed=yes
  18579. fi
  18580. else
  18581. pkg_failed=untried
  18582. fi
  18583. if test $pkg_failed = yes; then
  18584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18585. $as_echo "no" >&6; }
  18586. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18587. _pkg_short_errors_supported=yes
  18588. else
  18589. _pkg_short_errors_supported=no
  18590. fi
  18591. if test $_pkg_short_errors_supported = yes; then
  18592. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18593. else
  18594. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18595. fi
  18596. # Put the nasty error message in config.log where it belongs
  18597. echo "$DIRECTFB_PKG_ERRORS" >&5
  18598. video_directfb=no
  18599. elif test $pkg_failed = untried; then
  18600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18601. $as_echo "no" >&6; }
  18602. video_directfb=no
  18603. else
  18604. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18605. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18607. $as_echo "yes" >&6; }
  18608. video_directfb=yes
  18609. fi
  18610. if test x$video_directfb = xyes; then
  18611. # SuSE 11.1 installs directfb-config without directfb-devel
  18612. save_CPPFLAGS="$CPPFLAGS"
  18613. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18614. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18615. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18616. have_directfb_hdr=yes
  18617. else
  18618. have_directfb_hdr=no
  18619. fi
  18620. CPPFLAGS="$save_CPPFLAGS"
  18621. video_directfb=$have_directfb_hdr
  18622. fi
  18623. if test x$video_directfb = xyes; then
  18624. # Check whether --enable-directfb-shared was given.
  18625. if test "${enable_directfb_shared+set}" = set; then :
  18626. enableval=$enable_directfb_shared;
  18627. else
  18628. enable_directfb_shared=yes
  18629. fi
  18630. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18631. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18632. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18633. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18635. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18636. directfb_shared=no
  18637. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18638. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18640. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18641. if test x$have_loadso != xyes && \
  18642. test x$enable_directfb_shared = xyes; then
  18643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18644. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18645. fi
  18646. if test x$have_loadso = xyes && \
  18647. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18648. directfb_shared=yes
  18649. echo "-- $directfb_lib_spec -> $directfb_lib"
  18650. cat >>confdefs.h <<_ACEOF
  18651. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18652. _ACEOF
  18653. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18654. else
  18655. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18656. SUMMARY_video="${SUMMARY_video} directfb"
  18657. fi
  18658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18659. $as_echo "$directfb_shared" >&6; }
  18660. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18661. have_video=yes
  18662. fi
  18663. fi
  18664. }
  18665. CheckKMSDRM()
  18666. {
  18667. # Check whether --enable-video-kmsdrm was given.
  18668. if test "${enable_video_kmsdrm+set}" = set; then :
  18669. enableval=$enable_video_kmsdrm;
  18670. else
  18671. enable_video_kmsdrm=no
  18672. fi
  18673. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18674. video_kmsdrm=no
  18675. pkg_failed=no
  18676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18677. $as_echo_n "checking for LIBDRM... " >&6; }
  18678. if test -n "$LIBDRM_CFLAGS"; then
  18679. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18680. elif test -n "$PKG_CONFIG"; then
  18681. if test -n "$PKG_CONFIG" && \
  18682. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18683. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18684. ac_status=$?
  18685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18686. test $ac_status = 0; }; then
  18687. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18688. else
  18689. pkg_failed=yes
  18690. fi
  18691. else
  18692. pkg_failed=untried
  18693. fi
  18694. if test -n "$LIBDRM_LIBS"; then
  18695. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18696. elif test -n "$PKG_CONFIG"; then
  18697. if test -n "$PKG_CONFIG" && \
  18698. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18699. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18700. ac_status=$?
  18701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18702. test $ac_status = 0; }; then
  18703. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18704. else
  18705. pkg_failed=yes
  18706. fi
  18707. else
  18708. pkg_failed=untried
  18709. fi
  18710. if test $pkg_failed = yes; then
  18711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18712. $as_echo "no" >&6; }
  18713. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18714. _pkg_short_errors_supported=yes
  18715. else
  18716. _pkg_short_errors_supported=no
  18717. fi
  18718. if test $_pkg_short_errors_supported = yes; then
  18719. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18720. else
  18721. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18722. fi
  18723. # Put the nasty error message in config.log where it belongs
  18724. echo "$LIBDRM_PKG_ERRORS" >&5
  18725. libdrm_avail=no
  18726. elif test $pkg_failed = untried; then
  18727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18728. $as_echo "no" >&6; }
  18729. libdrm_avail=no
  18730. else
  18731. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18732. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18734. $as_echo "yes" >&6; }
  18735. libdrm_avail=yes
  18736. fi
  18737. pkg_failed=no
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18739. $as_echo_n "checking for LIBGBM... " >&6; }
  18740. if test -n "$LIBGBM_CFLAGS"; then
  18741. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18742. elif test -n "$PKG_CONFIG"; then
  18743. if test -n "$PKG_CONFIG" && \
  18744. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18745. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18746. ac_status=$?
  18747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18748. test $ac_status = 0; }; then
  18749. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18750. else
  18751. pkg_failed=yes
  18752. fi
  18753. else
  18754. pkg_failed=untried
  18755. fi
  18756. if test -n "$LIBGBM_LIBS"; then
  18757. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18758. elif test -n "$PKG_CONFIG"; then
  18759. if test -n "$PKG_CONFIG" && \
  18760. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18761. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18762. ac_status=$?
  18763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18764. test $ac_status = 0; }; then
  18765. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18766. else
  18767. pkg_failed=yes
  18768. fi
  18769. else
  18770. pkg_failed=untried
  18771. fi
  18772. if test $pkg_failed = yes; then
  18773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18774. $as_echo "no" >&6; }
  18775. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18776. _pkg_short_errors_supported=yes
  18777. else
  18778. _pkg_short_errors_supported=no
  18779. fi
  18780. if test $_pkg_short_errors_supported = yes; then
  18781. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18782. else
  18783. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18784. fi
  18785. # Put the nasty error message in config.log where it belongs
  18786. echo "$LIBGBM_PKG_ERRORS" >&5
  18787. libgbm_avail=no
  18788. elif test $pkg_failed = untried; then
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18790. $as_echo "no" >&6; }
  18791. libgbm_avail=no
  18792. else
  18793. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18794. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18796. $as_echo "yes" >&6; }
  18797. libgbm_avail=yes
  18798. fi
  18799. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18800. video_kmsdrm=yes
  18801. fi
  18802. if test x$video_kmsdrm = xyes; then
  18803. # Check whether --enable-kmsdrm-shared was given.
  18804. if test "${enable_kmsdrm_shared+set}" = set; then :
  18805. enableval=$enable_kmsdrm_shared;
  18806. else
  18807. enable_kmsdrm_shared=yes
  18808. fi
  18809. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18810. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18811. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18813. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18814. kmsdrm_shared=no
  18815. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18816. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18817. if test x$have_loadso != xyes && \
  18818. test x$enable_kmsdrm_shared = xyes; then
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18820. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18821. fi
  18822. if test x$have_loadso = xyes && \
  18823. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18824. kmsdrm_shared=yes
  18825. cat >>confdefs.h <<_ACEOF
  18826. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18827. _ACEOF
  18828. cat >>confdefs.h <<_ACEOF
  18829. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18830. _ACEOF
  18831. cat >>confdefs.h <<_ACEOF
  18832. #define HAVE_KMSDRM_SHARED "TRUE"
  18833. _ACEOF
  18834. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18835. else
  18836. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18837. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18838. fi
  18839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18840. $as_echo "$kmsdrm_shared" >&6; }
  18841. have_video=yes
  18842. fi
  18843. fi
  18844. }
  18845. CheckDummyVideo()
  18846. {
  18847. # Check whether --enable-video-dummy was given.
  18848. if test "${enable_video_dummy+set}" = set; then :
  18849. enableval=$enable_video_dummy;
  18850. else
  18851. enable_video_dummy=yes
  18852. fi
  18853. if test x$enable_video_dummy = xyes; then
  18854. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18855. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18856. have_video=yes
  18857. SUMMARY_video="${SUMMARY_video} dummy"
  18858. fi
  18859. }
  18860. CheckQNXVideo()
  18861. {
  18862. if test x$enable_video = xyes; then
  18863. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18864. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18865. have_video=yes
  18866. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18867. SUMMARY_video="${SUMMARY_video} qnx"
  18868. fi
  18869. }
  18870. CheckQNXAudio()
  18871. {
  18872. if test x$enable_audio = xyes; then
  18873. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18874. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18875. have_audio=yes
  18876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18877. SUMMARY_audio="${SUMMARY_audio} qsa"
  18878. fi
  18879. }
  18880. # Check whether --enable-video-opengl was given.
  18881. if test "${enable_video_opengl+set}" = set; then :
  18882. enableval=$enable_video_opengl;
  18883. else
  18884. enable_video_opengl=yes
  18885. fi
  18886. CheckOpenGLX11()
  18887. {
  18888. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18890. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18891. video_opengl=no
  18892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18893. /* end confdefs.h. */
  18894. #include <GL/gl.h>
  18895. #include <GL/glx.h>
  18896. int
  18897. main ()
  18898. {
  18899. ;
  18900. return 0;
  18901. }
  18902. _ACEOF
  18903. if ac_fn_c_try_compile "$LINENO"; then :
  18904. video_opengl=yes
  18905. fi
  18906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18908. $as_echo "$video_opengl" >&6; }
  18909. if test x$video_opengl = xyes; then
  18910. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18911. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18912. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18913. SUMMARY_video="${SUMMARY_video} opengl"
  18914. fi
  18915. fi
  18916. }
  18917. # Check whether --enable-video-opengles was given.
  18918. if test "${enable_video_opengles+set}" = set; then :
  18919. enableval=$enable_video_opengles;
  18920. else
  18921. enable_video_opengles=yes
  18922. fi
  18923. # Check whether --enable-video-opengles1 was given.
  18924. if test "${enable_video_opengles1+set}" = set; then :
  18925. enableval=$enable_video_opengles1;
  18926. else
  18927. enable_video_opengles1=yes
  18928. fi
  18929. # Check whether --enable-video-opengles2 was given.
  18930. if test "${enable_video_opengles2+set}" = set; then :
  18931. enableval=$enable_video_opengles2;
  18932. else
  18933. enable_video_opengles2=yes
  18934. fi
  18935. CheckOpenGLESX11()
  18936. {
  18937. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18939. $as_echo_n "checking for EGL support... " >&6; }
  18940. video_opengl_egl=no
  18941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18942. /* end confdefs.h. */
  18943. #define LINUX
  18944. #define EGL_API_FB
  18945. #define MESA_EGL_NO_X11_HEADERS
  18946. #include <EGL/egl.h>
  18947. #include <EGL/eglext.h>
  18948. int
  18949. main ()
  18950. {
  18951. ;
  18952. return 0;
  18953. }
  18954. _ACEOF
  18955. if ac_fn_c_try_compile "$LINENO"; then :
  18956. video_opengl_egl=yes
  18957. fi
  18958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18960. $as_echo "$video_opengl_egl" >&6; }
  18961. if test x$video_opengl_egl = xyes; then
  18962. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18963. fi
  18964. if test x$enable_video_opengles1 = xyes; then
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18966. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18967. video_opengles_v1=no
  18968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18969. /* end confdefs.h. */
  18970. #include <GLES/gl.h>
  18971. #include <GLES/glext.h>
  18972. int
  18973. main ()
  18974. {
  18975. ;
  18976. return 0;
  18977. }
  18978. _ACEOF
  18979. if ac_fn_c_try_compile "$LINENO"; then :
  18980. video_opengles_v1=yes
  18981. fi
  18982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18984. $as_echo "$video_opengles_v1" >&6; }
  18985. if test x$video_opengles_v1 = xyes; then
  18986. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18987. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18988. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18989. fi
  18990. fi
  18991. if test x$enable_video_opengles2 = xyes; then
  18992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18993. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18994. video_opengles_v2=no
  18995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18996. /* end confdefs.h. */
  18997. #include <GLES2/gl2.h>
  18998. #include <GLES2/gl2ext.h>
  18999. int
  19000. main ()
  19001. {
  19002. ;
  19003. return 0;
  19004. }
  19005. _ACEOF
  19006. if ac_fn_c_try_compile "$LINENO"; then :
  19007. video_opengles_v2=yes
  19008. fi
  19009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19011. $as_echo "$video_opengles_v2" >&6; }
  19012. if test x$video_opengles_v2 = xyes; then
  19013. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19014. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19015. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19016. fi
  19017. fi
  19018. fi
  19019. }
  19020. CheckWINDOWSGL()
  19021. {
  19022. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19023. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19024. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19025. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19026. SUMMARY_video="${SUMMARY_video} opengl"
  19027. fi
  19028. }
  19029. CheckWINDOWSGLES()
  19030. {
  19031. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19033. $as_echo_n "checking for EGL support... " >&6; }
  19034. video_opengl_egl=no
  19035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19036. /* end confdefs.h. */
  19037. #include <EGL/egl.h>
  19038. int
  19039. main ()
  19040. {
  19041. ;
  19042. return 0;
  19043. }
  19044. _ACEOF
  19045. if ac_fn_c_try_compile "$LINENO"; then :
  19046. video_opengl_egl=yes
  19047. fi
  19048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19050. $as_echo "$video_opengl_egl" >&6; }
  19051. if test x$video_opengl_egl = xyes; then
  19052. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19053. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19054. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19055. fi
  19056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19057. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19058. video_opengles_v2=no
  19059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19060. /* end confdefs.h. */
  19061. #include <GLES2/gl2.h>
  19062. #include <GLES2/gl2ext.h>
  19063. int
  19064. main ()
  19065. {
  19066. ;
  19067. return 0;
  19068. }
  19069. _ACEOF
  19070. if ac_fn_c_try_compile "$LINENO"; then :
  19071. video_opengles_v2=yes
  19072. fi
  19073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19075. $as_echo "$video_opengles_v2" >&6; }
  19076. if test x$video_opengles_v2 = xyes; then
  19077. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19078. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19079. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19080. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19081. fi
  19082. fi
  19083. }
  19084. CheckHaikuGL()
  19085. {
  19086. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19087. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19088. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19089. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19090. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19091. SUMMARY_video="${SUMMARY_video} opengl"
  19092. fi
  19093. }
  19094. CheckMacGL()
  19095. {
  19096. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19097. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19098. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19099. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19100. SUMMARY_video="${SUMMARY_video} opengl"
  19101. fi
  19102. }
  19103. CheckMacGLES()
  19104. {
  19105. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19106. video_opengl_egl=yes
  19107. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19108. video_opengles_v2=yes
  19109. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19110. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19111. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19112. fi
  19113. }
  19114. CheckEmscriptenGLES()
  19115. {
  19116. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19118. $as_echo_n "checking for EGL support... " >&6; }
  19119. video_opengl_egl=no
  19120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19121. /* end confdefs.h. */
  19122. #include <EGL/egl.h>
  19123. int
  19124. main ()
  19125. {
  19126. ;
  19127. return 0;
  19128. }
  19129. _ACEOF
  19130. if ac_fn_c_try_compile "$LINENO"; then :
  19131. video_opengl_egl=yes
  19132. fi
  19133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19135. $as_echo "$video_opengl_egl" >&6; }
  19136. if test x$video_opengl_egl = xyes; then
  19137. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19138. fi
  19139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19140. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19141. video_opengles_v2=no
  19142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19143. /* end confdefs.h. */
  19144. #include <GLES2/gl2.h>
  19145. #include <GLES2/gl2ext.h>
  19146. int
  19147. main ()
  19148. {
  19149. ;
  19150. return 0;
  19151. }
  19152. _ACEOF
  19153. if ac_fn_c_try_compile "$LINENO"; then :
  19154. video_opengles_v2=yes
  19155. fi
  19156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19158. $as_echo "$video_opengles_v2" >&6; }
  19159. if test x$video_opengles_v2 = xyes; then
  19160. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19161. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19162. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19163. fi
  19164. fi
  19165. }
  19166. # Check whether --enable-video-vulkan was given.
  19167. if test "${enable_video_vulkan+set}" = set; then :
  19168. enableval=$enable_video_vulkan;
  19169. else
  19170. enable_video_vulkan=yes
  19171. fi
  19172. CheckVulkan()
  19173. {
  19174. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19175. case "$host" in
  19176. *-*-android*)
  19177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19178. /* end confdefs.h. */
  19179. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19180. #error Vulkan doesn't work on this configuration
  19181. #endif
  19182. int
  19183. main ()
  19184. {
  19185. ;
  19186. return 0;
  19187. }
  19188. _ACEOF
  19189. if ac_fn_c_try_compile "$LINENO"; then :
  19190. else
  19191. enable_video_vulkan=no
  19192. fi
  19193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19194. ;;
  19195. *-*-darwin*)
  19196. save_CFLAGS="$CFLAGS"
  19197. CFLAGS="$CFLAGS -x objective-c"
  19198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19199. /* end confdefs.h. */
  19200. #include <Cocoa/Cocoa.h>
  19201. #include <Metal/Metal.h>
  19202. #include <QuartzCore/CAMetalLayer.h>
  19203. #if !TARGET_CPU_X86_64
  19204. #error Vulkan doesn't work on this configuration
  19205. #endif
  19206. int
  19207. main ()
  19208. {
  19209. ;
  19210. return 0;
  19211. }
  19212. _ACEOF
  19213. if ac_fn_c_try_compile "$LINENO"; then :
  19214. else
  19215. enable_video_vulkan=no
  19216. fi
  19217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19218. CFLAGS="$save_CFLAGS"
  19219. ;;
  19220. *)
  19221. ;;
  19222. esac
  19223. if test x$enable_video_vulkan = xno; then
  19224. # For reasons I am totally unable to see, I get an undefined macro error if
  19225. # I put this in the AC_TRY_COMPILE.
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19227. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19228. fi
  19229. fi
  19230. if test x$enable_video_vulkan = xyes; then
  19231. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19232. SUMMARY_video="${SUMMARY_video} vulkan"
  19233. fi
  19234. }
  19235. CheckInputEvents()
  19236. {
  19237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19238. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19239. use_input_events=no
  19240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19241. /* end confdefs.h. */
  19242. #include <linux/input.h>
  19243. int
  19244. main ()
  19245. {
  19246. #ifndef EVIOCGNAME
  19247. #error EVIOCGNAME() ioctl not available
  19248. #endif
  19249. ;
  19250. return 0;
  19251. }
  19252. _ACEOF
  19253. if ac_fn_c_try_compile "$LINENO"; then :
  19254. use_input_events=yes
  19255. fi
  19256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19258. $as_echo "$use_input_events" >&6; }
  19259. if test x$use_input_events = xyes; then
  19260. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19261. SUMMARY_input="${SUMMARY_input} linuxev"
  19262. fi
  19263. }
  19264. CheckInputKD()
  19265. {
  19266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19267. $as_echo_n "checking for Linux kd.h... " >&6; }
  19268. use_input_kd=no
  19269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19270. /* end confdefs.h. */
  19271. #include <linux/kd.h>
  19272. #include <linux/keyboard.h>
  19273. int
  19274. main ()
  19275. {
  19276. struct kbentry kbe;
  19277. kbe.kb_table = KG_CTRL;
  19278. ioctl(0, KDGKBENT, &kbe);
  19279. ;
  19280. return 0;
  19281. }
  19282. _ACEOF
  19283. if ac_fn_c_try_compile "$LINENO"; then :
  19284. use_input_kd=yes
  19285. fi
  19286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19288. $as_echo "$use_input_kd" >&6; }
  19289. if test x$use_input_kd = xyes; then
  19290. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19291. SUMMARY_input="${SUMMARY_input} linuxkd"
  19292. fi
  19293. }
  19294. CheckLibUDev()
  19295. {
  19296. # Check whether --enable-libudev was given.
  19297. if test "${enable_libudev+set}" = set; then :
  19298. enableval=$enable_libudev;
  19299. else
  19300. enable_libudev=yes
  19301. fi
  19302. if test x$enable_libudev = xyes; then
  19303. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19304. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19305. have_libudev_h_hdr=yes
  19306. else
  19307. have_libudev_h_hdr=no
  19308. fi
  19309. if test x$have_libudev_h_hdr = xyes; then
  19310. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19311. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19312. if test x$udev_lib != x; then
  19313. echo "-- dynamic udev -> $udev_lib"
  19314. cat >>confdefs.h <<_ACEOF
  19315. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19316. _ACEOF
  19317. fi
  19318. fi
  19319. fi
  19320. }
  19321. CheckDBus()
  19322. {
  19323. # Check whether --enable-dbus was given.
  19324. if test "${enable_dbus+set}" = set; then :
  19325. enableval=$enable_dbus;
  19326. else
  19327. enable_dbus=yes
  19328. fi
  19329. if test x$enable_dbus = xyes; then
  19330. pkg_failed=no
  19331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19332. $as_echo_n "checking for DBUS... " >&6; }
  19333. if test -n "$DBUS_CFLAGS"; then
  19334. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19335. elif test -n "$PKG_CONFIG"; then
  19336. if test -n "$PKG_CONFIG" && \
  19337. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19338. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19339. ac_status=$?
  19340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19341. test $ac_status = 0; }; then
  19342. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19343. else
  19344. pkg_failed=yes
  19345. fi
  19346. else
  19347. pkg_failed=untried
  19348. fi
  19349. if test -n "$DBUS_LIBS"; then
  19350. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19351. elif test -n "$PKG_CONFIG"; then
  19352. if test -n "$PKG_CONFIG" && \
  19353. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19354. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19355. ac_status=$?
  19356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19357. test $ac_status = 0; }; then
  19358. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19359. else
  19360. pkg_failed=yes
  19361. fi
  19362. else
  19363. pkg_failed=untried
  19364. fi
  19365. if test $pkg_failed = yes; then
  19366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19367. $as_echo "no" >&6; }
  19368. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19369. _pkg_short_errors_supported=yes
  19370. else
  19371. _pkg_short_errors_supported=no
  19372. fi
  19373. if test $_pkg_short_errors_supported = yes; then
  19374. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19375. else
  19376. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19377. fi
  19378. # Put the nasty error message in config.log where it belongs
  19379. echo "$DBUS_PKG_ERRORS" >&5
  19380. have_dbus=no
  19381. elif test $pkg_failed = untried; then
  19382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19383. $as_echo "no" >&6; }
  19384. have_dbus=no
  19385. else
  19386. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19387. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19389. $as_echo "yes" >&6; }
  19390. have_dbus=yes
  19391. fi
  19392. save_CFLAGS="$CFLAGS"
  19393. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19394. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19395. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19396. have_dbus_dbus_h_hdr=yes
  19397. else
  19398. have_dbus_dbus_h_hdr=no
  19399. fi
  19400. CFLAGS="$save_CFLAGS"
  19401. if test x$have_dbus_dbus_h_hdr = xyes; then
  19402. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19403. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19404. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19405. fi
  19406. fi
  19407. }
  19408. CheckIME()
  19409. {
  19410. # Check whether --enable-ime was given.
  19411. if test "${enable_ime+set}" = set; then :
  19412. enableval=$enable_ime;
  19413. else
  19414. enable_ime=yes
  19415. fi
  19416. if test x$enable_ime = xyes; then
  19417. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19418. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19419. fi
  19420. }
  19421. CheckIBus()
  19422. {
  19423. # Check whether --enable-ibus was given.
  19424. if test "${enable_ibus+set}" = set; then :
  19425. enableval=$enable_ibus;
  19426. else
  19427. enable_ibus=yes
  19428. fi
  19429. if test x$enable_ibus = xyes; then
  19430. pkg_failed=no
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19432. $as_echo_n "checking for IBUS... " >&6; }
  19433. if test -n "$IBUS_CFLAGS"; then
  19434. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19435. elif test -n "$PKG_CONFIG"; then
  19436. if test -n "$PKG_CONFIG" && \
  19437. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19438. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19439. ac_status=$?
  19440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19441. test $ac_status = 0; }; then
  19442. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19443. else
  19444. pkg_failed=yes
  19445. fi
  19446. else
  19447. pkg_failed=untried
  19448. fi
  19449. if test -n "$IBUS_LIBS"; then
  19450. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19451. elif test -n "$PKG_CONFIG"; then
  19452. if test -n "$PKG_CONFIG" && \
  19453. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19454. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19455. ac_status=$?
  19456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19457. test $ac_status = 0; }; then
  19458. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19459. else
  19460. pkg_failed=yes
  19461. fi
  19462. else
  19463. pkg_failed=untried
  19464. fi
  19465. if test $pkg_failed = yes; then
  19466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19467. $as_echo "no" >&6; }
  19468. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19469. _pkg_short_errors_supported=yes
  19470. else
  19471. _pkg_short_errors_supported=no
  19472. fi
  19473. if test $_pkg_short_errors_supported = yes; then
  19474. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19475. else
  19476. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19477. fi
  19478. # Put the nasty error message in config.log where it belongs
  19479. echo "$IBUS_PKG_ERRORS" >&5
  19480. have_ibus=no
  19481. elif test $pkg_failed = untried; then
  19482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19483. $as_echo "no" >&6; }
  19484. have_ibus=no
  19485. else
  19486. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19487. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19489. $as_echo "yes" >&6; }
  19490. have_ibus=yes
  19491. fi
  19492. save_CFLAGS="$CFLAGS"
  19493. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19494. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19495. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19496. have_ibus_ibus_h_hdr=yes
  19497. else
  19498. have_ibus_ibus_h_hdr=no
  19499. fi
  19500. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19501. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19502. have_inotify_inotify_h_hdr=yes
  19503. else
  19504. have_inotify_inotify_h_hdr=no
  19505. fi
  19506. CFLAGS="$save_CFLAGS"
  19507. if test x$have_ibus_ibus_h_hdr = xyes; then
  19508. if test x$enable_ime != xyes; then
  19509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19510. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19511. have_ibus_ibus_h_hdr=no
  19512. elif test x$enable_dbus != xyes; then
  19513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19514. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19515. have_ibus_ibus_h_hdr=no
  19516. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19518. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19519. have_ibus_ibus_h_hdr=no
  19520. else
  19521. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19522. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19523. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19524. fi
  19525. fi
  19526. fi
  19527. }
  19528. CheckFcitx()
  19529. {
  19530. # Check whether --enable-fcitx was given.
  19531. if test "${enable_fcitx+set}" = set; then :
  19532. enableval=$enable_fcitx;
  19533. else
  19534. enable_fcitx=yes
  19535. fi
  19536. if test x$enable_fcitx = xyes; then
  19537. pkg_failed=no
  19538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19539. $as_echo_n "checking for FCITX... " >&6; }
  19540. if test -n "$FCITX_CFLAGS"; then
  19541. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19542. elif test -n "$PKG_CONFIG"; then
  19543. if test -n "$PKG_CONFIG" && \
  19544. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19545. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19546. ac_status=$?
  19547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19548. test $ac_status = 0; }; then
  19549. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19550. else
  19551. pkg_failed=yes
  19552. fi
  19553. else
  19554. pkg_failed=untried
  19555. fi
  19556. if test -n "$FCITX_LIBS"; then
  19557. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19558. elif test -n "$PKG_CONFIG"; then
  19559. if test -n "$PKG_CONFIG" && \
  19560. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19561. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19562. ac_status=$?
  19563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19564. test $ac_status = 0; }; then
  19565. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19566. else
  19567. pkg_failed=yes
  19568. fi
  19569. else
  19570. pkg_failed=untried
  19571. fi
  19572. if test $pkg_failed = yes; then
  19573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19574. $as_echo "no" >&6; }
  19575. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19576. _pkg_short_errors_supported=yes
  19577. else
  19578. _pkg_short_errors_supported=no
  19579. fi
  19580. if test $_pkg_short_errors_supported = yes; then
  19581. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19582. else
  19583. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19584. fi
  19585. # Put the nasty error message in config.log where it belongs
  19586. echo "$FCITX_PKG_ERRORS" >&5
  19587. have_fcitx=no
  19588. elif test $pkg_failed = untried; then
  19589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19590. $as_echo "no" >&6; }
  19591. have_fcitx=no
  19592. else
  19593. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19594. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19596. $as_echo "yes" >&6; }
  19597. have_fcitx=yes
  19598. fi
  19599. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19600. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19601. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19602. have_fcitx_frontend_h_hdr=yes
  19603. else
  19604. have_fcitx_frontend_h_hdr=no
  19605. fi
  19606. CFLAGS="$save_CFLAGS"
  19607. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19608. if test x$enable_ime != xyes; then
  19609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19610. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19611. have_fcitx_frontend_h_hdr=no
  19612. elif test x$enable_dbus != xyes; then
  19613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19614. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19615. have_fcitx_frontend_h_hdr=no
  19616. else
  19617. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19618. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19619. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19620. fi
  19621. fi
  19622. fi
  19623. }
  19624. CheckTslib()
  19625. {
  19626. # Check whether --enable-input-tslib was given.
  19627. if test "${enable_input_tslib+set}" = set; then :
  19628. enableval=$enable_input_tslib;
  19629. else
  19630. enable_input_tslib=yes
  19631. fi
  19632. if test x$enable_input_tslib = xyes; then
  19633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19634. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19635. enable_input_tslib=no
  19636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19637. /* end confdefs.h. */
  19638. #include "tslib.h"
  19639. int
  19640. main ()
  19641. {
  19642. ;
  19643. return 0;
  19644. }
  19645. _ACEOF
  19646. if ac_fn_c_try_compile "$LINENO"; then :
  19647. enable_input_tslib=yes
  19648. fi
  19649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19651. $as_echo "$enable_input_tslib" >&6; }
  19652. if test x$enable_input_tslib = xyes; then
  19653. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19654. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19655. SUMMARY_input="${SUMMARY_input} ts"
  19656. fi
  19657. fi
  19658. }
  19659. CheckPTHREAD()
  19660. {
  19661. # Check whether --enable-pthreads was given.
  19662. if test "${enable_pthreads+set}" = set; then :
  19663. enableval=$enable_pthreads;
  19664. else
  19665. enable_pthreads=yes
  19666. fi
  19667. # Check whether --enable-pthread-sem was given.
  19668. if test "${enable_pthread_sem+set}" = set; then :
  19669. enableval=$enable_pthread_sem;
  19670. else
  19671. enable_pthread_sem=yes
  19672. fi
  19673. case "$host" in
  19674. *-*-android*)
  19675. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19676. pthread_lib=""
  19677. ;;
  19678. *-*-linux*|*-*-uclinux*)
  19679. pthread_cflags="-D_REENTRANT"
  19680. pthread_lib="-lpthread"
  19681. ;;
  19682. *-*-bsdi*)
  19683. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19684. pthread_lib=""
  19685. ;;
  19686. *-*-darwin*)
  19687. pthread_cflags="-D_THREAD_SAFE"
  19688. # causes Carbon.p complaints?
  19689. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19690. ;;
  19691. *-*-freebsd*|*-*-dragonfly*)
  19692. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19693. pthread_lib="-pthread"
  19694. ;;
  19695. *-*-netbsd*)
  19696. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19697. pthread_lib="-lpthread"
  19698. ;;
  19699. *-*-openbsd*)
  19700. pthread_cflags="-D_REENTRANT"
  19701. pthread_lib="-pthread"
  19702. ;;
  19703. *-*-solaris2.9)
  19704. # From Solaris 9+, posix4's preferred name is rt.
  19705. pthread_cflags="-D_REENTRANT"
  19706. pthread_lib="-lpthread -lrt"
  19707. ;;
  19708. *-*-solaris2.10)
  19709. # Solaris 10+ merged pthread into libc.
  19710. pthread_cflags="-D_REENTRANT"
  19711. pthread_lib="-lrt"
  19712. ;;
  19713. *-*-solaris*)
  19714. # Solaris 11+ merged rt into libc.
  19715. pthread_cflags="-D_REENTRANT"
  19716. pthread_lib=""
  19717. ;;
  19718. *-*-sysv5*)
  19719. pthread_cflags="-D_REENTRANT -Kthread"
  19720. pthread_lib=""
  19721. ;;
  19722. *-*-aix*)
  19723. pthread_cflags="-D_REENTRANT -mthreads"
  19724. pthread_lib="-lpthread"
  19725. ;;
  19726. *-*-hpux11*)
  19727. pthread_cflags="-D_REENTRANT"
  19728. pthread_lib="-L/usr/lib -lpthread"
  19729. ;;
  19730. *-*-haiku*)
  19731. pthread_cflags="-D_REENTRANT"
  19732. pthread_lib=""
  19733. ;;
  19734. *-*-nto*)
  19735. pthread_cflags="-D_REENTRANT"
  19736. pthread_lib=""
  19737. ;;
  19738. *)
  19739. pthread_cflags="-D_REENTRANT"
  19740. pthread_lib="-lpthread"
  19741. ;;
  19742. esac
  19743. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19744. # Save the original compiler flags and libraries
  19745. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19746. # Add the pthread compiler flags and libraries
  19747. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19748. # Check to see if we have pthread support on this system
  19749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19750. $as_echo_n "checking for pthreads... " >&6; }
  19751. use_pthreads=no
  19752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19753. /* end confdefs.h. */
  19754. #include <pthread.h>
  19755. int
  19756. main ()
  19757. {
  19758. pthread_attr_t type;
  19759. pthread_attr_init(&type);
  19760. ;
  19761. return 0;
  19762. }
  19763. _ACEOF
  19764. if ac_fn_c_try_link "$LINENO"; then :
  19765. use_pthreads=yes
  19766. fi
  19767. rm -f core conftest.err conftest.$ac_objext \
  19768. conftest$ac_exeext conftest.$ac_ext
  19769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19770. $as_echo "$use_pthreads" >&6; }
  19771. # Restore the compiler flags and libraries
  19772. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19773. # Do futher testing if we have pthread support...
  19774. if test x$use_pthreads = xyes; then
  19775. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19776. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19778. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19779. # Save the original compiler flags and libraries
  19780. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19781. # Add the pthread compiler flags and libraries
  19782. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19783. # Check to see if recursive mutexes are available
  19784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19785. $as_echo_n "checking for recursive mutexes... " >&6; }
  19786. has_recursive_mutexes=no
  19787. if test x$has_recursive_mutexes = xno; then
  19788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19789. /* end confdefs.h. */
  19790. #define _GNU_SOURCE 1
  19791. #include <pthread.h>
  19792. int
  19793. main ()
  19794. {
  19795. pthread_mutexattr_t attr;
  19796. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19797. ;
  19798. return 0;
  19799. }
  19800. _ACEOF
  19801. if ac_fn_c_try_link "$LINENO"; then :
  19802. has_recursive_mutexes=yes
  19803. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19804. fi
  19805. rm -f core conftest.err conftest.$ac_objext \
  19806. conftest$ac_exeext conftest.$ac_ext
  19807. fi
  19808. if test x$has_recursive_mutexes = xno; then
  19809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19810. /* end confdefs.h. */
  19811. #define _GNU_SOURCE 1
  19812. #include <pthread.h>
  19813. int
  19814. main ()
  19815. {
  19816. pthread_mutexattr_t attr;
  19817. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19818. ;
  19819. return 0;
  19820. }
  19821. _ACEOF
  19822. if ac_fn_c_try_link "$LINENO"; then :
  19823. has_recursive_mutexes=yes
  19824. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19825. fi
  19826. rm -f core conftest.err conftest.$ac_objext \
  19827. conftest$ac_exeext conftest.$ac_ext
  19828. fi
  19829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19830. $as_echo "$has_recursive_mutexes" >&6; }
  19831. # Check to see if pthread semaphore support is missing
  19832. if test x$enable_pthread_sem = xyes; then
  19833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19834. $as_echo_n "checking for pthread semaphores... " >&6; }
  19835. have_pthread_sem=no
  19836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19837. /* end confdefs.h. */
  19838. #include <pthread.h>
  19839. #include <semaphore.h>
  19840. int
  19841. main ()
  19842. {
  19843. ;
  19844. return 0;
  19845. }
  19846. _ACEOF
  19847. if ac_fn_c_try_compile "$LINENO"; then :
  19848. have_pthread_sem=yes
  19849. fi
  19850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19852. $as_echo "$have_pthread_sem" >&6; }
  19853. fi
  19854. if test x$have_pthread_sem = xyes; then
  19855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19856. $as_echo_n "checking for sem_timedwait... " >&6; }
  19857. have_sem_timedwait=no
  19858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19859. /* end confdefs.h. */
  19860. #include <pthread.h>
  19861. #include <semaphore.h>
  19862. int
  19863. main ()
  19864. {
  19865. sem_timedwait(NULL, NULL);
  19866. ;
  19867. return 0;
  19868. }
  19869. _ACEOF
  19870. if ac_fn_c_try_link "$LINENO"; then :
  19871. have_sem_timedwait=yes
  19872. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19873. fi
  19874. rm -f core conftest.err conftest.$ac_objext \
  19875. conftest$ac_exeext conftest.$ac_ext
  19876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19877. $as_echo "$have_sem_timedwait" >&6; }
  19878. fi
  19879. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19880. "
  19881. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19882. have_pthread_np_h=yes
  19883. else
  19884. have_pthread_np_h=no
  19885. fi
  19886. if test x$have_pthread_np_h = xyes; then
  19887. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19888. fi
  19889. # Check to see if pthread naming is available
  19890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19891. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19893. /* end confdefs.h. */
  19894. /* Override any GCC internal prototype to avoid an error.
  19895. Use char because int might match the return type of a GCC
  19896. builtin and then its argument prototype would still apply. */
  19897. #ifdef __cplusplus
  19898. extern "C"
  19899. #endif
  19900. char pthread_setname_np ();
  19901. int
  19902. main ()
  19903. {
  19904. return pthread_setname_np ();
  19905. ;
  19906. return 0;
  19907. }
  19908. _ACEOF
  19909. if ac_fn_c_try_link "$LINENO"; then :
  19910. has_pthread_setname_np=yes
  19911. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19912. else
  19913. has_pthread_setname_np=no
  19914. fi
  19915. rm -f core conftest.err conftest.$ac_objext \
  19916. conftest$ac_exeext conftest.$ac_ext
  19917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19918. $as_echo "$has_pthread_setname_np" >&6; }
  19919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19920. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19922. /* end confdefs.h. */
  19923. /* Override any GCC internal prototype to avoid an error.
  19924. Use char because int might match the return type of a GCC
  19925. builtin and then its argument prototype would still apply. */
  19926. #ifdef __cplusplus
  19927. extern "C"
  19928. #endif
  19929. char pthread_set_name_np ();
  19930. int
  19931. main ()
  19932. {
  19933. return pthread_set_name_np ();
  19934. ;
  19935. return 0;
  19936. }
  19937. _ACEOF
  19938. if ac_fn_c_try_link "$LINENO"; then :
  19939. has_pthread_set_name_np=yes
  19940. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19941. else
  19942. has_pthread_set_name_np=no
  19943. fi
  19944. rm -f core conftest.err conftest.$ac_objext \
  19945. conftest$ac_exeext conftest.$ac_ext
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19947. $as_echo "$has_pthread_set_name_np" >&6; }
  19948. # Restore the compiler flags and libraries
  19949. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19950. # Basic thread creation functions
  19951. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19952. # Semaphores
  19953. # We can fake these with mutexes and condition variables if necessary
  19954. if test x$have_pthread_sem = xyes; then
  19955. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19956. else
  19957. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19958. fi
  19959. # Mutexes
  19960. # We can fake these with semaphores if necessary
  19961. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19962. # Condition variables
  19963. # We can fake these with semaphores and mutexes if necessary
  19964. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19965. # Thread local storage
  19966. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19967. have_threads=yes
  19968. fi
  19969. fi
  19970. }
  19971. CheckWINDOWS()
  19972. {
  19973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19974. $as_echo_n "checking Windows compiler... " >&6; }
  19975. have_win32_gcc=no
  19976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19977. /* end confdefs.h. */
  19978. #include <windows.h>
  19979. int
  19980. main ()
  19981. {
  19982. ;
  19983. return 0;
  19984. }
  19985. _ACEOF
  19986. if ac_fn_c_try_compile "$LINENO"; then :
  19987. have_win32_gcc=yes
  19988. fi
  19989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19991. $as_echo "$have_win32_gcc" >&6; }
  19992. if test x$have_win32_gcc != xyes; then
  19993. as_fn_error $? "
  19994. *** Your compiler ($CC) does not produce Windows executables!
  19995. " "$LINENO" 5
  19996. fi
  19997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19998. $as_echo_n "checking Windows CE... " >&6; }
  19999. have_wince=no
  20000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20001. /* end confdefs.h. */
  20002. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20003. #error This is not Windows CE
  20004. #endif
  20005. int
  20006. main ()
  20007. {
  20008. ;
  20009. return 0;
  20010. }
  20011. _ACEOF
  20012. if ac_fn_c_try_compile "$LINENO"; then :
  20013. have_wince=yes
  20014. as_fn_error $? "
  20015. *** Sorry, Windows CE is no longer supported.
  20016. " "$LINENO" 5
  20017. fi
  20018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20020. $as_echo "$have_wince" >&6; }
  20021. # This fixes Windows stack alignment with newer GCC
  20022. CheckStackBoundary
  20023. }
  20024. CheckDIRECTX()
  20025. {
  20026. # Check whether --enable-directx was given.
  20027. if test "${enable_directx+set}" = set; then :
  20028. enableval=$enable_directx;
  20029. else
  20030. enable_directx=yes
  20031. fi
  20032. if test x$enable_directx = xyes; then
  20033. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20034. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20035. have_d3d=yes
  20036. fi
  20037. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20038. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20039. have_d3d11=yes
  20040. fi
  20041. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20042. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20043. have_ddraw=yes
  20044. fi
  20045. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20046. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20047. have_dsound=yes
  20048. fi
  20049. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20050. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20051. have_dinput=yes
  20052. fi
  20053. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20054. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20055. have_dxgi=yes
  20056. fi
  20057. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20058. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20059. have_xinput=yes
  20060. fi
  20061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20062. /* end confdefs.h. */
  20063. #include <windows.h>
  20064. #include <xinput.h>
  20065. XINPUT_GAMEPAD_EX x1;
  20066. int
  20067. main ()
  20068. {
  20069. ;
  20070. return 0;
  20071. }
  20072. _ACEOF
  20073. if ac_fn_c_try_compile "$LINENO"; then :
  20074. have_xinput_gamepadex=yes
  20075. fi
  20076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20078. /* end confdefs.h. */
  20079. #include <windows.h>
  20080. #include <xinput.h>
  20081. XINPUT_STATE_EX s1;
  20082. int
  20083. main ()
  20084. {
  20085. ;
  20086. return 0;
  20087. }
  20088. _ACEOF
  20089. if ac_fn_c_try_compile "$LINENO"; then :
  20090. have_xinput_stateex=yes
  20091. fi
  20092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20093. if test x$have_ddraw = xyes; then
  20094. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20095. fi
  20096. if test x$have_dinput = xyes; then
  20097. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20098. fi
  20099. if test x$have_dsound = xyes; then
  20100. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20101. fi
  20102. if test x$have_dxgi = xyes; then
  20103. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20104. fi
  20105. if test x$have_xinput = xyes; then
  20106. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20107. fi
  20108. if test x$have_xinput_gamepadex = xyes; then
  20109. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20110. fi
  20111. if test x$have_xinput_stateex = xyes; then
  20112. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20113. fi
  20114. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20115. # FIXME: ...so force it off for now.
  20116. case "$host" in
  20117. *-*-cygwin*)
  20118. have_dinput=false
  20119. ;;
  20120. esac
  20121. fi
  20122. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20123. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20124. have_wasapi=yes
  20125. fi
  20126. if test x$have_wasapi = xyes; then
  20127. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20128. fi
  20129. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20130. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20131. else
  20132. have_wasapi=no
  20133. fi
  20134. if test x$have_wasapi = xyes; then
  20135. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20136. fi
  20137. ac_fn_c_check_header_mongrel "$LINENO" "endpointvolume.h" "ac_cv_header_endpointvolume_h" "$ac_includes_default"
  20138. if test "x$ac_cv_header_endpointvolume_h" = xyes; then :
  20139. $as_echo "#define HAVE_ENDPOINTVOLUME_H 1" >>confdefs.h
  20140. fi
  20141. # Check whether --enable-wasapi was given.
  20142. if test "${enable_wasapi+set}" = set; then :
  20143. enableval=$enable_wasapi;
  20144. else
  20145. enable_wasapi=yes
  20146. fi
  20147. }
  20148. CheckDLOPEN()
  20149. {
  20150. # Check whether --enable-sdl-dlopen was given.
  20151. if test "${enable_sdl_dlopen+set}" = set; then :
  20152. enableval=$enable_sdl_dlopen;
  20153. else
  20154. enable_sdl_dlopen=yes
  20155. fi
  20156. if test x$enable_sdl_dlopen = xyes; then
  20157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20158. $as_echo_n "checking for dlopen... " >&6; }
  20159. have_dlopen=no
  20160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20161. /* end confdefs.h. */
  20162. #include <dlfcn.h>
  20163. int
  20164. main ()
  20165. {
  20166. void *handle = dlopen("", RTLD_NOW);
  20167. const char *loaderror = (char *) dlerror();
  20168. ;
  20169. return 0;
  20170. }
  20171. _ACEOF
  20172. if ac_fn_c_try_compile "$LINENO"; then :
  20173. have_dlopen=yes
  20174. fi
  20175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20177. $as_echo "$have_dlopen" >&6; }
  20178. if test x$have_dlopen = xyes; then
  20179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20180. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20181. if ${ac_cv_lib_c_dlopen+:} false; then :
  20182. $as_echo_n "(cached) " >&6
  20183. else
  20184. ac_check_lib_save_LIBS=$LIBS
  20185. LIBS="-lc $LIBS"
  20186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20187. /* end confdefs.h. */
  20188. /* Override any GCC internal prototype to avoid an error.
  20189. Use char because int might match the return type of a GCC
  20190. builtin and then its argument prototype would still apply. */
  20191. #ifdef __cplusplus
  20192. extern "C"
  20193. #endif
  20194. char dlopen ();
  20195. int
  20196. main ()
  20197. {
  20198. return dlopen ();
  20199. ;
  20200. return 0;
  20201. }
  20202. _ACEOF
  20203. if ac_fn_c_try_link "$LINENO"; then :
  20204. ac_cv_lib_c_dlopen=yes
  20205. else
  20206. ac_cv_lib_c_dlopen=no
  20207. fi
  20208. rm -f core conftest.err conftest.$ac_objext \
  20209. conftest$ac_exeext conftest.$ac_ext
  20210. LIBS=$ac_check_lib_save_LIBS
  20211. fi
  20212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20213. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20214. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20216. else
  20217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20218. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20219. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20220. $as_echo_n "(cached) " >&6
  20221. else
  20222. ac_check_lib_save_LIBS=$LIBS
  20223. LIBS="-ldl $LIBS"
  20224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20225. /* end confdefs.h. */
  20226. /* Override any GCC internal prototype to avoid an error.
  20227. Use char because int might match the return type of a GCC
  20228. builtin and then its argument prototype would still apply. */
  20229. #ifdef __cplusplus
  20230. extern "C"
  20231. #endif
  20232. char dlopen ();
  20233. int
  20234. main ()
  20235. {
  20236. return dlopen ();
  20237. ;
  20238. return 0;
  20239. }
  20240. _ACEOF
  20241. if ac_fn_c_try_link "$LINENO"; then :
  20242. ac_cv_lib_dl_dlopen=yes
  20243. else
  20244. ac_cv_lib_dl_dlopen=no
  20245. fi
  20246. rm -f core conftest.err conftest.$ac_objext \
  20247. conftest$ac_exeext conftest.$ac_ext
  20248. LIBS=$ac_check_lib_save_LIBS
  20249. fi
  20250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20251. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20252. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20254. else
  20255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20256. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20257. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20258. $as_echo_n "(cached) " >&6
  20259. else
  20260. ac_check_lib_save_LIBS=$LIBS
  20261. LIBS="-lltdl $LIBS"
  20262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20263. /* end confdefs.h. */
  20264. /* Override any GCC internal prototype to avoid an error.
  20265. Use char because int might match the return type of a GCC
  20266. builtin and then its argument prototype would still apply. */
  20267. #ifdef __cplusplus
  20268. extern "C"
  20269. #endif
  20270. char dlopen ();
  20271. int
  20272. main ()
  20273. {
  20274. return dlopen ();
  20275. ;
  20276. return 0;
  20277. }
  20278. _ACEOF
  20279. if ac_fn_c_try_link "$LINENO"; then :
  20280. ac_cv_lib_ltdl_dlopen=yes
  20281. else
  20282. ac_cv_lib_ltdl_dlopen=no
  20283. fi
  20284. rm -f core conftest.err conftest.$ac_objext \
  20285. conftest$ac_exeext conftest.$ac_ext
  20286. LIBS=$ac_check_lib_save_LIBS
  20287. fi
  20288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20289. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20290. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20291. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20292. fi
  20293. fi
  20294. fi
  20295. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20296. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20297. have_loadso=yes
  20298. fi
  20299. fi
  20300. }
  20301. CheckUSBHID()
  20302. {
  20303. case "$host" in
  20304. *-*-*bsd*)
  20305. if test x$enable_joystick = xyes; then
  20306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20307. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20308. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20309. $as_echo_n "(cached) " >&6
  20310. else
  20311. ac_check_lib_save_LIBS=$LIBS
  20312. LIBS="-lusbhid $LIBS"
  20313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20314. /* end confdefs.h. */
  20315. /* Override any GCC internal prototype to avoid an error.
  20316. Use char because int might match the return type of a GCC
  20317. builtin and then its argument prototype would still apply. */
  20318. #ifdef __cplusplus
  20319. extern "C"
  20320. #endif
  20321. char hid_init ();
  20322. int
  20323. main ()
  20324. {
  20325. return hid_init ();
  20326. ;
  20327. return 0;
  20328. }
  20329. _ACEOF
  20330. if ac_fn_c_try_link "$LINENO"; then :
  20331. ac_cv_lib_usbhid_hid_init=yes
  20332. else
  20333. ac_cv_lib_usbhid_hid_init=no
  20334. fi
  20335. rm -f core conftest.err conftest.$ac_objext \
  20336. conftest$ac_exeext conftest.$ac_ext
  20337. LIBS=$ac_check_lib_save_LIBS
  20338. fi
  20339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20340. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20341. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20342. have_libusbhid=yes
  20343. fi
  20344. if test x$have_libusbhid = xyes; then
  20345. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20346. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20347. USB_CFLAGS="-DHAVE_USBHID_H"
  20348. fi
  20349. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20350. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20351. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20352. fi
  20353. USB_LIBS="$USB_LIBS -lusbhid"
  20354. else
  20355. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20356. if test "x$ac_cv_header_usb_h" = xyes; then :
  20357. USB_CFLAGS="-DHAVE_USB_H"
  20358. fi
  20359. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20360. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20361. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20362. fi
  20363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20364. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20365. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20366. $as_echo_n "(cached) " >&6
  20367. else
  20368. ac_check_lib_save_LIBS=$LIBS
  20369. LIBS="-lusb $LIBS"
  20370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20371. /* end confdefs.h. */
  20372. /* Override any GCC internal prototype to avoid an error.
  20373. Use char because int might match the return type of a GCC
  20374. builtin and then its argument prototype would still apply. */
  20375. #ifdef __cplusplus
  20376. extern "C"
  20377. #endif
  20378. char hid_init ();
  20379. int
  20380. main ()
  20381. {
  20382. return hid_init ();
  20383. ;
  20384. return 0;
  20385. }
  20386. _ACEOF
  20387. if ac_fn_c_try_link "$LINENO"; then :
  20388. ac_cv_lib_usb_hid_init=yes
  20389. else
  20390. ac_cv_lib_usb_hid_init=no
  20391. fi
  20392. rm -f core conftest.err conftest.$ac_objext \
  20393. conftest$ac_exeext conftest.$ac_ext
  20394. LIBS=$ac_check_lib_save_LIBS
  20395. fi
  20396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20397. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20398. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20399. USB_LIBS="$USB_LIBS -lusb"
  20400. fi
  20401. fi
  20402. save_CFLAGS="$CFLAGS"
  20403. CFLAGS="$CFLAGS $USB_CFLAGS"
  20404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20405. $as_echo_n "checking for usbhid... " >&6; }
  20406. have_usbhid=no
  20407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20408. /* end confdefs.h. */
  20409. #include <sys/types.h>
  20410. #if defined(HAVE_USB_H)
  20411. #include <usb.h>
  20412. #endif
  20413. #ifdef __DragonFly__
  20414. # include <bus/usb/usb.h>
  20415. # include <bus/usb/usbhid.h>
  20416. #else
  20417. # include <dev/usb/usb.h>
  20418. # include <dev/usb/usbhid.h>
  20419. #endif
  20420. #if defined(HAVE_USBHID_H)
  20421. #include <usbhid.h>
  20422. #elif defined(HAVE_LIBUSB_H)
  20423. #include <libusb.h>
  20424. #elif defined(HAVE_LIBUSBHID_H)
  20425. #include <libusbhid.h>
  20426. #endif
  20427. int
  20428. main ()
  20429. {
  20430. struct report_desc *repdesc;
  20431. struct usb_ctl_report *repbuf;
  20432. hid_kind_t hidkind;
  20433. ;
  20434. return 0;
  20435. }
  20436. _ACEOF
  20437. if ac_fn_c_try_compile "$LINENO"; then :
  20438. have_usbhid=yes
  20439. fi
  20440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20442. $as_echo "$have_usbhid" >&6; }
  20443. if test x$have_usbhid = xyes; then
  20444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20445. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20446. have_usbhid_ucr_data=no
  20447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20448. /* end confdefs.h. */
  20449. #include <sys/types.h>
  20450. #if defined(HAVE_USB_H)
  20451. #include <usb.h>
  20452. #endif
  20453. #ifdef __DragonFly__
  20454. # include <bus/usb/usb.h>
  20455. # include <bus/usb/usbhid.h>
  20456. #else
  20457. # include <dev/usb/usb.h>
  20458. # include <dev/usb/usbhid.h>
  20459. #endif
  20460. #if defined(HAVE_USBHID_H)
  20461. #include <usbhid.h>
  20462. #elif defined(HAVE_LIBUSB_H)
  20463. #include <libusb.h>
  20464. #elif defined(HAVE_LIBUSBHID_H)
  20465. #include <libusbhid.h>
  20466. #endif
  20467. int
  20468. main ()
  20469. {
  20470. struct usb_ctl_report buf;
  20471. if (buf.ucr_data) { }
  20472. ;
  20473. return 0;
  20474. }
  20475. _ACEOF
  20476. if ac_fn_c_try_compile "$LINENO"; then :
  20477. have_usbhid_ucr_data=yes
  20478. fi
  20479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20480. if test x$have_usbhid_ucr_data = xyes; then
  20481. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20482. fi
  20483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20484. $as_echo "$have_usbhid_ucr_data" >&6; }
  20485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20486. $as_echo_n "checking for new usbhid API... " >&6; }
  20487. have_usbhid_new=no
  20488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20489. /* end confdefs.h. */
  20490. #include <sys/types.h>
  20491. #if defined(HAVE_USB_H)
  20492. #include <usb.h>
  20493. #endif
  20494. #ifdef __DragonFly__
  20495. #include <bus/usb/usb.h>
  20496. #include <bus/usb/usbhid.h>
  20497. #else
  20498. #include <dev/usb/usb.h>
  20499. #include <dev/usb/usbhid.h>
  20500. #endif
  20501. #if defined(HAVE_USBHID_H)
  20502. #include <usbhid.h>
  20503. #elif defined(HAVE_LIBUSB_H)
  20504. #include <libusb.h>
  20505. #elif defined(HAVE_LIBUSBHID_H)
  20506. #include <libusbhid.h>
  20507. #endif
  20508. int
  20509. main ()
  20510. {
  20511. report_desc_t d;
  20512. hid_start_parse(d, 1, 1);
  20513. ;
  20514. return 0;
  20515. }
  20516. _ACEOF
  20517. if ac_fn_c_try_compile "$LINENO"; then :
  20518. have_usbhid_new=yes
  20519. fi
  20520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20521. if test x$have_usbhid_new = xyes; then
  20522. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20523. fi
  20524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20525. $as_echo "$have_usbhid_new" >&6; }
  20526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20527. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20528. have_machine_joystick=no
  20529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20530. /* end confdefs.h. */
  20531. #include <machine/joystick.h>
  20532. int
  20533. main ()
  20534. {
  20535. struct joystick t;
  20536. ;
  20537. return 0;
  20538. }
  20539. _ACEOF
  20540. if ac_fn_c_try_compile "$LINENO"; then :
  20541. have_machine_joystick=yes
  20542. fi
  20543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20544. if test x$have_machine_joystick = xyes; then
  20545. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20546. fi
  20547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20548. $as_echo "$have_machine_joystick" >&6; }
  20549. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20550. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20551. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20552. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20553. have_joystick=yes
  20554. fi
  20555. CFLAGS="$save_CFLAGS"
  20556. fi
  20557. ;;
  20558. esac
  20559. }
  20560. CheckHIDAPI()
  20561. {
  20562. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20563. # so we'll just use libusb when it's available.
  20564. case "$host" in
  20565. # libusb does not support iOS
  20566. arm*-apple-darwin* | *-ios-* )
  20567. skiplibusb=yes
  20568. ;;
  20569. # On the other hand, *BSD specifically uses libusb only
  20570. *-*-*bsd* )
  20571. onlylibusb=yes
  20572. ;;
  20573. esac
  20574. # Check whether --enable-hidapi was given.
  20575. if test "${enable_hidapi+set}" = set; then :
  20576. enableval=$enable_hidapi;
  20577. else
  20578. enable_hidapi=no
  20579. fi
  20580. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20581. if test x$skiplibusb = xyes; then
  20582. hidapi_support=yes
  20583. else
  20584. pkg_failed=no
  20585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20586. $as_echo_n "checking for LIBUSB... " >&6; }
  20587. if test -n "$LIBUSB_CFLAGS"; then
  20588. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20589. elif test -n "$PKG_CONFIG"; then
  20590. if test -n "$PKG_CONFIG" && \
  20591. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20592. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20593. ac_status=$?
  20594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20595. test $ac_status = 0; }; then
  20596. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20597. else
  20598. pkg_failed=yes
  20599. fi
  20600. else
  20601. pkg_failed=untried
  20602. fi
  20603. if test -n "$LIBUSB_LIBS"; then
  20604. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20605. elif test -n "$PKG_CONFIG"; then
  20606. if test -n "$PKG_CONFIG" && \
  20607. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20608. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20609. ac_status=$?
  20610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20611. test $ac_status = 0; }; then
  20612. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20613. else
  20614. pkg_failed=yes
  20615. fi
  20616. else
  20617. pkg_failed=untried
  20618. fi
  20619. if test $pkg_failed = yes; then
  20620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20621. $as_echo "no" >&6; }
  20622. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20623. _pkg_short_errors_supported=yes
  20624. else
  20625. _pkg_short_errors_supported=no
  20626. fi
  20627. if test $_pkg_short_errors_supported = yes; then
  20628. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20629. else
  20630. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20631. fi
  20632. # Put the nasty error message in config.log where it belongs
  20633. echo "$LIBUSB_PKG_ERRORS" >&5
  20634. have_libusb=no
  20635. elif test $pkg_failed = untried; then
  20636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20637. $as_echo "no" >&6; }
  20638. have_libusb=no
  20639. else
  20640. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20641. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20643. $as_echo "yes" >&6; }
  20644. have_libusb=yes
  20645. fi
  20646. save_CFLAGS="$CFLAGS"
  20647. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20648. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20649. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20650. have_libusb_h=yes
  20651. fi
  20652. CFLAGS="$save_CFLAGS"
  20653. if test x$have_libusb_h = xyes; then
  20654. hidapi_support=yes
  20655. elif test x$onlylibusb = xyes; then
  20656. hidapi_support=no
  20657. else
  20658. hidapi_support=yes
  20659. fi
  20660. fi
  20661. if test x$hidapi_support = xyes; then
  20662. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20663. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20664. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20665. if test x$have_libusb_h = xyes; then
  20666. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20667. if test x$onlylibusb = xyes; then
  20668. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20669. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20670. else
  20671. if test x$have_loadso != xyes; then
  20672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20673. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20674. fi
  20675. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20676. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20677. libusb_lib=""
  20678. case "$host" in
  20679. *-*-darwin* )
  20680. libusb_lib="libusb-1.0.0.dylib"
  20681. ;;
  20682. *-*-cygwin* | *-*-mingw32* )
  20683. libusb_lib="libusb-1.0.dll"
  20684. ;;
  20685. esac
  20686. if test x$libusb_lib = x; then
  20687. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20688. fi
  20689. cat >>confdefs.h <<_ACEOF
  20690. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20691. _ACEOF
  20692. fi
  20693. else
  20694. case "$host" in
  20695. *-*-cygwin* | *-*-mingw32* )
  20696. SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
  20697. ;;
  20698. *-*-darwin* )
  20699. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  20700. ;;
  20701. esac
  20702. fi
  20703. fi
  20704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20705. $as_echo_n "checking for hidapi support... " >&6; }
  20706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20707. $as_echo "$hidapi_support" >&6; }
  20708. fi
  20709. }
  20710. CheckClockGettime()
  20711. {
  20712. # Check whether --enable-clock_gettime was given.
  20713. if test "${enable_clock_gettime+set}" = set; then :
  20714. enableval=$enable_clock_gettime;
  20715. else
  20716. enable_clock_gettime=yes
  20717. fi
  20718. if test x$enable_clock_gettime = xyes; then
  20719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20720. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20721. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20722. $as_echo_n "(cached) " >&6
  20723. else
  20724. ac_check_lib_save_LIBS=$LIBS
  20725. LIBS="-lrt $LIBS"
  20726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20727. /* end confdefs.h. */
  20728. /* Override any GCC internal prototype to avoid an error.
  20729. Use char because int might match the return type of a GCC
  20730. builtin and then its argument prototype would still apply. */
  20731. #ifdef __cplusplus
  20732. extern "C"
  20733. #endif
  20734. char clock_gettime ();
  20735. int
  20736. main ()
  20737. {
  20738. return clock_gettime ();
  20739. ;
  20740. return 0;
  20741. }
  20742. _ACEOF
  20743. if ac_fn_c_try_link "$LINENO"; then :
  20744. ac_cv_lib_rt_clock_gettime=yes
  20745. else
  20746. ac_cv_lib_rt_clock_gettime=no
  20747. fi
  20748. rm -f core conftest.err conftest.$ac_objext \
  20749. conftest$ac_exeext conftest.$ac_ext
  20750. LIBS=$ac_check_lib_save_LIBS
  20751. fi
  20752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20753. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20754. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20755. have_clock_gettime=yes
  20756. fi
  20757. if test x$have_clock_gettime = xyes; then
  20758. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20759. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20760. else
  20761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20762. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20763. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20764. $as_echo_n "(cached) " >&6
  20765. else
  20766. ac_check_lib_save_LIBS=$LIBS
  20767. LIBS="-lc $LIBS"
  20768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20769. /* end confdefs.h. */
  20770. /* Override any GCC internal prototype to avoid an error.
  20771. Use char because int might match the return type of a GCC
  20772. builtin and then its argument prototype would still apply. */
  20773. #ifdef __cplusplus
  20774. extern "C"
  20775. #endif
  20776. char clock_gettime ();
  20777. int
  20778. main ()
  20779. {
  20780. return clock_gettime ();
  20781. ;
  20782. return 0;
  20783. }
  20784. _ACEOF
  20785. if ac_fn_c_try_link "$LINENO"; then :
  20786. ac_cv_lib_c_clock_gettime=yes
  20787. else
  20788. ac_cv_lib_c_clock_gettime=no
  20789. fi
  20790. rm -f core conftest.err conftest.$ac_objext \
  20791. conftest$ac_exeext conftest.$ac_ext
  20792. LIBS=$ac_check_lib_save_LIBS
  20793. fi
  20794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20795. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20796. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20797. have_clock_gettime=yes
  20798. fi
  20799. if test x$have_clock_gettime = xyes; then
  20800. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20802. fi
  20803. fi
  20804. fi
  20805. }
  20806. CheckLinuxVersion()
  20807. {
  20808. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20809. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20810. have_linux_version_h=yes
  20811. fi
  20812. if test x$have_linux_version_h = xyes; then
  20813. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20814. fi
  20815. }
  20816. CheckRPATH()
  20817. {
  20818. # Check whether --enable-rpath was given.
  20819. if test "${enable_rpath+set}" = set; then :
  20820. enableval=$enable_rpath;
  20821. else
  20822. enable_rpath=yes
  20823. fi
  20824. }
  20825. CheckEventSignals()
  20826. {
  20827. # Check whether --enable-backgrounding-signal was given.
  20828. if test "${enable_backgrounding_signal+set}" = set; then :
  20829. enableval=$enable_backgrounding_signal;
  20830. else
  20831. enable_backgrounding_signal=no
  20832. fi
  20833. if test x$enable_backgrounding_signal != xno; then
  20834. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20835. fi
  20836. # Check whether --enable-foregrounding-signal was given.
  20837. if test "${enable_foregrounding_signal+set}" = set; then :
  20838. enableval=$enable_foregrounding_signal;
  20839. else
  20840. enable_foregrounding_signal=no
  20841. fi
  20842. if test x$enable_foregrounding_signal != xno; then
  20843. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20844. fi
  20845. }
  20846. CheckWarnAll
  20847. CheckNoStrictAliasing
  20848. CheckEventSignals
  20849. case "$host" in
  20850. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20851. case "$host" in
  20852. *-*-android*)
  20853. # Android
  20854. ARCH=android
  20855. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20856. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20857. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20858. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20859. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20860. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20861. if test x$enable_video = xyes; then
  20862. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20863. # FIXME: confdefs? Not AC_DEFINE?
  20864. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20865. SUMMARY_video="${SUMMARY_video} android"
  20866. fi
  20867. ;;
  20868. *-*-linux*) ARCH=linux ;;
  20869. *-*-uclinux*) ARCH=linux ;;
  20870. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20871. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20872. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20873. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20874. *-*-bsdi*) ARCH=bsdi ;;
  20875. *-*-freebsd*) ARCH=freebsd ;;
  20876. *-*-dragonfly*) ARCH=freebsd ;;
  20877. *-*-netbsd*) ARCH=netbsd ;;
  20878. *-*-openbsd*) ARCH=openbsd ;;
  20879. *-*-sysv5*) ARCH=sysv5 ;;
  20880. *-*-solaris*) ARCH=solaris ;;
  20881. *-*-hpux*) ARCH=hpux ;;
  20882. *-*-aix*) ARCH=aix ;;
  20883. *-*-minix*) ARCH=minix ;;
  20884. *-*-nto*) ARCH=nto
  20885. CheckQNXVideo
  20886. ;;
  20887. esac
  20888. CheckVisibilityHidden
  20889. CheckDeclarationAfterStatement
  20890. CheckDummyVideo
  20891. CheckDiskAudio
  20892. CheckDummyAudio
  20893. CheckDLOPEN
  20894. CheckOSS
  20895. CheckALSA
  20896. CheckPulseAudio
  20897. CheckJACK
  20898. CheckARTSC
  20899. CheckESD
  20900. CheckNAS
  20901. CheckSNDIO
  20902. CheckFusionSound
  20903. CheckLibSampleRate
  20904. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20905. CheckRPI
  20906. CheckX11
  20907. CheckDirectFB
  20908. CheckKMSDRM
  20909. CheckOpenGLX11
  20910. CheckOpenGLESX11
  20911. CheckVulkan
  20912. CheckWayland
  20913. CheckInputEvents
  20914. CheckLibUDev
  20915. CheckDBus
  20916. CheckIME
  20917. CheckIBus
  20918. CheckFcitx
  20919. case $ARCH in
  20920. linux)
  20921. CheckInputKD
  20922. ;;
  20923. esac
  20924. CheckTslib
  20925. CheckUSBHID
  20926. CheckHIDAPI
  20927. CheckPTHREAD
  20928. CheckClockGettime
  20929. CheckLinuxVersion
  20930. CheckRPATH
  20931. CheckVivanteVideo
  20932. # Set up files for the audio library
  20933. if test x$enable_audio = xyes; then
  20934. case $ARCH in
  20935. sysv5|solaris|hpux)
  20936. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20937. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20938. SUMMARY_audio="${SUMMARY_audio} sun"
  20939. have_audio=yes
  20940. ;;
  20941. netbsd) # Don't use this on OpenBSD, it's busted.
  20942. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20943. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20944. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20945. have_audio=yes
  20946. ;;
  20947. aix)
  20948. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20949. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20950. SUMMARY_audio="${SUMMARY_audio} paudio"
  20951. have_audio=yes
  20952. ;;
  20953. android)
  20954. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20955. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20956. SUMMARY_audio="${SUMMARY_audio} android"
  20957. have_audio=yes
  20958. ;;
  20959. nto)
  20960. CheckQNXAudio
  20961. ;;
  20962. esac
  20963. fi
  20964. # Set up files for the joystick library
  20965. if test x$enable_joystick = xyes; then
  20966. case $ARCH in
  20967. linux)
  20968. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20969. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20970. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20971. have_joystick=yes
  20972. ;;
  20973. android)
  20974. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20975. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20976. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20977. have_joystick=yes
  20978. ;;
  20979. esac
  20980. fi
  20981. # Set up files for the haptic library
  20982. if test x$enable_haptic = xyes; then
  20983. case $ARCH in
  20984. linux)
  20985. if test x$use_input_events = xyes; then
  20986. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20987. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20988. have_haptic=yes
  20989. fi
  20990. ;;
  20991. android)
  20992. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20993. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20994. have_haptic=yes
  20995. ;;
  20996. esac
  20997. fi
  20998. # Set up files for the sensor library
  20999. if test x$enable_sensor = xyes; then
  21000. case $ARCH in
  21001. android)
  21002. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21003. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21004. have_sensor=yes
  21005. ;;
  21006. esac
  21007. fi
  21008. # Set up files for the power library
  21009. if test x$enable_power = xyes; then
  21010. case $ARCH in
  21011. linux)
  21012. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21013. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21014. have_power=yes
  21015. ;;
  21016. android)
  21017. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21018. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21019. have_power=yes
  21020. ;;
  21021. esac
  21022. fi
  21023. # Set up files for the filesystem library
  21024. if test x$enable_filesystem = xyes; then
  21025. case $ARCH in
  21026. android)
  21027. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21028. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21029. have_filesystem=yes
  21030. ;;
  21031. *)
  21032. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21033. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21034. have_filesystem=yes
  21035. ;;
  21036. esac
  21037. fi
  21038. # Set up files for the timer library
  21039. if test x$enable_timers = xyes; then
  21040. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21041. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21042. have_timers=yes
  21043. fi
  21044. # Set up files for udev hotplugging support
  21045. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21046. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21047. fi
  21048. # Set up files for evdev input
  21049. if test x$use_input_events = xyes; then
  21050. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21051. fi
  21052. # Set up other core UNIX files
  21053. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21054. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21055. ;;
  21056. *-*-cygwin* | *-*-mingw32*)
  21057. ARCH=win32
  21058. if test "$build" != "$host"; then # cross-compiling
  21059. # Default cross-compile location
  21060. ac_default_prefix=/usr/local/cross-tools/$host
  21061. else
  21062. # Look for the location of the tools and install there
  21063. if test "$BUILD_PREFIX" != ""; then
  21064. ac_default_prefix=$BUILD_PREFIX
  21065. fi
  21066. fi
  21067. CheckDeclarationAfterStatement
  21068. CheckDummyVideo
  21069. CheckDiskAudio
  21070. CheckDummyAudio
  21071. CheckWINDOWS
  21072. CheckWINDOWSGL
  21073. CheckWINDOWSGLES
  21074. CheckVulkan
  21075. CheckDIRECTX
  21076. CheckHIDAPI
  21077. # Set up the core platform files
  21078. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21079. # Set up files for the video library
  21080. if test x$enable_video = xyes; then
  21081. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21082. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21083. have_video=yes
  21084. # Check whether --enable-render-d3d was given.
  21085. if test "${enable_render_d3d+set}" = set; then :
  21086. enableval=$enable_render_d3d;
  21087. else
  21088. enable_render_d3d=yes
  21089. fi
  21090. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21091. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21092. SUMMARY_video="${SUMMARY_video} d3d9"
  21093. fi
  21094. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21095. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21096. SUMMARY_video="${SUMMARY_video} d3d11"
  21097. fi
  21098. fi
  21099. # Set up files for the audio library
  21100. if test x$enable_audio = xyes; then
  21101. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21102. SUMMARY_audio="${SUMMARY_audio} winmm"
  21103. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21104. if test x$have_dsound = xyes; then
  21105. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21106. SUMMARY_audio="${SUMMARY_audio} directsound"
  21107. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21108. fi
  21109. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21110. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21111. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21112. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21113. fi
  21114. have_audio=yes
  21115. fi
  21116. # Set up files for the joystick library
  21117. if test x$enable_joystick = xyes; then
  21118. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21119. if test x$have_xinput = xyes; then
  21120. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21121. fi
  21122. if test x$have_dinput = xyes; then
  21123. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21125. fi
  21126. else
  21127. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21128. fi
  21129. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21130. have_joystick=yes
  21131. fi
  21132. if test x$enable_haptic = xyes; then
  21133. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21134. if test x$have_xinput = xyes; then
  21135. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21136. fi
  21137. if test x$have_dinput = xyes; then
  21138. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21139. fi
  21140. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21141. have_haptic=yes
  21142. fi
  21143. fi
  21144. if test x$enable_power = xyes; then
  21145. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21146. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21147. have_power=yes
  21148. fi
  21149. if test x$enable_filesystem = xyes; then
  21150. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21151. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21152. have_filesystem=yes
  21153. fi
  21154. # Set up files for the thread library
  21155. if test x$enable_threads = xyes; then
  21156. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21157. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21158. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21159. have_threads=yes
  21160. fi
  21161. # Set up files for the timer library
  21162. if test x$enable_timers = xyes; then
  21163. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21164. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21165. have_timers=yes
  21166. fi
  21167. # Set up files for the shared object loading library
  21168. if test x$enable_loadso = xyes; then
  21169. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21170. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21171. have_loadso=yes
  21172. fi
  21173. # Set up the system libraries we need
  21174. if test -f /lib/w32api/libuuid.a; then
  21175. LIBUUID=/lib/w32api/libuuid.a
  21176. else
  21177. LIBUUID=-luuid
  21178. fi
  21179. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21180. # The Windows platform requires special setup
  21181. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21182. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21183. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21184. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21185. # Check to see if this is a mingw or cygwin build
  21186. have_mingw32=
  21187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21188. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21189. if ${ac_cv_lib_mingw32_main+:} false; then :
  21190. $as_echo_n "(cached) " >&6
  21191. else
  21192. ac_check_lib_save_LIBS=$LIBS
  21193. LIBS="-lmingw32 $LIBS"
  21194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21195. /* end confdefs.h. */
  21196. int
  21197. main ()
  21198. {
  21199. return main ();
  21200. ;
  21201. return 0;
  21202. }
  21203. _ACEOF
  21204. if ac_fn_c_try_link "$LINENO"; then :
  21205. ac_cv_lib_mingw32_main=yes
  21206. else
  21207. ac_cv_lib_mingw32_main=no
  21208. fi
  21209. rm -f core conftest.err conftest.$ac_objext \
  21210. conftest$ac_exeext conftest.$ac_ext
  21211. LIBS=$ac_check_lib_save_LIBS
  21212. fi
  21213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21214. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21215. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21216. have_mingw32=yes
  21217. fi
  21218. if test x$have_mingw32 = xyes; then
  21219. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21220. else
  21221. SDL_LIBS="-lcygwin $SDL_LIBS"
  21222. fi
  21223. ;;
  21224. *-*-beos*)
  21225. as_fn_error $? "
  21226. *** BeOS support has been removed as of SDL 2.0.2.
  21227. " "$LINENO" 5
  21228. ;;
  21229. *-*-haiku*)
  21230. ARCH=haiku
  21231. ac_default_prefix=/boot/system
  21232. CheckDummyVideo
  21233. CheckDiskAudio
  21234. CheckDummyAudio
  21235. CheckDLOPEN
  21236. CheckHaikuVideo
  21237. CheckHaikuGL
  21238. CheckPTHREAD
  21239. # Set up files for the audio library
  21240. if test x$enable_audio = xyes; then
  21241. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21242. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21243. SUMMARY_audio="${SUMMARY_audio} haiku"
  21244. have_audio=yes
  21245. fi
  21246. # Set up files for the joystick library
  21247. if test x$enable_joystick = xyes; then
  21248. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21249. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21250. have_joystick=yes
  21251. fi
  21252. # Set up files for the timer library
  21253. if test x$enable_timers = xyes; then
  21254. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21255. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21256. have_timers=yes
  21257. fi
  21258. # Set up files for the system power library
  21259. if test x$enable_power = xyes; then
  21260. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21261. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21262. have_power=yes
  21263. fi
  21264. # Set up files for the system filesystem library
  21265. if test x$enable_filesystem = xyes; then
  21266. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21267. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21268. have_filesystem=yes
  21269. fi
  21270. # The Haiku platform requires special setup.
  21271. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21273. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21274. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21275. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21277. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21278. if eval \${$as_ac_File+:} false; then :
  21279. $as_echo_n "(cached) " >&6
  21280. else
  21281. test "$cross_compiling" = yes &&
  21282. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21283. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21284. eval "$as_ac_File=yes"
  21285. else
  21286. eval "$as_ac_File=no"
  21287. fi
  21288. fi
  21289. eval ac_res=\$$as_ac_File
  21290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21291. $as_echo "$ac_res" >&6; }
  21292. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21293. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21294. else
  21295. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21296. fi
  21297. ;;
  21298. arm*-apple-darwin*|*-ios-*)
  21299. ARCH=ios
  21300. CheckVisibilityHidden
  21301. CheckDeclarationAfterStatement
  21302. CheckDummyVideo
  21303. CheckDiskAudio
  21304. CheckDummyAudio
  21305. CheckDLOPEN
  21306. CheckMETAL
  21307. CheckVulkan
  21308. CheckPTHREAD
  21309. # Set up files for the audio library
  21310. if test x$enable_audio = xyes; then
  21311. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21312. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21313. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21314. have_audio=yes
  21315. fi
  21316. # Set up files for the joystick library
  21317. if test x$enable_joystick = xyes; then
  21318. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21319. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21320. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21321. have_joystick=yes
  21322. fi
  21323. # Set up files for the haptic library
  21324. #if test x$enable_haptic = xyes; then
  21325. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21326. # have_haptic=yes
  21327. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21328. #fi
  21329. # Set up files for the power library
  21330. if test x$enable_power = xyes; then
  21331. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21332. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21333. have_power=yes
  21334. fi
  21335. # Set up files for the filesystem library
  21336. if test x$enable_filesystem = xyes; then
  21337. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21338. have_filesystem=yes
  21339. fi
  21340. # Set up additional files for the file library
  21341. if test x$enable_file = xyes; then
  21342. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21343. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21344. fi
  21345. # Set up files for the timer library
  21346. if test x$enable_timers = xyes; then
  21347. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21348. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21349. have_timers=yes
  21350. fi
  21351. # Set up other core UNIX files
  21352. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21353. # The iOS platform requires special setup.
  21354. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21355. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21356. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21357. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21358. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21359. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21361. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21364. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21366. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21367. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21369. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21370. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21371. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21372. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21373. fi
  21374. ;;
  21375. *-*-darwin* )
  21376. # This could be either full "Mac OS X", or plain "Darwin" which is
  21377. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21378. # Next line is broken, and a few files below require Mac OS X (full)
  21379. ARCH=macosx
  21380. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21381. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21382. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21383. CheckVisibilityHidden
  21384. CheckDeclarationAfterStatement
  21385. CheckDummyVideo
  21386. CheckDiskAudio
  21387. CheckDummyAudio
  21388. CheckDLOPEN
  21389. CheckCOCOA
  21390. CheckMETAL
  21391. CheckX11
  21392. CheckMacGL
  21393. CheckMacGLES
  21394. CheckOpenGLX11
  21395. CheckVulkan
  21396. CheckPTHREAD
  21397. CheckHIDAPI
  21398. # Set up files for the audio library
  21399. if test x$enable_audio = xyes; then
  21400. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21401. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21402. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21403. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21404. have_audio=yes
  21405. fi
  21406. # Set up files for the joystick library
  21407. if test x$enable_joystick = xyes; then
  21408. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21409. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21410. have_joystick=yes
  21411. fi
  21412. # Set up files for the haptic library
  21413. if test x$enable_haptic = xyes; then
  21414. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21415. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21417. have_haptic=yes
  21418. fi
  21419. # Set up files for the power library
  21420. if test x$enable_power = xyes; then
  21421. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21422. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21423. have_power=yes
  21424. fi
  21425. # Set up files for the filesystem library
  21426. if test x$enable_filesystem = xyes; then
  21427. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21428. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21429. have_filesystem=yes
  21430. fi
  21431. # Set up files for the timer library
  21432. if test x$enable_timers = xyes; then
  21433. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21434. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21435. have_timers=yes
  21436. fi
  21437. # Set up additional files for the file library
  21438. if test x$enable_file = xyes; then
  21439. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21440. fi
  21441. # Set up other core UNIX files
  21442. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21443. # The Mac OS X platform requires special setup.
  21444. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21445. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21446. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21447. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21448. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21449. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21451. fi
  21452. ;;
  21453. *-nacl|*-pnacl)
  21454. ARCH=nacl
  21455. CheckNativeClient
  21456. CheckDummyAudio
  21457. CheckDummyVideo
  21458. CheckInputEvents
  21459. CheckPTHREAD
  21460. # Set up files for the timer library
  21461. if test x$enable_timers = xyes; then
  21462. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21463. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21464. have_timers=yes
  21465. fi
  21466. if test x$enable_filesystem = xyes; then
  21467. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21468. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21469. have_filesystem=yes
  21470. fi
  21471. ;;
  21472. *-*-emscripten* )
  21473. if test x$enable_video = xyes; then
  21474. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21475. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21476. have_video=yes
  21477. SUMMARY_video="${SUMMARY_video} emscripten"
  21478. fi
  21479. if test x$enable_audio = xyes; then
  21480. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21481. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21482. have_audio=yes
  21483. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21484. fi
  21485. CheckVisibilityHidden
  21486. CheckDeclarationAfterStatement
  21487. CheckDummyVideo
  21488. CheckDiskAudio
  21489. CheckDummyAudio
  21490. CheckDLOPEN
  21491. CheckClockGettime
  21492. CheckEmscriptenGLES
  21493. # Set up files for the power library
  21494. if test x$enable_power = xyes; then
  21495. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21496. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21497. have_power=yes
  21498. fi
  21499. # Set up files for the power library
  21500. if test x$enable_joystick = xyes; then
  21501. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21502. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21503. have_joystick=yes
  21504. fi
  21505. # Set up files for the filesystem library
  21506. if test x$enable_filesystem = xyes; then
  21507. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21508. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21509. have_filesystem=yes
  21510. fi
  21511. # Set up files for the timer library
  21512. if test x$enable_timers = xyes; then
  21513. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21514. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21515. have_timers=yes
  21516. fi
  21517. ;;
  21518. *)
  21519. as_fn_error $? "
  21520. *** Unsupported host: Please add to configure.ac
  21521. " "$LINENO" 5
  21522. ;;
  21523. esac
  21524. # Check whether to install sdl2-config
  21525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21526. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21527. # Check whether --enable-sdl2-config was given.
  21528. if test "${enable_sdl2_config+set}" = set; then :
  21529. enableval=$enable_sdl2_config; case "${enableval}" in
  21530. yes) enable_sdl2_config="TRUE" ;;
  21531. no) enable_sdl2_config="FALSE" ;;
  21532. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21533. esac
  21534. else
  21535. enable_sdl2_config="TRUE"
  21536. fi
  21537. if test "$enable_sdl2_config" = "TRUE"; then
  21538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21539. $as_echo "yes" >&6; }
  21540. else
  21541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21542. $as_echo "no" >&6; }
  21543. fi
  21544. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21545. # Verify that we have all the platform specific files we need
  21546. if test x$have_joystick != xyes; then
  21547. if test x$enable_joystick = xyes; then
  21548. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21549. fi
  21550. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21551. fi
  21552. if test x$have_haptic != xyes; then
  21553. if test x$enable_haptic = xyes; then
  21554. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21555. fi
  21556. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21557. fi
  21558. if test x$have_sensor != xyes; then
  21559. if test x$enable_sensor = xyes; then
  21560. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21561. fi
  21562. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21563. fi
  21564. if test x$have_threads != xyes; then
  21565. if test x$enable_threads = xyes; then
  21566. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21567. fi
  21568. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21569. fi
  21570. if test x$have_timers != xyes; then
  21571. if test x$enable_timers = xyes; then
  21572. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21573. fi
  21574. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21575. fi
  21576. if test x$have_filesystem != xyes; then
  21577. if test x$enable_filesystem = xyes; then
  21578. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21579. fi
  21580. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21581. fi
  21582. if test x$have_loadso != xyes; then
  21583. if test x$enable_loadso = xyes; then
  21584. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21585. fi
  21586. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21587. fi
  21588. if test x$SDLMAIN_SOURCES = x; then
  21589. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21590. fi
  21591. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21592. if test x$video_wayland = xyes; then
  21593. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21594. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21595. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21596. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21597. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21598. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21599. echo ;\
  21600. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21601. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21602. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21603. echo ;\
  21604. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21605. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21606. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21607. echo ;\
  21608. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21609. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21610. done ;\
  21611. echo ;\
  21612. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21613. fi
  21614. OBJECTS=`echo $SOURCES`
  21615. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21616. for EXT in asm cc m c S; do
  21617. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21618. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21619. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21620. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21621. done
  21622. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21623. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21624. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21625. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21626. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21627. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21628. \\$(WINDRES) \\$< \\$@,g"`
  21629. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21630. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21631. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21632. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21633. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21634. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21635. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21636. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21637. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21638. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21639. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21640. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21641. # Set runtime shared library paths as needed
  21642. if test "x$enable_rpath" = "xyes"; then
  21643. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21644. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21646. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21647. have_enable_new_dtags=no
  21648. save_LDFLAGS="$LDFLAGS"
  21649. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21651. /* end confdefs.h. */
  21652. int
  21653. main ()
  21654. {
  21655. ;
  21656. return 0;
  21657. }
  21658. _ACEOF
  21659. if ac_fn_c_try_link "$LINENO"; then :
  21660. have_enable_new_dtags=yes
  21661. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21662. fi
  21663. rm -f core conftest.err conftest.$ac_objext \
  21664. conftest$ac_exeext conftest.$ac_ext
  21665. LDFLAGS="$save_LDFLAGS"
  21666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21667. $as_echo "$have_enable_new_dtags" >&6; }
  21668. fi
  21669. if test $ARCH = solaris; then
  21670. SDL_RLD_FLAGS="-R\${libdir}"
  21671. fi
  21672. else
  21673. SDL_RLD_FLAGS=""
  21674. fi
  21675. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21676. if test x$enable_shared = xyes; then
  21677. ENABLE_SHARED_TRUE=
  21678. ENABLE_SHARED_FALSE="#"
  21679. else
  21680. ENABLE_SHARED_TRUE="#"
  21681. ENABLE_SHARED_FALSE=
  21682. fi
  21683. if test x$enable_static = xyes; then
  21684. ENABLE_STATIC_TRUE=
  21685. ENABLE_STATIC_FALSE="#"
  21686. else
  21687. ENABLE_STATIC_TRUE="#"
  21688. ENABLE_STATIC_FALSE=
  21689. fi
  21690. cat >Makefile.rules <<__EOF__
  21691. # Build rules for objects
  21692. -include \$(OBJECTS:.lo=.d)
  21693. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21694. $srcdir/src/SDL.c: update-revision
  21695. $DEPENDS
  21696. $VERSION_DEPENDS
  21697. $SDLMAIN_DEPENDS
  21698. $SDLTEST_DEPENDS
  21699. $WAYLAND_PROTOCOLS_DEPENDS
  21700. __EOF__
  21701. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21702. ac_config_commands="$ac_config_commands sdl2_config"
  21703. SUMMARY="SDL2 Configure Summary:\n"
  21704. if test x$enable_shared = xyes; then
  21705. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21706. fi
  21707. if test x$enable_static = xyes; then
  21708. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21709. fi
  21710. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21711. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21712. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21713. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21714. if test x$have_x = xyes; then
  21715. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21716. fi
  21717. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21718. if test x$have_samplerate_h_hdr = xyes; then
  21719. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21720. else
  21721. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21722. fi
  21723. if test x$have_libudev_h_hdr = xyes; then
  21724. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21725. else
  21726. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21727. fi
  21728. if test x$have_dbus_dbus_h_hdr = xyes; then
  21729. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21730. else
  21731. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21732. fi
  21733. if test x$enable_ime = xyes; then
  21734. SUMMARY="${SUMMARY}Using ime : YES\n"
  21735. else
  21736. SUMMARY="${SUMMARY}Using ime : NO\n"
  21737. fi
  21738. if test x$have_ibus_ibus_h_hdr = xyes; then
  21739. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21740. else
  21741. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21742. fi
  21743. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21744. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21745. else
  21746. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21747. fi
  21748. ac_config_commands="$ac_config_commands summary"
  21749. cat >confcache <<\_ACEOF
  21750. # This file is a shell script that caches the results of configure
  21751. # tests run on this system so they can be shared between configure
  21752. # scripts and configure runs, see configure's option --config-cache.
  21753. # It is not useful on other systems. If it contains results you don't
  21754. # want to keep, you may remove or edit it.
  21755. #
  21756. # config.status only pays attention to the cache file if you give it
  21757. # the --recheck option to rerun configure.
  21758. #
  21759. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21760. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21761. # following values.
  21762. _ACEOF
  21763. # The following way of writing the cache mishandles newlines in values,
  21764. # but we know of no workaround that is simple, portable, and efficient.
  21765. # So, we kill variables containing newlines.
  21766. # Ultrix sh set writes to stderr and can't be redirected directly,
  21767. # and sets the high bit in the cache file unless we assign to the vars.
  21768. (
  21769. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21770. eval ac_val=\$$ac_var
  21771. case $ac_val in #(
  21772. *${as_nl}*)
  21773. case $ac_var in #(
  21774. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21775. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21776. esac
  21777. case $ac_var in #(
  21778. _ | IFS | as_nl) ;; #(
  21779. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21780. *) { eval $ac_var=; unset $ac_var;} ;;
  21781. esac ;;
  21782. esac
  21783. done
  21784. (set) 2>&1 |
  21785. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21786. *${as_nl}ac_space=\ *)
  21787. # `set' does not quote correctly, so add quotes: double-quote
  21788. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21789. sed -n \
  21790. "s/'/'\\\\''/g;
  21791. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21792. ;; #(
  21793. *)
  21794. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21795. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21796. ;;
  21797. esac |
  21798. sort
  21799. ) |
  21800. sed '
  21801. /^ac_cv_env_/b end
  21802. t clear
  21803. :clear
  21804. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21805. t end
  21806. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21807. :end' >>confcache
  21808. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21809. if test -w "$cache_file"; then
  21810. if test "x$cache_file" != "x/dev/null"; then
  21811. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21812. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21813. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21814. cat confcache >"$cache_file"
  21815. else
  21816. case $cache_file in #(
  21817. */* | ?:*)
  21818. mv -f confcache "$cache_file"$$ &&
  21819. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21820. *)
  21821. mv -f confcache "$cache_file" ;;
  21822. esac
  21823. fi
  21824. fi
  21825. else
  21826. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21827. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21828. fi
  21829. fi
  21830. rm -f confcache
  21831. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21832. # Let make expand exec_prefix.
  21833. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21834. DEFS=-DHAVE_CONFIG_H
  21835. ac_libobjs=
  21836. ac_ltlibobjs=
  21837. U=
  21838. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21839. # 1. Remove the extension, and $U if already installed.
  21840. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21841. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21842. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21843. # will be set to the directory where LIBOBJS objects are built.
  21844. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21845. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21846. done
  21847. LIBOBJS=$ac_libobjs
  21848. LTLIBOBJS=$ac_ltlibobjs
  21849. : "${CONFIG_STATUS=./config.status}"
  21850. ac_write_fail=0
  21851. ac_clean_files_save=$ac_clean_files
  21852. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21853. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21854. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21855. as_write_fail=0
  21856. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21857. #! $SHELL
  21858. # Generated by $as_me.
  21859. # Run this file to recreate the current configuration.
  21860. # Compiler output produced by configure, useful for debugging
  21861. # configure, is in config.log if it exists.
  21862. debug=false
  21863. ac_cs_recheck=false
  21864. ac_cs_silent=false
  21865. SHELL=\${CONFIG_SHELL-$SHELL}
  21866. export SHELL
  21867. _ASEOF
  21868. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21869. ## -------------------- ##
  21870. ## M4sh Initialization. ##
  21871. ## -------------------- ##
  21872. # Be more Bourne compatible
  21873. DUALCASE=1; export DUALCASE # for MKS sh
  21874. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21875. emulate sh
  21876. NULLCMD=:
  21877. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21878. # is contrary to our usage. Disable this feature.
  21879. alias -g '${1+"$@"}'='"$@"'
  21880. setopt NO_GLOB_SUBST
  21881. else
  21882. case `(set -o) 2>/dev/null` in #(
  21883. *posix*) :
  21884. set -o posix ;; #(
  21885. *) :
  21886. ;;
  21887. esac
  21888. fi
  21889. as_nl='
  21890. '
  21891. export as_nl
  21892. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21893. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21894. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21895. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21896. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21897. # but without wasting forks for bash or zsh.
  21898. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21899. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21900. as_echo='print -r --'
  21901. as_echo_n='print -rn --'
  21902. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21903. as_echo='printf %s\n'
  21904. as_echo_n='printf %s'
  21905. else
  21906. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21907. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21908. as_echo_n='/usr/ucb/echo -n'
  21909. else
  21910. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21911. as_echo_n_body='eval
  21912. arg=$1;
  21913. case $arg in #(
  21914. *"$as_nl"*)
  21915. expr "X$arg" : "X\\(.*\\)$as_nl";
  21916. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21917. esac;
  21918. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21919. '
  21920. export as_echo_n_body
  21921. as_echo_n='sh -c $as_echo_n_body as_echo'
  21922. fi
  21923. export as_echo_body
  21924. as_echo='sh -c $as_echo_body as_echo'
  21925. fi
  21926. # The user is always right.
  21927. if test "${PATH_SEPARATOR+set}" != set; then
  21928. PATH_SEPARATOR=:
  21929. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21930. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21931. PATH_SEPARATOR=';'
  21932. }
  21933. fi
  21934. # IFS
  21935. # We need space, tab and new line, in precisely that order. Quoting is
  21936. # there to prevent editors from complaining about space-tab.
  21937. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21938. # splitting by setting IFS to empty value.)
  21939. IFS=" "" $as_nl"
  21940. # Find who we are. Look in the path if we contain no directory separator.
  21941. as_myself=
  21942. case $0 in #((
  21943. *[\\/]* ) as_myself=$0 ;;
  21944. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21945. for as_dir in $PATH
  21946. do
  21947. IFS=$as_save_IFS
  21948. test -z "$as_dir" && as_dir=.
  21949. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21950. done
  21951. IFS=$as_save_IFS
  21952. ;;
  21953. esac
  21954. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21955. # in which case we are not to be found in the path.
  21956. if test "x$as_myself" = x; then
  21957. as_myself=$0
  21958. fi
  21959. if test ! -f "$as_myself"; then
  21960. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21961. exit 1
  21962. fi
  21963. # Unset variables that we do not need and which cause bugs (e.g. in
  21964. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21965. # suppresses any "Segmentation fault" message there. '((' could
  21966. # trigger a bug in pdksh 5.2.14.
  21967. for as_var in BASH_ENV ENV MAIL MAILPATH
  21968. do eval test x\${$as_var+set} = xset \
  21969. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21970. done
  21971. PS1='$ '
  21972. PS2='> '
  21973. PS4='+ '
  21974. # NLS nuisances.
  21975. LC_ALL=C
  21976. export LC_ALL
  21977. LANGUAGE=C
  21978. export LANGUAGE
  21979. # CDPATH.
  21980. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21981. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21982. # ----------------------------------------
  21983. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21984. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21985. # script with STATUS, using 1 if that was 0.
  21986. as_fn_error ()
  21987. {
  21988. as_status=$1; test $as_status -eq 0 && as_status=1
  21989. if test "$4"; then
  21990. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21991. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21992. fi
  21993. $as_echo "$as_me: error: $2" >&2
  21994. as_fn_exit $as_status
  21995. } # as_fn_error
  21996. # as_fn_set_status STATUS
  21997. # -----------------------
  21998. # Set $? to STATUS, without forking.
  21999. as_fn_set_status ()
  22000. {
  22001. return $1
  22002. } # as_fn_set_status
  22003. # as_fn_exit STATUS
  22004. # -----------------
  22005. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22006. as_fn_exit ()
  22007. {
  22008. set +e
  22009. as_fn_set_status $1
  22010. exit $1
  22011. } # as_fn_exit
  22012. # as_fn_unset VAR
  22013. # ---------------
  22014. # Portably unset VAR.
  22015. as_fn_unset ()
  22016. {
  22017. { eval $1=; unset $1;}
  22018. }
  22019. as_unset=as_fn_unset
  22020. # as_fn_append VAR VALUE
  22021. # ----------------------
  22022. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22023. # advantage of any shell optimizations that allow amortized linear growth over
  22024. # repeated appends, instead of the typical quadratic growth present in naive
  22025. # implementations.
  22026. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22027. eval 'as_fn_append ()
  22028. {
  22029. eval $1+=\$2
  22030. }'
  22031. else
  22032. as_fn_append ()
  22033. {
  22034. eval $1=\$$1\$2
  22035. }
  22036. fi # as_fn_append
  22037. # as_fn_arith ARG...
  22038. # ------------------
  22039. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22040. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22041. # must be portable across $(()) and expr.
  22042. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22043. eval 'as_fn_arith ()
  22044. {
  22045. as_val=$(( $* ))
  22046. }'
  22047. else
  22048. as_fn_arith ()
  22049. {
  22050. as_val=`expr "$@" || test $? -eq 1`
  22051. }
  22052. fi # as_fn_arith
  22053. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22054. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22055. as_expr=expr
  22056. else
  22057. as_expr=false
  22058. fi
  22059. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22060. as_basename=basename
  22061. else
  22062. as_basename=false
  22063. fi
  22064. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22065. as_dirname=dirname
  22066. else
  22067. as_dirname=false
  22068. fi
  22069. as_me=`$as_basename -- "$0" ||
  22070. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22071. X"$0" : 'X\(//\)$' \| \
  22072. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22073. $as_echo X/"$0" |
  22074. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22075. s//\1/
  22076. q
  22077. }
  22078. /^X\/\(\/\/\)$/{
  22079. s//\1/
  22080. q
  22081. }
  22082. /^X\/\(\/\).*/{
  22083. s//\1/
  22084. q
  22085. }
  22086. s/.*/./; q'`
  22087. # Avoid depending upon Character Ranges.
  22088. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22089. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22090. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22091. as_cr_digits='0123456789'
  22092. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22093. ECHO_C= ECHO_N= ECHO_T=
  22094. case `echo -n x` in #(((((
  22095. -n*)
  22096. case `echo 'xy\c'` in
  22097. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22098. xy) ECHO_C='\c';;
  22099. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22100. ECHO_T=' ';;
  22101. esac;;
  22102. *)
  22103. ECHO_N='-n';;
  22104. esac
  22105. rm -f conf$$ conf$$.exe conf$$.file
  22106. if test -d conf$$.dir; then
  22107. rm -f conf$$.dir/conf$$.file
  22108. else
  22109. rm -f conf$$.dir
  22110. mkdir conf$$.dir 2>/dev/null
  22111. fi
  22112. if (echo >conf$$.file) 2>/dev/null; then
  22113. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22114. as_ln_s='ln -s'
  22115. # ... but there are two gotchas:
  22116. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22117. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22118. # In both cases, we have to default to `cp -pR'.
  22119. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22120. as_ln_s='cp -pR'
  22121. elif ln conf$$.file conf$$ 2>/dev/null; then
  22122. as_ln_s=ln
  22123. else
  22124. as_ln_s='cp -pR'
  22125. fi
  22126. else
  22127. as_ln_s='cp -pR'
  22128. fi
  22129. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22130. rmdir conf$$.dir 2>/dev/null
  22131. # as_fn_mkdir_p
  22132. # -------------
  22133. # Create "$as_dir" as a directory, including parents if necessary.
  22134. as_fn_mkdir_p ()
  22135. {
  22136. case $as_dir in #(
  22137. -*) as_dir=./$as_dir;;
  22138. esac
  22139. test -d "$as_dir" || eval $as_mkdir_p || {
  22140. as_dirs=
  22141. while :; do
  22142. case $as_dir in #(
  22143. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22144. *) as_qdir=$as_dir;;
  22145. esac
  22146. as_dirs="'$as_qdir' $as_dirs"
  22147. as_dir=`$as_dirname -- "$as_dir" ||
  22148. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22149. X"$as_dir" : 'X\(//\)[^/]' \| \
  22150. X"$as_dir" : 'X\(//\)$' \| \
  22151. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22152. $as_echo X"$as_dir" |
  22153. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22154. s//\1/
  22155. q
  22156. }
  22157. /^X\(\/\/\)[^/].*/{
  22158. s//\1/
  22159. q
  22160. }
  22161. /^X\(\/\/\)$/{
  22162. s//\1/
  22163. q
  22164. }
  22165. /^X\(\/\).*/{
  22166. s//\1/
  22167. q
  22168. }
  22169. s/.*/./; q'`
  22170. test -d "$as_dir" && break
  22171. done
  22172. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22173. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22174. } # as_fn_mkdir_p
  22175. if mkdir -p . 2>/dev/null; then
  22176. as_mkdir_p='mkdir -p "$as_dir"'
  22177. else
  22178. test -d ./-p && rmdir ./-p
  22179. as_mkdir_p=false
  22180. fi
  22181. # as_fn_executable_p FILE
  22182. # -----------------------
  22183. # Test if FILE is an executable regular file.
  22184. as_fn_executable_p ()
  22185. {
  22186. test -f "$1" && test -x "$1"
  22187. } # as_fn_executable_p
  22188. as_test_x='test -x'
  22189. as_executable_p=as_fn_executable_p
  22190. # Sed expression to map a string onto a valid CPP name.
  22191. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22192. # Sed expression to map a string onto a valid variable name.
  22193. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22194. exec 6>&1
  22195. ## ----------------------------------- ##
  22196. ## Main body of $CONFIG_STATUS script. ##
  22197. ## ----------------------------------- ##
  22198. _ASEOF
  22199. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22200. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22201. # Save the log message, to keep $0 and so on meaningful, and to
  22202. # report actual input values of CONFIG_FILES etc. instead of their
  22203. # values after options handling.
  22204. ac_log="
  22205. This file was extended by $as_me, which was
  22206. generated by GNU Autoconf 2.69. Invocation command line was
  22207. CONFIG_FILES = $CONFIG_FILES
  22208. CONFIG_HEADERS = $CONFIG_HEADERS
  22209. CONFIG_LINKS = $CONFIG_LINKS
  22210. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22211. $ $0 $@
  22212. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22213. "
  22214. _ACEOF
  22215. case $ac_config_files in *"
  22216. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22217. esac
  22218. case $ac_config_headers in *"
  22219. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22220. esac
  22221. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22222. # Files that config.status was made for.
  22223. config_files="$ac_config_files"
  22224. config_headers="$ac_config_headers"
  22225. config_commands="$ac_config_commands"
  22226. _ACEOF
  22227. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22228. ac_cs_usage="\
  22229. \`$as_me' instantiates files and other configuration actions
  22230. from templates according to the current configuration. Unless the files
  22231. and actions are specified as TAGs, all are instantiated by default.
  22232. Usage: $0 [OPTION]... [TAG]...
  22233. -h, --help print this help, then exit
  22234. -V, --version print version number and configuration settings, then exit
  22235. --config print configuration, then exit
  22236. -q, --quiet, --silent
  22237. do not print progress messages
  22238. -d, --debug don't remove temporary files
  22239. --recheck update $as_me by reconfiguring in the same conditions
  22240. --file=FILE[:TEMPLATE]
  22241. instantiate the configuration file FILE
  22242. --header=FILE[:TEMPLATE]
  22243. instantiate the configuration header FILE
  22244. Configuration files:
  22245. $config_files
  22246. Configuration headers:
  22247. $config_headers
  22248. Configuration commands:
  22249. $config_commands
  22250. Report bugs to the package provider."
  22251. _ACEOF
  22252. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22253. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22254. ac_cs_version="\\
  22255. config.status
  22256. configured by $0, generated by GNU Autoconf 2.69,
  22257. with options \\"\$ac_cs_config\\"
  22258. Copyright (C) 2012 Free Software Foundation, Inc.
  22259. This config.status script is free software; the Free Software Foundation
  22260. gives unlimited permission to copy, distribute and modify it."
  22261. ac_pwd='$ac_pwd'
  22262. srcdir='$srcdir'
  22263. INSTALL='$INSTALL'
  22264. AWK='$AWK'
  22265. test -n "\$AWK" || AWK=awk
  22266. _ACEOF
  22267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22268. # The default lists apply if the user does not specify any file.
  22269. ac_need_defaults=:
  22270. while test $# != 0
  22271. do
  22272. case $1 in
  22273. --*=?*)
  22274. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22275. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22276. ac_shift=:
  22277. ;;
  22278. --*=)
  22279. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22280. ac_optarg=
  22281. ac_shift=:
  22282. ;;
  22283. *)
  22284. ac_option=$1
  22285. ac_optarg=$2
  22286. ac_shift=shift
  22287. ;;
  22288. esac
  22289. case $ac_option in
  22290. # Handling of the options.
  22291. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22292. ac_cs_recheck=: ;;
  22293. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22294. $as_echo "$ac_cs_version"; exit ;;
  22295. --config | --confi | --conf | --con | --co | --c )
  22296. $as_echo "$ac_cs_config"; exit ;;
  22297. --debug | --debu | --deb | --de | --d | -d )
  22298. debug=: ;;
  22299. --file | --fil | --fi | --f )
  22300. $ac_shift
  22301. case $ac_optarg in
  22302. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22303. '') as_fn_error $? "missing file argument" ;;
  22304. esac
  22305. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22306. ac_need_defaults=false;;
  22307. --header | --heade | --head | --hea )
  22308. $ac_shift
  22309. case $ac_optarg in
  22310. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22311. esac
  22312. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22313. ac_need_defaults=false;;
  22314. --he | --h)
  22315. # Conflict between --help and --header
  22316. as_fn_error $? "ambiguous option: \`$1'
  22317. Try \`$0 --help' for more information.";;
  22318. --help | --hel | -h )
  22319. $as_echo "$ac_cs_usage"; exit ;;
  22320. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22321. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22322. ac_cs_silent=: ;;
  22323. # This is an error.
  22324. -*) as_fn_error $? "unrecognized option: \`$1'
  22325. Try \`$0 --help' for more information." ;;
  22326. *) as_fn_append ac_config_targets " $1"
  22327. ac_need_defaults=false ;;
  22328. esac
  22329. shift
  22330. done
  22331. ac_configure_extra_args=
  22332. if $ac_cs_silent; then
  22333. exec 6>/dev/null
  22334. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22335. fi
  22336. _ACEOF
  22337. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22338. if \$ac_cs_recheck; then
  22339. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22340. shift
  22341. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22342. CONFIG_SHELL='$SHELL'
  22343. export CONFIG_SHELL
  22344. exec "\$@"
  22345. fi
  22346. _ACEOF
  22347. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22348. exec 5>>config.log
  22349. {
  22350. echo
  22351. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22352. ## Running $as_me. ##
  22353. _ASBOX
  22354. $as_echo "$ac_log"
  22355. } >&5
  22356. _ACEOF
  22357. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22358. #
  22359. # INIT-COMMANDS
  22360. #
  22361. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22362. # if CDPATH is set.
  22363. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22364. sed_quote_subst='$sed_quote_subst'
  22365. double_quote_subst='$double_quote_subst'
  22366. delay_variable_subst='$delay_variable_subst'
  22367. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22368. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22369. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22370. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22371. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22372. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22373. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22374. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22375. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22376. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22377. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22378. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22379. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22380. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22381. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22382. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22383. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22384. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22385. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22386. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22387. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22388. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22389. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22390. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22391. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22392. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22393. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22394. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22395. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22396. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22397. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22398. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22399. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22400. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22401. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22402. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22403. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22404. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22405. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22406. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22407. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22408. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22409. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22410. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22411. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22412. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22413. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22414. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22415. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22416. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22417. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22418. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22419. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22420. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22421. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22422. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22423. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22424. 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"`'
  22425. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22426. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22427. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22428. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22429. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22430. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22431. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22432. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22433. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22434. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22435. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22436. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22437. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22438. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22439. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22440. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22441. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22442. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22443. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22444. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22445. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22446. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22447. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22448. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22449. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22450. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22451. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22452. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22453. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22454. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22455. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22456. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22457. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22458. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22459. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22460. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22461. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22462. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22463. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22464. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22465. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22466. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22467. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22468. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22469. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22470. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22471. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22472. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22473. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22474. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22475. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22476. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22477. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22478. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22479. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22480. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22481. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22482. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22483. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22484. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22485. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22486. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22487. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22488. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22489. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22490. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22491. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22492. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22493. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22494. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22495. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22496. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22497. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22498. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22499. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22500. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22501. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22502. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22503. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22504. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22505. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22506. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22507. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22508. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22509. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22510. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22511. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22512. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22513. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22514. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22515. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22516. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22517. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22518. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22519. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22520. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22521. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22522. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22523. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22524. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22525. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22526. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22527. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22528. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22529. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22530. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22531. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22532. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22533. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22534. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22535. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22536. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22537. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22538. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22539. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22540. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22541. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22542. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22543. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22544. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22545. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22546. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22547. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22548. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22549. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22550. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22551. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22552. LTCC='$LTCC'
  22553. LTCFLAGS='$LTCFLAGS'
  22554. compiler='$compiler_DEFAULT'
  22555. # A function that is used when there is no print builtin or printf.
  22556. func_fallback_echo ()
  22557. {
  22558. eval 'cat <<_LTECHO_EOF
  22559. \$1
  22560. _LTECHO_EOF'
  22561. }
  22562. # Quote evaled strings.
  22563. for var in AS \
  22564. DLLTOOL \
  22565. OBJDUMP \
  22566. SHELL \
  22567. ECHO \
  22568. PATH_SEPARATOR \
  22569. SED \
  22570. GREP \
  22571. EGREP \
  22572. FGREP \
  22573. LD \
  22574. NM \
  22575. LN_S \
  22576. lt_SP2NL \
  22577. lt_NL2SP \
  22578. reload_flag \
  22579. deplibs_check_method \
  22580. file_magic_cmd \
  22581. file_magic_glob \
  22582. want_nocaseglob \
  22583. sharedlib_from_linklib_cmd \
  22584. AR \
  22585. AR_FLAGS \
  22586. archiver_list_spec \
  22587. STRIP \
  22588. RANLIB \
  22589. CC \
  22590. CFLAGS \
  22591. compiler \
  22592. lt_cv_sys_global_symbol_pipe \
  22593. lt_cv_sys_global_symbol_to_cdecl \
  22594. lt_cv_sys_global_symbol_to_c_name_address \
  22595. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22596. nm_file_list_spec \
  22597. lt_prog_compiler_no_builtin_flag \
  22598. lt_prog_compiler_pic \
  22599. lt_prog_compiler_wl \
  22600. lt_prog_compiler_static \
  22601. lt_cv_prog_compiler_c_o \
  22602. need_locks \
  22603. MANIFEST_TOOL \
  22604. DSYMUTIL \
  22605. NMEDIT \
  22606. LIPO \
  22607. OTOOL \
  22608. OTOOL64 \
  22609. shrext_cmds \
  22610. export_dynamic_flag_spec \
  22611. whole_archive_flag_spec \
  22612. compiler_needs_object \
  22613. with_gnu_ld \
  22614. allow_undefined_flag \
  22615. no_undefined_flag \
  22616. hardcode_libdir_flag_spec \
  22617. hardcode_libdir_separator \
  22618. exclude_expsyms \
  22619. include_expsyms \
  22620. file_list_spec \
  22621. variables_saved_for_relink \
  22622. libname_spec \
  22623. library_names_spec \
  22624. soname_spec \
  22625. install_override_mode \
  22626. finish_eval \
  22627. old_striplib \
  22628. striplib \
  22629. compiler_lib_search_dirs \
  22630. predep_objects \
  22631. postdep_objects \
  22632. predeps \
  22633. postdeps \
  22634. compiler_lib_search_path \
  22635. LD_CXX \
  22636. reload_flag_CXX \
  22637. compiler_CXX \
  22638. lt_prog_compiler_no_builtin_flag_CXX \
  22639. lt_prog_compiler_pic_CXX \
  22640. lt_prog_compiler_wl_CXX \
  22641. lt_prog_compiler_static_CXX \
  22642. lt_cv_prog_compiler_c_o_CXX \
  22643. export_dynamic_flag_spec_CXX \
  22644. whole_archive_flag_spec_CXX \
  22645. compiler_needs_object_CXX \
  22646. with_gnu_ld_CXX \
  22647. allow_undefined_flag_CXX \
  22648. no_undefined_flag_CXX \
  22649. hardcode_libdir_flag_spec_CXX \
  22650. hardcode_libdir_separator_CXX \
  22651. exclude_expsyms_CXX \
  22652. include_expsyms_CXX \
  22653. file_list_spec_CXX \
  22654. compiler_lib_search_dirs_CXX \
  22655. predep_objects_CXX \
  22656. postdep_objects_CXX \
  22657. predeps_CXX \
  22658. postdeps_CXX \
  22659. compiler_lib_search_path_CXX; do
  22660. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22661. *[\\\\\\\`\\"\\\$]*)
  22662. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22663. ;;
  22664. *)
  22665. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22666. ;;
  22667. esac
  22668. done
  22669. # Double-quote double-evaled strings.
  22670. for var in reload_cmds \
  22671. old_postinstall_cmds \
  22672. old_postuninstall_cmds \
  22673. old_archive_cmds \
  22674. extract_expsyms_cmds \
  22675. old_archive_from_new_cmds \
  22676. old_archive_from_expsyms_cmds \
  22677. archive_cmds \
  22678. archive_expsym_cmds \
  22679. module_cmds \
  22680. module_expsym_cmds \
  22681. export_symbols_cmds \
  22682. prelink_cmds \
  22683. postlink_cmds \
  22684. postinstall_cmds \
  22685. postuninstall_cmds \
  22686. finish_cmds \
  22687. sys_lib_search_path_spec \
  22688. sys_lib_dlsearch_path_spec \
  22689. reload_cmds_CXX \
  22690. old_archive_cmds_CXX \
  22691. old_archive_from_new_cmds_CXX \
  22692. old_archive_from_expsyms_cmds_CXX \
  22693. archive_cmds_CXX \
  22694. archive_expsym_cmds_CXX \
  22695. module_cmds_CXX \
  22696. module_expsym_cmds_CXX \
  22697. export_symbols_cmds_CXX \
  22698. prelink_cmds_CXX \
  22699. postlink_cmds_CXX; do
  22700. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22701. *[\\\\\\\`\\"\\\$]*)
  22702. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22703. ;;
  22704. *)
  22705. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22706. ;;
  22707. esac
  22708. done
  22709. ac_aux_dir='$ac_aux_dir'
  22710. xsi_shell='$xsi_shell'
  22711. lt_shell_append='$lt_shell_append'
  22712. # See if we are running on zsh, and set the options which allow our
  22713. # commands through without removal of \ escapes INIT.
  22714. if test -n "\${ZSH_VERSION+set}" ; then
  22715. setopt NO_GLOB_SUBST
  22716. fi
  22717. PACKAGE='$PACKAGE'
  22718. VERSION='$VERSION'
  22719. TIMESTAMP='$TIMESTAMP'
  22720. RM='$RM'
  22721. ofile='$ofile'
  22722. SUMMARY="$SUMMARY"
  22723. _ACEOF
  22724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22725. # Handling of arguments.
  22726. for ac_config_target in $ac_config_targets
  22727. do
  22728. case $ac_config_target in
  22729. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22730. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22731. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22732. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22733. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22734. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22735. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22736. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22737. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22738. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22739. esac
  22740. done
  22741. # If the user did not use the arguments to specify the items to instantiate,
  22742. # then the envvar interface is used. Set only those that are not.
  22743. # We use the long form for the default assignment because of an extremely
  22744. # bizarre bug on SunOS 4.1.3.
  22745. if $ac_need_defaults; then
  22746. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22747. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22748. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22749. fi
  22750. # Have a temporary directory for convenience. Make it in the build tree
  22751. # simply because there is no reason against having it here, and in addition,
  22752. # creating and moving files from /tmp can sometimes cause problems.
  22753. # Hook for its removal unless debugging.
  22754. # Note that there is a small window in which the directory will not be cleaned:
  22755. # after its creation but before its name has been assigned to `$tmp'.
  22756. $debug ||
  22757. {
  22758. tmp= ac_tmp=
  22759. trap 'exit_status=$?
  22760. : "${ac_tmp:=$tmp}"
  22761. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22762. ' 0
  22763. trap 'as_fn_exit 1' 1 2 13 15
  22764. }
  22765. # Create a (secure) tmp directory for tmp files.
  22766. {
  22767. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22768. test -d "$tmp"
  22769. } ||
  22770. {
  22771. tmp=./conf$$-$RANDOM
  22772. (umask 077 && mkdir "$tmp")
  22773. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22774. ac_tmp=$tmp
  22775. # Set up the scripts for CONFIG_FILES section.
  22776. # No need to generate them if there are no CONFIG_FILES.
  22777. # This happens for instance with `./config.status config.h'.
  22778. if test -n "$CONFIG_FILES"; then
  22779. ac_cr=`echo X | tr X '\015'`
  22780. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22781. # But we know of no other shell where ac_cr would be empty at this
  22782. # point, so we can use a bashism as a fallback.
  22783. if test "x$ac_cr" = x; then
  22784. eval ac_cr=\$\'\\r\'
  22785. fi
  22786. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22787. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22788. ac_cs_awk_cr='\\r'
  22789. else
  22790. ac_cs_awk_cr=$ac_cr
  22791. fi
  22792. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22793. _ACEOF
  22794. {
  22795. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22796. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22797. echo "_ACEOF"
  22798. } >conf$$subs.sh ||
  22799. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22800. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22801. ac_delim='%!_!# '
  22802. for ac_last_try in false false false false false :; do
  22803. . ./conf$$subs.sh ||
  22804. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22805. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22806. if test $ac_delim_n = $ac_delim_num; then
  22807. break
  22808. elif $ac_last_try; then
  22809. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22810. else
  22811. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22812. fi
  22813. done
  22814. rm -f conf$$subs.sh
  22815. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22816. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22817. _ACEOF
  22818. sed -n '
  22819. h
  22820. s/^/S["/; s/!.*/"]=/
  22821. p
  22822. g
  22823. s/^[^!]*!//
  22824. :repl
  22825. t repl
  22826. s/'"$ac_delim"'$//
  22827. t delim
  22828. :nl
  22829. h
  22830. s/\(.\{148\}\)..*/\1/
  22831. t more1
  22832. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22833. p
  22834. n
  22835. b repl
  22836. :more1
  22837. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22838. p
  22839. g
  22840. s/.\{148\}//
  22841. t nl
  22842. :delim
  22843. h
  22844. s/\(.\{148\}\)..*/\1/
  22845. t more2
  22846. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22847. p
  22848. b
  22849. :more2
  22850. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22851. p
  22852. g
  22853. s/.\{148\}//
  22854. t delim
  22855. ' <conf$$subs.awk | sed '
  22856. /^[^""]/{
  22857. N
  22858. s/\n//
  22859. }
  22860. ' >>$CONFIG_STATUS || ac_write_fail=1
  22861. rm -f conf$$subs.awk
  22862. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22863. _ACAWK
  22864. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22865. for (key in S) S_is_set[key] = 1
  22866. FS = ""
  22867. }
  22868. {
  22869. line = $ 0
  22870. nfields = split(line, field, "@")
  22871. substed = 0
  22872. len = length(field[1])
  22873. for (i = 2; i < nfields; i++) {
  22874. key = field[i]
  22875. keylen = length(key)
  22876. if (S_is_set[key]) {
  22877. value = S[key]
  22878. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22879. len += length(value) + length(field[++i])
  22880. substed = 1
  22881. } else
  22882. len += 1 + keylen
  22883. }
  22884. print line
  22885. }
  22886. _ACAWK
  22887. _ACEOF
  22888. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22889. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22890. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22891. else
  22892. cat
  22893. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22894. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22895. _ACEOF
  22896. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22897. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22898. # trailing colons and then remove the whole line if VPATH becomes empty
  22899. # (actually we leave an empty line to preserve line numbers).
  22900. if test "x$srcdir" = x.; then
  22901. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22902. h
  22903. s///
  22904. s/^/:/
  22905. s/[ ]*$/:/
  22906. s/:\$(srcdir):/:/g
  22907. s/:\${srcdir}:/:/g
  22908. s/:@srcdir@:/:/g
  22909. s/^:*//
  22910. s/:*$//
  22911. x
  22912. s/\(=[ ]*\).*/\1/
  22913. G
  22914. s/\n//
  22915. s/^[^=]*=[ ]*$//
  22916. }'
  22917. fi
  22918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22919. fi # test -n "$CONFIG_FILES"
  22920. # Set up the scripts for CONFIG_HEADERS section.
  22921. # No need to generate them if there are no CONFIG_HEADERS.
  22922. # This happens for instance with `./config.status Makefile'.
  22923. if test -n "$CONFIG_HEADERS"; then
  22924. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22925. BEGIN {
  22926. _ACEOF
  22927. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22928. # here-document in config.status, that substitutes the proper values into
  22929. # config.h.in to produce config.h.
  22930. # Create a delimiter string that does not exist in confdefs.h, to ease
  22931. # handling of long lines.
  22932. ac_delim='%!_!# '
  22933. for ac_last_try in false false :; do
  22934. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22935. if test -z "$ac_tt"; then
  22936. break
  22937. elif $ac_last_try; then
  22938. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22939. else
  22940. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22941. fi
  22942. done
  22943. # For the awk script, D is an array of macro values keyed by name,
  22944. # likewise P contains macro parameters if any. Preserve backslash
  22945. # newline sequences.
  22946. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22947. sed -n '
  22948. s/.\{148\}/&'"$ac_delim"'/g
  22949. t rset
  22950. :rset
  22951. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22952. t def
  22953. d
  22954. :def
  22955. s/\\$//
  22956. t bsnl
  22957. s/["\\]/\\&/g
  22958. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22959. D["\1"]=" \3"/p
  22960. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22961. d
  22962. :bsnl
  22963. s/["\\]/\\&/g
  22964. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22965. D["\1"]=" \3\\\\\\n"\\/p
  22966. t cont
  22967. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22968. t cont
  22969. d
  22970. :cont
  22971. n
  22972. s/.\{148\}/&'"$ac_delim"'/g
  22973. t clear
  22974. :clear
  22975. s/\\$//
  22976. t bsnlc
  22977. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22978. d
  22979. :bsnlc
  22980. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22981. b cont
  22982. ' <confdefs.h | sed '
  22983. s/'"$ac_delim"'/"\\\
  22984. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22985. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22986. for (key in D) D_is_set[key] = 1
  22987. FS = ""
  22988. }
  22989. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22990. line = \$ 0
  22991. split(line, arg, " ")
  22992. if (arg[1] == "#") {
  22993. defundef = arg[2]
  22994. mac1 = arg[3]
  22995. } else {
  22996. defundef = substr(arg[1], 2)
  22997. mac1 = arg[2]
  22998. }
  22999. split(mac1, mac2, "(") #)
  23000. macro = mac2[1]
  23001. prefix = substr(line, 1, index(line, defundef) - 1)
  23002. if (D_is_set[macro]) {
  23003. # Preserve the white space surrounding the "#".
  23004. print prefix "define", macro P[macro] D[macro]
  23005. next
  23006. } else {
  23007. # Replace #undef with comments. This is necessary, for example,
  23008. # in the case of _POSIX_SOURCE, which is predefined and required
  23009. # on some systems where configure will not decide to define it.
  23010. if (defundef == "undef") {
  23011. print "/*", prefix defundef, macro, "*/"
  23012. next
  23013. }
  23014. }
  23015. }
  23016. { print }
  23017. _ACAWK
  23018. _ACEOF
  23019. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23020. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23021. fi # test -n "$CONFIG_HEADERS"
  23022. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23023. shift
  23024. for ac_tag
  23025. do
  23026. case $ac_tag in
  23027. :[FHLC]) ac_mode=$ac_tag; continue;;
  23028. esac
  23029. case $ac_mode$ac_tag in
  23030. :[FHL]*:*);;
  23031. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23032. :[FH]-) ac_tag=-:-;;
  23033. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23034. esac
  23035. ac_save_IFS=$IFS
  23036. IFS=:
  23037. set x $ac_tag
  23038. IFS=$ac_save_IFS
  23039. shift
  23040. ac_file=$1
  23041. shift
  23042. case $ac_mode in
  23043. :L) ac_source=$1;;
  23044. :[FH])
  23045. ac_file_inputs=
  23046. for ac_f
  23047. do
  23048. case $ac_f in
  23049. -) ac_f="$ac_tmp/stdin";;
  23050. *) # Look for the file first in the build tree, then in the source tree
  23051. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23052. # because $ac_f cannot contain `:'.
  23053. test -f "$ac_f" ||
  23054. case $ac_f in
  23055. [\\/$]*) false;;
  23056. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23057. esac ||
  23058. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23059. esac
  23060. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23061. as_fn_append ac_file_inputs " '$ac_f'"
  23062. done
  23063. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23064. # use $as_me), people would be surprised to read:
  23065. # /* config.h. Generated by config.status. */
  23066. configure_input='Generated from '`
  23067. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23068. `' by configure.'
  23069. if test x"$ac_file" != x-; then
  23070. configure_input="$ac_file. $configure_input"
  23071. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23072. $as_echo "$as_me: creating $ac_file" >&6;}
  23073. fi
  23074. # Neutralize special characters interpreted by sed in replacement strings.
  23075. case $configure_input in #(
  23076. *\&* | *\|* | *\\* )
  23077. ac_sed_conf_input=`$as_echo "$configure_input" |
  23078. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23079. *) ac_sed_conf_input=$configure_input;;
  23080. esac
  23081. case $ac_tag in
  23082. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23083. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23084. esac
  23085. ;;
  23086. esac
  23087. ac_dir=`$as_dirname -- "$ac_file" ||
  23088. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23089. X"$ac_file" : 'X\(//\)[^/]' \| \
  23090. X"$ac_file" : 'X\(//\)$' \| \
  23091. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23092. $as_echo X"$ac_file" |
  23093. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23094. s//\1/
  23095. q
  23096. }
  23097. /^X\(\/\/\)[^/].*/{
  23098. s//\1/
  23099. q
  23100. }
  23101. /^X\(\/\/\)$/{
  23102. s//\1/
  23103. q
  23104. }
  23105. /^X\(\/\).*/{
  23106. s//\1/
  23107. q
  23108. }
  23109. s/.*/./; q'`
  23110. as_dir="$ac_dir"; as_fn_mkdir_p
  23111. ac_builddir=.
  23112. case "$ac_dir" in
  23113. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23114. *)
  23115. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23116. # A ".." for each directory in $ac_dir_suffix.
  23117. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23118. case $ac_top_builddir_sub in
  23119. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23120. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23121. esac ;;
  23122. esac
  23123. ac_abs_top_builddir=$ac_pwd
  23124. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23125. # for backward compatibility:
  23126. ac_top_builddir=$ac_top_build_prefix
  23127. case $srcdir in
  23128. .) # We are building in place.
  23129. ac_srcdir=.
  23130. ac_top_srcdir=$ac_top_builddir_sub
  23131. ac_abs_top_srcdir=$ac_pwd ;;
  23132. [\\/]* | ?:[\\/]* ) # Absolute name.
  23133. ac_srcdir=$srcdir$ac_dir_suffix;
  23134. ac_top_srcdir=$srcdir
  23135. ac_abs_top_srcdir=$srcdir ;;
  23136. *) # Relative name.
  23137. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23138. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23139. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23140. esac
  23141. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23142. case $ac_mode in
  23143. :F)
  23144. #
  23145. # CONFIG_FILE
  23146. #
  23147. case $INSTALL in
  23148. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23149. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23150. esac
  23151. _ACEOF
  23152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23153. # If the template does not know about datarootdir, expand it.
  23154. # FIXME: This hack should be removed a few years after 2.60.
  23155. ac_datarootdir_hack=; ac_datarootdir_seen=
  23156. ac_sed_dataroot='
  23157. /datarootdir/ {
  23158. p
  23159. q
  23160. }
  23161. /@datadir@/p
  23162. /@docdir@/p
  23163. /@infodir@/p
  23164. /@localedir@/p
  23165. /@mandir@/p'
  23166. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23167. *datarootdir*) ac_datarootdir_seen=yes;;
  23168. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23170. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23171. _ACEOF
  23172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23173. ac_datarootdir_hack='
  23174. s&@datadir@&$datadir&g
  23175. s&@docdir@&$docdir&g
  23176. s&@infodir@&$infodir&g
  23177. s&@localedir@&$localedir&g
  23178. s&@mandir@&$mandir&g
  23179. s&\\\${datarootdir}&$datarootdir&g' ;;
  23180. esac
  23181. _ACEOF
  23182. # Neutralize VPATH when `$srcdir' = `.'.
  23183. # Shell code in configure.ac might set extrasub.
  23184. # FIXME: do we really want to maintain this feature?
  23185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23186. ac_sed_extra="$ac_vpsub
  23187. $extrasub
  23188. _ACEOF
  23189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23190. :t
  23191. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23192. s|@configure_input@|$ac_sed_conf_input|;t t
  23193. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23194. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23195. s&@srcdir@&$ac_srcdir&;t t
  23196. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23197. s&@top_srcdir@&$ac_top_srcdir&;t t
  23198. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23199. s&@builddir@&$ac_builddir&;t t
  23200. s&@abs_builddir@&$ac_abs_builddir&;t t
  23201. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23202. s&@INSTALL@&$ac_INSTALL&;t t
  23203. $ac_datarootdir_hack
  23204. "
  23205. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23206. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23207. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23208. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23209. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23210. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23212. which seems to be undefined. Please make sure it is defined" >&5
  23213. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23214. which seems to be undefined. Please make sure it is defined" >&2;}
  23215. rm -f "$ac_tmp/stdin"
  23216. case $ac_file in
  23217. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23218. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23219. esac \
  23220. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23221. ;;
  23222. :H)
  23223. #
  23224. # CONFIG_HEADER
  23225. #
  23226. if test x"$ac_file" != x-; then
  23227. {
  23228. $as_echo "/* $configure_input */" \
  23229. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23230. } >"$ac_tmp/config.h" \
  23231. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23232. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23233. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23234. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23235. else
  23236. rm -f "$ac_file"
  23237. mv "$ac_tmp/config.h" "$ac_file" \
  23238. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23239. fi
  23240. else
  23241. $as_echo "/* $configure_input */" \
  23242. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23243. || as_fn_error $? "could not create -" "$LINENO" 5
  23244. fi
  23245. ;;
  23246. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23247. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23248. ;;
  23249. esac
  23250. case $ac_file$ac_mode in
  23251. "libtool":C)
  23252. # See if we are running on zsh, and set the options which allow our
  23253. # commands through without removal of \ escapes.
  23254. if test -n "${ZSH_VERSION+set}" ; then
  23255. setopt NO_GLOB_SUBST
  23256. fi
  23257. cfgfile="${ofile}T"
  23258. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23259. $RM "$cfgfile"
  23260. cat <<_LT_EOF >> "$cfgfile"
  23261. #! $SHELL
  23262. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23263. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23264. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23265. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23266. #
  23267. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23268. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23269. # Foundation, Inc.
  23270. # Written by Gordon Matzigkeit, 1996
  23271. #
  23272. # This file is part of GNU Libtool.
  23273. #
  23274. # GNU Libtool is free software; you can redistribute it and/or
  23275. # modify it under the terms of the GNU General Public License as
  23276. # published by the Free Software Foundation; either version 2 of
  23277. # the License, or (at your option) any later version.
  23278. #
  23279. # As a special exception to the GNU General Public License,
  23280. # if you distribute this file as part of a program or library that
  23281. # is built using GNU Libtool, you may include this file under the
  23282. # same distribution terms that you use for the rest of that program.
  23283. #
  23284. # GNU Libtool is distributed in the hope that it will be useful,
  23285. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23286. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23287. # GNU General Public License for more details.
  23288. #
  23289. # You should have received a copy of the GNU General Public License
  23290. # along with GNU Libtool; see the file COPYING. If not, a copy
  23291. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23292. # obtained by writing to the Free Software Foundation, Inc.,
  23293. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23294. # The names of the tagged configurations supported by this script.
  23295. available_tags="CXX "
  23296. # ### BEGIN LIBTOOL CONFIG
  23297. # Which release of libtool.m4 was used?
  23298. macro_version=$macro_version
  23299. macro_revision=$macro_revision
  23300. # Assembler program.
  23301. AS=$lt_AS
  23302. # DLL creation program.
  23303. DLLTOOL=$lt_DLLTOOL
  23304. # Object dumper program.
  23305. OBJDUMP=$lt_OBJDUMP
  23306. # Whether or not to build shared libraries.
  23307. build_libtool_libs=$enable_shared
  23308. # Whether or not to build static libraries.
  23309. build_old_libs=$enable_static
  23310. # What type of objects to build.
  23311. pic_mode=$pic_mode
  23312. # Whether or not to optimize for fast installation.
  23313. fast_install=$enable_fast_install
  23314. # Shell to use when invoking shell scripts.
  23315. SHELL=$lt_SHELL
  23316. # An echo program that protects backslashes.
  23317. ECHO=$lt_ECHO
  23318. # The PATH separator for the build system.
  23319. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23320. # The host system.
  23321. host_alias=$host_alias
  23322. host=$host
  23323. host_os=$host_os
  23324. # The build system.
  23325. build_alias=$build_alias
  23326. build=$build
  23327. build_os=$build_os
  23328. # A sed program that does not truncate output.
  23329. SED=$lt_SED
  23330. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23331. Xsed="\$SED -e 1s/^X//"
  23332. # A grep program that handles long lines.
  23333. GREP=$lt_GREP
  23334. # An ERE matcher.
  23335. EGREP=$lt_EGREP
  23336. # A literal string matcher.
  23337. FGREP=$lt_FGREP
  23338. # A BSD- or MS-compatible name lister.
  23339. NM=$lt_NM
  23340. # Whether we need soft or hard links.
  23341. LN_S=$lt_LN_S
  23342. # What is the maximum length of a command?
  23343. max_cmd_len=$max_cmd_len
  23344. # Object file suffix (normally "o").
  23345. objext=$ac_objext
  23346. # Executable file suffix (normally "").
  23347. exeext=$exeext
  23348. # whether the shell understands "unset".
  23349. lt_unset=$lt_unset
  23350. # turn spaces into newlines.
  23351. SP2NL=$lt_lt_SP2NL
  23352. # turn newlines into spaces.
  23353. NL2SP=$lt_lt_NL2SP
  23354. # convert \$build file names to \$host format.
  23355. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23356. # convert \$build files to toolchain format.
  23357. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23358. # Method to check whether dependent libraries are shared objects.
  23359. deplibs_check_method=$lt_deplibs_check_method
  23360. # Command to use when deplibs_check_method = "file_magic".
  23361. file_magic_cmd=$lt_file_magic_cmd
  23362. # How to find potential files when deplibs_check_method = "file_magic".
  23363. file_magic_glob=$lt_file_magic_glob
  23364. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23365. want_nocaseglob=$lt_want_nocaseglob
  23366. # Command to associate shared and link libraries.
  23367. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23368. # The archiver.
  23369. AR=$lt_AR
  23370. # Flags to create an archive.
  23371. AR_FLAGS=$lt_AR_FLAGS
  23372. # How to feed a file listing to the archiver.
  23373. archiver_list_spec=$lt_archiver_list_spec
  23374. # A symbol stripping program.
  23375. STRIP=$lt_STRIP
  23376. # Commands used to install an old-style archive.
  23377. RANLIB=$lt_RANLIB
  23378. old_postinstall_cmds=$lt_old_postinstall_cmds
  23379. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23380. # Whether to use a lock for old archive extraction.
  23381. lock_old_archive_extraction=$lock_old_archive_extraction
  23382. # A C compiler.
  23383. LTCC=$lt_CC
  23384. # LTCC compiler flags.
  23385. LTCFLAGS=$lt_CFLAGS
  23386. # Take the output of nm and produce a listing of raw symbols and C names.
  23387. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23388. # Transform the output of nm in a proper C declaration.
  23389. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23390. # Transform the output of nm in a C name address pair.
  23391. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23392. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23393. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23394. # Specify filename containing input files for \$NM.
  23395. nm_file_list_spec=$lt_nm_file_list_spec
  23396. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23397. lt_sysroot=$lt_sysroot
  23398. # The name of the directory that contains temporary libtool files.
  23399. objdir=$objdir
  23400. # Used to examine libraries when file_magic_cmd begins with "file".
  23401. MAGIC_CMD=$MAGIC_CMD
  23402. # Must we lock files when doing compilation?
  23403. need_locks=$lt_need_locks
  23404. # Manifest tool.
  23405. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23406. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23407. DSYMUTIL=$lt_DSYMUTIL
  23408. # Tool to change global to local symbols on Mac OS X.
  23409. NMEDIT=$lt_NMEDIT
  23410. # Tool to manipulate fat objects and archives on Mac OS X.
  23411. LIPO=$lt_LIPO
  23412. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23413. OTOOL=$lt_OTOOL
  23414. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23415. OTOOL64=$lt_OTOOL64
  23416. # Old archive suffix (normally "a").
  23417. libext=$libext
  23418. # Shared library suffix (normally ".so").
  23419. shrext_cmds=$lt_shrext_cmds
  23420. # The commands to extract the exported symbol list from a shared archive.
  23421. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23422. # Variables whose values should be saved in libtool wrapper scripts and
  23423. # restored at link time.
  23424. variables_saved_for_relink=$lt_variables_saved_for_relink
  23425. # Do we need the "lib" prefix for modules?
  23426. need_lib_prefix=$need_lib_prefix
  23427. # Do we need a version for libraries?
  23428. need_version=$need_version
  23429. # Library versioning type.
  23430. version_type=$version_type
  23431. # Shared library runtime path variable.
  23432. runpath_var=$runpath_var
  23433. # Shared library path variable.
  23434. shlibpath_var=$shlibpath_var
  23435. # Is shlibpath searched before the hard-coded library search path?
  23436. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23437. # Format of library name prefix.
  23438. libname_spec=$lt_libname_spec
  23439. # List of archive names. First name is the real one, the rest are links.
  23440. # The last name is the one that the linker finds with -lNAME
  23441. library_names_spec=$lt_library_names_spec
  23442. # The coded name of the library, if different from the real name.
  23443. soname_spec=$lt_soname_spec
  23444. # Permission mode override for installation of shared libraries.
  23445. install_override_mode=$lt_install_override_mode
  23446. # Command to use after installation of a shared archive.
  23447. postinstall_cmds=$lt_postinstall_cmds
  23448. # Command to use after uninstallation of a shared archive.
  23449. postuninstall_cmds=$lt_postuninstall_cmds
  23450. # Commands used to finish a libtool library installation in a directory.
  23451. finish_cmds=$lt_finish_cmds
  23452. # As "finish_cmds", except a single script fragment to be evaled but
  23453. # not shown.
  23454. finish_eval=$lt_finish_eval
  23455. # Whether we should hardcode library paths into libraries.
  23456. hardcode_into_libs=$hardcode_into_libs
  23457. # Compile-time system search path for libraries.
  23458. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23459. # Run-time system search path for libraries.
  23460. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23461. # Whether dlopen is supported.
  23462. dlopen_support=$enable_dlopen
  23463. # Whether dlopen of programs is supported.
  23464. dlopen_self=$enable_dlopen_self
  23465. # Whether dlopen of statically linked programs is supported.
  23466. dlopen_self_static=$enable_dlopen_self_static
  23467. # Commands to strip libraries.
  23468. old_striplib=$lt_old_striplib
  23469. striplib=$lt_striplib
  23470. # The linker used to build libraries.
  23471. LD=$lt_LD
  23472. # How to create reloadable object files.
  23473. reload_flag=$lt_reload_flag
  23474. reload_cmds=$lt_reload_cmds
  23475. # Commands used to build an old-style archive.
  23476. old_archive_cmds=$lt_old_archive_cmds
  23477. # A language specific compiler.
  23478. CC=$lt_compiler
  23479. # Is the compiler the GNU compiler?
  23480. with_gcc=$GCC
  23481. # Compiler flag to turn off builtin functions.
  23482. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23483. # Additional compiler flags for building library objects.
  23484. pic_flag=$lt_lt_prog_compiler_pic
  23485. # How to pass a linker flag through the compiler.
  23486. wl=$lt_lt_prog_compiler_wl
  23487. # Compiler flag to prevent dynamic linking.
  23488. link_static_flag=$lt_lt_prog_compiler_static
  23489. # Does compiler simultaneously support -c and -o options?
  23490. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23491. # Whether or not to add -lc for building shared libraries.
  23492. build_libtool_need_lc=$archive_cmds_need_lc
  23493. # Whether or not to disallow shared libs when runtime libs are static.
  23494. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23495. # Compiler flag to allow reflexive dlopens.
  23496. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23497. # Compiler flag to generate shared objects directly from archives.
  23498. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23499. # Whether the compiler copes with passing no objects directly.
  23500. compiler_needs_object=$lt_compiler_needs_object
  23501. # Create an old-style archive from a shared archive.
  23502. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23503. # Create a temporary old-style archive to link instead of a shared archive.
  23504. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23505. # Commands used to build a shared archive.
  23506. archive_cmds=$lt_archive_cmds
  23507. archive_expsym_cmds=$lt_archive_expsym_cmds
  23508. # Commands used to build a loadable module if different from building
  23509. # a shared archive.
  23510. module_cmds=$lt_module_cmds
  23511. module_expsym_cmds=$lt_module_expsym_cmds
  23512. # Whether we are building with GNU ld or not.
  23513. with_gnu_ld=$lt_with_gnu_ld
  23514. # Flag that allows shared libraries with undefined symbols to be built.
  23515. allow_undefined_flag=$lt_allow_undefined_flag
  23516. # Flag that enforces no undefined symbols.
  23517. no_undefined_flag=$lt_no_undefined_flag
  23518. # Flag to hardcode \$libdir into a binary during linking.
  23519. # This must work even if \$libdir does not exist
  23520. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23521. # Whether we need a single "-rpath" flag with a separated argument.
  23522. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23523. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23524. # DIR into the resulting binary.
  23525. hardcode_direct=$hardcode_direct
  23526. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23527. # DIR into the resulting binary and the resulting library dependency is
  23528. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23529. # library is relocated.
  23530. hardcode_direct_absolute=$hardcode_direct_absolute
  23531. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23532. # into the resulting binary.
  23533. hardcode_minus_L=$hardcode_minus_L
  23534. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23535. # into the resulting binary.
  23536. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23537. # Set to "yes" if building a shared library automatically hardcodes DIR
  23538. # into the library and all subsequent libraries and executables linked
  23539. # against it.
  23540. hardcode_automatic=$hardcode_automatic
  23541. # Set to yes if linker adds runtime paths of dependent libraries
  23542. # to runtime path list.
  23543. inherit_rpath=$inherit_rpath
  23544. # Whether libtool must link a program against all its dependency libraries.
  23545. link_all_deplibs=$link_all_deplibs
  23546. # Set to "yes" if exported symbols are required.
  23547. always_export_symbols=$always_export_symbols
  23548. # The commands to list exported symbols.
  23549. export_symbols_cmds=$lt_export_symbols_cmds
  23550. # Symbols that should not be listed in the preloaded symbols.
  23551. exclude_expsyms=$lt_exclude_expsyms
  23552. # Symbols that must always be exported.
  23553. include_expsyms=$lt_include_expsyms
  23554. # Commands necessary for linking programs (against libraries) with templates.
  23555. prelink_cmds=$lt_prelink_cmds
  23556. # Commands necessary for finishing linking programs.
  23557. postlink_cmds=$lt_postlink_cmds
  23558. # Specify filename containing input files.
  23559. file_list_spec=$lt_file_list_spec
  23560. # How to hardcode a shared library path into an executable.
  23561. hardcode_action=$hardcode_action
  23562. # The directories searched by this compiler when creating a shared library.
  23563. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23564. # Dependencies to place before and after the objects being linked to
  23565. # create a shared library.
  23566. predep_objects=$lt_predep_objects
  23567. postdep_objects=$lt_postdep_objects
  23568. predeps=$lt_predeps
  23569. postdeps=$lt_postdeps
  23570. # The library search path used internally by the compiler when linking
  23571. # a shared library.
  23572. compiler_lib_search_path=$lt_compiler_lib_search_path
  23573. # ### END LIBTOOL CONFIG
  23574. _LT_EOF
  23575. case $host_os in
  23576. aix3*)
  23577. cat <<\_LT_EOF >> "$cfgfile"
  23578. # AIX sometimes has problems with the GCC collect2 program. For some
  23579. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23580. # vanish in a puff of smoke.
  23581. if test "X${COLLECT_NAMES+set}" != Xset; then
  23582. COLLECT_NAMES=
  23583. export COLLECT_NAMES
  23584. fi
  23585. _LT_EOF
  23586. ;;
  23587. esac
  23588. ltmain="$ac_aux_dir/ltmain.sh"
  23589. # We use sed instead of cat because bash on DJGPP gets confused if
  23590. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23591. # text mode, it properly converts lines to CR/LF. This bash problem
  23592. # is reportedly fixed, but why not run on old versions too?
  23593. sed '$q' "$ltmain" >> "$cfgfile" \
  23594. || (rm -f "$cfgfile"; exit 1)
  23595. if test x"$xsi_shell" = xyes; then
  23596. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23597. func_dirname ()\
  23598. {\
  23599. \ case ${1} in\
  23600. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23601. \ * ) func_dirname_result="${3}" ;;\
  23602. \ esac\
  23603. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23604. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23605. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23606. test 0 -eq $? || _lt_function_replace_fail=:
  23607. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23608. func_basename ()\
  23609. {\
  23610. \ func_basename_result="${1##*/}"\
  23611. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23612. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23613. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23614. test 0 -eq $? || _lt_function_replace_fail=:
  23615. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23616. func_dirname_and_basename ()\
  23617. {\
  23618. \ case ${1} in\
  23619. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23620. \ * ) func_dirname_result="${3}" ;;\
  23621. \ esac\
  23622. \ func_basename_result="${1##*/}"\
  23623. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23624. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23625. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23626. test 0 -eq $? || _lt_function_replace_fail=:
  23627. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23628. func_stripname ()\
  23629. {\
  23630. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23631. \ # positional parameters, so assign one to ordinary parameter first.\
  23632. \ func_stripname_result=${3}\
  23633. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23634. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23635. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23636. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23637. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23638. test 0 -eq $? || _lt_function_replace_fail=:
  23639. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23640. func_split_long_opt ()\
  23641. {\
  23642. \ func_split_long_opt_name=${1%%=*}\
  23643. \ func_split_long_opt_arg=${1#*=}\
  23644. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23645. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23646. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23647. test 0 -eq $? || _lt_function_replace_fail=:
  23648. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23649. func_split_short_opt ()\
  23650. {\
  23651. \ func_split_short_opt_arg=${1#??}\
  23652. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23653. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23654. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23655. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23656. test 0 -eq $? || _lt_function_replace_fail=:
  23657. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23658. func_lo2o ()\
  23659. {\
  23660. \ case ${1} in\
  23661. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23662. \ *) func_lo2o_result=${1} ;;\
  23663. \ esac\
  23664. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23665. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23666. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23667. test 0 -eq $? || _lt_function_replace_fail=:
  23668. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23669. func_xform ()\
  23670. {\
  23671. func_xform_result=${1%.*}.lo\
  23672. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23673. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23674. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23675. test 0 -eq $? || _lt_function_replace_fail=:
  23676. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23677. func_arith ()\
  23678. {\
  23679. func_arith_result=$(( $* ))\
  23680. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23681. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23682. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23683. test 0 -eq $? || _lt_function_replace_fail=:
  23684. sed -e '/^func_len ()$/,/^} # func_len /c\
  23685. func_len ()\
  23686. {\
  23687. func_len_result=${#1}\
  23688. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23689. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23690. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23691. test 0 -eq $? || _lt_function_replace_fail=:
  23692. fi
  23693. if test x"$lt_shell_append" = xyes; then
  23694. sed -e '/^func_append ()$/,/^} # func_append /c\
  23695. func_append ()\
  23696. {\
  23697. eval "${1}+=\\${2}"\
  23698. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23699. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23700. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23701. test 0 -eq $? || _lt_function_replace_fail=:
  23702. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23703. func_append_quoted ()\
  23704. {\
  23705. \ func_quote_for_eval "${2}"\
  23706. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23707. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23708. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23709. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23710. test 0 -eq $? || _lt_function_replace_fail=:
  23711. # Save a `func_append' function call where possible by direct use of '+='
  23712. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23713. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23714. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23715. test 0 -eq $? || _lt_function_replace_fail=:
  23716. else
  23717. # Save a `func_append' function call even when '+=' is not available
  23718. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23719. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23720. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23721. test 0 -eq $? || _lt_function_replace_fail=:
  23722. fi
  23723. if test x"$_lt_function_replace_fail" = x":"; then
  23724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23725. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23726. fi
  23727. mv -f "$cfgfile" "$ofile" ||
  23728. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23729. chmod +x "$ofile"
  23730. cat <<_LT_EOF >> "$ofile"
  23731. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23732. # The linker used to build libraries.
  23733. LD=$lt_LD_CXX
  23734. # How to create reloadable object files.
  23735. reload_flag=$lt_reload_flag_CXX
  23736. reload_cmds=$lt_reload_cmds_CXX
  23737. # Commands used to build an old-style archive.
  23738. old_archive_cmds=$lt_old_archive_cmds_CXX
  23739. # A language specific compiler.
  23740. CC=$lt_compiler_CXX
  23741. # Is the compiler the GNU compiler?
  23742. with_gcc=$GCC_CXX
  23743. # Compiler flag to turn off builtin functions.
  23744. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23745. # Additional compiler flags for building library objects.
  23746. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23747. # How to pass a linker flag through the compiler.
  23748. wl=$lt_lt_prog_compiler_wl_CXX
  23749. # Compiler flag to prevent dynamic linking.
  23750. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23751. # Does compiler simultaneously support -c and -o options?
  23752. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23753. # Whether or not to add -lc for building shared libraries.
  23754. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23755. # Whether or not to disallow shared libs when runtime libs are static.
  23756. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23757. # Compiler flag to allow reflexive dlopens.
  23758. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23759. # Compiler flag to generate shared objects directly from archives.
  23760. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23761. # Whether the compiler copes with passing no objects directly.
  23762. compiler_needs_object=$lt_compiler_needs_object_CXX
  23763. # Create an old-style archive from a shared archive.
  23764. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23765. # Create a temporary old-style archive to link instead of a shared archive.
  23766. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23767. # Commands used to build a shared archive.
  23768. archive_cmds=$lt_archive_cmds_CXX
  23769. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23770. # Commands used to build a loadable module if different from building
  23771. # a shared archive.
  23772. module_cmds=$lt_module_cmds_CXX
  23773. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23774. # Whether we are building with GNU ld or not.
  23775. with_gnu_ld=$lt_with_gnu_ld_CXX
  23776. # Flag that allows shared libraries with undefined symbols to be built.
  23777. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23778. # Flag that enforces no undefined symbols.
  23779. no_undefined_flag=$lt_no_undefined_flag_CXX
  23780. # Flag to hardcode \$libdir into a binary during linking.
  23781. # This must work even if \$libdir does not exist
  23782. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23783. # Whether we need a single "-rpath" flag with a separated argument.
  23784. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23785. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23786. # DIR into the resulting binary.
  23787. hardcode_direct=$hardcode_direct_CXX
  23788. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23789. # DIR into the resulting binary and the resulting library dependency is
  23790. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23791. # library is relocated.
  23792. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23793. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23794. # into the resulting binary.
  23795. hardcode_minus_L=$hardcode_minus_L_CXX
  23796. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23797. # into the resulting binary.
  23798. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23799. # Set to "yes" if building a shared library automatically hardcodes DIR
  23800. # into the library and all subsequent libraries and executables linked
  23801. # against it.
  23802. hardcode_automatic=$hardcode_automatic_CXX
  23803. # Set to yes if linker adds runtime paths of dependent libraries
  23804. # to runtime path list.
  23805. inherit_rpath=$inherit_rpath_CXX
  23806. # Whether libtool must link a program against all its dependency libraries.
  23807. link_all_deplibs=$link_all_deplibs_CXX
  23808. # Set to "yes" if exported symbols are required.
  23809. always_export_symbols=$always_export_symbols_CXX
  23810. # The commands to list exported symbols.
  23811. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23812. # Symbols that should not be listed in the preloaded symbols.
  23813. exclude_expsyms=$lt_exclude_expsyms_CXX
  23814. # Symbols that must always be exported.
  23815. include_expsyms=$lt_include_expsyms_CXX
  23816. # Commands necessary for linking programs (against libraries) with templates.
  23817. prelink_cmds=$lt_prelink_cmds_CXX
  23818. # Commands necessary for finishing linking programs.
  23819. postlink_cmds=$lt_postlink_cmds_CXX
  23820. # Specify filename containing input files.
  23821. file_list_spec=$lt_file_list_spec_CXX
  23822. # How to hardcode a shared library path into an executable.
  23823. hardcode_action=$hardcode_action_CXX
  23824. # The directories searched by this compiler when creating a shared library.
  23825. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23826. # Dependencies to place before and after the objects being linked to
  23827. # create a shared library.
  23828. predep_objects=$lt_predep_objects_CXX
  23829. postdep_objects=$lt_postdep_objects_CXX
  23830. predeps=$lt_predeps_CXX
  23831. postdeps=$lt_postdeps_CXX
  23832. # The library search path used internally by the compiler when linking
  23833. # a shared library.
  23834. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23835. # ### END LIBTOOL TAG CONFIG: CXX
  23836. _LT_EOF
  23837. ;;
  23838. "sdl2_config":C) chmod a+x sdl2-config ;;
  23839. "summary":C) echo -en "$SUMMARY" ;;
  23840. esac
  23841. done # for ac_tag
  23842. as_fn_exit 0
  23843. _ACEOF
  23844. ac_clean_files=$ac_clean_files_save
  23845. test $ac_write_fail = 0 ||
  23846. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23847. # configure is writing to config.log, and then calls config.status.
  23848. # config.status does its own redirection, appending to config.log.
  23849. # Unfortunately, on DOS this fails, as config.log is still kept open
  23850. # by configure, so config.status won't be able to write to it; its
  23851. # output is simply discarded. So we exec the FD to /dev/null,
  23852. # effectively closing config.log, so it can be properly (re)opened and
  23853. # appended to by config.status. When coming back to configure, we
  23854. # need to make the FD available again.
  23855. if test "$no_create" != yes; then
  23856. ac_cs_success=:
  23857. ac_config_status_args=
  23858. test "$silent" = yes &&
  23859. ac_config_status_args="$ac_config_status_args --quiet"
  23860. exec 5>/dev/null
  23861. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23862. exec 5>>config.log
  23863. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23864. # would make configure fail if this is the last instruction.
  23865. $ac_cs_success || as_fn_exit 1
  23866. fi
  23867. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23869. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23870. fi