configure 853 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. LIBTOOLLINKERTAG
  642. LINKER
  643. PKG_CONFIG_LIBDIR
  644. PKG_CONFIG_PATH
  645. PKG_CONFIG
  646. SET_MAKE
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. CXXCPP
  651. ac_ct_CXX
  652. CXXFLAGS
  653. CXX
  654. LT_AGE
  655. LT_REVISION
  656. LT_CURRENT
  657. LT_RELEASE
  658. RC
  659. CPP
  660. OTOOL64
  661. OTOOL
  662. LIPO
  663. NMEDIT
  664. DSYMUTIL
  665. MANIFEST_TOOL
  666. AWK
  667. RANLIB
  668. STRIP
  669. ac_ct_AR
  670. AR
  671. LN_S
  672. NM
  673. ac_ct_DUMPBIN
  674. DUMPBIN
  675. LD
  676. FGREP
  677. EGREP
  678. GREP
  679. SED
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. host_os
  688. host_vendor
  689. host_cpu
  690. host
  691. build_os
  692. build_vendor
  693. build_cpu
  694. build
  695. LIBTOOL
  696. OBJDUMP
  697. DLLTOOL
  698. AS
  699. SDL_VERSION
  700. SDL_BINARY_AGE
  701. SDL_INTERFACE_AGE
  702. SDL_MICRO_VERSION
  703. SDL_MINOR_VERSION
  704. SDL_MAJOR_VERSION
  705. target_alias
  706. host_alias
  707. build_alias
  708. LIBS
  709. ECHO_T
  710. ECHO_N
  711. ECHO_C
  712. DEFS
  713. mandir
  714. localedir
  715. libdir
  716. psdir
  717. pdfdir
  718. dvidir
  719. htmldir
  720. infodir
  721. docdir
  722. oldincludedir
  723. includedir
  724. localstatedir
  725. sharedstatedir
  726. sysconfdir
  727. datadir
  728. datarootdir
  729. libexecdir
  730. sbindir
  731. bindir
  732. program_transform_name
  733. prefix
  734. exec_prefix
  735. PACKAGE_URL
  736. PACKAGE_BUGREPORT
  737. PACKAGE_STRING
  738. PACKAGE_VERSION
  739. PACKAGE_TARNAME
  740. PACKAGE_NAME
  741. PATH_SEPARATOR
  742. SHELL'
  743. ac_subst_files=''
  744. ac_user_opts='
  745. enable_option_checking
  746. enable_shared
  747. enable_static
  748. with_pic
  749. enable_fast_install
  750. with_gnu_ld
  751. with_sysroot
  752. enable_libtool_lock
  753. enable_assertions
  754. enable_dependency_tracking
  755. enable_libc
  756. enable_gcc_atomics
  757. enable_atomic
  758. enable_audio
  759. enable_video
  760. enable_render
  761. enable_events
  762. enable_joystick
  763. enable_haptic
  764. enable_hidapi
  765. enable_sensor
  766. enable_power
  767. enable_filesystem
  768. enable_threads
  769. enable_timers
  770. enable_file
  771. enable_loadso
  772. enable_cpuinfo
  773. enable_assembly
  774. enable_ssemath
  775. enable_mmx
  776. enable_3dnow
  777. enable_sse
  778. enable_sse2
  779. enable_sse3
  780. enable_altivec
  781. enable_oss
  782. enable_alsa
  783. with_alsa_prefix
  784. with_alsa_inc_prefix
  785. enable_alsatest
  786. enable_alsa_shared
  787. enable_jack
  788. enable_jack_shared
  789. enable_esd
  790. with_esd_prefix
  791. with_esd_exec_prefix
  792. enable_esdtest
  793. enable_esd_shared
  794. enable_pipewire
  795. enable_pipewire_shared
  796. enable_pulseaudio
  797. enable_pulseaudio_shared
  798. enable_arts
  799. enable_arts_shared
  800. enable_nas
  801. enable_nas_shared
  802. enable_sndio
  803. enable_sndio_shared
  804. enable_fusionsound
  805. enable_fusionsound_shared
  806. enable_diskaudio
  807. enable_dummyaudio
  808. enable_libsamplerate
  809. enable_libsamplerate_shared
  810. enable_arm_simd
  811. enable_arm_neon
  812. enable_video_wayland
  813. enable_video_wayland_qt_touch
  814. enable_wayland_shared
  815. enable_libdecor
  816. enable_libdecor_shared
  817. enable_video_rpi
  818. enable_video_x11
  819. with_x
  820. enable_x11_shared
  821. enable_video_x11_xcursor
  822. enable_video_x11_xdbe
  823. enable_video_x11_xinerama
  824. enable_video_x11_xinput
  825. enable_video_x11_xfixes
  826. enable_video_x11_xrandr
  827. enable_video_x11_scrnsaver
  828. enable_video_x11_xshape
  829. enable_video_x11_vm
  830. enable_video_vivante
  831. enable_video_cocoa
  832. enable_video_metal
  833. enable_render_metal
  834. enable_video_directfb
  835. enable_directfb_shared
  836. enable_video_kmsdrm
  837. enable_kmsdrm_shared
  838. enable_video_dummy
  839. enable_video_opengl
  840. enable_video_opengles
  841. enable_video_opengles1
  842. enable_video_opengles2
  843. enable_video_vulkan
  844. enable_libudev
  845. enable_dbus
  846. enable_ime
  847. enable_ibus
  848. enable_fcitx
  849. enable_joystick_mfi
  850. enable_pthreads
  851. enable_pthread_sem
  852. enable_directx
  853. enable_xinput
  854. enable_wasapi
  855. enable_hidapi_joystick
  856. enable_hidapi_libusb
  857. enable_clock_gettime
  858. enable_rpath
  859. enable_backgrounding_signal
  860. enable_foregrounding_signal
  861. enable_joystick_virtual
  862. enable_render_d3d
  863. enable_sdl2_config
  864. '
  865. ac_precious_vars='build_alias
  866. host_alias
  867. target_alias
  868. CC
  869. CFLAGS
  870. LDFLAGS
  871. LIBS
  872. CPPFLAGS
  873. CPP
  874. CXX
  875. CXXFLAGS
  876. CCC
  877. CXXCPP
  878. PKG_CONFIG
  879. PKG_CONFIG_PATH
  880. PKG_CONFIG_LIBDIR
  881. JACK_CFLAGS
  882. JACK_LIBS
  883. PIPEWIRE_CFLAGS
  884. PIPEWIRE_LIBS
  885. PULSEAUDIO_CFLAGS
  886. PULSEAUDIO_LIBS
  887. FUSIONSOUND_CFLAGS
  888. FUSIONSOUND_LIBS
  889. RPI_CFLAGS
  890. RPI_LIBS
  891. XMKMF
  892. DIRECTFB_CFLAGS
  893. DIRECTFB_LIBS
  894. LIBDRM_CFLAGS
  895. LIBDRM_LIBS
  896. LIBGBM_CFLAGS
  897. LIBGBM_LIBS
  898. DBUS_CFLAGS
  899. DBUS_LIBS
  900. IBUS_CFLAGS
  901. IBUS_LIBS
  902. LIBUSB_CFLAGS
  903. LIBUSB_LIBS'
  904. # Initialize some variables set by options.
  905. ac_init_help=
  906. ac_init_version=false
  907. ac_unrecognized_opts=
  908. ac_unrecognized_sep=
  909. # The variables have the same names as the options, with
  910. # dashes changed to underlines.
  911. cache_file=/dev/null
  912. exec_prefix=NONE
  913. no_create=
  914. no_recursion=
  915. prefix=NONE
  916. program_prefix=NONE
  917. program_suffix=NONE
  918. program_transform_name=s,x,x,
  919. silent=
  920. site=
  921. srcdir=
  922. verbose=
  923. x_includes=NONE
  924. x_libraries=NONE
  925. # Installation directory options.
  926. # These are left unexpanded so users can "make install exec_prefix=/foo"
  927. # and all the variables that are supposed to be based on exec_prefix
  928. # by default will actually change.
  929. # Use braces instead of parens because sh, perl, etc. also accept them.
  930. # (The list follows the same order as the GNU Coding Standards.)
  931. bindir='${exec_prefix}/bin'
  932. sbindir='${exec_prefix}/sbin'
  933. libexecdir='${exec_prefix}/libexec'
  934. datarootdir='${prefix}/share'
  935. datadir='${datarootdir}'
  936. sysconfdir='${prefix}/etc'
  937. sharedstatedir='${prefix}/com'
  938. localstatedir='${prefix}/var'
  939. includedir='${prefix}/include'
  940. oldincludedir='/usr/include'
  941. docdir='${datarootdir}/doc/${PACKAGE}'
  942. infodir='${datarootdir}/info'
  943. htmldir='${docdir}'
  944. dvidir='${docdir}'
  945. pdfdir='${docdir}'
  946. psdir='${docdir}'
  947. libdir='${exec_prefix}/lib'
  948. localedir='${datarootdir}/locale'
  949. mandir='${datarootdir}/man'
  950. ac_prev=
  951. ac_dashdash=
  952. for ac_option
  953. do
  954. # If the previous option needs an argument, assign it.
  955. if test -n "$ac_prev"; then
  956. eval $ac_prev=\$ac_option
  957. ac_prev=
  958. continue
  959. fi
  960. case $ac_option in
  961. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  962. *=) ac_optarg= ;;
  963. *) ac_optarg=yes ;;
  964. esac
  965. # Accept the important Cygnus configure options, so we can diagnose typos.
  966. case $ac_dashdash$ac_option in
  967. --)
  968. ac_dashdash=yes ;;
  969. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  970. ac_prev=bindir ;;
  971. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  972. bindir=$ac_optarg ;;
  973. -build | --build | --buil | --bui | --bu)
  974. ac_prev=build_alias ;;
  975. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  976. build_alias=$ac_optarg ;;
  977. -cache-file | --cache-file | --cache-fil | --cache-fi \
  978. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  979. ac_prev=cache_file ;;
  980. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  981. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  982. cache_file=$ac_optarg ;;
  983. --config-cache | -C)
  984. cache_file=config.cache ;;
  985. -datadir | --datadir | --datadi | --datad)
  986. ac_prev=datadir ;;
  987. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  988. datadir=$ac_optarg ;;
  989. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  990. | --dataroo | --dataro | --datar)
  991. ac_prev=datarootdir ;;
  992. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  993. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  994. datarootdir=$ac_optarg ;;
  995. -disable-* | --disable-*)
  996. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  997. # Reject names that are not valid shell variable names.
  998. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  999. as_fn_error $? "invalid feature name: $ac_useropt"
  1000. ac_useropt_orig=$ac_useropt
  1001. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1002. case $ac_user_opts in
  1003. *"
  1004. "enable_$ac_useropt"
  1005. "*) ;;
  1006. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1007. ac_unrecognized_sep=', ';;
  1008. esac
  1009. eval enable_$ac_useropt=no ;;
  1010. -docdir | --docdir | --docdi | --doc | --do)
  1011. ac_prev=docdir ;;
  1012. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1013. docdir=$ac_optarg ;;
  1014. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1015. ac_prev=dvidir ;;
  1016. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1017. dvidir=$ac_optarg ;;
  1018. -enable-* | --enable-*)
  1019. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022. as_fn_error $? "invalid feature name: $ac_useropt"
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "enable_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval enable_$ac_useropt=\$ac_optarg ;;
  1033. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1034. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1035. | --exec | --exe | --ex)
  1036. ac_prev=exec_prefix ;;
  1037. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1038. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1039. | --exec=* | --exe=* | --ex=*)
  1040. exec_prefix=$ac_optarg ;;
  1041. -gas | --gas | --ga | --g)
  1042. # Obsolete; use --with-gas.
  1043. with_gas=yes ;;
  1044. -help | --help | --hel | --he | -h)
  1045. ac_init_help=long ;;
  1046. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1047. ac_init_help=recursive ;;
  1048. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1049. ac_init_help=short ;;
  1050. -host | --host | --hos | --ho)
  1051. ac_prev=host_alias ;;
  1052. -host=* | --host=* | --hos=* | --ho=*)
  1053. host_alias=$ac_optarg ;;
  1054. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1055. ac_prev=htmldir ;;
  1056. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1057. | --ht=*)
  1058. htmldir=$ac_optarg ;;
  1059. -includedir | --includedir | --includedi | --included | --include \
  1060. | --includ | --inclu | --incl | --inc)
  1061. ac_prev=includedir ;;
  1062. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1063. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1064. includedir=$ac_optarg ;;
  1065. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1066. ac_prev=infodir ;;
  1067. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1068. infodir=$ac_optarg ;;
  1069. -libdir | --libdir | --libdi | --libd)
  1070. ac_prev=libdir ;;
  1071. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1072. libdir=$ac_optarg ;;
  1073. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1074. | --libexe | --libex | --libe)
  1075. ac_prev=libexecdir ;;
  1076. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1077. | --libexe=* | --libex=* | --libe=*)
  1078. libexecdir=$ac_optarg ;;
  1079. -localedir | --localedir | --localedi | --localed | --locale)
  1080. ac_prev=localedir ;;
  1081. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1082. localedir=$ac_optarg ;;
  1083. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1084. | --localstate | --localstat | --localsta | --localst | --locals)
  1085. ac_prev=localstatedir ;;
  1086. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1087. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1088. localstatedir=$ac_optarg ;;
  1089. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1090. ac_prev=mandir ;;
  1091. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1092. mandir=$ac_optarg ;;
  1093. -nfp | --nfp | --nf)
  1094. # Obsolete; use --without-fp.
  1095. with_fp=no ;;
  1096. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1097. | --no-cr | --no-c | -n)
  1098. no_create=yes ;;
  1099. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1100. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1101. no_recursion=yes ;;
  1102. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1103. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1104. | --oldin | --oldi | --old | --ol | --o)
  1105. ac_prev=oldincludedir ;;
  1106. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1107. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1108. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1109. oldincludedir=$ac_optarg ;;
  1110. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1111. ac_prev=prefix ;;
  1112. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1113. prefix=$ac_optarg ;;
  1114. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1115. | --program-pre | --program-pr | --program-p)
  1116. ac_prev=program_prefix ;;
  1117. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1118. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1119. program_prefix=$ac_optarg ;;
  1120. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1121. | --program-suf | --program-su | --program-s)
  1122. ac_prev=program_suffix ;;
  1123. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1124. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1125. program_suffix=$ac_optarg ;;
  1126. -program-transform-name | --program-transform-name \
  1127. | --program-transform-nam | --program-transform-na \
  1128. | --program-transform-n | --program-transform- \
  1129. | --program-transform | --program-transfor \
  1130. | --program-transfo | --program-transf \
  1131. | --program-trans | --program-tran \
  1132. | --progr-tra | --program-tr | --program-t)
  1133. ac_prev=program_transform_name ;;
  1134. -program-transform-name=* | --program-transform-name=* \
  1135. | --program-transform-nam=* | --program-transform-na=* \
  1136. | --program-transform-n=* | --program-transform-=* \
  1137. | --program-transform=* | --program-transfor=* \
  1138. | --program-transfo=* | --program-transf=* \
  1139. | --program-trans=* | --program-tran=* \
  1140. | --progr-tra=* | --program-tr=* | --program-t=*)
  1141. program_transform_name=$ac_optarg ;;
  1142. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1143. ac_prev=pdfdir ;;
  1144. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1145. pdfdir=$ac_optarg ;;
  1146. -psdir | --psdir | --psdi | --psd | --ps)
  1147. ac_prev=psdir ;;
  1148. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1149. psdir=$ac_optarg ;;
  1150. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1151. | -silent | --silent | --silen | --sile | --sil)
  1152. silent=yes ;;
  1153. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1154. ac_prev=sbindir ;;
  1155. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1156. | --sbi=* | --sb=*)
  1157. sbindir=$ac_optarg ;;
  1158. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1159. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1160. | --sharedst | --shareds | --shared | --share | --shar \
  1161. | --sha | --sh)
  1162. ac_prev=sharedstatedir ;;
  1163. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1164. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1165. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1166. | --sha=* | --sh=*)
  1167. sharedstatedir=$ac_optarg ;;
  1168. -site | --site | --sit)
  1169. ac_prev=site ;;
  1170. -site=* | --site=* | --sit=*)
  1171. site=$ac_optarg ;;
  1172. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1173. ac_prev=srcdir ;;
  1174. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1175. srcdir=$ac_optarg ;;
  1176. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1177. | --syscon | --sysco | --sysc | --sys | --sy)
  1178. ac_prev=sysconfdir ;;
  1179. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1180. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1181. sysconfdir=$ac_optarg ;;
  1182. -target | --target | --targe | --targ | --tar | --ta | --t)
  1183. ac_prev=target_alias ;;
  1184. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1185. target_alias=$ac_optarg ;;
  1186. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1187. verbose=yes ;;
  1188. -version | --version | --versio | --versi | --vers | -V)
  1189. ac_init_version=: ;;
  1190. -with-* | --with-*)
  1191. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1192. # Reject names that are not valid shell variable names.
  1193. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1194. as_fn_error $? "invalid package name: $ac_useropt"
  1195. ac_useropt_orig=$ac_useropt
  1196. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1197. case $ac_user_opts in
  1198. *"
  1199. "with_$ac_useropt"
  1200. "*) ;;
  1201. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1202. ac_unrecognized_sep=', ';;
  1203. esac
  1204. eval with_$ac_useropt=\$ac_optarg ;;
  1205. -without-* | --without-*)
  1206. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1207. # Reject names that are not valid shell variable names.
  1208. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1209. as_fn_error $? "invalid package name: $ac_useropt"
  1210. ac_useropt_orig=$ac_useropt
  1211. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1212. case $ac_user_opts in
  1213. *"
  1214. "with_$ac_useropt"
  1215. "*) ;;
  1216. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1217. ac_unrecognized_sep=', ';;
  1218. esac
  1219. eval with_$ac_useropt=no ;;
  1220. --x)
  1221. # Obsolete; use --with-x.
  1222. with_x=yes ;;
  1223. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1224. | --x-incl | --x-inc | --x-in | --x-i)
  1225. ac_prev=x_includes ;;
  1226. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1227. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1228. x_includes=$ac_optarg ;;
  1229. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1230. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1231. ac_prev=x_libraries ;;
  1232. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1233. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1234. x_libraries=$ac_optarg ;;
  1235. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1236. Try \`$0 --help' for more information"
  1237. ;;
  1238. *=*)
  1239. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1240. # Reject names that are not valid shell variable names.
  1241. case $ac_envvar in #(
  1242. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1243. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1244. esac
  1245. eval $ac_envvar=\$ac_optarg
  1246. export $ac_envvar ;;
  1247. *)
  1248. # FIXME: should be removed in autoconf 3.0.
  1249. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1250. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1251. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1252. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1253. ;;
  1254. esac
  1255. done
  1256. if test -n "$ac_prev"; then
  1257. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1258. as_fn_error $? "missing argument to $ac_option"
  1259. fi
  1260. if test -n "$ac_unrecognized_opts"; then
  1261. case $enable_option_checking in
  1262. no) ;;
  1263. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1264. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1265. esac
  1266. fi
  1267. # Check all directory arguments for consistency.
  1268. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1269. datadir sysconfdir sharedstatedir localstatedir includedir \
  1270. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1271. libdir localedir mandir
  1272. do
  1273. eval ac_val=\$$ac_var
  1274. # Remove trailing slashes.
  1275. case $ac_val in
  1276. */ )
  1277. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1278. eval $ac_var=\$ac_val;;
  1279. esac
  1280. # Be sure to have absolute directory names.
  1281. case $ac_val in
  1282. [\\/$]* | ?:[\\/]* ) continue;;
  1283. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1284. esac
  1285. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1286. done
  1287. # There might be people who depend on the old broken behavior: `$host'
  1288. # used to hold the argument of --host etc.
  1289. # FIXME: To remove some day.
  1290. build=$build_alias
  1291. host=$host_alias
  1292. target=$target_alias
  1293. # FIXME: To remove some day.
  1294. if test "x$host_alias" != x; then
  1295. if test "x$build_alias" = x; then
  1296. cross_compiling=maybe
  1297. elif test "x$build_alias" != "x$host_alias"; then
  1298. cross_compiling=yes
  1299. fi
  1300. fi
  1301. ac_tool_prefix=
  1302. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1303. test "$silent" = yes && exec 6>/dev/null
  1304. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1305. ac_ls_di=`ls -di .` &&
  1306. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1307. as_fn_error $? "working directory cannot be determined"
  1308. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1309. as_fn_error $? "pwd does not report name of working directory"
  1310. # Find the source files, if location was not specified.
  1311. if test -z "$srcdir"; then
  1312. ac_srcdir_defaulted=yes
  1313. # Try the directory containing this script, then the parent directory.
  1314. ac_confdir=`$as_dirname -- "$as_myself" ||
  1315. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1316. X"$as_myself" : 'X\(//\)[^/]' \| \
  1317. X"$as_myself" : 'X\(//\)$' \| \
  1318. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1319. $as_echo X"$as_myself" |
  1320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1321. s//\1/
  1322. q
  1323. }
  1324. /^X\(\/\/\)[^/].*/{
  1325. s//\1/
  1326. q
  1327. }
  1328. /^X\(\/\/\)$/{
  1329. s//\1/
  1330. q
  1331. }
  1332. /^X\(\/\).*/{
  1333. s//\1/
  1334. q
  1335. }
  1336. s/.*/./; q'`
  1337. srcdir=$ac_confdir
  1338. if test ! -r "$srcdir/$ac_unique_file"; then
  1339. srcdir=..
  1340. fi
  1341. else
  1342. ac_srcdir_defaulted=no
  1343. fi
  1344. if test ! -r "$srcdir/$ac_unique_file"; then
  1345. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1346. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1347. fi
  1348. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1349. ac_abs_confdir=`(
  1350. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1351. pwd)`
  1352. # When building in place, set srcdir=.
  1353. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1354. srcdir=.
  1355. fi
  1356. # Remove unnecessary trailing slashes from srcdir.
  1357. # Double slashes in file names in object file debugging info
  1358. # mess up M-x gdb in Emacs.
  1359. case $srcdir in
  1360. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1361. esac
  1362. for ac_var in $ac_precious_vars; do
  1363. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1364. eval ac_env_${ac_var}_value=\$${ac_var}
  1365. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1366. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1367. done
  1368. #
  1369. # Report the --help message.
  1370. #
  1371. if test "$ac_init_help" = "long"; then
  1372. # Omit some internal or obsolete options to make the list less imposing.
  1373. # This message is too long to be a string in the A/UX 3.1 sh.
  1374. cat <<_ACEOF
  1375. \`configure' configures this package to adapt to many kinds of systems.
  1376. Usage: $0 [OPTION]... [VAR=VALUE]...
  1377. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1378. VAR=VALUE. See below for descriptions of some of the useful variables.
  1379. Defaults for the options are specified in brackets.
  1380. Configuration:
  1381. -h, --help display this help and exit
  1382. --help=short display options specific to this package
  1383. --help=recursive display the short help of all the included packages
  1384. -V, --version display version information and exit
  1385. -q, --quiet, --silent do not print \`checking ...' messages
  1386. --cache-file=FILE cache test results in FILE [disabled]
  1387. -C, --config-cache alias for \`--cache-file=config.cache'
  1388. -n, --no-create do not create output files
  1389. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1390. Installation directories:
  1391. --prefix=PREFIX install architecture-independent files in PREFIX
  1392. [$ac_default_prefix]
  1393. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1394. [PREFIX]
  1395. By default, \`make install' will install all the files in
  1396. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1397. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1398. for instance \`--prefix=\$HOME'.
  1399. For better control, use the options below.
  1400. Fine tuning of the installation directories:
  1401. --bindir=DIR user executables [EPREFIX/bin]
  1402. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1403. --libexecdir=DIR program executables [EPREFIX/libexec]
  1404. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1405. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1406. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1407. --libdir=DIR object code libraries [EPREFIX/lib]
  1408. --includedir=DIR C header files [PREFIX/include]
  1409. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1410. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1411. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1412. --infodir=DIR info documentation [DATAROOTDIR/info]
  1413. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1414. --mandir=DIR man documentation [DATAROOTDIR/man]
  1415. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1416. --htmldir=DIR html documentation [DOCDIR]
  1417. --dvidir=DIR dvi documentation [DOCDIR]
  1418. --pdfdir=DIR pdf documentation [DOCDIR]
  1419. --psdir=DIR ps documentation [DOCDIR]
  1420. _ACEOF
  1421. cat <<\_ACEOF
  1422. X features:
  1423. --x-includes=DIR X include files are in DIR
  1424. --x-libraries=DIR X library files are in DIR
  1425. System types:
  1426. --build=BUILD configure for building on BUILD [guessed]
  1427. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1428. _ACEOF
  1429. fi
  1430. if test -n "$ac_init_help"; then
  1431. cat <<\_ACEOF
  1432. Optional Features:
  1433. --disable-option-checking ignore unrecognized --enable/--with options
  1434. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1435. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1436. --enable-shared[=PKGS] build shared libraries [default=yes]
  1437. --enable-static[=PKGS] build static libraries [default=yes]
  1438. --enable-fast-install[=PKGS]
  1439. optimize for fast installation [default=yes]
  1440. --disable-libtool-lock avoid locking (might break parallel builds)
  1441. --enable-assertions Enable internal sanity checks
  1442. (auto/disabled/release/enabled/paranoid)
  1443. [default=auto]
  1444. --enable-dependency-tracking
  1445. Use gcc -MMD -MT dependency tracking [default=yes]
  1446. --enable-libc Use the system C library [default=yes]
  1447. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1448. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1449. --enable-audio Enable the audio subsystem [default=yes]
  1450. --enable-video Enable the video subsystem [default=yes]
  1451. --enable-render Enable the render subsystem [default=yes]
  1452. --enable-events Enable the events subsystem [default=yes]
  1453. --enable-joystick Enable the joystick subsystem [default=yes]
  1454. --enable-haptic Enable the haptic (force feedback) subsystem
  1455. [default=yes]
  1456. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1457. --enable-sensor Enable the sensor subsystem [default=yes]
  1458. --enable-power Enable the power subsystem [default=yes]
  1459. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1460. --enable-threads Enable the threading subsystem [default=yes]
  1461. --enable-timers Enable the timer subsystem [default=yes]
  1462. --enable-file Enable the file subsystem [default=yes]
  1463. --enable-loadso Enable the shared object loading subsystem
  1464. [default=yes]
  1465. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1466. --enable-assembly Enable assembly routines [default=yes]
  1467. --enable-ssemath Allow GCC to use SSE floating point math
  1468. [default=maybe]
  1469. --enable-mmx use MMX assembly routines [default=yes]
  1470. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1471. --enable-sse use SSE assembly routines [default=yes]
  1472. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1473. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1474. --enable-altivec use Altivec assembly routines [default=yes]
  1475. --enable-oss support the OSS audio API [default=maybe]
  1476. --enable-alsa support the ALSA audio API [default=yes]
  1477. --disable-alsatest Do not try to compile and run a test Alsa program
  1478. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1479. --enable-jack use JACK audio [default=yes]
  1480. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1481. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1482. --disable-esdtest Do not try to compile and run a test ESD program
  1483. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1484. --enable-pipewire use Pipewire audio [default=yes]
  1485. --enable-pipewire-shared
  1486. dynamically load Pipewire support [default=yes]
  1487. --enable-pulseaudio use PulseAudio [default=yes]
  1488. --enable-pulseaudio-shared
  1489. dynamically load PulseAudio support [default=yes]
  1490. --enable-arts support the Analog Real Time Synthesizer
  1491. [default=yes]
  1492. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1493. --enable-nas support the NAS audio API [default=yes]
  1494. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1495. --enable-sndio support the sndio audio API [default=yes]
  1496. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1497. --enable-fusionsound use FusionSound audio driver [default=no]
  1498. --enable-fusionsound-shared
  1499. dynamically load fusionsound audio support
  1500. [default=yes]
  1501. --enable-diskaudio support the disk writer audio driver [default=yes]
  1502. --enable-dummyaudio support the dummy audio driver [default=yes]
  1503. --enable-libsamplerate use libsamplerate for audio rate conversion
  1504. [default=yes]
  1505. --enable-libsamplerate-shared
  1506. dynamically load libsamplerate [default=yes]
  1507. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1508. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1509. --enable-video-wayland use Wayland video driver [default=yes]
  1510. --enable-video-wayland-qt-touch
  1511. QtWayland server support for Wayland video driver
  1512. [default=yes]
  1513. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1514. --enable-libdecor use libdecor for Wayland client-side decorations
  1515. [default=yes]
  1516. --enable-libdecor-shared
  1517. dynamically load libdecor [default=yes]
  1518. --enable-video-rpi use Raspberry Pi video driver [default=yes]
  1519. --enable-video-x11 use X11 video driver [default=yes]
  1520. --enable-x11-shared dynamically load X11 support [default=maybe]
  1521. --enable-video-x11-xcursor
  1522. enable X11 Xcursor support [default=yes]
  1523. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1524. --enable-video-x11-xinerama
  1525. enable X11 Xinerama support [default=yes]
  1526. --enable-video-x11-xinput
  1527. enable X11 XInput extension for manymouse, tablets,
  1528. etc [default=yes]
  1529. --enable-video-x11-xfixes
  1530. enable X11 Xfixes support [default=yes]
  1531. --enable-video-x11-xrandr
  1532. enable X11 Xrandr extension for fullscreen
  1533. [default=yes]
  1534. --enable-video-x11-scrnsaver
  1535. enable X11 screensaver extension [default=yes]
  1536. --enable-video-x11-xshape
  1537. enable X11 XShape support [default=yes]
  1538. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1539. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1540. --enable-video-cocoa use Cocoa video driver [default=yes]
  1541. --enable-video-metal include Metal support [default=yes]
  1542. --enable-render-metal enable the Metal render driver [default=yes]
  1543. --enable-video-directfb use DirectFB video driver [default=no]
  1544. --enable-directfb-shared
  1545. dynamically load directfb support [default=yes]
  1546. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1547. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1548. --enable-video-dummy use dummy video driver [default=yes]
  1549. --enable-video-opengl include OpenGL support [default=yes]
  1550. --enable-video-opengles include OpenGL ES support [default=yes]
  1551. --enable-video-opengles1
  1552. include OpenGL ES 1.1 support [default=yes]
  1553. --enable-video-opengles2
  1554. include OpenGL ES 2.0 support [default=yes]
  1555. --enable-video-vulkan include Vulkan support [default=yes]
  1556. --enable-libudev enable libudev support [default=yes]
  1557. --enable-dbus enable D-Bus support [default=yes]
  1558. --enable-ime enable IME support [default=yes]
  1559. --enable-ibus enable IBus support [default=yes]
  1560. --enable-fcitx enable fcitx support [default=yes]
  1561. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1562. --enable-pthreads use POSIX threads for multi-threading
  1563. [default=maybe]
  1564. --enable-pthread-sem use pthread semaphores [default=maybe]
  1565. --enable-directx use DirectX for Windows audio/video [default=yes]
  1566. --enable-xinput use Xinput for Windows [default=yes]
  1567. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1568. --enable-hidapi-joystick
  1569. use HIDAPI for low level joystick drivers
  1570. [default=yes]
  1571. --enable-hidapi-libusb use libusb for low level joystick drivers
  1572. [default=maybe]
  1573. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1574. UNIX [default=yes]
  1575. --enable-rpath use an rpath when linking SDL [default=yes]
  1576. --enable-backgrounding-signal
  1577. number to use for magic backgrounding signal or 'no'
  1578. [default=no]
  1579. --enable-foregrounding-signal
  1580. number to use for magic foregrounding signal or 'no'
  1581. [default=no]
  1582. --enable-joystick-virtual
  1583. enable virtual joystick APIs [default=yes]
  1584. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1585. --enable-sdl2-config Install sdl2-config [default=yes]
  1586. Optional Packages:
  1587. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1588. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1589. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1590. both]
  1591. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1592. --with-sysroot=DIR Search for dependent libraries within DIR
  1593. (or the compiler's sysroot if not specified).
  1594. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1595. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1596. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1597. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1598. --with-x use the X Window System
  1599. Some influential environment variables:
  1600. CC C compiler command
  1601. CFLAGS C compiler flags
  1602. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1603. nonstandard directory <lib dir>
  1604. LIBS libraries to pass to the linker, e.g. -l<library>
  1605. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1606. you have headers in a nonstandard directory <include dir>
  1607. CPP C preprocessor
  1608. CXX C++ compiler command
  1609. CXXFLAGS C++ compiler flags
  1610. CXXCPP C++ preprocessor
  1611. PKG_CONFIG path to pkg-config utility
  1612. PKG_CONFIG_PATH
  1613. directories to add to pkg-config's search path
  1614. PKG_CONFIG_LIBDIR
  1615. path overriding pkg-config's built-in search path
  1616. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1617. JACK_LIBS linker flags for JACK, overriding pkg-config
  1618. PIPEWIRE_CFLAGS
  1619. C compiler flags for PIPEWIRE, overriding pkg-config
  1620. PIPEWIRE_LIBS
  1621. linker flags for PIPEWIRE, overriding pkg-config
  1622. PULSEAUDIO_CFLAGS
  1623. C compiler flags for PULSEAUDIO, overriding pkg-config
  1624. PULSEAUDIO_LIBS
  1625. linker flags for PULSEAUDIO, overriding pkg-config
  1626. FUSIONSOUND_CFLAGS
  1627. C compiler flags for FUSIONSOUND, overriding pkg-config
  1628. FUSIONSOUND_LIBS
  1629. linker flags for FUSIONSOUND, overriding pkg-config
  1630. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1631. RPI_LIBS linker flags for RPI, overriding pkg-config
  1632. XMKMF Path to xmkmf, Makefile generator for X Window System
  1633. DIRECTFB_CFLAGS
  1634. C compiler flags for DIRECTFB, overriding pkg-config
  1635. DIRECTFB_LIBS
  1636. linker flags for DIRECTFB, overriding pkg-config
  1637. LIBDRM_CFLAGS
  1638. C compiler flags for LIBDRM, overriding pkg-config
  1639. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1640. LIBGBM_CFLAGS
  1641. C compiler flags for LIBGBM, overriding pkg-config
  1642. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1643. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1644. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1645. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1646. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1647. LIBUSB_CFLAGS
  1648. C compiler flags for LIBUSB, overriding pkg-config
  1649. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1650. Use these variables to override the choices made by `configure' or to help
  1651. it to find libraries and programs with nonstandard names/locations.
  1652. Report bugs to the package provider.
  1653. _ACEOF
  1654. ac_status=$?
  1655. fi
  1656. if test "$ac_init_help" = "recursive"; then
  1657. # If there are subdirs, report their specific --help.
  1658. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1659. test -d "$ac_dir" ||
  1660. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1661. continue
  1662. ac_builddir=.
  1663. case "$ac_dir" in
  1664. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1665. *)
  1666. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1667. # A ".." for each directory in $ac_dir_suffix.
  1668. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1669. case $ac_top_builddir_sub in
  1670. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1671. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1672. esac ;;
  1673. esac
  1674. ac_abs_top_builddir=$ac_pwd
  1675. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1676. # for backward compatibility:
  1677. ac_top_builddir=$ac_top_build_prefix
  1678. case $srcdir in
  1679. .) # We are building in place.
  1680. ac_srcdir=.
  1681. ac_top_srcdir=$ac_top_builddir_sub
  1682. ac_abs_top_srcdir=$ac_pwd ;;
  1683. [\\/]* | ?:[\\/]* ) # Absolute name.
  1684. ac_srcdir=$srcdir$ac_dir_suffix;
  1685. ac_top_srcdir=$srcdir
  1686. ac_abs_top_srcdir=$srcdir ;;
  1687. *) # Relative name.
  1688. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1689. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1690. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1691. esac
  1692. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1693. cd "$ac_dir" || { ac_status=$?; continue; }
  1694. # Check for guested configure.
  1695. if test -f "$ac_srcdir/configure.gnu"; then
  1696. echo &&
  1697. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1698. elif test -f "$ac_srcdir/configure"; then
  1699. echo &&
  1700. $SHELL "$ac_srcdir/configure" --help=recursive
  1701. else
  1702. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1703. fi || ac_status=$?
  1704. cd "$ac_pwd" || { ac_status=$?; break; }
  1705. done
  1706. fi
  1707. test -n "$ac_init_help" && exit $ac_status
  1708. if $ac_init_version; then
  1709. cat <<\_ACEOF
  1710. configure
  1711. generated by GNU Autoconf 2.69
  1712. Copyright (C) 2012 Free Software Foundation, Inc.
  1713. This configure script is free software; the Free Software Foundation
  1714. gives unlimited permission to copy, distribute and modify it.
  1715. _ACEOF
  1716. exit
  1717. fi
  1718. ## ------------------------ ##
  1719. ## Autoconf initialization. ##
  1720. ## ------------------------ ##
  1721. # ac_fn_c_try_compile LINENO
  1722. # --------------------------
  1723. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1724. ac_fn_c_try_compile ()
  1725. {
  1726. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1727. rm -f conftest.$ac_objext
  1728. if { { ac_try="$ac_compile"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_compile") 2>conftest.err
  1736. ac_status=$?
  1737. if test -s conftest.err; then
  1738. grep -v '^ *+' conftest.err >conftest.er1
  1739. cat conftest.er1 >&5
  1740. mv -f conftest.er1 conftest.err
  1741. fi
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } && {
  1744. test -z "$ac_c_werror_flag" ||
  1745. test ! -s conftest.err
  1746. } && test -s conftest.$ac_objext; then :
  1747. ac_retval=0
  1748. else
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_retval=1
  1752. fi
  1753. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1754. as_fn_set_status $ac_retval
  1755. } # ac_fn_c_try_compile
  1756. # ac_fn_c_try_link LINENO
  1757. # -----------------------
  1758. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1759. ac_fn_c_try_link ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. rm -f conftest.$ac_objext conftest$ac_exeext
  1763. if { { ac_try="$ac_link"
  1764. case "(($ac_try" in
  1765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1766. *) ac_try_echo=$ac_try;;
  1767. esac
  1768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1769. $as_echo "$ac_try_echo"; } >&5
  1770. (eval "$ac_link") 2>conftest.err
  1771. ac_status=$?
  1772. if test -s conftest.err; then
  1773. grep -v '^ *+' conftest.err >conftest.er1
  1774. cat conftest.er1 >&5
  1775. mv -f conftest.er1 conftest.err
  1776. fi
  1777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1778. test $ac_status = 0; } && {
  1779. test -z "$ac_c_werror_flag" ||
  1780. test ! -s conftest.err
  1781. } && test -s conftest$ac_exeext && {
  1782. test "$cross_compiling" = yes ||
  1783. test -x conftest$ac_exeext
  1784. }; then :
  1785. ac_retval=0
  1786. else
  1787. $as_echo "$as_me: failed program was:" >&5
  1788. sed 's/^/| /' conftest.$ac_ext >&5
  1789. ac_retval=1
  1790. fi
  1791. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1792. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1793. # interfere with the next link command; also delete a directory that is
  1794. # left behind by Apple's compiler. We do this before executing the actions.
  1795. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. as_fn_set_status $ac_retval
  1798. } # ac_fn_c_try_link
  1799. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1800. # -------------------------------------------------------
  1801. # Tests whether HEADER exists and can be compiled using the include files in
  1802. # INCLUDES, setting the cache variable VAR accordingly.
  1803. ac_fn_c_check_header_compile ()
  1804. {
  1805. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1807. $as_echo_n "checking for $2... " >&6; }
  1808. if eval \${$3+:} false; then :
  1809. $as_echo_n "(cached) " >&6
  1810. else
  1811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1812. /* end confdefs.h. */
  1813. $4
  1814. #include <$2>
  1815. _ACEOF
  1816. if ac_fn_c_try_compile "$LINENO"; then :
  1817. eval "$3=yes"
  1818. else
  1819. eval "$3=no"
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_c_check_header_compile
  1828. # ac_fn_c_try_cpp LINENO
  1829. # ----------------------
  1830. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1831. ac_fn_c_try_cpp ()
  1832. {
  1833. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1834. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1835. case "(($ac_try" in
  1836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1837. *) ac_try_echo=$ac_try;;
  1838. esac
  1839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1840. $as_echo "$ac_try_echo"; } >&5
  1841. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1842. ac_status=$?
  1843. if test -s conftest.err; then
  1844. grep -v '^ *+' conftest.err >conftest.er1
  1845. cat conftest.er1 >&5
  1846. mv -f conftest.er1 conftest.err
  1847. fi
  1848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1849. test $ac_status = 0; } > conftest.i && {
  1850. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1851. test ! -s conftest.err
  1852. }; then :
  1853. ac_retval=0
  1854. else
  1855. $as_echo "$as_me: failed program was:" >&5
  1856. sed 's/^/| /' conftest.$ac_ext >&5
  1857. ac_retval=1
  1858. fi
  1859. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1860. as_fn_set_status $ac_retval
  1861. } # ac_fn_c_try_cpp
  1862. # ac_fn_c_try_run LINENO
  1863. # ----------------------
  1864. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1865. # that executables *can* be run.
  1866. ac_fn_c_try_run ()
  1867. {
  1868. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1869. if { { ac_try="$ac_link"
  1870. case "(($ac_try" in
  1871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1872. *) ac_try_echo=$ac_try;;
  1873. esac
  1874. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1875. $as_echo "$ac_try_echo"; } >&5
  1876. (eval "$ac_link") 2>&5
  1877. ac_status=$?
  1878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1879. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1880. { { case "(($ac_try" in
  1881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1882. *) ac_try_echo=$ac_try;;
  1883. esac
  1884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1885. $as_echo "$ac_try_echo"; } >&5
  1886. (eval "$ac_try") 2>&5
  1887. ac_status=$?
  1888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1889. test $ac_status = 0; }; }; then :
  1890. ac_retval=0
  1891. else
  1892. $as_echo "$as_me: program exited with status $ac_status" >&5
  1893. $as_echo "$as_me: failed program was:" >&5
  1894. sed 's/^/| /' conftest.$ac_ext >&5
  1895. ac_retval=$ac_status
  1896. fi
  1897. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1898. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1899. as_fn_set_status $ac_retval
  1900. } # ac_fn_c_try_run
  1901. # ac_fn_c_check_func LINENO FUNC VAR
  1902. # ----------------------------------
  1903. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1904. ac_fn_c_check_func ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1908. $as_echo_n "checking for $2... " >&6; }
  1909. if eval \${$3+:} false; then :
  1910. $as_echo_n "(cached) " >&6
  1911. else
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h. */
  1914. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1915. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1916. #define $2 innocuous_$2
  1917. /* System header to define __stub macros and hopefully few prototypes,
  1918. which can conflict with char $2 (); below.
  1919. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1920. <limits.h> exists even on freestanding compilers. */
  1921. #ifdef __STDC__
  1922. # include <limits.h>
  1923. #else
  1924. # include <assert.h>
  1925. #endif
  1926. #undef $2
  1927. /* Override any GCC internal prototype to avoid an error.
  1928. Use char because int might match the return type of a GCC
  1929. builtin and then its argument prototype would still apply. */
  1930. #ifdef __cplusplus
  1931. extern "C"
  1932. #endif
  1933. char $2 ();
  1934. /* The GNU C library defines this for functions which it implements
  1935. to always fail with ENOSYS. Some functions are actually named
  1936. something starting with __ and the normal name is an alias. */
  1937. #if defined __stub_$2 || defined __stub___$2
  1938. choke me
  1939. #endif
  1940. int
  1941. main ()
  1942. {
  1943. return $2 ();
  1944. ;
  1945. return 0;
  1946. }
  1947. _ACEOF
  1948. if ac_fn_c_try_link "$LINENO"; then :
  1949. eval "$3=yes"
  1950. else
  1951. eval "$3=no"
  1952. fi
  1953. rm -f core conftest.err conftest.$ac_objext \
  1954. conftest$ac_exeext conftest.$ac_ext
  1955. fi
  1956. eval ac_res=\$$3
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. $as_echo "$ac_res" >&6; }
  1959. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1960. } # ac_fn_c_check_func
  1961. # ac_fn_cxx_try_compile LINENO
  1962. # ----------------------------
  1963. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1964. ac_fn_cxx_try_compile ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. rm -f conftest.$ac_objext
  1968. if { { ac_try="$ac_compile"
  1969. case "(($ac_try" in
  1970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1971. *) ac_try_echo=$ac_try;;
  1972. esac
  1973. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1974. $as_echo "$ac_try_echo"; } >&5
  1975. (eval "$ac_compile") 2>conftest.err
  1976. ac_status=$?
  1977. if test -s conftest.err; then
  1978. grep -v '^ *+' conftest.err >conftest.er1
  1979. cat conftest.er1 >&5
  1980. mv -f conftest.er1 conftest.err
  1981. fi
  1982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1983. test $ac_status = 0; } && {
  1984. test -z "$ac_cxx_werror_flag" ||
  1985. test ! -s conftest.err
  1986. } && test -s conftest.$ac_objext; then :
  1987. ac_retval=0
  1988. else
  1989. $as_echo "$as_me: failed program was:" >&5
  1990. sed 's/^/| /' conftest.$ac_ext >&5
  1991. ac_retval=1
  1992. fi
  1993. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1994. as_fn_set_status $ac_retval
  1995. } # ac_fn_cxx_try_compile
  1996. # ac_fn_cxx_try_cpp LINENO
  1997. # ------------------------
  1998. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1999. ac_fn_cxx_try_cpp ()
  2000. {
  2001. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2002. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2003. case "(($ac_try" in
  2004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2005. *) ac_try_echo=$ac_try;;
  2006. esac
  2007. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2008. $as_echo "$ac_try_echo"; } >&5
  2009. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2010. ac_status=$?
  2011. if test -s conftest.err; then
  2012. grep -v '^ *+' conftest.err >conftest.er1
  2013. cat conftest.er1 >&5
  2014. mv -f conftest.er1 conftest.err
  2015. fi
  2016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2017. test $ac_status = 0; } > conftest.i && {
  2018. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2019. test ! -s conftest.err
  2020. }; then :
  2021. ac_retval=0
  2022. else
  2023. $as_echo "$as_me: failed program was:" >&5
  2024. sed 's/^/| /' conftest.$ac_ext >&5
  2025. ac_retval=1
  2026. fi
  2027. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2028. as_fn_set_status $ac_retval
  2029. } # ac_fn_cxx_try_cpp
  2030. # ac_fn_cxx_try_link LINENO
  2031. # -------------------------
  2032. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2033. ac_fn_cxx_try_link ()
  2034. {
  2035. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2036. rm -f conftest.$ac_objext conftest$ac_exeext
  2037. if { { ac_try="$ac_link"
  2038. case "(($ac_try" in
  2039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2040. *) ac_try_echo=$ac_try;;
  2041. esac
  2042. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2043. $as_echo "$ac_try_echo"; } >&5
  2044. (eval "$ac_link") 2>conftest.err
  2045. ac_status=$?
  2046. if test -s conftest.err; then
  2047. grep -v '^ *+' conftest.err >conftest.er1
  2048. cat conftest.er1 >&5
  2049. mv -f conftest.er1 conftest.err
  2050. fi
  2051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2052. test $ac_status = 0; } && {
  2053. test -z "$ac_cxx_werror_flag" ||
  2054. test ! -s conftest.err
  2055. } && test -s conftest$ac_exeext && {
  2056. test "$cross_compiling" = yes ||
  2057. test -x conftest$ac_exeext
  2058. }; then :
  2059. ac_retval=0
  2060. else
  2061. $as_echo "$as_me: failed program was:" >&5
  2062. sed 's/^/| /' conftest.$ac_ext >&5
  2063. ac_retval=1
  2064. fi
  2065. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2066. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2067. # interfere with the next link command; also delete a directory that is
  2068. # left behind by Apple's compiler. We do this before executing the actions.
  2069. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2070. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2071. as_fn_set_status $ac_retval
  2072. } # ac_fn_cxx_try_link
  2073. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2074. # -------------------------------------------------------
  2075. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2076. # the include files in INCLUDES and setting the cache variable VAR
  2077. # accordingly.
  2078. ac_fn_c_check_header_mongrel ()
  2079. {
  2080. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2081. if eval \${$3+:} false; then :
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2083. $as_echo_n "checking for $2... " >&6; }
  2084. if eval \${$3+:} false; then :
  2085. $as_echo_n "(cached) " >&6
  2086. fi
  2087. eval ac_res=\$$3
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2089. $as_echo "$ac_res" >&6; }
  2090. else
  2091. # Is the header compilable?
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2093. $as_echo_n "checking $2 usability... " >&6; }
  2094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2095. /* end confdefs.h. */
  2096. $4
  2097. #include <$2>
  2098. _ACEOF
  2099. if ac_fn_c_try_compile "$LINENO"; then :
  2100. ac_header_compiler=yes
  2101. else
  2102. ac_header_compiler=no
  2103. fi
  2104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2106. $as_echo "$ac_header_compiler" >&6; }
  2107. # Is the header present?
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2109. $as_echo_n "checking $2 presence... " >&6; }
  2110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2111. /* end confdefs.h. */
  2112. #include <$2>
  2113. _ACEOF
  2114. if ac_fn_c_try_cpp "$LINENO"; then :
  2115. ac_header_preproc=yes
  2116. else
  2117. ac_header_preproc=no
  2118. fi
  2119. rm -f conftest.err conftest.i conftest.$ac_ext
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2121. $as_echo "$ac_header_preproc" >&6; }
  2122. # So? What about this header?
  2123. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2124. yes:no: )
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2126. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2128. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2129. ;;
  2130. no:yes:* )
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2132. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2134. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2136. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2138. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2140. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2141. ;;
  2142. esac
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2144. $as_echo_n "checking for $2... " >&6; }
  2145. if eval \${$3+:} false; then :
  2146. $as_echo_n "(cached) " >&6
  2147. else
  2148. eval "$3=\$ac_header_compiler"
  2149. fi
  2150. eval ac_res=\$$3
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2152. $as_echo "$ac_res" >&6; }
  2153. fi
  2154. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2155. } # ac_fn_c_check_header_mongrel
  2156. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2157. # -------------------------------------------
  2158. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2159. # variable VAR accordingly.
  2160. ac_fn_c_check_type ()
  2161. {
  2162. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2164. $as_echo_n "checking for $2... " >&6; }
  2165. if eval \${$3+:} false; then :
  2166. $as_echo_n "(cached) " >&6
  2167. else
  2168. eval "$3=no"
  2169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2170. /* end confdefs.h. */
  2171. $4
  2172. int
  2173. main ()
  2174. {
  2175. if (sizeof ($2))
  2176. return 0;
  2177. ;
  2178. return 0;
  2179. }
  2180. _ACEOF
  2181. if ac_fn_c_try_compile "$LINENO"; then :
  2182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2183. /* end confdefs.h. */
  2184. $4
  2185. int
  2186. main ()
  2187. {
  2188. if (sizeof (($2)))
  2189. return 0;
  2190. ;
  2191. return 0;
  2192. }
  2193. _ACEOF
  2194. if ac_fn_c_try_compile "$LINENO"; then :
  2195. else
  2196. eval "$3=yes"
  2197. fi
  2198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2199. fi
  2200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2201. fi
  2202. eval ac_res=\$$3
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2204. $as_echo "$ac_res" >&6; }
  2205. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2206. } # ac_fn_c_check_type
  2207. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2208. # ----------------------------------------------------
  2209. # Tries to find if the field MEMBER exists in type AGGR, after including
  2210. # INCLUDES, setting cache variable VAR accordingly.
  2211. ac_fn_c_check_member ()
  2212. {
  2213. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2215. $as_echo_n "checking for $2.$3... " >&6; }
  2216. if eval \${$4+:} false; then :
  2217. $as_echo_n "(cached) " >&6
  2218. else
  2219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2220. /* end confdefs.h. */
  2221. $5
  2222. int
  2223. main ()
  2224. {
  2225. static $2 ac_aggr;
  2226. if (ac_aggr.$3)
  2227. return 0;
  2228. ;
  2229. return 0;
  2230. }
  2231. _ACEOF
  2232. if ac_fn_c_try_compile "$LINENO"; then :
  2233. eval "$4=yes"
  2234. else
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $5
  2238. int
  2239. main ()
  2240. {
  2241. static $2 ac_aggr;
  2242. if (sizeof ac_aggr.$3)
  2243. return 0;
  2244. ;
  2245. return 0;
  2246. }
  2247. _ACEOF
  2248. if ac_fn_c_try_compile "$LINENO"; then :
  2249. eval "$4=yes"
  2250. else
  2251. eval "$4=no"
  2252. fi
  2253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2254. fi
  2255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2256. fi
  2257. eval ac_res=\$$4
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2259. $as_echo "$ac_res" >&6; }
  2260. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2261. } # ac_fn_c_check_member
  2262. cat >config.log <<_ACEOF
  2263. This file contains any messages produced by compilers while
  2264. running configure, to aid debugging if configure makes a mistake.
  2265. It was created by $as_me, which was
  2266. generated by GNU Autoconf 2.69. Invocation command line was
  2267. $ $0 $@
  2268. _ACEOF
  2269. exec 5>>config.log
  2270. {
  2271. cat <<_ASUNAME
  2272. ## --------- ##
  2273. ## Platform. ##
  2274. ## --------- ##
  2275. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2276. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2277. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2278. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2279. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2280. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2281. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2282. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2283. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2284. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2285. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2286. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2287. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2288. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2289. _ASUNAME
  2290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2291. for as_dir in $PATH
  2292. do
  2293. IFS=$as_save_IFS
  2294. test -z "$as_dir" && as_dir=.
  2295. $as_echo "PATH: $as_dir"
  2296. done
  2297. IFS=$as_save_IFS
  2298. } >&5
  2299. cat >&5 <<_ACEOF
  2300. ## ----------- ##
  2301. ## Core tests. ##
  2302. ## ----------- ##
  2303. _ACEOF
  2304. # Keep a trace of the command line.
  2305. # Strip out --no-create and --no-recursion so they do not pile up.
  2306. # Strip out --silent because we don't want to record it for future runs.
  2307. # Also quote any args containing shell meta-characters.
  2308. # Make two passes to allow for proper duplicate-argument suppression.
  2309. ac_configure_args=
  2310. ac_configure_args0=
  2311. ac_configure_args1=
  2312. ac_must_keep_next=false
  2313. for ac_pass in 1 2
  2314. do
  2315. for ac_arg
  2316. do
  2317. case $ac_arg in
  2318. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2319. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2320. | -silent | --silent | --silen | --sile | --sil)
  2321. continue ;;
  2322. *\'*)
  2323. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2324. esac
  2325. case $ac_pass in
  2326. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2327. 2)
  2328. as_fn_append ac_configure_args1 " '$ac_arg'"
  2329. if test $ac_must_keep_next = true; then
  2330. ac_must_keep_next=false # Got value, back to normal.
  2331. else
  2332. case $ac_arg in
  2333. *=* | --config-cache | -C | -disable-* | --disable-* \
  2334. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2335. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2336. | -with-* | --with-* | -without-* | --without-* | --x)
  2337. case "$ac_configure_args0 " in
  2338. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2339. esac
  2340. ;;
  2341. -* ) ac_must_keep_next=true ;;
  2342. esac
  2343. fi
  2344. as_fn_append ac_configure_args " '$ac_arg'"
  2345. ;;
  2346. esac
  2347. done
  2348. done
  2349. { ac_configure_args0=; unset ac_configure_args0;}
  2350. { ac_configure_args1=; unset ac_configure_args1;}
  2351. # When interrupted or exit'd, cleanup temporary files, and complete
  2352. # config.log. We remove comments because anyway the quotes in there
  2353. # would cause problems or look ugly.
  2354. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2355. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2356. trap 'exit_status=$?
  2357. # Save into config.log some information that might help in debugging.
  2358. {
  2359. echo
  2360. $as_echo "## ---------------- ##
  2361. ## Cache variables. ##
  2362. ## ---------------- ##"
  2363. echo
  2364. # The following way of writing the cache mishandles newlines in values,
  2365. (
  2366. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2367. eval ac_val=\$$ac_var
  2368. case $ac_val in #(
  2369. *${as_nl}*)
  2370. case $ac_var in #(
  2371. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2372. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2373. esac
  2374. case $ac_var in #(
  2375. _ | IFS | as_nl) ;; #(
  2376. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2377. *) { eval $ac_var=; unset $ac_var;} ;;
  2378. esac ;;
  2379. esac
  2380. done
  2381. (set) 2>&1 |
  2382. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2383. *${as_nl}ac_space=\ *)
  2384. sed -n \
  2385. "s/'\''/'\''\\\\'\'''\''/g;
  2386. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2387. ;; #(
  2388. *)
  2389. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2390. ;;
  2391. esac |
  2392. sort
  2393. )
  2394. echo
  2395. $as_echo "## ----------------- ##
  2396. ## Output variables. ##
  2397. ## ----------------- ##"
  2398. echo
  2399. for ac_var in $ac_subst_vars
  2400. do
  2401. eval ac_val=\$$ac_var
  2402. case $ac_val in
  2403. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2404. esac
  2405. $as_echo "$ac_var='\''$ac_val'\''"
  2406. done | sort
  2407. echo
  2408. if test -n "$ac_subst_files"; then
  2409. $as_echo "## ------------------- ##
  2410. ## File substitutions. ##
  2411. ## ------------------- ##"
  2412. echo
  2413. for ac_var in $ac_subst_files
  2414. do
  2415. eval ac_val=\$$ac_var
  2416. case $ac_val in
  2417. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2418. esac
  2419. $as_echo "$ac_var='\''$ac_val'\''"
  2420. done | sort
  2421. echo
  2422. fi
  2423. if test -s confdefs.h; then
  2424. $as_echo "## ----------- ##
  2425. ## confdefs.h. ##
  2426. ## ----------- ##"
  2427. echo
  2428. cat confdefs.h
  2429. echo
  2430. fi
  2431. test "$ac_signal" != 0 &&
  2432. $as_echo "$as_me: caught signal $ac_signal"
  2433. $as_echo "$as_me: exit $exit_status"
  2434. } >&5
  2435. rm -f core *.core core.conftest.* &&
  2436. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2437. exit $exit_status
  2438. ' 0
  2439. for ac_signal in 1 2 13 15; do
  2440. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2441. done
  2442. ac_signal=0
  2443. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2444. rm -f -r conftest* confdefs.h
  2445. $as_echo "/* confdefs.h */" > confdefs.h
  2446. # Predefined preprocessor variables.
  2447. cat >>confdefs.h <<_ACEOF
  2448. #define PACKAGE_NAME "$PACKAGE_NAME"
  2449. _ACEOF
  2450. cat >>confdefs.h <<_ACEOF
  2451. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2452. _ACEOF
  2453. cat >>confdefs.h <<_ACEOF
  2454. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2455. _ACEOF
  2456. cat >>confdefs.h <<_ACEOF
  2457. #define PACKAGE_STRING "$PACKAGE_STRING"
  2458. _ACEOF
  2459. cat >>confdefs.h <<_ACEOF
  2460. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2461. _ACEOF
  2462. cat >>confdefs.h <<_ACEOF
  2463. #define PACKAGE_URL "$PACKAGE_URL"
  2464. _ACEOF
  2465. # Let the site file select an alternate cache file if it wants to.
  2466. # Prefer an explicitly selected file to automatically selected ones.
  2467. ac_site_file1=NONE
  2468. ac_site_file2=NONE
  2469. if test -n "$CONFIG_SITE"; then
  2470. # We do not want a PATH search for config.site.
  2471. case $CONFIG_SITE in #((
  2472. -*) ac_site_file1=./$CONFIG_SITE;;
  2473. */*) ac_site_file1=$CONFIG_SITE;;
  2474. *) ac_site_file1=./$CONFIG_SITE;;
  2475. esac
  2476. elif test "x$prefix" != xNONE; then
  2477. ac_site_file1=$prefix/share/config.site
  2478. ac_site_file2=$prefix/etc/config.site
  2479. else
  2480. ac_site_file1=$ac_default_prefix/share/config.site
  2481. ac_site_file2=$ac_default_prefix/etc/config.site
  2482. fi
  2483. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2484. do
  2485. test "x$ac_site_file" = xNONE && continue
  2486. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2488. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2489. sed 's/^/| /' "$ac_site_file" >&5
  2490. . "$ac_site_file" \
  2491. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2492. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2493. as_fn_error $? "failed to load site script $ac_site_file
  2494. See \`config.log' for more details" "$LINENO" 5; }
  2495. fi
  2496. done
  2497. if test -r "$cache_file"; then
  2498. # Some versions of bash will fail to source /dev/null (special files
  2499. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2500. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2502. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2503. case $cache_file in
  2504. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2505. *) . "./$cache_file";;
  2506. esac
  2507. fi
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2510. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2511. >$cache_file
  2512. fi
  2513. # Check that the precious variables saved in the cache have kept the same
  2514. # value.
  2515. ac_cache_corrupted=false
  2516. for ac_var in $ac_precious_vars; do
  2517. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2518. eval ac_new_set=\$ac_env_${ac_var}_set
  2519. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2520. eval ac_new_val=\$ac_env_${ac_var}_value
  2521. case $ac_old_set,$ac_new_set in
  2522. set,)
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2524. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2525. ac_cache_corrupted=: ;;
  2526. ,set)
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2528. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2529. ac_cache_corrupted=: ;;
  2530. ,);;
  2531. *)
  2532. if test "x$ac_old_val" != "x$ac_new_val"; then
  2533. # differences in whitespace do not lead to failure.
  2534. ac_old_val_w=`echo x $ac_old_val`
  2535. ac_new_val_w=`echo x $ac_new_val`
  2536. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2538. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2539. ac_cache_corrupted=:
  2540. else
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2542. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2543. eval $ac_var=\$ac_old_val
  2544. fi
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2546. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2548. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2549. fi;;
  2550. esac
  2551. # Pass precious variables to config.status.
  2552. if test "$ac_new_set" = set; then
  2553. case $ac_new_val in
  2554. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2555. *) ac_arg=$ac_var=$ac_new_val ;;
  2556. esac
  2557. case " $ac_configure_args " in
  2558. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2559. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2560. esac
  2561. fi
  2562. done
  2563. if $ac_cache_corrupted; then
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2565. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2567. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2568. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2569. fi
  2570. ## -------------------- ##
  2571. ## Main body of script. ##
  2572. ## -------------------- ##
  2573. ac_ext=c
  2574. ac_cpp='$CPP $CPPFLAGS'
  2575. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2576. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2577. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2578. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2579. ac_aux_dir=
  2580. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2581. if test -f "$ac_dir/install-sh"; then
  2582. ac_aux_dir=$ac_dir
  2583. ac_install_sh="$ac_aux_dir/install-sh -c"
  2584. break
  2585. elif test -f "$ac_dir/install.sh"; then
  2586. ac_aux_dir=$ac_dir
  2587. ac_install_sh="$ac_aux_dir/install.sh -c"
  2588. break
  2589. elif test -f "$ac_dir/shtool"; then
  2590. ac_aux_dir=$ac_dir
  2591. ac_install_sh="$ac_aux_dir/shtool install -c"
  2592. break
  2593. fi
  2594. done
  2595. if test -z "$ac_aux_dir"; then
  2596. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2597. fi
  2598. # These three variables are undocumented and unsupported,
  2599. # and are intended to be withdrawn in a future Autoconf release.
  2600. # They can cause serious problems if a builder's source tree is in a directory
  2601. # whose full name contains unusual characters.
  2602. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2603. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2604. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2605. orig_CFLAGS="$CFLAGS"
  2606. #
  2607. # Making releases:
  2608. # Edit include/SDL_version.h and change the version, then:
  2609. # SDL_MICRO_VERSION += 1;
  2610. # SDL_INTERFACE_AGE += 1;
  2611. # SDL_BINARY_AGE += 1;
  2612. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2613. # if backwards compatibility has been broken,
  2614. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2615. #
  2616. SDL_MAJOR_VERSION=2
  2617. SDL_MINOR_VERSION=0
  2618. SDL_MICRO_VERSION=17
  2619. SDL_INTERFACE_AGE=0
  2620. SDL_BINARY_AGE=17
  2621. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2622. # libtool versioning
  2623. case `pwd` in
  2624. *\ * | *\ *)
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2626. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2627. esac
  2628. macro_version='2.4.2'
  2629. macro_revision='1.3337'
  2630. ltmain="$ac_aux_dir/ltmain.sh"
  2631. # Make sure we can run config.sub.
  2632. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2633. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2635. $as_echo_n "checking build system type... " >&6; }
  2636. if ${ac_cv_build+:} false; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. ac_build_alias=$build_alias
  2640. test "x$ac_build_alias" = x &&
  2641. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2642. test "x$ac_build_alias" = x &&
  2643. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2644. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2645. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2646. fi
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2648. $as_echo "$ac_cv_build" >&6; }
  2649. case $ac_cv_build in
  2650. *-*-*) ;;
  2651. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2652. esac
  2653. build=$ac_cv_build
  2654. ac_save_IFS=$IFS; IFS='-'
  2655. set x $ac_cv_build
  2656. shift
  2657. build_cpu=$1
  2658. build_vendor=$2
  2659. shift; shift
  2660. # Remember, the first character of IFS is used to create $*,
  2661. # except with old shells:
  2662. build_os=$*
  2663. IFS=$ac_save_IFS
  2664. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2666. $as_echo_n "checking host system type... " >&6; }
  2667. if ${ac_cv_host+:} false; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. if test "x$host_alias" = x; then
  2671. ac_cv_host=$ac_cv_build
  2672. else
  2673. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2674. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2675. fi
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2678. $as_echo "$ac_cv_host" >&6; }
  2679. case $ac_cv_host in
  2680. *-*-*) ;;
  2681. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2682. esac
  2683. host=$ac_cv_host
  2684. ac_save_IFS=$IFS; IFS='-'
  2685. set x $ac_cv_host
  2686. shift
  2687. host_cpu=$1
  2688. host_vendor=$2
  2689. shift; shift
  2690. # Remember, the first character of IFS is used to create $*,
  2691. # except with old shells:
  2692. host_os=$*
  2693. IFS=$ac_save_IFS
  2694. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2695. # Backslashify metacharacters that are still active within
  2696. # double-quoted strings.
  2697. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2698. # Same as above, but do not quote variable references.
  2699. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2700. # Sed substitution to delay expansion of an escaped shell variable in a
  2701. # double_quote_subst'ed string.
  2702. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2703. # Sed substitution to delay expansion of an escaped single quote.
  2704. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2705. # Sed substitution to avoid accidental globbing in evaled expressions
  2706. no_glob_subst='s/\*/\\\*/g'
  2707. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2708. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2709. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2711. $as_echo_n "checking how to print strings... " >&6; }
  2712. # Test print first, because it will be a builtin if present.
  2713. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2714. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2715. ECHO='print -r --'
  2716. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2717. ECHO='printf %s\n'
  2718. else
  2719. # Use this function as a fallback that always works.
  2720. func_fallback_echo ()
  2721. {
  2722. eval 'cat <<_LTECHO_EOF
  2723. $1
  2724. _LTECHO_EOF'
  2725. }
  2726. ECHO='func_fallback_echo'
  2727. fi
  2728. # func_echo_all arg...
  2729. # Invoke $ECHO with all args, space-separated.
  2730. func_echo_all ()
  2731. {
  2732. $ECHO ""
  2733. }
  2734. case "$ECHO" in
  2735. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2736. $as_echo "printf" >&6; } ;;
  2737. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2738. $as_echo "print -r" >&6; } ;;
  2739. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2740. $as_echo "cat" >&6; } ;;
  2741. esac
  2742. ac_ext=c
  2743. ac_cpp='$CPP $CPPFLAGS'
  2744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2745. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2747. if test -n "$ac_tool_prefix"; then
  2748. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2749. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2751. $as_echo_n "checking for $ac_word... " >&6; }
  2752. if ${ac_cv_prog_CC+:} false; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. if test -n "$CC"; then
  2756. ac_cv_prog_CC="$CC" # Let the user override the test.
  2757. else
  2758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2759. for as_dir in $PATH
  2760. do
  2761. IFS=$as_save_IFS
  2762. test -z "$as_dir" && as_dir=.
  2763. for ac_exec_ext in '' $ac_executable_extensions; do
  2764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2765. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2767. break 2
  2768. fi
  2769. done
  2770. done
  2771. IFS=$as_save_IFS
  2772. fi
  2773. fi
  2774. CC=$ac_cv_prog_CC
  2775. if test -n "$CC"; then
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2777. $as_echo "$CC" >&6; }
  2778. else
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2780. $as_echo "no" >&6; }
  2781. fi
  2782. fi
  2783. if test -z "$ac_cv_prog_CC"; then
  2784. ac_ct_CC=$CC
  2785. # Extract the first word of "gcc", so it can be a program name with args.
  2786. set dummy gcc; ac_word=$2
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2788. $as_echo_n "checking for $ac_word... " >&6; }
  2789. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2790. $as_echo_n "(cached) " >&6
  2791. else
  2792. if test -n "$ac_ct_CC"; then
  2793. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2794. else
  2795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2796. for as_dir in $PATH
  2797. do
  2798. IFS=$as_save_IFS
  2799. test -z "$as_dir" && as_dir=.
  2800. for ac_exec_ext in '' $ac_executable_extensions; do
  2801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2802. ac_cv_prog_ac_ct_CC="gcc"
  2803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2804. break 2
  2805. fi
  2806. done
  2807. done
  2808. IFS=$as_save_IFS
  2809. fi
  2810. fi
  2811. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2812. if test -n "$ac_ct_CC"; then
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2814. $as_echo "$ac_ct_CC" >&6; }
  2815. else
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2817. $as_echo "no" >&6; }
  2818. fi
  2819. if test "x$ac_ct_CC" = x; then
  2820. CC=""
  2821. else
  2822. case $cross_compiling:$ac_tool_warned in
  2823. yes:)
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2826. ac_tool_warned=yes ;;
  2827. esac
  2828. CC=$ac_ct_CC
  2829. fi
  2830. else
  2831. CC="$ac_cv_prog_CC"
  2832. fi
  2833. if test -z "$CC"; then
  2834. if test -n "$ac_tool_prefix"; then
  2835. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2836. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2838. $as_echo_n "checking for $ac_word... " >&6; }
  2839. if ${ac_cv_prog_CC+:} false; then :
  2840. $as_echo_n "(cached) " >&6
  2841. else
  2842. if test -n "$CC"; then
  2843. ac_cv_prog_CC="$CC" # Let the user override the test.
  2844. else
  2845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2846. for as_dir in $PATH
  2847. do
  2848. IFS=$as_save_IFS
  2849. test -z "$as_dir" && as_dir=.
  2850. for ac_exec_ext in '' $ac_executable_extensions; do
  2851. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2852. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2854. break 2
  2855. fi
  2856. done
  2857. done
  2858. IFS=$as_save_IFS
  2859. fi
  2860. fi
  2861. CC=$ac_cv_prog_CC
  2862. if test -n "$CC"; then
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2864. $as_echo "$CC" >&6; }
  2865. else
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2867. $as_echo "no" >&6; }
  2868. fi
  2869. fi
  2870. fi
  2871. if test -z "$CC"; then
  2872. # Extract the first word of "cc", so it can be a program name with args.
  2873. set dummy cc; ac_word=$2
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2875. $as_echo_n "checking for $ac_word... " >&6; }
  2876. if ${ac_cv_prog_CC+:} false; then :
  2877. $as_echo_n "(cached) " >&6
  2878. else
  2879. if test -n "$CC"; then
  2880. ac_cv_prog_CC="$CC" # Let the user override the test.
  2881. else
  2882. ac_prog_rejected=no
  2883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2884. for as_dir in $PATH
  2885. do
  2886. IFS=$as_save_IFS
  2887. test -z "$as_dir" && as_dir=.
  2888. for ac_exec_ext in '' $ac_executable_extensions; do
  2889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2890. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2891. ac_prog_rejected=yes
  2892. continue
  2893. fi
  2894. ac_cv_prog_CC="cc"
  2895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2896. break 2
  2897. fi
  2898. done
  2899. done
  2900. IFS=$as_save_IFS
  2901. if test $ac_prog_rejected = yes; then
  2902. # We found a bogon in the path, so make sure we never use it.
  2903. set dummy $ac_cv_prog_CC
  2904. shift
  2905. if test $# != 0; then
  2906. # We chose a different compiler from the bogus one.
  2907. # However, it has the same basename, so the bogon will be chosen
  2908. # first if we set CC to just the basename; use the full file name.
  2909. shift
  2910. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2911. fi
  2912. fi
  2913. fi
  2914. fi
  2915. CC=$ac_cv_prog_CC
  2916. if test -n "$CC"; then
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2918. $as_echo "$CC" >&6; }
  2919. else
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2921. $as_echo "no" >&6; }
  2922. fi
  2923. fi
  2924. if test -z "$CC"; then
  2925. if test -n "$ac_tool_prefix"; then
  2926. for ac_prog in cl.exe
  2927. do
  2928. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2929. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2931. $as_echo_n "checking for $ac_word... " >&6; }
  2932. if ${ac_cv_prog_CC+:} false; then :
  2933. $as_echo_n "(cached) " >&6
  2934. else
  2935. if test -n "$CC"; then
  2936. ac_cv_prog_CC="$CC" # Let the user override the test.
  2937. else
  2938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2939. for as_dir in $PATH
  2940. do
  2941. IFS=$as_save_IFS
  2942. test -z "$as_dir" && as_dir=.
  2943. for ac_exec_ext in '' $ac_executable_extensions; do
  2944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2945. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2947. break 2
  2948. fi
  2949. done
  2950. done
  2951. IFS=$as_save_IFS
  2952. fi
  2953. fi
  2954. CC=$ac_cv_prog_CC
  2955. if test -n "$CC"; then
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2957. $as_echo "$CC" >&6; }
  2958. else
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2960. $as_echo "no" >&6; }
  2961. fi
  2962. test -n "$CC" && break
  2963. done
  2964. fi
  2965. if test -z "$CC"; then
  2966. ac_ct_CC=$CC
  2967. for ac_prog in cl.exe
  2968. do
  2969. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2970. set dummy $ac_prog; ac_word=$2
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2972. $as_echo_n "checking for $ac_word... " >&6; }
  2973. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2974. $as_echo_n "(cached) " >&6
  2975. else
  2976. if test -n "$ac_ct_CC"; then
  2977. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2978. else
  2979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2980. for as_dir in $PATH
  2981. do
  2982. IFS=$as_save_IFS
  2983. test -z "$as_dir" && as_dir=.
  2984. for ac_exec_ext in '' $ac_executable_extensions; do
  2985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2986. ac_cv_prog_ac_ct_CC="$ac_prog"
  2987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2988. break 2
  2989. fi
  2990. done
  2991. done
  2992. IFS=$as_save_IFS
  2993. fi
  2994. fi
  2995. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2996. if test -n "$ac_ct_CC"; then
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2998. $as_echo "$ac_ct_CC" >&6; }
  2999. else
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3001. $as_echo "no" >&6; }
  3002. fi
  3003. test -n "$ac_ct_CC" && break
  3004. done
  3005. if test "x$ac_ct_CC" = x; then
  3006. CC=""
  3007. else
  3008. case $cross_compiling:$ac_tool_warned in
  3009. yes:)
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3011. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3012. ac_tool_warned=yes ;;
  3013. esac
  3014. CC=$ac_ct_CC
  3015. fi
  3016. fi
  3017. fi
  3018. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3019. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3020. as_fn_error $? "no acceptable C compiler found in \$PATH
  3021. See \`config.log' for more details" "$LINENO" 5; }
  3022. # Provide some information about the compiler.
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3024. set X $ac_compile
  3025. ac_compiler=$2
  3026. for ac_option in --version -v -V -qversion; do
  3027. { { ac_try="$ac_compiler $ac_option >&5"
  3028. case "(($ac_try" in
  3029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3030. *) ac_try_echo=$ac_try;;
  3031. esac
  3032. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3033. $as_echo "$ac_try_echo"; } >&5
  3034. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3035. ac_status=$?
  3036. if test -s conftest.err; then
  3037. sed '10a\
  3038. ... rest of stderr output deleted ...
  3039. 10q' conftest.err >conftest.er1
  3040. cat conftest.er1 >&5
  3041. fi
  3042. rm -f conftest.er1 conftest.err
  3043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3044. test $ac_status = 0; }
  3045. done
  3046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3047. /* end confdefs.h. */
  3048. int
  3049. main ()
  3050. {
  3051. ;
  3052. return 0;
  3053. }
  3054. _ACEOF
  3055. ac_clean_files_save=$ac_clean_files
  3056. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3057. # Try to create an executable without -o first, disregard a.out.
  3058. # It will help us diagnose broken compilers, and finding out an intuition
  3059. # of exeext.
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3061. $as_echo_n "checking whether the C compiler works... " >&6; }
  3062. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3063. # The possible output files:
  3064. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3065. ac_rmfiles=
  3066. for ac_file in $ac_files
  3067. do
  3068. case $ac_file in
  3069. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3070. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3071. esac
  3072. done
  3073. rm -f $ac_rmfiles
  3074. if { { ac_try="$ac_link_default"
  3075. case "(($ac_try" in
  3076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3077. *) ac_try_echo=$ac_try;;
  3078. esac
  3079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3080. $as_echo "$ac_try_echo"; } >&5
  3081. (eval "$ac_link_default") 2>&5
  3082. ac_status=$?
  3083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3084. test $ac_status = 0; }; then :
  3085. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3086. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3087. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3088. # so that the user can short-circuit this test for compilers unknown to
  3089. # Autoconf.
  3090. for ac_file in $ac_files ''
  3091. do
  3092. test -f "$ac_file" || continue
  3093. case $ac_file in
  3094. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3095. ;;
  3096. [ab].out )
  3097. # We found the default executable, but exeext='' is most
  3098. # certainly right.
  3099. break;;
  3100. *.* )
  3101. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3102. then :; else
  3103. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3104. fi
  3105. # We set ac_cv_exeext here because the later test for it is not
  3106. # safe: cross compilers may not add the suffix if given an `-o'
  3107. # argument, so we may need to know it at that point already.
  3108. # Even if this section looks crufty: it has the advantage of
  3109. # actually working.
  3110. break;;
  3111. * )
  3112. break;;
  3113. esac
  3114. done
  3115. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3116. else
  3117. ac_file=''
  3118. fi
  3119. if test -z "$ac_file"; then :
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3121. $as_echo "no" >&6; }
  3122. $as_echo "$as_me: failed program was:" >&5
  3123. sed 's/^/| /' conftest.$ac_ext >&5
  3124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. as_fn_error 77 "C compiler cannot create executables
  3127. See \`config.log' for more details" "$LINENO" 5; }
  3128. else
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3130. $as_echo "yes" >&6; }
  3131. fi
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3133. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3135. $as_echo "$ac_file" >&6; }
  3136. ac_exeext=$ac_cv_exeext
  3137. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3138. ac_clean_files=$ac_clean_files_save
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3140. $as_echo_n "checking for suffix of executables... " >&6; }
  3141. if { { ac_try="$ac_link"
  3142. case "(($ac_try" in
  3143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3144. *) ac_try_echo=$ac_try;;
  3145. esac
  3146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3147. $as_echo "$ac_try_echo"; } >&5
  3148. (eval "$ac_link") 2>&5
  3149. ac_status=$?
  3150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3151. test $ac_status = 0; }; then :
  3152. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3153. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3154. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3155. # `rm'.
  3156. for ac_file in conftest.exe conftest conftest.*; do
  3157. test -f "$ac_file" || continue
  3158. case $ac_file in
  3159. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3160. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3161. break;;
  3162. * ) break;;
  3163. esac
  3164. done
  3165. else
  3166. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3167. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3168. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3169. See \`config.log' for more details" "$LINENO" 5; }
  3170. fi
  3171. rm -f conftest conftest$ac_cv_exeext
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3173. $as_echo "$ac_cv_exeext" >&6; }
  3174. rm -f conftest.$ac_ext
  3175. EXEEXT=$ac_cv_exeext
  3176. ac_exeext=$EXEEXT
  3177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3178. /* end confdefs.h. */
  3179. #include <stdio.h>
  3180. int
  3181. main ()
  3182. {
  3183. FILE *f = fopen ("conftest.out", "w");
  3184. return ferror (f) || fclose (f) != 0;
  3185. ;
  3186. return 0;
  3187. }
  3188. _ACEOF
  3189. ac_clean_files="$ac_clean_files conftest.out"
  3190. # Check that the compiler produces executables we can run. If not, either
  3191. # the compiler is broken, or we cross compile.
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3193. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3194. if test "$cross_compiling" != yes; then
  3195. { { ac_try="$ac_link"
  3196. case "(($ac_try" in
  3197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3198. *) ac_try_echo=$ac_try;;
  3199. esac
  3200. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3201. $as_echo "$ac_try_echo"; } >&5
  3202. (eval "$ac_link") 2>&5
  3203. ac_status=$?
  3204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3205. test $ac_status = 0; }
  3206. if { ac_try='./conftest$ac_cv_exeext'
  3207. { { case "(($ac_try" in
  3208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3209. *) ac_try_echo=$ac_try;;
  3210. esac
  3211. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3212. $as_echo "$ac_try_echo"; } >&5
  3213. (eval "$ac_try") 2>&5
  3214. ac_status=$?
  3215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3216. test $ac_status = 0; }; }; then
  3217. cross_compiling=no
  3218. else
  3219. if test "$cross_compiling" = maybe; then
  3220. cross_compiling=yes
  3221. else
  3222. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3223. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3224. as_fn_error $? "cannot run C compiled programs.
  3225. If you meant to cross compile, use \`--host'.
  3226. See \`config.log' for more details" "$LINENO" 5; }
  3227. fi
  3228. fi
  3229. fi
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3231. $as_echo "$cross_compiling" >&6; }
  3232. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3233. ac_clean_files=$ac_clean_files_save
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3235. $as_echo_n "checking for suffix of object files... " >&6; }
  3236. if ${ac_cv_objext+:} false; then :
  3237. $as_echo_n "(cached) " >&6
  3238. else
  3239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3240. /* end confdefs.h. */
  3241. int
  3242. main ()
  3243. {
  3244. ;
  3245. return 0;
  3246. }
  3247. _ACEOF
  3248. rm -f conftest.o conftest.obj
  3249. if { { ac_try="$ac_compile"
  3250. case "(($ac_try" in
  3251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3252. *) ac_try_echo=$ac_try;;
  3253. esac
  3254. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3255. $as_echo "$ac_try_echo"; } >&5
  3256. (eval "$ac_compile") 2>&5
  3257. ac_status=$?
  3258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3259. test $ac_status = 0; }; then :
  3260. for ac_file in conftest.o conftest.obj conftest.*; do
  3261. test -f "$ac_file" || continue;
  3262. case $ac_file in
  3263. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3264. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3265. break;;
  3266. esac
  3267. done
  3268. else
  3269. $as_echo "$as_me: failed program was:" >&5
  3270. sed 's/^/| /' conftest.$ac_ext >&5
  3271. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3272. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3273. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3274. See \`config.log' for more details" "$LINENO" 5; }
  3275. fi
  3276. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3277. fi
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3279. $as_echo "$ac_cv_objext" >&6; }
  3280. OBJEXT=$ac_cv_objext
  3281. ac_objext=$OBJEXT
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3283. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3284. if ${ac_cv_c_compiler_gnu+:} false; then :
  3285. $as_echo_n "(cached) " >&6
  3286. else
  3287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3288. /* end confdefs.h. */
  3289. int
  3290. main ()
  3291. {
  3292. #ifndef __GNUC__
  3293. choke me
  3294. #endif
  3295. ;
  3296. return 0;
  3297. }
  3298. _ACEOF
  3299. if ac_fn_c_try_compile "$LINENO"; then :
  3300. ac_compiler_gnu=yes
  3301. else
  3302. ac_compiler_gnu=no
  3303. fi
  3304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3305. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3306. fi
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3308. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3309. if test $ac_compiler_gnu = yes; then
  3310. GCC=yes
  3311. else
  3312. GCC=
  3313. fi
  3314. ac_test_CFLAGS=${CFLAGS+set}
  3315. ac_save_CFLAGS=$CFLAGS
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3317. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3318. if ${ac_cv_prog_cc_g+:} false; then :
  3319. $as_echo_n "(cached) " >&6
  3320. else
  3321. ac_save_c_werror_flag=$ac_c_werror_flag
  3322. ac_c_werror_flag=yes
  3323. ac_cv_prog_cc_g=no
  3324. CFLAGS="-g"
  3325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3326. /* end confdefs.h. */
  3327. int
  3328. main ()
  3329. {
  3330. ;
  3331. return 0;
  3332. }
  3333. _ACEOF
  3334. if ac_fn_c_try_compile "$LINENO"; then :
  3335. ac_cv_prog_cc_g=yes
  3336. else
  3337. CFLAGS=""
  3338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3339. /* end confdefs.h. */
  3340. int
  3341. main ()
  3342. {
  3343. ;
  3344. return 0;
  3345. }
  3346. _ACEOF
  3347. if ac_fn_c_try_compile "$LINENO"; then :
  3348. else
  3349. ac_c_werror_flag=$ac_save_c_werror_flag
  3350. CFLAGS="-g"
  3351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3352. /* end confdefs.h. */
  3353. int
  3354. main ()
  3355. {
  3356. ;
  3357. return 0;
  3358. }
  3359. _ACEOF
  3360. if ac_fn_c_try_compile "$LINENO"; then :
  3361. ac_cv_prog_cc_g=yes
  3362. fi
  3363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3364. fi
  3365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3366. fi
  3367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3368. ac_c_werror_flag=$ac_save_c_werror_flag
  3369. fi
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3371. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3372. if test "$ac_test_CFLAGS" = set; then
  3373. CFLAGS=$ac_save_CFLAGS
  3374. elif test $ac_cv_prog_cc_g = yes; then
  3375. if test "$GCC" = yes; then
  3376. CFLAGS="-g -O2"
  3377. else
  3378. CFLAGS="-g"
  3379. fi
  3380. else
  3381. if test "$GCC" = yes; then
  3382. CFLAGS="-O2"
  3383. else
  3384. CFLAGS=
  3385. fi
  3386. fi
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3388. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3389. if ${ac_cv_prog_cc_c89+:} false; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. ac_cv_prog_cc_c89=no
  3393. ac_save_CC=$CC
  3394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3395. /* end confdefs.h. */
  3396. #include <stdarg.h>
  3397. #include <stdio.h>
  3398. struct stat;
  3399. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3400. struct buf { int x; };
  3401. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3402. static char *e (p, i)
  3403. char **p;
  3404. int i;
  3405. {
  3406. return p[i];
  3407. }
  3408. static char *f (char * (*g) (char **, int), char **p, ...)
  3409. {
  3410. char *s;
  3411. va_list v;
  3412. va_start (v,p);
  3413. s = g (p, va_arg (v,int));
  3414. va_end (v);
  3415. return s;
  3416. }
  3417. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3418. function prototypes and stuff, but not '\xHH' hex character constants.
  3419. These don't provoke an error unfortunately, instead are silently treated
  3420. as 'x'. The following induces an error, until -std is added to get
  3421. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3422. array size at least. It's necessary to write '\x00'==0 to get something
  3423. that's true only with -std. */
  3424. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3425. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3426. inside strings and character constants. */
  3427. #define FOO(x) 'x'
  3428. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3429. int test (int i, double x);
  3430. struct s1 {int (*f) (int a);};
  3431. struct s2 {int (*f) (double a);};
  3432. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3433. int argc;
  3434. char **argv;
  3435. int
  3436. main ()
  3437. {
  3438. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3439. ;
  3440. return 0;
  3441. }
  3442. _ACEOF
  3443. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3444. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3445. do
  3446. CC="$ac_save_CC $ac_arg"
  3447. if ac_fn_c_try_compile "$LINENO"; then :
  3448. ac_cv_prog_cc_c89=$ac_arg
  3449. fi
  3450. rm -f core conftest.err conftest.$ac_objext
  3451. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3452. done
  3453. rm -f conftest.$ac_ext
  3454. CC=$ac_save_CC
  3455. fi
  3456. # AC_CACHE_VAL
  3457. case "x$ac_cv_prog_cc_c89" in
  3458. x)
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3460. $as_echo "none needed" >&6; } ;;
  3461. xno)
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3463. $as_echo "unsupported" >&6; } ;;
  3464. *)
  3465. CC="$CC $ac_cv_prog_cc_c89"
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3467. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3468. esac
  3469. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3470. fi
  3471. ac_ext=c
  3472. ac_cpp='$CPP $CPPFLAGS'
  3473. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3474. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3475. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3477. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3478. if ${ac_cv_path_SED+:} false; then :
  3479. $as_echo_n "(cached) " >&6
  3480. else
  3481. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3482. for ac_i in 1 2 3 4 5 6 7; do
  3483. ac_script="$ac_script$as_nl$ac_script"
  3484. done
  3485. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3486. { ac_script=; unset ac_script;}
  3487. if test -z "$SED"; then
  3488. ac_path_SED_found=false
  3489. # Loop through the user's path and test for each of PROGNAME-LIST
  3490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3491. for as_dir in $PATH
  3492. do
  3493. IFS=$as_save_IFS
  3494. test -z "$as_dir" && as_dir=.
  3495. for ac_prog in sed gsed; do
  3496. for ac_exec_ext in '' $ac_executable_extensions; do
  3497. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3498. as_fn_executable_p "$ac_path_SED" || continue
  3499. # Check for GNU ac_path_SED and select it if it is found.
  3500. # Check for GNU $ac_path_SED
  3501. case `"$ac_path_SED" --version 2>&1` in
  3502. *GNU*)
  3503. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3504. *)
  3505. ac_count=0
  3506. $as_echo_n 0123456789 >"conftest.in"
  3507. while :
  3508. do
  3509. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3510. mv "conftest.tmp" "conftest.in"
  3511. cp "conftest.in" "conftest.nl"
  3512. $as_echo '' >> "conftest.nl"
  3513. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3514. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3515. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3516. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3517. # Best one so far, save it but keep looking for a better one
  3518. ac_cv_path_SED="$ac_path_SED"
  3519. ac_path_SED_max=$ac_count
  3520. fi
  3521. # 10*(2^10) chars as input seems more than enough
  3522. test $ac_count -gt 10 && break
  3523. done
  3524. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3525. esac
  3526. $ac_path_SED_found && break 3
  3527. done
  3528. done
  3529. done
  3530. IFS=$as_save_IFS
  3531. if test -z "$ac_cv_path_SED"; then
  3532. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3533. fi
  3534. else
  3535. ac_cv_path_SED=$SED
  3536. fi
  3537. fi
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3539. $as_echo "$ac_cv_path_SED" >&6; }
  3540. SED="$ac_cv_path_SED"
  3541. rm -f conftest.sed
  3542. test -z "$SED" && SED=sed
  3543. Xsed="$SED -e 1s/^X//"
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3545. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3546. if ${ac_cv_path_GREP+:} false; then :
  3547. $as_echo_n "(cached) " >&6
  3548. else
  3549. if test -z "$GREP"; then
  3550. ac_path_GREP_found=false
  3551. # Loop through the user's path and test for each of PROGNAME-LIST
  3552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3553. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3554. do
  3555. IFS=$as_save_IFS
  3556. test -z "$as_dir" && as_dir=.
  3557. for ac_prog in grep ggrep; do
  3558. for ac_exec_ext in '' $ac_executable_extensions; do
  3559. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3560. as_fn_executable_p "$ac_path_GREP" || continue
  3561. # Check for GNU ac_path_GREP and select it if it is found.
  3562. # Check for GNU $ac_path_GREP
  3563. case `"$ac_path_GREP" --version 2>&1` in
  3564. *GNU*)
  3565. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3566. *)
  3567. ac_count=0
  3568. $as_echo_n 0123456789 >"conftest.in"
  3569. while :
  3570. do
  3571. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3572. mv "conftest.tmp" "conftest.in"
  3573. cp "conftest.in" "conftest.nl"
  3574. $as_echo 'GREP' >> "conftest.nl"
  3575. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3576. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3577. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3578. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3579. # Best one so far, save it but keep looking for a better one
  3580. ac_cv_path_GREP="$ac_path_GREP"
  3581. ac_path_GREP_max=$ac_count
  3582. fi
  3583. # 10*(2^10) chars as input seems more than enough
  3584. test $ac_count -gt 10 && break
  3585. done
  3586. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3587. esac
  3588. $ac_path_GREP_found && break 3
  3589. done
  3590. done
  3591. done
  3592. IFS=$as_save_IFS
  3593. if test -z "$ac_cv_path_GREP"; then
  3594. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3595. fi
  3596. else
  3597. ac_cv_path_GREP=$GREP
  3598. fi
  3599. fi
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3601. $as_echo "$ac_cv_path_GREP" >&6; }
  3602. GREP="$ac_cv_path_GREP"
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3604. $as_echo_n "checking for egrep... " >&6; }
  3605. if ${ac_cv_path_EGREP+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3609. then ac_cv_path_EGREP="$GREP -E"
  3610. else
  3611. if test -z "$EGREP"; then
  3612. ac_path_EGREP_found=false
  3613. # Loop through the user's path and test for each of PROGNAME-LIST
  3614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3615. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3616. do
  3617. IFS=$as_save_IFS
  3618. test -z "$as_dir" && as_dir=.
  3619. for ac_prog in egrep; do
  3620. for ac_exec_ext in '' $ac_executable_extensions; do
  3621. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3622. as_fn_executable_p "$ac_path_EGREP" || continue
  3623. # Check for GNU ac_path_EGREP and select it if it is found.
  3624. # Check for GNU $ac_path_EGREP
  3625. case `"$ac_path_EGREP" --version 2>&1` in
  3626. *GNU*)
  3627. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3628. *)
  3629. ac_count=0
  3630. $as_echo_n 0123456789 >"conftest.in"
  3631. while :
  3632. do
  3633. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3634. mv "conftest.tmp" "conftest.in"
  3635. cp "conftest.in" "conftest.nl"
  3636. $as_echo 'EGREP' >> "conftest.nl"
  3637. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3638. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3639. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3640. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3641. # Best one so far, save it but keep looking for a better one
  3642. ac_cv_path_EGREP="$ac_path_EGREP"
  3643. ac_path_EGREP_max=$ac_count
  3644. fi
  3645. # 10*(2^10) chars as input seems more than enough
  3646. test $ac_count -gt 10 && break
  3647. done
  3648. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3649. esac
  3650. $ac_path_EGREP_found && break 3
  3651. done
  3652. done
  3653. done
  3654. IFS=$as_save_IFS
  3655. if test -z "$ac_cv_path_EGREP"; then
  3656. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3657. fi
  3658. else
  3659. ac_cv_path_EGREP=$EGREP
  3660. fi
  3661. fi
  3662. fi
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3664. $as_echo "$ac_cv_path_EGREP" >&6; }
  3665. EGREP="$ac_cv_path_EGREP"
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3667. $as_echo_n "checking for fgrep... " >&6; }
  3668. if ${ac_cv_path_FGREP+:} false; then :
  3669. $as_echo_n "(cached) " >&6
  3670. else
  3671. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3672. then ac_cv_path_FGREP="$GREP -F"
  3673. else
  3674. if test -z "$FGREP"; then
  3675. ac_path_FGREP_found=false
  3676. # Loop through the user's path and test for each of PROGNAME-LIST
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for ac_prog in fgrep; do
  3683. for ac_exec_ext in '' $ac_executable_extensions; do
  3684. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3685. as_fn_executable_p "$ac_path_FGREP" || continue
  3686. # Check for GNU ac_path_FGREP and select it if it is found.
  3687. # Check for GNU $ac_path_FGREP
  3688. case `"$ac_path_FGREP" --version 2>&1` in
  3689. *GNU*)
  3690. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3691. *)
  3692. ac_count=0
  3693. $as_echo_n 0123456789 >"conftest.in"
  3694. while :
  3695. do
  3696. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3697. mv "conftest.tmp" "conftest.in"
  3698. cp "conftest.in" "conftest.nl"
  3699. $as_echo 'FGREP' >> "conftest.nl"
  3700. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3701. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3702. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3703. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3704. # Best one so far, save it but keep looking for a better one
  3705. ac_cv_path_FGREP="$ac_path_FGREP"
  3706. ac_path_FGREP_max=$ac_count
  3707. fi
  3708. # 10*(2^10) chars as input seems more than enough
  3709. test $ac_count -gt 10 && break
  3710. done
  3711. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3712. esac
  3713. $ac_path_FGREP_found && break 3
  3714. done
  3715. done
  3716. done
  3717. IFS=$as_save_IFS
  3718. if test -z "$ac_cv_path_FGREP"; then
  3719. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3720. fi
  3721. else
  3722. ac_cv_path_FGREP=$FGREP
  3723. fi
  3724. fi
  3725. fi
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3727. $as_echo "$ac_cv_path_FGREP" >&6; }
  3728. FGREP="$ac_cv_path_FGREP"
  3729. test -z "$GREP" && GREP=grep
  3730. # Check whether --with-gnu-ld was given.
  3731. if test "${with_gnu_ld+set}" = set; then :
  3732. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3733. else
  3734. with_gnu_ld=no
  3735. fi
  3736. ac_prog=ld
  3737. if test "$GCC" = yes; then
  3738. # Check if gcc -print-prog-name=ld gives a path.
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3740. $as_echo_n "checking for ld used by $CC... " >&6; }
  3741. case $host in
  3742. *-*-mingw*)
  3743. # gcc leaves a trailing carriage return which upsets mingw
  3744. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3745. *)
  3746. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3747. esac
  3748. case $ac_prog in
  3749. # Accept absolute paths.
  3750. [\\/]* | ?:[\\/]*)
  3751. re_direlt='/[^/][^/]*/\.\./'
  3752. # Canonicalize the pathname of ld
  3753. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3754. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3755. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3756. done
  3757. test -z "$LD" && LD="$ac_prog"
  3758. ;;
  3759. "")
  3760. # If it fails, then pretend we aren't using GCC.
  3761. ac_prog=ld
  3762. ;;
  3763. *)
  3764. # If it is relative, then search for the first ld in PATH.
  3765. with_gnu_ld=unknown
  3766. ;;
  3767. esac
  3768. elif test "$with_gnu_ld" = yes; then
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3770. $as_echo_n "checking for GNU ld... " >&6; }
  3771. else
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3773. $as_echo_n "checking for non-GNU ld... " >&6; }
  3774. fi
  3775. if ${lt_cv_path_LD+:} false; then :
  3776. $as_echo_n "(cached) " >&6
  3777. else
  3778. if test -z "$LD"; then
  3779. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3780. for ac_dir in $PATH; do
  3781. IFS="$lt_save_ifs"
  3782. test -z "$ac_dir" && ac_dir=.
  3783. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3784. lt_cv_path_LD="$ac_dir/$ac_prog"
  3785. # Check to see if the program is GNU ld. I'd rather use --version,
  3786. # but apparently some variants of GNU ld only accept -v.
  3787. # Break only if it was the GNU/non-GNU ld that we prefer.
  3788. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3789. *GNU* | *'with BFD'*)
  3790. test "$with_gnu_ld" != no && break
  3791. ;;
  3792. *)
  3793. test "$with_gnu_ld" != yes && break
  3794. ;;
  3795. esac
  3796. fi
  3797. done
  3798. IFS="$lt_save_ifs"
  3799. else
  3800. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3801. fi
  3802. fi
  3803. LD="$lt_cv_path_LD"
  3804. if test -n "$LD"; then
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3806. $as_echo "$LD" >&6; }
  3807. else
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3809. $as_echo "no" >&6; }
  3810. fi
  3811. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3813. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3814. if ${lt_cv_prog_gnu_ld+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3818. case `$LD -v 2>&1 </dev/null` in
  3819. *GNU* | *'with BFD'*)
  3820. lt_cv_prog_gnu_ld=yes
  3821. ;;
  3822. *)
  3823. lt_cv_prog_gnu_ld=no
  3824. ;;
  3825. esac
  3826. fi
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3828. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3829. with_gnu_ld=$lt_cv_prog_gnu_ld
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3831. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3832. if ${lt_cv_path_NM+:} false; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if test -n "$NM"; then
  3836. # Let the user override the test.
  3837. lt_cv_path_NM="$NM"
  3838. else
  3839. lt_nm_to_check="${ac_tool_prefix}nm"
  3840. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3841. lt_nm_to_check="$lt_nm_to_check nm"
  3842. fi
  3843. for lt_tmp_nm in $lt_nm_to_check; do
  3844. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3845. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3846. IFS="$lt_save_ifs"
  3847. test -z "$ac_dir" && ac_dir=.
  3848. tmp_nm="$ac_dir/$lt_tmp_nm"
  3849. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3850. # Check to see if the nm accepts a BSD-compat flag.
  3851. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3852. # nm: unknown option "B" ignored
  3853. # Tru64's nm complains that /dev/null is an invalid object file
  3854. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3855. */dev/null* | *'Invalid file or object type'*)
  3856. lt_cv_path_NM="$tmp_nm -B"
  3857. break
  3858. ;;
  3859. *)
  3860. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3861. */dev/null*)
  3862. lt_cv_path_NM="$tmp_nm -p"
  3863. break
  3864. ;;
  3865. *)
  3866. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3867. continue # so that we can try to find one that supports BSD flags
  3868. ;;
  3869. esac
  3870. ;;
  3871. esac
  3872. fi
  3873. done
  3874. IFS="$lt_save_ifs"
  3875. done
  3876. : ${lt_cv_path_NM=no}
  3877. fi
  3878. fi
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3880. $as_echo "$lt_cv_path_NM" >&6; }
  3881. if test "$lt_cv_path_NM" != "no"; then
  3882. NM="$lt_cv_path_NM"
  3883. else
  3884. # Didn't find any BSD compatible name lister, look for dumpbin.
  3885. if test -n "$DUMPBIN"; then :
  3886. # Let the user override the test.
  3887. else
  3888. if test -n "$ac_tool_prefix"; then
  3889. for ac_prog in dumpbin "link -dump"
  3890. do
  3891. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3892. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3894. $as_echo_n "checking for $ac_word... " >&6; }
  3895. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. if test -n "$DUMPBIN"; then
  3899. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3900. else
  3901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3902. for as_dir in $PATH
  3903. do
  3904. IFS=$as_save_IFS
  3905. test -z "$as_dir" && as_dir=.
  3906. for ac_exec_ext in '' $ac_executable_extensions; do
  3907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3908. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3910. break 2
  3911. fi
  3912. done
  3913. done
  3914. IFS=$as_save_IFS
  3915. fi
  3916. fi
  3917. DUMPBIN=$ac_cv_prog_DUMPBIN
  3918. if test -n "$DUMPBIN"; then
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3920. $as_echo "$DUMPBIN" >&6; }
  3921. else
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3923. $as_echo "no" >&6; }
  3924. fi
  3925. test -n "$DUMPBIN" && break
  3926. done
  3927. fi
  3928. if test -z "$DUMPBIN"; then
  3929. ac_ct_DUMPBIN=$DUMPBIN
  3930. for ac_prog in dumpbin "link -dump"
  3931. do
  3932. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3933. set dummy $ac_prog; ac_word=$2
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3935. $as_echo_n "checking for $ac_word... " >&6; }
  3936. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3937. $as_echo_n "(cached) " >&6
  3938. else
  3939. if test -n "$ac_ct_DUMPBIN"; then
  3940. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3941. else
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_exec_ext in '' $ac_executable_extensions; do
  3948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3949. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3951. break 2
  3952. fi
  3953. done
  3954. done
  3955. IFS=$as_save_IFS
  3956. fi
  3957. fi
  3958. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3959. if test -n "$ac_ct_DUMPBIN"; then
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3961. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3962. else
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3964. $as_echo "no" >&6; }
  3965. fi
  3966. test -n "$ac_ct_DUMPBIN" && break
  3967. done
  3968. if test "x$ac_ct_DUMPBIN" = x; then
  3969. DUMPBIN=":"
  3970. else
  3971. case $cross_compiling:$ac_tool_warned in
  3972. yes:)
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3974. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3975. ac_tool_warned=yes ;;
  3976. esac
  3977. DUMPBIN=$ac_ct_DUMPBIN
  3978. fi
  3979. fi
  3980. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3981. *COFF*)
  3982. DUMPBIN="$DUMPBIN -symbols"
  3983. ;;
  3984. *)
  3985. DUMPBIN=:
  3986. ;;
  3987. esac
  3988. fi
  3989. if test "$DUMPBIN" != ":"; then
  3990. NM="$DUMPBIN"
  3991. fi
  3992. fi
  3993. test -z "$NM" && NM=nm
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3995. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3996. if ${lt_cv_nm_interface+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. lt_cv_nm_interface="BSD nm"
  4000. echo "int some_variable = 0;" > conftest.$ac_ext
  4001. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4002. (eval "$ac_compile" 2>conftest.err)
  4003. cat conftest.err >&5
  4004. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4005. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4006. cat conftest.err >&5
  4007. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4008. cat conftest.out >&5
  4009. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4010. lt_cv_nm_interface="MS dumpbin"
  4011. fi
  4012. rm -f conftest*
  4013. fi
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4015. $as_echo "$lt_cv_nm_interface" >&6; }
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4017. $as_echo_n "checking whether ln -s works... " >&6; }
  4018. LN_S=$as_ln_s
  4019. if test "$LN_S" = "ln -s"; then
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4021. $as_echo "yes" >&6; }
  4022. else
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4024. $as_echo "no, using $LN_S" >&6; }
  4025. fi
  4026. # find the maximum length of command line arguments
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4028. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4029. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4030. $as_echo_n "(cached) " >&6
  4031. else
  4032. i=0
  4033. teststring="ABCD"
  4034. case $build_os in
  4035. msdosdjgpp*)
  4036. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4037. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4038. # during glob expansion). Even if it were fixed, the result of this
  4039. # check would be larger than it should be.
  4040. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4041. ;;
  4042. gnu*)
  4043. # Under GNU Hurd, this test is not required because there is
  4044. # no limit to the length of command line arguments.
  4045. # Libtool will interpret -1 as no limit whatsoever
  4046. lt_cv_sys_max_cmd_len=-1;
  4047. ;;
  4048. cygwin* | mingw* | cegcc*)
  4049. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4050. # about 5 minutes as the teststring grows exponentially.
  4051. # Worse, since 9x/ME are not pre-emptively multitasking,
  4052. # you end up with a "frozen" computer, even though with patience
  4053. # the test eventually succeeds (with a max line length of 256k).
  4054. # Instead, let's just punt: use the minimum linelength reported by
  4055. # all of the supported platforms: 8192 (on NT/2K/XP).
  4056. lt_cv_sys_max_cmd_len=8192;
  4057. ;;
  4058. mint*)
  4059. # On MiNT this can take a long time and run out of memory.
  4060. lt_cv_sys_max_cmd_len=8192;
  4061. ;;
  4062. amigaos*)
  4063. # On AmigaOS with pdksh, this test takes hours, literally.
  4064. # So we just punt and use a minimum line length of 8192.
  4065. lt_cv_sys_max_cmd_len=8192;
  4066. ;;
  4067. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4068. # This has been around since 386BSD, at least. Likely further.
  4069. if test -x /sbin/sysctl; then
  4070. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4071. elif test -x /usr/sbin/sysctl; then
  4072. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4073. else
  4074. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4075. fi
  4076. # And add a safety zone
  4077. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4078. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4079. ;;
  4080. interix*)
  4081. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4082. lt_cv_sys_max_cmd_len=196608
  4083. ;;
  4084. os2*)
  4085. # The test takes a long time on OS/2.
  4086. lt_cv_sys_max_cmd_len=8192
  4087. ;;
  4088. osf*)
  4089. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4090. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4091. # nice to cause kernel panics so lets avoid the loop below.
  4092. # First set a reasonable default.
  4093. lt_cv_sys_max_cmd_len=16384
  4094. #
  4095. if test -x /sbin/sysconfig; then
  4096. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4097. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4098. esac
  4099. fi
  4100. ;;
  4101. sco3.2v5*)
  4102. lt_cv_sys_max_cmd_len=102400
  4103. ;;
  4104. sysv5* | sco5v6* | sysv4.2uw2*)
  4105. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4106. if test -n "$kargmax"; then
  4107. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4108. else
  4109. lt_cv_sys_max_cmd_len=32768
  4110. fi
  4111. ;;
  4112. *)
  4113. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4114. if test -n "$lt_cv_sys_max_cmd_len"; then
  4115. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4116. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4117. else
  4118. # Make teststring a little bigger before we do anything with it.
  4119. # a 1K string should be a reasonable start.
  4120. for i in 1 2 3 4 5 6 7 8 ; do
  4121. teststring=$teststring$teststring
  4122. done
  4123. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4124. # If test is not a shell built-in, we'll probably end up computing a
  4125. # maximum length that is only half of the actual maximum length, but
  4126. # we can't tell.
  4127. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4128. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4129. test $i != 17 # 1/2 MB should be enough
  4130. do
  4131. i=`expr $i + 1`
  4132. teststring=$teststring$teststring
  4133. done
  4134. # Only check the string length outside the loop.
  4135. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4136. teststring=
  4137. # Add a significant safety factor because C++ compilers can tack on
  4138. # massive amounts of additional arguments before passing them to the
  4139. # linker. It appears as though 1/2 is a usable value.
  4140. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4141. fi
  4142. ;;
  4143. esac
  4144. fi
  4145. if test -n $lt_cv_sys_max_cmd_len ; then
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4147. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4148. else
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4150. $as_echo "none" >&6; }
  4151. fi
  4152. max_cmd_len=$lt_cv_sys_max_cmd_len
  4153. : ${CP="cp -f"}
  4154. : ${MV="mv -f"}
  4155. : ${RM="rm -f"}
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4157. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4158. # Try some XSI features
  4159. xsi_shell=no
  4160. ( _lt_dummy="a/b/c"
  4161. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4162. = c,a/b,b/c, \
  4163. && eval 'test $(( 1 + 1 )) -eq 2 \
  4164. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4165. && xsi_shell=yes
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4167. $as_echo "$xsi_shell" >&6; }
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4169. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4170. lt_shell_append=no
  4171. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4172. >/dev/null 2>&1 \
  4173. && lt_shell_append=yes
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4175. $as_echo "$lt_shell_append" >&6; }
  4176. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4177. lt_unset=unset
  4178. else
  4179. lt_unset=false
  4180. fi
  4181. # test EBCDIC or ASCII
  4182. case `echo X|tr X '\101'` in
  4183. A) # ASCII based system
  4184. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4185. lt_SP2NL='tr \040 \012'
  4186. lt_NL2SP='tr \015\012 \040\040'
  4187. ;;
  4188. *) # EBCDIC based system
  4189. lt_SP2NL='tr \100 \n'
  4190. lt_NL2SP='tr \r\n \100\100'
  4191. ;;
  4192. esac
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4194. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4195. if ${lt_cv_to_host_file_cmd+:} false; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. case $host in
  4199. *-*-mingw* )
  4200. case $build in
  4201. *-*-mingw* ) # actually msys
  4202. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4203. ;;
  4204. *-*-cygwin* )
  4205. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4206. ;;
  4207. * ) # otherwise, assume *nix
  4208. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4209. ;;
  4210. esac
  4211. ;;
  4212. *-*-cygwin* )
  4213. case $build in
  4214. *-*-mingw* ) # actually msys
  4215. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4216. ;;
  4217. *-*-cygwin* )
  4218. lt_cv_to_host_file_cmd=func_convert_file_noop
  4219. ;;
  4220. * ) # otherwise, assume *nix
  4221. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4222. ;;
  4223. esac
  4224. ;;
  4225. * ) # unhandled hosts (and "normal" native builds)
  4226. lt_cv_to_host_file_cmd=func_convert_file_noop
  4227. ;;
  4228. esac
  4229. fi
  4230. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4232. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4234. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4235. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. #assume ordinary cross tools, or native build.
  4239. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4240. case $host in
  4241. *-*-mingw* )
  4242. case $build in
  4243. *-*-mingw* ) # actually msys
  4244. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4245. ;;
  4246. esac
  4247. ;;
  4248. esac
  4249. fi
  4250. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4252. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4254. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4255. if ${lt_cv_ld_reload_flag+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. lt_cv_ld_reload_flag='-r'
  4259. fi
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4261. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4262. reload_flag=$lt_cv_ld_reload_flag
  4263. case $reload_flag in
  4264. "" | " "*) ;;
  4265. *) reload_flag=" $reload_flag" ;;
  4266. esac
  4267. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4268. case $host_os in
  4269. cygwin* | mingw* | pw32* | cegcc*)
  4270. if test "$GCC" != yes; then
  4271. reload_cmds=false
  4272. fi
  4273. ;;
  4274. darwin*)
  4275. if test "$GCC" = yes; then
  4276. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4277. else
  4278. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4279. fi
  4280. ;;
  4281. esac
  4282. if test -n "$ac_tool_prefix"; then
  4283. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4284. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4286. $as_echo_n "checking for $ac_word... " >&6; }
  4287. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. if test -n "$OBJDUMP"; then
  4291. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4292. else
  4293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4294. for as_dir in $PATH
  4295. do
  4296. IFS=$as_save_IFS
  4297. test -z "$as_dir" && as_dir=.
  4298. for ac_exec_ext in '' $ac_executable_extensions; do
  4299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4300. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4302. break 2
  4303. fi
  4304. done
  4305. done
  4306. IFS=$as_save_IFS
  4307. fi
  4308. fi
  4309. OBJDUMP=$ac_cv_prog_OBJDUMP
  4310. if test -n "$OBJDUMP"; then
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4312. $as_echo "$OBJDUMP" >&6; }
  4313. else
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4315. $as_echo "no" >&6; }
  4316. fi
  4317. fi
  4318. if test -z "$ac_cv_prog_OBJDUMP"; then
  4319. ac_ct_OBJDUMP=$OBJDUMP
  4320. # Extract the first word of "objdump", so it can be a program name with args.
  4321. set dummy objdump; ac_word=$2
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4323. $as_echo_n "checking for $ac_word... " >&6; }
  4324. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4325. $as_echo_n "(cached) " >&6
  4326. else
  4327. if test -n "$ac_ct_OBJDUMP"; then
  4328. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4329. else
  4330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4331. for as_dir in $PATH
  4332. do
  4333. IFS=$as_save_IFS
  4334. test -z "$as_dir" && as_dir=.
  4335. for ac_exec_ext in '' $ac_executable_extensions; do
  4336. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4337. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4339. break 2
  4340. fi
  4341. done
  4342. done
  4343. IFS=$as_save_IFS
  4344. fi
  4345. fi
  4346. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4347. if test -n "$ac_ct_OBJDUMP"; then
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4349. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4350. else
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4352. $as_echo "no" >&6; }
  4353. fi
  4354. if test "x$ac_ct_OBJDUMP" = x; then
  4355. OBJDUMP="false"
  4356. else
  4357. case $cross_compiling:$ac_tool_warned in
  4358. yes:)
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4360. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4361. ac_tool_warned=yes ;;
  4362. esac
  4363. OBJDUMP=$ac_ct_OBJDUMP
  4364. fi
  4365. else
  4366. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4367. fi
  4368. test -z "$OBJDUMP" && OBJDUMP=objdump
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4370. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4371. if ${lt_cv_deplibs_check_method+:} false; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4375. lt_cv_file_magic_test_file=
  4376. lt_cv_deplibs_check_method='unknown'
  4377. # Need to set the preceding variable on all platforms that support
  4378. # interlibrary dependencies.
  4379. # 'none' -- dependencies not supported.
  4380. # `unknown' -- same as none, but documents that we really don't know.
  4381. # 'pass_all' -- all dependencies passed with no checks.
  4382. # 'test_compile' -- check by making test program.
  4383. # 'file_magic [[regex]]' -- check by looking for files in library path
  4384. # which responds to the $file_magic_cmd with a given extended regex.
  4385. # If you have `file' or equivalent on your system and you're not sure
  4386. # whether `pass_all' will *always* work, you probably want this one.
  4387. case $host_os in
  4388. aix[4-9]*)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. beos*)
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. bsdi[45]*)
  4395. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4396. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4397. lt_cv_file_magic_test_file=/shlib/libc.so
  4398. ;;
  4399. cygwin*)
  4400. # func_win32_libid is a shell function defined in ltmain.sh
  4401. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4402. lt_cv_file_magic_cmd='func_win32_libid'
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. mingw* | pw32*)
  4406. # Base MSYS/MinGW do not provide the 'file' command needed by
  4407. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4408. # unless we find 'file', for example because we are cross-compiling.
  4409. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4410. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4411. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4412. lt_cv_file_magic_cmd='func_win32_libid'
  4413. else
  4414. # Keep this pattern in sync with the one in func_win32_libid.
  4415. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4416. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4417. fi
  4418. lt_cv_deplibs_check_method=pass_all
  4419. ;;
  4420. cegcc*)
  4421. # use the weaker test based on 'objdump'. See mingw*.
  4422. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4423. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4424. ;;
  4425. darwin* | rhapsody*)
  4426. lt_cv_deplibs_check_method=pass_all
  4427. ;;
  4428. freebsd* | dragonfly*)
  4429. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4430. case $host_cpu in
  4431. i*86 )
  4432. # Not sure whether the presence of OpenBSD here was a mistake.
  4433. # Let's accept both of them until this is cleared up.
  4434. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4435. lt_cv_file_magic_cmd=/usr/bin/file
  4436. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4437. ;;
  4438. esac
  4439. else
  4440. lt_cv_deplibs_check_method=pass_all
  4441. fi
  4442. ;;
  4443. gnu*)
  4444. lt_cv_deplibs_check_method=pass_all
  4445. ;;
  4446. haiku*)
  4447. lt_cv_deplibs_check_method=pass_all
  4448. ;;
  4449. hpux10.20* | hpux11*)
  4450. lt_cv_file_magic_cmd=/usr/bin/file
  4451. case $host_cpu in
  4452. ia64*)
  4453. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4454. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4455. ;;
  4456. hppa*64*)
  4457. 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]'
  4458. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4459. ;;
  4460. *)
  4461. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4462. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4463. ;;
  4464. esac
  4465. ;;
  4466. interix[3-9]*)
  4467. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4468. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4469. ;;
  4470. irix5* | irix6* | nonstopux*)
  4471. case $LD in
  4472. *-32|*"-32 ") libmagic=32-bit;;
  4473. *-n32|*"-n32 ") libmagic=N32;;
  4474. *-64|*"-64 ") libmagic=64-bit;;
  4475. *) libmagic=never-match;;
  4476. esac
  4477. lt_cv_deplibs_check_method=pass_all
  4478. ;;
  4479. # This must be glibc/ELF.
  4480. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4481. lt_cv_deplibs_check_method=pass_all
  4482. ;;
  4483. netbsd*)
  4484. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4485. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4486. else
  4487. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4488. fi
  4489. ;;
  4490. newos6*)
  4491. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4492. lt_cv_file_magic_cmd=/usr/bin/file
  4493. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4494. ;;
  4495. *nto* | *qnx*)
  4496. lt_cv_deplibs_check_method=pass_all
  4497. ;;
  4498. openbsd*)
  4499. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4500. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4501. else
  4502. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4503. fi
  4504. ;;
  4505. osf3* | osf4* | osf5*)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. rdos*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. solaris*)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4515. lt_cv_deplibs_check_method=pass_all
  4516. ;;
  4517. sysv4 | sysv4.3*)
  4518. case $host_vendor in
  4519. motorola)
  4520. 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]'
  4521. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4522. ;;
  4523. ncr)
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. sequent)
  4527. lt_cv_file_magic_cmd='/bin/file'
  4528. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4529. ;;
  4530. sni)
  4531. lt_cv_file_magic_cmd='/bin/file'
  4532. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4533. lt_cv_file_magic_test_file=/lib/libc.so
  4534. ;;
  4535. siemens)
  4536. lt_cv_deplibs_check_method=pass_all
  4537. ;;
  4538. pc)
  4539. lt_cv_deplibs_check_method=pass_all
  4540. ;;
  4541. esac
  4542. ;;
  4543. tpf*)
  4544. lt_cv_deplibs_check_method=pass_all
  4545. ;;
  4546. esac
  4547. fi
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4549. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4550. file_magic_glob=
  4551. want_nocaseglob=no
  4552. if test "$build" = "$host"; then
  4553. case $host_os in
  4554. mingw* | pw32*)
  4555. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4556. want_nocaseglob=yes
  4557. else
  4558. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4559. fi
  4560. ;;
  4561. esac
  4562. fi
  4563. file_magic_cmd=$lt_cv_file_magic_cmd
  4564. deplibs_check_method=$lt_cv_deplibs_check_method
  4565. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4566. if test -n "$ac_tool_prefix"; then
  4567. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4568. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4570. $as_echo_n "checking for $ac_word... " >&6; }
  4571. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. if test -n "$DLLTOOL"; then
  4575. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4576. else
  4577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4578. for as_dir in $PATH
  4579. do
  4580. IFS=$as_save_IFS
  4581. test -z "$as_dir" && as_dir=.
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4584. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4586. break 2
  4587. fi
  4588. done
  4589. done
  4590. IFS=$as_save_IFS
  4591. fi
  4592. fi
  4593. DLLTOOL=$ac_cv_prog_DLLTOOL
  4594. if test -n "$DLLTOOL"; then
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4596. $as_echo "$DLLTOOL" >&6; }
  4597. else
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4599. $as_echo "no" >&6; }
  4600. fi
  4601. fi
  4602. if test -z "$ac_cv_prog_DLLTOOL"; then
  4603. ac_ct_DLLTOOL=$DLLTOOL
  4604. # Extract the first word of "dlltool", so it can be a program name with args.
  4605. set dummy dlltool; ac_word=$2
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4607. $as_echo_n "checking for $ac_word... " >&6; }
  4608. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$ac_ct_DLLTOOL"; then
  4612. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4621. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4623. break 2
  4624. fi
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. fi
  4629. fi
  4630. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4631. if test -n "$ac_ct_DLLTOOL"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4633. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4636. $as_echo "no" >&6; }
  4637. fi
  4638. if test "x$ac_ct_DLLTOOL" = x; then
  4639. DLLTOOL="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. DLLTOOL=$ac_ct_DLLTOOL
  4648. fi
  4649. else
  4650. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4651. fi
  4652. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4654. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4655. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4659. case $host_os in
  4660. cygwin* | mingw* | pw32* | cegcc*)
  4661. # two different shell functions defined in ltmain.sh
  4662. # decide which to use based on capabilities of $DLLTOOL
  4663. case `$DLLTOOL --help 2>&1` in
  4664. *--identify-strict*)
  4665. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4666. ;;
  4667. *)
  4668. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4669. ;;
  4670. esac
  4671. ;;
  4672. *)
  4673. # fallback: assume linklib IS sharedlib
  4674. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4675. ;;
  4676. esac
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4679. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4680. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4681. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4682. if test -n "$ac_tool_prefix"; then
  4683. for ac_prog in ar
  4684. do
  4685. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4686. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. $as_echo_n "checking for $ac_word... " >&6; }
  4689. if ${ac_cv_prog_AR+:} false; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. if test -n "$AR"; then
  4693. ac_cv_prog_AR="$AR" # Let the user override the test.
  4694. else
  4695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4696. for as_dir in $PATH
  4697. do
  4698. IFS=$as_save_IFS
  4699. test -z "$as_dir" && as_dir=.
  4700. for ac_exec_ext in '' $ac_executable_extensions; do
  4701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4702. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4704. break 2
  4705. fi
  4706. done
  4707. done
  4708. IFS=$as_save_IFS
  4709. fi
  4710. fi
  4711. AR=$ac_cv_prog_AR
  4712. if test -n "$AR"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4714. $as_echo "$AR" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4717. $as_echo "no" >&6; }
  4718. fi
  4719. test -n "$AR" && break
  4720. done
  4721. fi
  4722. if test -z "$AR"; then
  4723. ac_ct_AR=$AR
  4724. for ac_prog in ar
  4725. do
  4726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4727. set dummy $ac_prog; ac_word=$2
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4729. $as_echo_n "checking for $ac_word... " >&6; }
  4730. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. if test -n "$ac_ct_AR"; then
  4734. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4735. else
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH
  4738. do
  4739. IFS=$as_save_IFS
  4740. test -z "$as_dir" && as_dir=.
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4743. ac_cv_prog_ac_ct_AR="$ac_prog"
  4744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4745. break 2
  4746. fi
  4747. done
  4748. done
  4749. IFS=$as_save_IFS
  4750. fi
  4751. fi
  4752. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4753. if test -n "$ac_ct_AR"; then
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4755. $as_echo "$ac_ct_AR" >&6; }
  4756. else
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4758. $as_echo "no" >&6; }
  4759. fi
  4760. test -n "$ac_ct_AR" && break
  4761. done
  4762. if test "x$ac_ct_AR" = x; then
  4763. AR="false"
  4764. else
  4765. case $cross_compiling:$ac_tool_warned in
  4766. yes:)
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4769. ac_tool_warned=yes ;;
  4770. esac
  4771. AR=$ac_ct_AR
  4772. fi
  4773. fi
  4774. : ${AR=ar}
  4775. : ${AR_FLAGS=cru}
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4777. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4778. if ${lt_cv_ar_at_file+:} false; then :
  4779. $as_echo_n "(cached) " >&6
  4780. else
  4781. lt_cv_ar_at_file=no
  4782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4783. /* end confdefs.h. */
  4784. int
  4785. main ()
  4786. {
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. if ac_fn_c_try_compile "$LINENO"; then :
  4792. echo conftest.$ac_objext > conftest.lst
  4793. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4794. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4795. (eval $lt_ar_try) 2>&5
  4796. ac_status=$?
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4798. test $ac_status = 0; }
  4799. if test "$ac_status" -eq 0; then
  4800. # Ensure the archiver fails upon bogus file names.
  4801. rm -f conftest.$ac_objext libconftest.a
  4802. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4803. (eval $lt_ar_try) 2>&5
  4804. ac_status=$?
  4805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4806. test $ac_status = 0; }
  4807. if test "$ac_status" -ne 0; then
  4808. lt_cv_ar_at_file=@
  4809. fi
  4810. fi
  4811. rm -f conftest.* libconftest.a
  4812. fi
  4813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4816. $as_echo "$lt_cv_ar_at_file" >&6; }
  4817. if test "x$lt_cv_ar_at_file" = xno; then
  4818. archiver_list_spec=
  4819. else
  4820. archiver_list_spec=$lt_cv_ar_at_file
  4821. fi
  4822. if test -n "$ac_tool_prefix"; then
  4823. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4824. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4826. $as_echo_n "checking for $ac_word... " >&6; }
  4827. if ${ac_cv_prog_STRIP+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. if test -n "$STRIP"; then
  4831. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4832. else
  4833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4834. for as_dir in $PATH
  4835. do
  4836. IFS=$as_save_IFS
  4837. test -z "$as_dir" && as_dir=.
  4838. for ac_exec_ext in '' $ac_executable_extensions; do
  4839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4840. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4842. break 2
  4843. fi
  4844. done
  4845. done
  4846. IFS=$as_save_IFS
  4847. fi
  4848. fi
  4849. STRIP=$ac_cv_prog_STRIP
  4850. if test -n "$STRIP"; then
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4852. $as_echo "$STRIP" >&6; }
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. fi
  4857. fi
  4858. if test -z "$ac_cv_prog_STRIP"; then
  4859. ac_ct_STRIP=$STRIP
  4860. # Extract the first word of "strip", so it can be a program name with args.
  4861. set dummy strip; ac_word=$2
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4863. $as_echo_n "checking for $ac_word... " >&6; }
  4864. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. if test -n "$ac_ct_STRIP"; then
  4868. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4869. else
  4870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4871. for as_dir in $PATH
  4872. do
  4873. IFS=$as_save_IFS
  4874. test -z "$as_dir" && as_dir=.
  4875. for ac_exec_ext in '' $ac_executable_extensions; do
  4876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4877. ac_cv_prog_ac_ct_STRIP="strip"
  4878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4879. break 2
  4880. fi
  4881. done
  4882. done
  4883. IFS=$as_save_IFS
  4884. fi
  4885. fi
  4886. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4887. if test -n "$ac_ct_STRIP"; then
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4889. $as_echo "$ac_ct_STRIP" >&6; }
  4890. else
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4892. $as_echo "no" >&6; }
  4893. fi
  4894. if test "x$ac_ct_STRIP" = x; then
  4895. STRIP=":"
  4896. else
  4897. case $cross_compiling:$ac_tool_warned in
  4898. yes:)
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4901. ac_tool_warned=yes ;;
  4902. esac
  4903. STRIP=$ac_ct_STRIP
  4904. fi
  4905. else
  4906. STRIP="$ac_cv_prog_STRIP"
  4907. fi
  4908. test -z "$STRIP" && STRIP=:
  4909. if test -n "$ac_tool_prefix"; then
  4910. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4911. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_RANLIB+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$RANLIB"; then
  4918. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. RANLIB=$ac_cv_prog_RANLIB
  4937. if test -n "$RANLIB"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4939. $as_echo "$RANLIB" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. fi
  4945. if test -z "$ac_cv_prog_RANLIB"; then
  4946. ac_ct_RANLIB=$RANLIB
  4947. # Extract the first word of "ranlib", so it can be a program name with args.
  4948. set dummy ranlib; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -n "$ac_ct_RANLIB"; then
  4955. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4956. else
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4964. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4974. if test -n "$ac_ct_RANLIB"; then
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4976. $as_echo "$ac_ct_RANLIB" >&6; }
  4977. else
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. $as_echo "no" >&6; }
  4980. fi
  4981. if test "x$ac_ct_RANLIB" = x; then
  4982. RANLIB=":"
  4983. else
  4984. case $cross_compiling:$ac_tool_warned in
  4985. yes:)
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4988. ac_tool_warned=yes ;;
  4989. esac
  4990. RANLIB=$ac_ct_RANLIB
  4991. fi
  4992. else
  4993. RANLIB="$ac_cv_prog_RANLIB"
  4994. fi
  4995. test -z "$RANLIB" && RANLIB=:
  4996. # Determine commands to create old-style static archives.
  4997. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4998. old_postinstall_cmds='chmod 644 $oldlib'
  4999. old_postuninstall_cmds=
  5000. if test -n "$RANLIB"; then
  5001. case $host_os in
  5002. openbsd*)
  5003. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5004. ;;
  5005. *)
  5006. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5007. ;;
  5008. esac
  5009. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5010. fi
  5011. case $host_os in
  5012. darwin*)
  5013. lock_old_archive_extraction=yes ;;
  5014. *)
  5015. lock_old_archive_extraction=no ;;
  5016. esac
  5017. for ac_prog in gawk mawk nawk awk
  5018. do
  5019. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5020. set dummy $ac_prog; ac_word=$2
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5022. $as_echo_n "checking for $ac_word... " >&6; }
  5023. if ${ac_cv_prog_AWK+:} false; then :
  5024. $as_echo_n "(cached) " >&6
  5025. else
  5026. if test -n "$AWK"; then
  5027. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5028. else
  5029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5030. for as_dir in $PATH
  5031. do
  5032. IFS=$as_save_IFS
  5033. test -z "$as_dir" && as_dir=.
  5034. for ac_exec_ext in '' $ac_executable_extensions; do
  5035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5036. ac_cv_prog_AWK="$ac_prog"
  5037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5038. break 2
  5039. fi
  5040. done
  5041. done
  5042. IFS=$as_save_IFS
  5043. fi
  5044. fi
  5045. AWK=$ac_cv_prog_AWK
  5046. if test -n "$AWK"; then
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5048. $as_echo "$AWK" >&6; }
  5049. else
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5051. $as_echo "no" >&6; }
  5052. fi
  5053. test -n "$AWK" && break
  5054. done
  5055. # If no C compiler was specified, use CC.
  5056. LTCC=${LTCC-"$CC"}
  5057. # If no C compiler flags were specified, use CFLAGS.
  5058. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5059. # Allow CC to be a program name with arguments.
  5060. compiler=$CC
  5061. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5063. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5064. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. # These are sane defaults that work on at least a few old systems.
  5068. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5069. # Character class describing NM global symbol codes.
  5070. symcode='[BCDEGRST]'
  5071. # Regexp to match symbols that can be accessed directly from C.
  5072. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5073. # Define system-specific variables.
  5074. case $host_os in
  5075. aix*)
  5076. symcode='[BCDT]'
  5077. ;;
  5078. cygwin* | mingw* | pw32* | cegcc*)
  5079. symcode='[ABCDGISTW]'
  5080. ;;
  5081. hpux*)
  5082. if test "$host_cpu" = ia64; then
  5083. symcode='[ABCDEGRST]'
  5084. fi
  5085. ;;
  5086. irix* | nonstopux*)
  5087. symcode='[BCDEGRST]'
  5088. ;;
  5089. osf*)
  5090. symcode='[BCDEGQRST]'
  5091. ;;
  5092. solaris*)
  5093. symcode='[BDRT]'
  5094. ;;
  5095. sco3.2v5*)
  5096. symcode='[DT]'
  5097. ;;
  5098. sysv4.2uw2*)
  5099. symcode='[DT]'
  5100. ;;
  5101. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5102. symcode='[ABDT]'
  5103. ;;
  5104. sysv4)
  5105. symcode='[DFNSTU]'
  5106. ;;
  5107. esac
  5108. # If we're using GNU nm, then use its standard symbol codes.
  5109. case `$NM -V 2>&1` in
  5110. *GNU* | *'with BFD'*)
  5111. symcode='[ABCDGIRSTW]' ;;
  5112. esac
  5113. # Transform an extracted symbol line into a proper C declaration.
  5114. # Some systems (esp. on ia64) link data and code symbols differently,
  5115. # so use this general approach.
  5116. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5117. # Transform an extracted symbol line into symbol name and symbol address
  5118. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5119. 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'"
  5120. # Handle CRLF in mingw tool chain
  5121. opt_cr=
  5122. case $build_os in
  5123. mingw*)
  5124. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5125. ;;
  5126. esac
  5127. # Try without a prefix underscore, then with it.
  5128. for ac_symprfx in "" "_"; do
  5129. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5130. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5131. # Write the raw and C identifiers.
  5132. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5133. # Fake it for dumpbin and say T for any non-static function
  5134. # and D for any global variable.
  5135. # Also find C++ and __fastcall symbols from MSVC++,
  5136. # which start with @ or ?.
  5137. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5138. " {last_section=section; section=\$ 3};"\
  5139. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5140. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5141. " \$ 0!~/External *\|/{next};"\
  5142. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5143. " {if(hide[section]) next};"\
  5144. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5145. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5146. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5147. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5148. " ' prfx=^$ac_symprfx"
  5149. else
  5150. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5151. fi
  5152. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5153. # Check to see that the pipe works correctly.
  5154. pipe_works=no
  5155. rm -f conftest*
  5156. cat > conftest.$ac_ext <<_LT_EOF
  5157. #ifdef __cplusplus
  5158. extern "C" {
  5159. #endif
  5160. char nm_test_var;
  5161. void nm_test_func(void);
  5162. void nm_test_func(void){}
  5163. #ifdef __cplusplus
  5164. }
  5165. #endif
  5166. int main(){nm_test_var='a';nm_test_func();return(0);}
  5167. _LT_EOF
  5168. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5169. (eval $ac_compile) 2>&5
  5170. ac_status=$?
  5171. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5172. test $ac_status = 0; }; then
  5173. # Now try to grab the symbols.
  5174. nlist=conftest.nm
  5175. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5176. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5177. ac_status=$?
  5178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5179. test $ac_status = 0; } && test -s "$nlist"; then
  5180. # Try sorting and uniquifying the output.
  5181. if sort "$nlist" | uniq > "$nlist"T; then
  5182. mv -f "$nlist"T "$nlist"
  5183. else
  5184. rm -f "$nlist"T
  5185. fi
  5186. # Make sure that we snagged all the symbols we need.
  5187. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5188. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5189. cat <<_LT_EOF > conftest.$ac_ext
  5190. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5191. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5192. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5193. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5194. # define LT_DLSYM_CONST
  5195. #elif defined(__osf__)
  5196. /* This system does not cope well with relocations in const data. */
  5197. # define LT_DLSYM_CONST
  5198. #else
  5199. # define LT_DLSYM_CONST const
  5200. #endif
  5201. #ifdef __cplusplus
  5202. extern "C" {
  5203. #endif
  5204. _LT_EOF
  5205. # Now generate the symbol file.
  5206. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5207. cat <<_LT_EOF >> conftest.$ac_ext
  5208. /* The mapping between symbol names and symbols. */
  5209. LT_DLSYM_CONST struct {
  5210. const char *name;
  5211. void *address;
  5212. }
  5213. lt__PROGRAM__LTX_preloaded_symbols[] =
  5214. {
  5215. { "@PROGRAM@", (void *) 0 },
  5216. _LT_EOF
  5217. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5218. cat <<\_LT_EOF >> conftest.$ac_ext
  5219. {0, (void *) 0}
  5220. };
  5221. /* This works around a problem in FreeBSD linker */
  5222. #ifdef FREEBSD_WORKAROUND
  5223. static const void *lt_preloaded_setup() {
  5224. return lt__PROGRAM__LTX_preloaded_symbols;
  5225. }
  5226. #endif
  5227. #ifdef __cplusplus
  5228. }
  5229. #endif
  5230. _LT_EOF
  5231. # Now try linking the two files.
  5232. mv conftest.$ac_objext conftstm.$ac_objext
  5233. lt_globsym_save_LIBS=$LIBS
  5234. lt_globsym_save_CFLAGS=$CFLAGS
  5235. LIBS="conftstm.$ac_objext"
  5236. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5237. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5238. (eval $ac_link) 2>&5
  5239. ac_status=$?
  5240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5241. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5242. pipe_works=yes
  5243. fi
  5244. LIBS=$lt_globsym_save_LIBS
  5245. CFLAGS=$lt_globsym_save_CFLAGS
  5246. else
  5247. echo "cannot find nm_test_func in $nlist" >&5
  5248. fi
  5249. else
  5250. echo "cannot find nm_test_var in $nlist" >&5
  5251. fi
  5252. else
  5253. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5254. fi
  5255. else
  5256. echo "$progname: failed program was:" >&5
  5257. cat conftest.$ac_ext >&5
  5258. fi
  5259. rm -rf conftest* conftst*
  5260. # Do not use the global_symbol_pipe unless it works.
  5261. if test "$pipe_works" = yes; then
  5262. break
  5263. else
  5264. lt_cv_sys_global_symbol_pipe=
  5265. fi
  5266. done
  5267. fi
  5268. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5269. lt_cv_sys_global_symbol_to_cdecl=
  5270. fi
  5271. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5273. $as_echo "failed" >&6; }
  5274. else
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5276. $as_echo "ok" >&6; }
  5277. fi
  5278. # Response file support.
  5279. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5280. nm_file_list_spec='@'
  5281. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5282. nm_file_list_spec='@'
  5283. fi
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5285. $as_echo_n "checking for sysroot... " >&6; }
  5286. # Check whether --with-sysroot was given.
  5287. if test "${with_sysroot+set}" = set; then :
  5288. withval=$with_sysroot;
  5289. else
  5290. with_sysroot=no
  5291. fi
  5292. lt_sysroot=
  5293. case ${with_sysroot} in #(
  5294. yes)
  5295. if test "$GCC" = yes; then
  5296. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5297. fi
  5298. ;; #(
  5299. /*)
  5300. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5301. ;; #(
  5302. no|'')
  5303. ;; #(
  5304. *)
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5306. $as_echo "${with_sysroot}" >&6; }
  5307. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5308. ;;
  5309. esac
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5311. $as_echo "${lt_sysroot:-no}" >&6; }
  5312. # Check whether --enable-libtool-lock was given.
  5313. if test "${enable_libtool_lock+set}" = set; then :
  5314. enableval=$enable_libtool_lock;
  5315. fi
  5316. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5317. # Some flags need to be propagated to the compiler or linker for good
  5318. # libtool support.
  5319. case $host in
  5320. ia64-*-hpux*)
  5321. # Find out which ABI we are using.
  5322. echo 'int i;' > conftest.$ac_ext
  5323. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5324. (eval $ac_compile) 2>&5
  5325. ac_status=$?
  5326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5327. test $ac_status = 0; }; then
  5328. case `/usr/bin/file conftest.$ac_objext` in
  5329. *ELF-32*)
  5330. HPUX_IA64_MODE="32"
  5331. ;;
  5332. *ELF-64*)
  5333. HPUX_IA64_MODE="64"
  5334. ;;
  5335. esac
  5336. fi
  5337. rm -rf conftest*
  5338. ;;
  5339. *-*-irix6*)
  5340. # Find out which ABI we are using.
  5341. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5342. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5343. (eval $ac_compile) 2>&5
  5344. ac_status=$?
  5345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5346. test $ac_status = 0; }; then
  5347. if test "$lt_cv_prog_gnu_ld" = yes; then
  5348. case `/usr/bin/file conftest.$ac_objext` in
  5349. *32-bit*)
  5350. LD="${LD-ld} -melf32bsmip"
  5351. ;;
  5352. *N32*)
  5353. LD="${LD-ld} -melf32bmipn32"
  5354. ;;
  5355. *64-bit*)
  5356. LD="${LD-ld} -melf64bmip"
  5357. ;;
  5358. esac
  5359. else
  5360. case `/usr/bin/file conftest.$ac_objext` in
  5361. *32-bit*)
  5362. LD="${LD-ld} -32"
  5363. ;;
  5364. *N32*)
  5365. LD="${LD-ld} -n32"
  5366. ;;
  5367. *64-bit*)
  5368. LD="${LD-ld} -64"
  5369. ;;
  5370. esac
  5371. fi
  5372. fi
  5373. rm -rf conftest*
  5374. ;;
  5375. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5376. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5377. # Find out which ABI we are using.
  5378. echo 'int i;' > conftest.$ac_ext
  5379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5380. (eval $ac_compile) 2>&5
  5381. ac_status=$?
  5382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5383. test $ac_status = 0; }; then
  5384. case `/usr/bin/file conftest.o` in
  5385. *32-bit*)
  5386. case $host in
  5387. x86_64-*kfreebsd*-gnu)
  5388. LD="${LD-ld} -m elf_i386_fbsd"
  5389. ;;
  5390. x86_64-*linux*)
  5391. LD="${LD-ld} -m elf_i386"
  5392. ;;
  5393. ppc64-*linux*|powerpc64-*linux*)
  5394. LD="${LD-ld} -m elf32ppclinux"
  5395. ;;
  5396. s390x-*linux*)
  5397. LD="${LD-ld} -m elf_s390"
  5398. ;;
  5399. sparc64-*linux*)
  5400. LD="${LD-ld} -m elf32_sparc"
  5401. ;;
  5402. esac
  5403. ;;
  5404. *64-bit*)
  5405. case $host in
  5406. x86_64-*kfreebsd*-gnu)
  5407. LD="${LD-ld} -m elf_x86_64_fbsd"
  5408. ;;
  5409. x86_64-*linux*)
  5410. LD="${LD-ld} -m elf_x86_64"
  5411. ;;
  5412. powerpc64le-*linux*)
  5413. LD="${LD-ld} -m elf64lppc"
  5414. ;;
  5415. powerpc64-*linux*)
  5416. LD="${LD-ld} -m elf64ppc"
  5417. ;;
  5418. s390*-*linux*|s390*-*tpf*)
  5419. LD="${LD-ld} -m elf64_s390"
  5420. ;;
  5421. sparc*-*linux*)
  5422. LD="${LD-ld} -m elf64_sparc"
  5423. ;;
  5424. esac
  5425. ;;
  5426. esac
  5427. fi
  5428. rm -rf conftest*
  5429. ;;
  5430. *-*-sco3.2v5*)
  5431. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5432. SAVE_CFLAGS="$CFLAGS"
  5433. CFLAGS="$CFLAGS -belf"
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5435. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5436. if ${lt_cv_cc_needs_belf+:} false; then :
  5437. $as_echo_n "(cached) " >&6
  5438. else
  5439. ac_ext=c
  5440. ac_cpp='$CPP $CPPFLAGS'
  5441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5445. /* end confdefs.h. */
  5446. int
  5447. main ()
  5448. {
  5449. ;
  5450. return 0;
  5451. }
  5452. _ACEOF
  5453. if ac_fn_c_try_link "$LINENO"; then :
  5454. lt_cv_cc_needs_belf=yes
  5455. else
  5456. lt_cv_cc_needs_belf=no
  5457. fi
  5458. rm -f core conftest.err conftest.$ac_objext \
  5459. conftest$ac_exeext conftest.$ac_ext
  5460. ac_ext=c
  5461. ac_cpp='$CPP $CPPFLAGS'
  5462. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5463. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5464. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5465. fi
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5467. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5468. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5469. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5470. CFLAGS="$SAVE_CFLAGS"
  5471. fi
  5472. ;;
  5473. *-*solaris*)
  5474. # Find out which ABI we are using.
  5475. echo 'int i;' > conftest.$ac_ext
  5476. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5477. (eval $ac_compile) 2>&5
  5478. ac_status=$?
  5479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5480. test $ac_status = 0; }; then
  5481. case `/usr/bin/file conftest.o` in
  5482. *64-bit*)
  5483. case $lt_cv_prog_gnu_ld in
  5484. yes*)
  5485. case $host in
  5486. i?86-*-solaris*)
  5487. LD="${LD-ld} -m elf_x86_64"
  5488. ;;
  5489. sparc*-*-solaris*)
  5490. LD="${LD-ld} -m elf64_sparc"
  5491. ;;
  5492. esac
  5493. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5494. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5495. LD="${LD-ld}_sol2"
  5496. fi
  5497. ;;
  5498. *)
  5499. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5500. LD="${LD-ld} -64"
  5501. fi
  5502. ;;
  5503. esac
  5504. ;;
  5505. esac
  5506. fi
  5507. rm -rf conftest*
  5508. ;;
  5509. esac
  5510. need_locks="$enable_libtool_lock"
  5511. if test -n "$ac_tool_prefix"; then
  5512. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5513. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5515. $as_echo_n "checking for $ac_word... " >&6; }
  5516. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. if test -n "$MANIFEST_TOOL"; then
  5520. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5521. else
  5522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5523. for as_dir in $PATH
  5524. do
  5525. IFS=$as_save_IFS
  5526. test -z "$as_dir" && as_dir=.
  5527. for ac_exec_ext in '' $ac_executable_extensions; do
  5528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5529. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5531. break 2
  5532. fi
  5533. done
  5534. done
  5535. IFS=$as_save_IFS
  5536. fi
  5537. fi
  5538. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5539. if test -n "$MANIFEST_TOOL"; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5541. $as_echo "$MANIFEST_TOOL" >&6; }
  5542. else
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5544. $as_echo "no" >&6; }
  5545. fi
  5546. fi
  5547. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5548. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5549. # Extract the first word of "mt", so it can be a program name with args.
  5550. set dummy mt; ac_word=$2
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5552. $as_echo_n "checking for $ac_word... " >&6; }
  5553. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5557. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5566. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi
  5574. fi
  5575. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5576. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5578. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5579. else
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5581. $as_echo "no" >&6; }
  5582. fi
  5583. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5584. MANIFEST_TOOL=":"
  5585. else
  5586. case $cross_compiling:$ac_tool_warned in
  5587. yes:)
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5590. ac_tool_warned=yes ;;
  5591. esac
  5592. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5593. fi
  5594. else
  5595. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5596. fi
  5597. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5599. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5600. if ${lt_cv_path_mainfest_tool+:} false; then :
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. lt_cv_path_mainfest_tool=no
  5604. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5605. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5606. cat conftest.err >&5
  5607. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5608. lt_cv_path_mainfest_tool=yes
  5609. fi
  5610. rm -f conftest*
  5611. fi
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5613. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5614. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5615. MANIFEST_TOOL=:
  5616. fi
  5617. case $host_os in
  5618. rhapsody* | darwin*)
  5619. if test -n "$ac_tool_prefix"; then
  5620. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5621. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5623. $as_echo_n "checking for $ac_word... " >&6; }
  5624. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. if test -n "$DSYMUTIL"; then
  5628. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5629. else
  5630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5631. for as_dir in $PATH
  5632. do
  5633. IFS=$as_save_IFS
  5634. test -z "$as_dir" && as_dir=.
  5635. for ac_exec_ext in '' $ac_executable_extensions; do
  5636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5637. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5639. break 2
  5640. fi
  5641. done
  5642. done
  5643. IFS=$as_save_IFS
  5644. fi
  5645. fi
  5646. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5647. if test -n "$DSYMUTIL"; then
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5649. $as_echo "$DSYMUTIL" >&6; }
  5650. else
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5652. $as_echo "no" >&6; }
  5653. fi
  5654. fi
  5655. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5656. ac_ct_DSYMUTIL=$DSYMUTIL
  5657. # Extract the first word of "dsymutil", so it can be a program name with args.
  5658. set dummy dsymutil; ac_word=$2
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5660. $as_echo_n "checking for $ac_word... " >&6; }
  5661. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. if test -n "$ac_ct_DSYMUTIL"; then
  5665. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. test -z "$as_dir" && as_dir=.
  5672. for ac_exec_ext in '' $ac_executable_extensions; do
  5673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5674. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5676. break 2
  5677. fi
  5678. done
  5679. done
  5680. IFS=$as_save_IFS
  5681. fi
  5682. fi
  5683. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5684. if test -n "$ac_ct_DSYMUTIL"; then
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5686. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5687. else
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5689. $as_echo "no" >&6; }
  5690. fi
  5691. if test "x$ac_ct_DSYMUTIL" = x; then
  5692. DSYMUTIL=":"
  5693. else
  5694. case $cross_compiling:$ac_tool_warned in
  5695. yes:)
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5698. ac_tool_warned=yes ;;
  5699. esac
  5700. DSYMUTIL=$ac_ct_DSYMUTIL
  5701. fi
  5702. else
  5703. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5704. fi
  5705. if test -n "$ac_tool_prefix"; then
  5706. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5707. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5709. $as_echo_n "checking for $ac_word... " >&6; }
  5710. if ${ac_cv_prog_NMEDIT+:} false; then :
  5711. $as_echo_n "(cached) " >&6
  5712. else
  5713. if test -n "$NMEDIT"; then
  5714. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5715. else
  5716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5717. for as_dir in $PATH
  5718. do
  5719. IFS=$as_save_IFS
  5720. test -z "$as_dir" && as_dir=.
  5721. for ac_exec_ext in '' $ac_executable_extensions; do
  5722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5723. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5725. break 2
  5726. fi
  5727. done
  5728. done
  5729. IFS=$as_save_IFS
  5730. fi
  5731. fi
  5732. NMEDIT=$ac_cv_prog_NMEDIT
  5733. if test -n "$NMEDIT"; then
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5735. $as_echo "$NMEDIT" >&6; }
  5736. else
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5738. $as_echo "no" >&6; }
  5739. fi
  5740. fi
  5741. if test -z "$ac_cv_prog_NMEDIT"; then
  5742. ac_ct_NMEDIT=$NMEDIT
  5743. # Extract the first word of "nmedit", so it can be a program name with args.
  5744. set dummy nmedit; ac_word=$2
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5746. $as_echo_n "checking for $ac_word... " >&6; }
  5747. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. if test -n "$ac_ct_NMEDIT"; then
  5751. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5752. else
  5753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5754. for as_dir in $PATH
  5755. do
  5756. IFS=$as_save_IFS
  5757. test -z "$as_dir" && as_dir=.
  5758. for ac_exec_ext in '' $ac_executable_extensions; do
  5759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5760. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5762. break 2
  5763. fi
  5764. done
  5765. done
  5766. IFS=$as_save_IFS
  5767. fi
  5768. fi
  5769. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5770. if test -n "$ac_ct_NMEDIT"; then
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5772. $as_echo "$ac_ct_NMEDIT" >&6; }
  5773. else
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5775. $as_echo "no" >&6; }
  5776. fi
  5777. if test "x$ac_ct_NMEDIT" = x; then
  5778. NMEDIT=":"
  5779. else
  5780. case $cross_compiling:$ac_tool_warned in
  5781. yes:)
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5783. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5784. ac_tool_warned=yes ;;
  5785. esac
  5786. NMEDIT=$ac_ct_NMEDIT
  5787. fi
  5788. else
  5789. NMEDIT="$ac_cv_prog_NMEDIT"
  5790. fi
  5791. if test -n "$ac_tool_prefix"; then
  5792. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5793. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5795. $as_echo_n "checking for $ac_word... " >&6; }
  5796. if ${ac_cv_prog_LIPO+:} false; then :
  5797. $as_echo_n "(cached) " >&6
  5798. else
  5799. if test -n "$LIPO"; then
  5800. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5801. else
  5802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5803. for as_dir in $PATH
  5804. do
  5805. IFS=$as_save_IFS
  5806. test -z "$as_dir" && as_dir=.
  5807. for ac_exec_ext in '' $ac_executable_extensions; do
  5808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5809. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5811. break 2
  5812. fi
  5813. done
  5814. done
  5815. IFS=$as_save_IFS
  5816. fi
  5817. fi
  5818. LIPO=$ac_cv_prog_LIPO
  5819. if test -n "$LIPO"; then
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5821. $as_echo "$LIPO" >&6; }
  5822. else
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5824. $as_echo "no" >&6; }
  5825. fi
  5826. fi
  5827. if test -z "$ac_cv_prog_LIPO"; then
  5828. ac_ct_LIPO=$LIPO
  5829. # Extract the first word of "lipo", so it can be a program name with args.
  5830. set dummy lipo; ac_word=$2
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5832. $as_echo_n "checking for $ac_word... " >&6; }
  5833. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5834. $as_echo_n "(cached) " >&6
  5835. else
  5836. if test -n "$ac_ct_LIPO"; then
  5837. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5838. else
  5839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5840. for as_dir in $PATH
  5841. do
  5842. IFS=$as_save_IFS
  5843. test -z "$as_dir" && as_dir=.
  5844. for ac_exec_ext in '' $ac_executable_extensions; do
  5845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5846. ac_cv_prog_ac_ct_LIPO="lipo"
  5847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5848. break 2
  5849. fi
  5850. done
  5851. done
  5852. IFS=$as_save_IFS
  5853. fi
  5854. fi
  5855. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5856. if test -n "$ac_ct_LIPO"; then
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5858. $as_echo "$ac_ct_LIPO" >&6; }
  5859. else
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5861. $as_echo "no" >&6; }
  5862. fi
  5863. if test "x$ac_ct_LIPO" = x; then
  5864. LIPO=":"
  5865. else
  5866. case $cross_compiling:$ac_tool_warned in
  5867. yes:)
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5869. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5870. ac_tool_warned=yes ;;
  5871. esac
  5872. LIPO=$ac_ct_LIPO
  5873. fi
  5874. else
  5875. LIPO="$ac_cv_prog_LIPO"
  5876. fi
  5877. if test -n "$ac_tool_prefix"; then
  5878. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5879. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5881. $as_echo_n "checking for $ac_word... " >&6; }
  5882. if ${ac_cv_prog_OTOOL+:} false; then :
  5883. $as_echo_n "(cached) " >&6
  5884. else
  5885. if test -n "$OTOOL"; then
  5886. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5887. else
  5888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5889. for as_dir in $PATH
  5890. do
  5891. IFS=$as_save_IFS
  5892. test -z "$as_dir" && as_dir=.
  5893. for ac_exec_ext in '' $ac_executable_extensions; do
  5894. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5895. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5897. break 2
  5898. fi
  5899. done
  5900. done
  5901. IFS=$as_save_IFS
  5902. fi
  5903. fi
  5904. OTOOL=$ac_cv_prog_OTOOL
  5905. if test -n "$OTOOL"; then
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5907. $as_echo "$OTOOL" >&6; }
  5908. else
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5910. $as_echo "no" >&6; }
  5911. fi
  5912. fi
  5913. if test -z "$ac_cv_prog_OTOOL"; then
  5914. ac_ct_OTOOL=$OTOOL
  5915. # Extract the first word of "otool", so it can be a program name with args.
  5916. set dummy otool; ac_word=$2
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5918. $as_echo_n "checking for $ac_word... " >&6; }
  5919. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5920. $as_echo_n "(cached) " >&6
  5921. else
  5922. if test -n "$ac_ct_OTOOL"; then
  5923. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5924. else
  5925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5926. for as_dir in $PATH
  5927. do
  5928. IFS=$as_save_IFS
  5929. test -z "$as_dir" && as_dir=.
  5930. for ac_exec_ext in '' $ac_executable_extensions; do
  5931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5932. ac_cv_prog_ac_ct_OTOOL="otool"
  5933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5934. break 2
  5935. fi
  5936. done
  5937. done
  5938. IFS=$as_save_IFS
  5939. fi
  5940. fi
  5941. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5942. if test -n "$ac_ct_OTOOL"; then
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5944. $as_echo "$ac_ct_OTOOL" >&6; }
  5945. else
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5947. $as_echo "no" >&6; }
  5948. fi
  5949. if test "x$ac_ct_OTOOL" = x; then
  5950. OTOOL=":"
  5951. else
  5952. case $cross_compiling:$ac_tool_warned in
  5953. yes:)
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5955. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5956. ac_tool_warned=yes ;;
  5957. esac
  5958. OTOOL=$ac_ct_OTOOL
  5959. fi
  5960. else
  5961. OTOOL="$ac_cv_prog_OTOOL"
  5962. fi
  5963. if test -n "$ac_tool_prefix"; then
  5964. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5965. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5967. $as_echo_n "checking for $ac_word... " >&6; }
  5968. if ${ac_cv_prog_OTOOL64+:} false; then :
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. if test -n "$OTOOL64"; then
  5972. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5973. else
  5974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5975. for as_dir in $PATH
  5976. do
  5977. IFS=$as_save_IFS
  5978. test -z "$as_dir" && as_dir=.
  5979. for ac_exec_ext in '' $ac_executable_extensions; do
  5980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5981. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5983. break 2
  5984. fi
  5985. done
  5986. done
  5987. IFS=$as_save_IFS
  5988. fi
  5989. fi
  5990. OTOOL64=$ac_cv_prog_OTOOL64
  5991. if test -n "$OTOOL64"; then
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5993. $as_echo "$OTOOL64" >&6; }
  5994. else
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5996. $as_echo "no" >&6; }
  5997. fi
  5998. fi
  5999. if test -z "$ac_cv_prog_OTOOL64"; then
  6000. ac_ct_OTOOL64=$OTOOL64
  6001. # Extract the first word of "otool64", so it can be a program name with args.
  6002. set dummy otool64; ac_word=$2
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6004. $as_echo_n "checking for $ac_word... " >&6; }
  6005. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6006. $as_echo_n "(cached) " >&6
  6007. else
  6008. if test -n "$ac_ct_OTOOL64"; then
  6009. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6010. else
  6011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6012. for as_dir in $PATH
  6013. do
  6014. IFS=$as_save_IFS
  6015. test -z "$as_dir" && as_dir=.
  6016. for ac_exec_ext in '' $ac_executable_extensions; do
  6017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6018. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6020. break 2
  6021. fi
  6022. done
  6023. done
  6024. IFS=$as_save_IFS
  6025. fi
  6026. fi
  6027. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6028. if test -n "$ac_ct_OTOOL64"; then
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6030. $as_echo "$ac_ct_OTOOL64" >&6; }
  6031. else
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6033. $as_echo "no" >&6; }
  6034. fi
  6035. if test "x$ac_ct_OTOOL64" = x; then
  6036. OTOOL64=":"
  6037. else
  6038. case $cross_compiling:$ac_tool_warned in
  6039. yes:)
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6041. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6042. ac_tool_warned=yes ;;
  6043. esac
  6044. OTOOL64=$ac_ct_OTOOL64
  6045. fi
  6046. else
  6047. OTOOL64="$ac_cv_prog_OTOOL64"
  6048. fi
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6050. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6051. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. lt_cv_apple_cc_single_mod=no
  6055. if test -z "${LT_MULTI_MODULE}"; then
  6056. # By default we will add the -single_module flag. You can override
  6057. # by either setting the environment variable LT_MULTI_MODULE
  6058. # non-empty at configure time, or by adding -multi_module to the
  6059. # link flags.
  6060. rm -rf libconftest.dylib*
  6061. echo "int foo(void){return 1;}" > conftest.c
  6062. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6063. -dynamiclib -Wl,-single_module conftest.c" >&5
  6064. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6065. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6066. _lt_result=$?
  6067. # If there is a non-empty error log, and "single_module"
  6068. # appears in it, assume the flag caused a linker warning
  6069. if test -s conftest.err && $GREP single_module conftest.err; then
  6070. cat conftest.err >&5
  6071. # Otherwise, if the output was created with a 0 exit code from
  6072. # the compiler, it worked.
  6073. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6074. lt_cv_apple_cc_single_mod=yes
  6075. else
  6076. cat conftest.err >&5
  6077. fi
  6078. rm -rf libconftest.dylib*
  6079. rm -f conftest.*
  6080. fi
  6081. fi
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6083. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6085. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6086. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6087. $as_echo_n "(cached) " >&6
  6088. else
  6089. lt_cv_ld_exported_symbols_list=no
  6090. save_LDFLAGS=$LDFLAGS
  6091. echo "_main" > conftest.sym
  6092. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6094. /* end confdefs.h. */
  6095. int
  6096. main ()
  6097. {
  6098. ;
  6099. return 0;
  6100. }
  6101. _ACEOF
  6102. if ac_fn_c_try_link "$LINENO"; then :
  6103. lt_cv_ld_exported_symbols_list=yes
  6104. else
  6105. lt_cv_ld_exported_symbols_list=no
  6106. fi
  6107. rm -f core conftest.err conftest.$ac_objext \
  6108. conftest$ac_exeext conftest.$ac_ext
  6109. LDFLAGS="$save_LDFLAGS"
  6110. fi
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6112. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6114. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6115. if ${lt_cv_ld_force_load+:} false; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. lt_cv_ld_force_load=no
  6119. cat > conftest.c << _LT_EOF
  6120. int forced_loaded() { return 2;}
  6121. _LT_EOF
  6122. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6123. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6124. echo "$AR cru libconftest.a conftest.o" >&5
  6125. $AR cru libconftest.a conftest.o 2>&5
  6126. echo "$RANLIB libconftest.a" >&5
  6127. $RANLIB libconftest.a 2>&5
  6128. cat > conftest.c << _LT_EOF
  6129. int main() { return 0;}
  6130. _LT_EOF
  6131. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6132. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6133. _lt_result=$?
  6134. if test -s conftest.err && $GREP force_load conftest.err; then
  6135. cat conftest.err >&5
  6136. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6137. lt_cv_ld_force_load=yes
  6138. else
  6139. cat conftest.err >&5
  6140. fi
  6141. rm -f conftest.err libconftest.a conftest conftest.c
  6142. rm -rf conftest.dSYM
  6143. fi
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6145. $as_echo "$lt_cv_ld_force_load" >&6; }
  6146. case $host_os in
  6147. rhapsody* | darwin1.[012])
  6148. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6149. darwin1.*)
  6150. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6151. darwin*)
  6152. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6153. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6154. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6155. *)
  6156. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6157. esac
  6158. ;;
  6159. esac
  6160. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6161. _lt_dar_single_mod='$single_module'
  6162. fi
  6163. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6164. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6165. else
  6166. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6167. fi
  6168. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6169. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6170. else
  6171. _lt_dsymutil=
  6172. fi
  6173. ;;
  6174. esac
  6175. ac_ext=c
  6176. ac_cpp='$CPP $CPPFLAGS'
  6177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6181. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6182. # On Suns, sometimes $CPP names a directory.
  6183. if test -n "$CPP" && test -d "$CPP"; then
  6184. CPP=
  6185. fi
  6186. if test -z "$CPP"; then
  6187. if ${ac_cv_prog_CPP+:} false; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. # Double quotes because CPP needs to be expanded
  6191. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6192. do
  6193. ac_preproc_ok=false
  6194. for ac_c_preproc_warn_flag in '' yes
  6195. do
  6196. # Use a header file that comes with gcc, so configuring glibc
  6197. # with a fresh cross-compiler works.
  6198. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6199. # <limits.h> exists even on freestanding compilers.
  6200. # On the NeXT, cc -E runs the code through the compiler's parser,
  6201. # not just through cpp. "Syntax error" is here to catch this case.
  6202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6203. /* end confdefs.h. */
  6204. #ifdef __STDC__
  6205. # include <limits.h>
  6206. #else
  6207. # include <assert.h>
  6208. #endif
  6209. Syntax error
  6210. _ACEOF
  6211. if ac_fn_c_try_cpp "$LINENO"; then :
  6212. else
  6213. # Broken: fails on valid input.
  6214. continue
  6215. fi
  6216. rm -f conftest.err conftest.i conftest.$ac_ext
  6217. # OK, works on sane cases. Now check whether nonexistent headers
  6218. # can be detected and how.
  6219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6220. /* end confdefs.h. */
  6221. #include <ac_nonexistent.h>
  6222. _ACEOF
  6223. if ac_fn_c_try_cpp "$LINENO"; then :
  6224. # Broken: success on invalid input.
  6225. continue
  6226. else
  6227. # Passes both tests.
  6228. ac_preproc_ok=:
  6229. break
  6230. fi
  6231. rm -f conftest.err conftest.i conftest.$ac_ext
  6232. done
  6233. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6234. rm -f conftest.i conftest.err conftest.$ac_ext
  6235. if $ac_preproc_ok; then :
  6236. break
  6237. fi
  6238. done
  6239. ac_cv_prog_CPP=$CPP
  6240. fi
  6241. CPP=$ac_cv_prog_CPP
  6242. else
  6243. ac_cv_prog_CPP=$CPP
  6244. fi
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6246. $as_echo "$CPP" >&6; }
  6247. ac_preproc_ok=false
  6248. for ac_c_preproc_warn_flag in '' yes
  6249. do
  6250. # Use a header file that comes with gcc, so configuring glibc
  6251. # with a fresh cross-compiler works.
  6252. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6253. # <limits.h> exists even on freestanding compilers.
  6254. # On the NeXT, cc -E runs the code through the compiler's parser,
  6255. # not just through cpp. "Syntax error" is here to catch this case.
  6256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6257. /* end confdefs.h. */
  6258. #ifdef __STDC__
  6259. # include <limits.h>
  6260. #else
  6261. # include <assert.h>
  6262. #endif
  6263. Syntax error
  6264. _ACEOF
  6265. if ac_fn_c_try_cpp "$LINENO"; then :
  6266. else
  6267. # Broken: fails on valid input.
  6268. continue
  6269. fi
  6270. rm -f conftest.err conftest.i conftest.$ac_ext
  6271. # OK, works on sane cases. Now check whether nonexistent headers
  6272. # can be detected and how.
  6273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6274. /* end confdefs.h. */
  6275. #include <ac_nonexistent.h>
  6276. _ACEOF
  6277. if ac_fn_c_try_cpp "$LINENO"; then :
  6278. # Broken: success on invalid input.
  6279. continue
  6280. else
  6281. # Passes both tests.
  6282. ac_preproc_ok=:
  6283. break
  6284. fi
  6285. rm -f conftest.err conftest.i conftest.$ac_ext
  6286. done
  6287. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6288. rm -f conftest.i conftest.err conftest.$ac_ext
  6289. if $ac_preproc_ok; then :
  6290. else
  6291. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6292. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6293. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6294. See \`config.log' for more details" "$LINENO" 5; }
  6295. fi
  6296. ac_ext=c
  6297. ac_cpp='$CPP $CPPFLAGS'
  6298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6302. $as_echo_n "checking for ANSI C header files... " >&6; }
  6303. if ${ac_cv_header_stdc+:} false; then :
  6304. $as_echo_n "(cached) " >&6
  6305. else
  6306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6307. /* end confdefs.h. */
  6308. #include <stdlib.h>
  6309. #include <stdarg.h>
  6310. #include <string.h>
  6311. #include <float.h>
  6312. int
  6313. main ()
  6314. {
  6315. ;
  6316. return 0;
  6317. }
  6318. _ACEOF
  6319. if ac_fn_c_try_compile "$LINENO"; then :
  6320. ac_cv_header_stdc=yes
  6321. else
  6322. ac_cv_header_stdc=no
  6323. fi
  6324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6325. if test $ac_cv_header_stdc = yes; then
  6326. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end confdefs.h. */
  6329. #include <string.h>
  6330. _ACEOF
  6331. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6332. $EGREP "memchr" >/dev/null 2>&1; then :
  6333. else
  6334. ac_cv_header_stdc=no
  6335. fi
  6336. rm -f conftest*
  6337. fi
  6338. if test $ac_cv_header_stdc = yes; then
  6339. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6341. /* end confdefs.h. */
  6342. #include <stdlib.h>
  6343. _ACEOF
  6344. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6345. $EGREP "free" >/dev/null 2>&1; then :
  6346. else
  6347. ac_cv_header_stdc=no
  6348. fi
  6349. rm -f conftest*
  6350. fi
  6351. if test $ac_cv_header_stdc = yes; then
  6352. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6353. if test "$cross_compiling" = yes; then :
  6354. :
  6355. else
  6356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6357. /* end confdefs.h. */
  6358. #include <ctype.h>
  6359. #include <stdlib.h>
  6360. #if ((' ' & 0x0FF) == 0x020)
  6361. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6362. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6363. #else
  6364. # define ISLOWER(c) \
  6365. (('a' <= (c) && (c) <= 'i') \
  6366. || ('j' <= (c) && (c) <= 'r') \
  6367. || ('s' <= (c) && (c) <= 'z'))
  6368. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6369. #endif
  6370. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6371. int
  6372. main ()
  6373. {
  6374. int i;
  6375. for (i = 0; i < 256; i++)
  6376. if (XOR (islower (i), ISLOWER (i))
  6377. || toupper (i) != TOUPPER (i))
  6378. return 2;
  6379. return 0;
  6380. }
  6381. _ACEOF
  6382. if ac_fn_c_try_run "$LINENO"; then :
  6383. else
  6384. ac_cv_header_stdc=no
  6385. fi
  6386. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6387. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6388. fi
  6389. fi
  6390. fi
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6392. $as_echo "$ac_cv_header_stdc" >&6; }
  6393. if test $ac_cv_header_stdc = yes; then
  6394. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6395. fi
  6396. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6397. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6398. inttypes.h stdint.h unistd.h
  6399. do :
  6400. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6401. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6402. "
  6403. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6404. cat >>confdefs.h <<_ACEOF
  6405. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6406. _ACEOF
  6407. fi
  6408. done
  6409. for ac_header in dlfcn.h
  6410. do :
  6411. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6412. "
  6413. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6414. cat >>confdefs.h <<_ACEOF
  6415. #define HAVE_DLFCN_H 1
  6416. _ACEOF
  6417. fi
  6418. done
  6419. # Set options
  6420. enable_win32_dll=yes
  6421. case $host in
  6422. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6423. if test -n "$ac_tool_prefix"; then
  6424. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6425. set dummy ${ac_tool_prefix}as; ac_word=$2
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6427. $as_echo_n "checking for $ac_word... " >&6; }
  6428. if ${ac_cv_prog_AS+:} false; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. if test -n "$AS"; then
  6432. ac_cv_prog_AS="$AS" # Let the user override the test.
  6433. else
  6434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6435. for as_dir in $PATH
  6436. do
  6437. IFS=$as_save_IFS
  6438. test -z "$as_dir" && as_dir=.
  6439. for ac_exec_ext in '' $ac_executable_extensions; do
  6440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6441. ac_cv_prog_AS="${ac_tool_prefix}as"
  6442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6443. break 2
  6444. fi
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. fi
  6449. fi
  6450. AS=$ac_cv_prog_AS
  6451. if test -n "$AS"; then
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6453. $as_echo "$AS" >&6; }
  6454. else
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. $as_echo "no" >&6; }
  6457. fi
  6458. fi
  6459. if test -z "$ac_cv_prog_AS"; then
  6460. ac_ct_AS=$AS
  6461. # Extract the first word of "as", so it can be a program name with args.
  6462. set dummy as; ac_word=$2
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6464. $as_echo_n "checking for $ac_word... " >&6; }
  6465. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6466. $as_echo_n "(cached) " >&6
  6467. else
  6468. if test -n "$ac_ct_AS"; then
  6469. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6470. else
  6471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6472. for as_dir in $PATH
  6473. do
  6474. IFS=$as_save_IFS
  6475. test -z "$as_dir" && as_dir=.
  6476. for ac_exec_ext in '' $ac_executable_extensions; do
  6477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6478. ac_cv_prog_ac_ct_AS="as"
  6479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6480. break 2
  6481. fi
  6482. done
  6483. done
  6484. IFS=$as_save_IFS
  6485. fi
  6486. fi
  6487. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6488. if test -n "$ac_ct_AS"; then
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6490. $as_echo "$ac_ct_AS" >&6; }
  6491. else
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6493. $as_echo "no" >&6; }
  6494. fi
  6495. if test "x$ac_ct_AS" = x; then
  6496. AS="false"
  6497. else
  6498. case $cross_compiling:$ac_tool_warned in
  6499. yes:)
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6501. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6502. ac_tool_warned=yes ;;
  6503. esac
  6504. AS=$ac_ct_AS
  6505. fi
  6506. else
  6507. AS="$ac_cv_prog_AS"
  6508. fi
  6509. if test -n "$ac_tool_prefix"; then
  6510. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6511. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6513. $as_echo_n "checking for $ac_word... " >&6; }
  6514. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. if test -n "$DLLTOOL"; then
  6518. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6519. else
  6520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6521. for as_dir in $PATH
  6522. do
  6523. IFS=$as_save_IFS
  6524. test -z "$as_dir" && as_dir=.
  6525. for ac_exec_ext in '' $ac_executable_extensions; do
  6526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6527. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6529. break 2
  6530. fi
  6531. done
  6532. done
  6533. IFS=$as_save_IFS
  6534. fi
  6535. fi
  6536. DLLTOOL=$ac_cv_prog_DLLTOOL
  6537. if test -n "$DLLTOOL"; then
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6539. $as_echo "$DLLTOOL" >&6; }
  6540. else
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6542. $as_echo "no" >&6; }
  6543. fi
  6544. fi
  6545. if test -z "$ac_cv_prog_DLLTOOL"; then
  6546. ac_ct_DLLTOOL=$DLLTOOL
  6547. # Extract the first word of "dlltool", so it can be a program name with args.
  6548. set dummy dlltool; ac_word=$2
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6550. $as_echo_n "checking for $ac_word... " >&6; }
  6551. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. if test -n "$ac_ct_DLLTOOL"; then
  6555. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6556. else
  6557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6558. for as_dir in $PATH
  6559. do
  6560. IFS=$as_save_IFS
  6561. test -z "$as_dir" && as_dir=.
  6562. for ac_exec_ext in '' $ac_executable_extensions; do
  6563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6564. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6566. break 2
  6567. fi
  6568. done
  6569. done
  6570. IFS=$as_save_IFS
  6571. fi
  6572. fi
  6573. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6574. if test -n "$ac_ct_DLLTOOL"; then
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6576. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6577. else
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6579. $as_echo "no" >&6; }
  6580. fi
  6581. if test "x$ac_ct_DLLTOOL" = x; then
  6582. DLLTOOL="false"
  6583. else
  6584. case $cross_compiling:$ac_tool_warned in
  6585. yes:)
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6588. ac_tool_warned=yes ;;
  6589. esac
  6590. DLLTOOL=$ac_ct_DLLTOOL
  6591. fi
  6592. else
  6593. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6594. fi
  6595. if test -n "$ac_tool_prefix"; then
  6596. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6597. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6599. $as_echo_n "checking for $ac_word... " >&6; }
  6600. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6601. $as_echo_n "(cached) " >&6
  6602. else
  6603. if test -n "$OBJDUMP"; then
  6604. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6605. else
  6606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6607. for as_dir in $PATH
  6608. do
  6609. IFS=$as_save_IFS
  6610. test -z "$as_dir" && as_dir=.
  6611. for ac_exec_ext in '' $ac_executable_extensions; do
  6612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6613. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6615. break 2
  6616. fi
  6617. done
  6618. done
  6619. IFS=$as_save_IFS
  6620. fi
  6621. fi
  6622. OBJDUMP=$ac_cv_prog_OBJDUMP
  6623. if test -n "$OBJDUMP"; then
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6625. $as_echo "$OBJDUMP" >&6; }
  6626. else
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. $as_echo "no" >&6; }
  6629. fi
  6630. fi
  6631. if test -z "$ac_cv_prog_OBJDUMP"; then
  6632. ac_ct_OBJDUMP=$OBJDUMP
  6633. # Extract the first word of "objdump", so it can be a program name with args.
  6634. set dummy objdump; ac_word=$2
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6636. $as_echo_n "checking for $ac_word... " >&6; }
  6637. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. if test -n "$ac_ct_OBJDUMP"; then
  6641. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6642. else
  6643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6644. for as_dir in $PATH
  6645. do
  6646. IFS=$as_save_IFS
  6647. test -z "$as_dir" && as_dir=.
  6648. for ac_exec_ext in '' $ac_executable_extensions; do
  6649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6650. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6652. break 2
  6653. fi
  6654. done
  6655. done
  6656. IFS=$as_save_IFS
  6657. fi
  6658. fi
  6659. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6660. if test -n "$ac_ct_OBJDUMP"; then
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6662. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6663. else
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6665. $as_echo "no" >&6; }
  6666. fi
  6667. if test "x$ac_ct_OBJDUMP" = x; then
  6668. OBJDUMP="false"
  6669. else
  6670. case $cross_compiling:$ac_tool_warned in
  6671. yes:)
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6674. ac_tool_warned=yes ;;
  6675. esac
  6676. OBJDUMP=$ac_ct_OBJDUMP
  6677. fi
  6678. else
  6679. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6680. fi
  6681. ;;
  6682. esac
  6683. test -z "$AS" && AS=as
  6684. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6685. test -z "$OBJDUMP" && OBJDUMP=objdump
  6686. enable_dlopen=no
  6687. # Check whether --enable-shared was given.
  6688. if test "${enable_shared+set}" = set; then :
  6689. enableval=$enable_shared; p=${PACKAGE-default}
  6690. case $enableval in
  6691. yes) enable_shared=yes ;;
  6692. no) enable_shared=no ;;
  6693. *)
  6694. enable_shared=no
  6695. # Look at the argument we got. We use all the common list separators.
  6696. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6697. for pkg in $enableval; do
  6698. IFS="$lt_save_ifs"
  6699. if test "X$pkg" = "X$p"; then
  6700. enable_shared=yes
  6701. fi
  6702. done
  6703. IFS="$lt_save_ifs"
  6704. ;;
  6705. esac
  6706. else
  6707. enable_shared=yes
  6708. fi
  6709. # Check whether --enable-static was given.
  6710. if test "${enable_static+set}" = set; then :
  6711. enableval=$enable_static; p=${PACKAGE-default}
  6712. case $enableval in
  6713. yes) enable_static=yes ;;
  6714. no) enable_static=no ;;
  6715. *)
  6716. enable_static=no
  6717. # Look at the argument we got. We use all the common list separators.
  6718. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6719. for pkg in $enableval; do
  6720. IFS="$lt_save_ifs"
  6721. if test "X$pkg" = "X$p"; then
  6722. enable_static=yes
  6723. fi
  6724. done
  6725. IFS="$lt_save_ifs"
  6726. ;;
  6727. esac
  6728. else
  6729. enable_static=yes
  6730. fi
  6731. # Check whether --with-pic was given.
  6732. if test "${with_pic+set}" = set; then :
  6733. withval=$with_pic; lt_p=${PACKAGE-default}
  6734. case $withval in
  6735. yes|no) pic_mode=$withval ;;
  6736. *)
  6737. pic_mode=default
  6738. # Look at the argument we got. We use all the common list separators.
  6739. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6740. for lt_pkg in $withval; do
  6741. IFS="$lt_save_ifs"
  6742. if test "X$lt_pkg" = "X$lt_p"; then
  6743. pic_mode=yes
  6744. fi
  6745. done
  6746. IFS="$lt_save_ifs"
  6747. ;;
  6748. esac
  6749. else
  6750. pic_mode=default
  6751. fi
  6752. test -z "$pic_mode" && pic_mode=default
  6753. # Check whether --enable-fast-install was given.
  6754. if test "${enable_fast_install+set}" = set; then :
  6755. enableval=$enable_fast_install; p=${PACKAGE-default}
  6756. case $enableval in
  6757. yes) enable_fast_install=yes ;;
  6758. no) enable_fast_install=no ;;
  6759. *)
  6760. enable_fast_install=no
  6761. # Look at the argument we got. We use all the common list separators.
  6762. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6763. for pkg in $enableval; do
  6764. IFS="$lt_save_ifs"
  6765. if test "X$pkg" = "X$p"; then
  6766. enable_fast_install=yes
  6767. fi
  6768. done
  6769. IFS="$lt_save_ifs"
  6770. ;;
  6771. esac
  6772. else
  6773. enable_fast_install=yes
  6774. fi
  6775. # This can be used to rebuild libtool when needed
  6776. LIBTOOL_DEPS="$ltmain"
  6777. # Always use our own libtool.
  6778. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6779. test -z "$LN_S" && LN_S="ln -s"
  6780. if test -n "${ZSH_VERSION+set}" ; then
  6781. setopt NO_GLOB_SUBST
  6782. fi
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6784. $as_echo_n "checking for objdir... " >&6; }
  6785. if ${lt_cv_objdir+:} false; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. rm -f .libs 2>/dev/null
  6789. mkdir .libs 2>/dev/null
  6790. if test -d .libs; then
  6791. lt_cv_objdir=.libs
  6792. else
  6793. # MS-DOS does not allow filenames that begin with a dot.
  6794. lt_cv_objdir=_libs
  6795. fi
  6796. rmdir .libs 2>/dev/null
  6797. fi
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6799. $as_echo "$lt_cv_objdir" >&6; }
  6800. objdir=$lt_cv_objdir
  6801. cat >>confdefs.h <<_ACEOF
  6802. #define LT_OBJDIR "$lt_cv_objdir/"
  6803. _ACEOF
  6804. case $host_os in
  6805. aix3*)
  6806. # AIX sometimes has problems with the GCC collect2 program. For some
  6807. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6808. # vanish in a puff of smoke.
  6809. if test "X${COLLECT_NAMES+set}" != Xset; then
  6810. COLLECT_NAMES=
  6811. export COLLECT_NAMES
  6812. fi
  6813. ;;
  6814. esac
  6815. # Global variables:
  6816. ofile=libtool
  6817. can_build_shared=yes
  6818. # All known linkers require a `.a' archive for static linking (except MSVC,
  6819. # which needs '.lib').
  6820. libext=a
  6821. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6822. old_CC="$CC"
  6823. old_CFLAGS="$CFLAGS"
  6824. # Set sane defaults for various variables
  6825. test -z "$CC" && CC=cc
  6826. test -z "$LTCC" && LTCC=$CC
  6827. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6828. test -z "$LD" && LD=ld
  6829. test -z "$ac_objext" && ac_objext=o
  6830. for cc_temp in $compiler""; do
  6831. case $cc_temp in
  6832. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6833. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6834. \-*) ;;
  6835. *) break;;
  6836. esac
  6837. done
  6838. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6839. # Only perform the check for file, if the check method requires it
  6840. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6841. case $deplibs_check_method in
  6842. file_magic*)
  6843. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6845. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6846. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6847. $as_echo_n "(cached) " >&6
  6848. else
  6849. case $MAGIC_CMD in
  6850. [\\/*] | ?:[\\/]*)
  6851. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6852. ;;
  6853. *)
  6854. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6855. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6856. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6857. for ac_dir in $ac_dummy; do
  6858. IFS="$lt_save_ifs"
  6859. test -z "$ac_dir" && ac_dir=.
  6860. if test -f $ac_dir/${ac_tool_prefix}file; then
  6861. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6862. if test -n "$file_magic_test_file"; then
  6863. case $deplibs_check_method in
  6864. "file_magic "*)
  6865. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6866. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6867. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6868. $EGREP "$file_magic_regex" > /dev/null; then
  6869. :
  6870. else
  6871. cat <<_LT_EOF 1>&2
  6872. *** Warning: the command libtool uses to detect shared libraries,
  6873. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6874. *** The result is that libtool may fail to recognize shared libraries
  6875. *** as such. This will affect the creation of libtool libraries that
  6876. *** depend on shared libraries, but programs linked with such libtool
  6877. *** libraries will work regardless of this problem. Nevertheless, you
  6878. *** may want to report the problem to your system manager and/or to
  6879. *** bug-libtool@gnu.org
  6880. _LT_EOF
  6881. fi ;;
  6882. esac
  6883. fi
  6884. break
  6885. fi
  6886. done
  6887. IFS="$lt_save_ifs"
  6888. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6889. ;;
  6890. esac
  6891. fi
  6892. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6893. if test -n "$MAGIC_CMD"; then
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6895. $as_echo "$MAGIC_CMD" >&6; }
  6896. else
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6898. $as_echo "no" >&6; }
  6899. fi
  6900. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6901. if test -n "$ac_tool_prefix"; then
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6903. $as_echo_n "checking for file... " >&6; }
  6904. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. case $MAGIC_CMD in
  6908. [\\/*] | ?:[\\/]*)
  6909. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6910. ;;
  6911. *)
  6912. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6913. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6914. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6915. for ac_dir in $ac_dummy; do
  6916. IFS="$lt_save_ifs"
  6917. test -z "$ac_dir" && ac_dir=.
  6918. if test -f $ac_dir/file; then
  6919. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6920. if test -n "$file_magic_test_file"; then
  6921. case $deplibs_check_method in
  6922. "file_magic "*)
  6923. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6924. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6925. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6926. $EGREP "$file_magic_regex" > /dev/null; then
  6927. :
  6928. else
  6929. cat <<_LT_EOF 1>&2
  6930. *** Warning: the command libtool uses to detect shared libraries,
  6931. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6932. *** The result is that libtool may fail to recognize shared libraries
  6933. *** as such. This will affect the creation of libtool libraries that
  6934. *** depend on shared libraries, but programs linked with such libtool
  6935. *** libraries will work regardless of this problem. Nevertheless, you
  6936. *** may want to report the problem to your system manager and/or to
  6937. *** bug-libtool@gnu.org
  6938. _LT_EOF
  6939. fi ;;
  6940. esac
  6941. fi
  6942. break
  6943. fi
  6944. done
  6945. IFS="$lt_save_ifs"
  6946. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6947. ;;
  6948. esac
  6949. fi
  6950. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6951. if test -n "$MAGIC_CMD"; then
  6952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6953. $as_echo "$MAGIC_CMD" >&6; }
  6954. else
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6956. $as_echo "no" >&6; }
  6957. fi
  6958. else
  6959. MAGIC_CMD=:
  6960. fi
  6961. fi
  6962. fi
  6963. ;;
  6964. esac
  6965. # Use C for the default configuration in the libtool script
  6966. lt_save_CC="$CC"
  6967. ac_ext=c
  6968. ac_cpp='$CPP $CPPFLAGS'
  6969. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6970. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6971. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6972. # Source file extension for C test sources.
  6973. ac_ext=c
  6974. # Object file extension for compiled C test sources.
  6975. objext=o
  6976. objext=$objext
  6977. # Code to be used in simple compile tests
  6978. lt_simple_compile_test_code="int some_variable = 0;"
  6979. # Code to be used in simple link tests
  6980. lt_simple_link_test_code='int main(){return(0);}'
  6981. # If no C compiler was specified, use CC.
  6982. LTCC=${LTCC-"$CC"}
  6983. # If no C compiler flags were specified, use CFLAGS.
  6984. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6985. # Allow CC to be a program name with arguments.
  6986. compiler=$CC
  6987. # Save the default compiler, since it gets overwritten when the other
  6988. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6989. compiler_DEFAULT=$CC
  6990. # save warnings/boilerplate of simple test code
  6991. ac_outfile=conftest.$ac_objext
  6992. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6993. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6994. _lt_compiler_boilerplate=`cat conftest.err`
  6995. $RM conftest*
  6996. ac_outfile=conftest.$ac_objext
  6997. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6998. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6999. _lt_linker_boilerplate=`cat conftest.err`
  7000. $RM -r conftest*
  7001. ## CAVEAT EMPTOR:
  7002. ## There is no encapsulation within the following macros, do not change
  7003. ## the running order or otherwise move them around unless you know exactly
  7004. ## what you are doing...
  7005. if test -n "$compiler"; then
  7006. lt_prog_compiler_no_builtin_flag=
  7007. if test "$GCC" = yes; then
  7008. case $cc_basename in
  7009. nvcc*)
  7010. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7011. *)
  7012. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7013. esac
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7015. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7016. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. lt_cv_prog_compiler_rtti_exceptions=no
  7020. ac_outfile=conftest.$ac_objext
  7021. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7022. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7023. # Insert the option either (1) after the last *FLAGS variable, or
  7024. # (2) before a word containing "conftest.", or (3) at the end.
  7025. # Note that $ac_compile itself does not contain backslashes and begins
  7026. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7027. # The option is referenced via a variable to avoid confusing sed.
  7028. lt_compile=`echo "$ac_compile" | $SED \
  7029. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7030. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7031. -e 's:$: $lt_compiler_flag:'`
  7032. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7033. (eval "$lt_compile" 2>conftest.err)
  7034. ac_status=$?
  7035. cat conftest.err >&5
  7036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7037. if (exit $ac_status) && test -s "$ac_outfile"; then
  7038. # The compiler can only warn and ignore the option if not recognized
  7039. # So say no if there are warnings other than the usual output.
  7040. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7041. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7042. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7043. lt_cv_prog_compiler_rtti_exceptions=yes
  7044. fi
  7045. fi
  7046. $RM conftest*
  7047. fi
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7049. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7050. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7051. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7052. else
  7053. :
  7054. fi
  7055. fi
  7056. lt_prog_compiler_wl=
  7057. lt_prog_compiler_pic=
  7058. lt_prog_compiler_static=
  7059. if test "$GCC" = yes; then
  7060. lt_prog_compiler_wl='-Wl,'
  7061. lt_prog_compiler_static='-static'
  7062. case $host_os in
  7063. aix*)
  7064. # All AIX code is PIC.
  7065. if test "$host_cpu" = ia64; then
  7066. # AIX 5 now supports IA64 processor
  7067. lt_prog_compiler_static='-Bstatic'
  7068. fi
  7069. ;;
  7070. amigaos*)
  7071. case $host_cpu in
  7072. powerpc)
  7073. # see comment about AmigaOS4 .so support
  7074. lt_prog_compiler_pic='-fPIC'
  7075. ;;
  7076. m68k)
  7077. # FIXME: we need at least 68020 code to build shared libraries, but
  7078. # adding the `-m68020' flag to GCC prevents building anything better,
  7079. # like `-m68040'.
  7080. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7081. ;;
  7082. esac
  7083. ;;
  7084. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7085. # PIC is the default for these OSes.
  7086. ;;
  7087. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7088. # This hack is so that the source file can tell whether it is being
  7089. # built for inclusion in a dll (and should export symbols for example).
  7090. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7091. # (--disable-auto-import) libraries
  7092. lt_prog_compiler_pic='-DDLL_EXPORT'
  7093. ;;
  7094. darwin* | rhapsody*)
  7095. # PIC is the default on this platform
  7096. # Common symbols not allowed in MH_DYLIB files
  7097. lt_prog_compiler_pic='-fno-common'
  7098. ;;
  7099. haiku*)
  7100. # PIC is the default for Haiku.
  7101. # The "-static" flag exists, but is broken.
  7102. lt_prog_compiler_static=
  7103. ;;
  7104. hpux*)
  7105. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7106. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7107. # sets the default TLS model and affects inlining.
  7108. case $host_cpu in
  7109. hppa*64*)
  7110. # +Z the default
  7111. ;;
  7112. *)
  7113. lt_prog_compiler_pic='-fPIC'
  7114. ;;
  7115. esac
  7116. ;;
  7117. interix[3-9]*)
  7118. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7119. # Instead, we relocate shared libraries at runtime.
  7120. ;;
  7121. msdosdjgpp*)
  7122. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7123. # on systems that don't support them.
  7124. lt_prog_compiler_can_build_shared=no
  7125. enable_shared=no
  7126. ;;
  7127. *nto* | *qnx*)
  7128. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7129. # it will coredump.
  7130. lt_prog_compiler_pic='-fPIC -shared'
  7131. ;;
  7132. sysv4*MP*)
  7133. if test -d /usr/nec; then
  7134. lt_prog_compiler_pic=-Kconform_pic
  7135. fi
  7136. ;;
  7137. *)
  7138. lt_prog_compiler_pic='-fPIC'
  7139. ;;
  7140. esac
  7141. case $cc_basename in
  7142. nvcc*) # Cuda Compiler Driver 2.2
  7143. lt_prog_compiler_wl='-Xlinker '
  7144. if test -n "$lt_prog_compiler_pic"; then
  7145. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7146. fi
  7147. ;;
  7148. esac
  7149. else
  7150. # PORTME Check for flag to pass linker flags through the system compiler.
  7151. case $host_os in
  7152. aix*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. if test "$host_cpu" = ia64; then
  7155. # AIX 5 now supports IA64 processor
  7156. lt_prog_compiler_static='-Bstatic'
  7157. else
  7158. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7159. fi
  7160. ;;
  7161. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7162. # This hack is so that the source file can tell whether it is being
  7163. # built for inclusion in a dll (and should export symbols for example).
  7164. lt_prog_compiler_pic='-DDLL_EXPORT'
  7165. ;;
  7166. hpux9* | hpux10* | hpux11*)
  7167. lt_prog_compiler_wl='-Wl,'
  7168. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7169. # not for PA HP-UX.
  7170. case $host_cpu in
  7171. hppa*64*|ia64*)
  7172. # +Z the default
  7173. ;;
  7174. *)
  7175. lt_prog_compiler_pic='+Z'
  7176. ;;
  7177. esac
  7178. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7179. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7180. ;;
  7181. irix5* | irix6* | nonstopux*)
  7182. lt_prog_compiler_wl='-Wl,'
  7183. # PIC (with -KPIC) is the default.
  7184. lt_prog_compiler_static='-non_shared'
  7185. ;;
  7186. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7187. case $cc_basename in
  7188. # old Intel for x86_64 which still supported -KPIC.
  7189. ecc*)
  7190. lt_prog_compiler_wl='-Wl,'
  7191. lt_prog_compiler_pic='-KPIC'
  7192. lt_prog_compiler_static='-static'
  7193. ;;
  7194. # icc used to be incompatible with GCC.
  7195. # ICC 10 doesn't accept -KPIC any more.
  7196. icc* | ifort*)
  7197. lt_prog_compiler_wl='-Wl,'
  7198. lt_prog_compiler_pic='-fPIC'
  7199. lt_prog_compiler_static='-static'
  7200. ;;
  7201. # Lahey Fortran 8.1.
  7202. lf95*)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. lt_prog_compiler_pic='--shared'
  7205. lt_prog_compiler_static='--static'
  7206. ;;
  7207. nagfor*)
  7208. # NAG Fortran compiler
  7209. lt_prog_compiler_wl='-Wl,-Wl,,'
  7210. lt_prog_compiler_pic='-PIC'
  7211. lt_prog_compiler_static='-Bstatic'
  7212. ;;
  7213. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7214. # Portland Group compilers (*not* the Pentium gcc compiler,
  7215. # which looks to be a dead project)
  7216. lt_prog_compiler_wl='-Wl,'
  7217. lt_prog_compiler_pic='-fpic'
  7218. lt_prog_compiler_static='-Bstatic'
  7219. ;;
  7220. ccc*)
  7221. lt_prog_compiler_wl='-Wl,'
  7222. # All Alpha code is PIC.
  7223. lt_prog_compiler_static='-non_shared'
  7224. ;;
  7225. xl* | bgxl* | bgf* | mpixl*)
  7226. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7227. lt_prog_compiler_wl='-Wl,'
  7228. lt_prog_compiler_pic='-qpic'
  7229. lt_prog_compiler_static='-qstaticlink'
  7230. ;;
  7231. *)
  7232. case `$CC -V 2>&1 | sed 5q` in
  7233. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7234. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7235. lt_prog_compiler_pic='-KPIC'
  7236. lt_prog_compiler_static='-Bstatic'
  7237. lt_prog_compiler_wl=''
  7238. ;;
  7239. *Sun\ F* | *Sun*Fortran*)
  7240. lt_prog_compiler_pic='-KPIC'
  7241. lt_prog_compiler_static='-Bstatic'
  7242. lt_prog_compiler_wl='-Qoption ld '
  7243. ;;
  7244. *Sun\ C*)
  7245. # Sun C 5.9
  7246. lt_prog_compiler_pic='-KPIC'
  7247. lt_prog_compiler_static='-Bstatic'
  7248. lt_prog_compiler_wl='-Wl,'
  7249. ;;
  7250. *Intel*\ [CF]*Compiler*)
  7251. lt_prog_compiler_wl='-Wl,'
  7252. lt_prog_compiler_pic='-fPIC'
  7253. lt_prog_compiler_static='-static'
  7254. ;;
  7255. *Portland\ Group*)
  7256. lt_prog_compiler_wl='-Wl,'
  7257. lt_prog_compiler_pic='-fpic'
  7258. lt_prog_compiler_static='-Bstatic'
  7259. ;;
  7260. esac
  7261. ;;
  7262. esac
  7263. ;;
  7264. newsos6)
  7265. lt_prog_compiler_pic='-KPIC'
  7266. lt_prog_compiler_static='-Bstatic'
  7267. ;;
  7268. *nto* | *qnx*)
  7269. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7270. # it will coredump.
  7271. lt_prog_compiler_pic='-fPIC -shared'
  7272. ;;
  7273. osf3* | osf4* | osf5*)
  7274. lt_prog_compiler_wl='-Wl,'
  7275. # All OSF/1 code is PIC.
  7276. lt_prog_compiler_static='-non_shared'
  7277. ;;
  7278. rdos*)
  7279. lt_prog_compiler_static='-non_shared'
  7280. ;;
  7281. solaris*)
  7282. lt_prog_compiler_pic='-KPIC'
  7283. lt_prog_compiler_static='-Bstatic'
  7284. case $cc_basename in
  7285. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7286. lt_prog_compiler_wl='-Qoption ld ';;
  7287. *)
  7288. lt_prog_compiler_wl='-Wl,';;
  7289. esac
  7290. ;;
  7291. sunos4*)
  7292. lt_prog_compiler_wl='-Qoption ld '
  7293. lt_prog_compiler_pic='-PIC'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. ;;
  7296. sysv4 | sysv4.2uw2* | sysv4.3*)
  7297. lt_prog_compiler_wl='-Wl,'
  7298. lt_prog_compiler_pic='-KPIC'
  7299. lt_prog_compiler_static='-Bstatic'
  7300. ;;
  7301. sysv4*MP*)
  7302. if test -d /usr/nec ;then
  7303. lt_prog_compiler_pic='-Kconform_pic'
  7304. lt_prog_compiler_static='-Bstatic'
  7305. fi
  7306. ;;
  7307. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7308. lt_prog_compiler_wl='-Wl,'
  7309. lt_prog_compiler_pic='-KPIC'
  7310. lt_prog_compiler_static='-Bstatic'
  7311. ;;
  7312. unicos*)
  7313. lt_prog_compiler_wl='-Wl,'
  7314. lt_prog_compiler_can_build_shared=no
  7315. ;;
  7316. uts4*)
  7317. lt_prog_compiler_pic='-pic'
  7318. lt_prog_compiler_static='-Bstatic'
  7319. ;;
  7320. *)
  7321. lt_prog_compiler_can_build_shared=no
  7322. ;;
  7323. esac
  7324. fi
  7325. case $host_os in
  7326. # For platforms which do not support PIC, -DPIC is meaningless:
  7327. *djgpp*)
  7328. lt_prog_compiler_pic=
  7329. ;;
  7330. *)
  7331. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7332. ;;
  7333. esac
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7335. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7336. if ${lt_cv_prog_compiler_pic+:} false; then :
  7337. $as_echo_n "(cached) " >&6
  7338. else
  7339. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7342. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7343. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7344. #
  7345. # Check to make sure the PIC flag actually works.
  7346. #
  7347. if test -n "$lt_prog_compiler_pic"; then
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7349. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7350. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7351. $as_echo_n "(cached) " >&6
  7352. else
  7353. lt_cv_prog_compiler_pic_works=no
  7354. ac_outfile=conftest.$ac_objext
  7355. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7356. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7357. # Insert the option either (1) after the last *FLAGS variable, or
  7358. # (2) before a word containing "conftest.", or (3) at the end.
  7359. # Note that $ac_compile itself does not contain backslashes and begins
  7360. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7361. # The option is referenced via a variable to avoid confusing sed.
  7362. lt_compile=`echo "$ac_compile" | $SED \
  7363. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7364. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7365. -e 's:$: $lt_compiler_flag:'`
  7366. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7367. (eval "$lt_compile" 2>conftest.err)
  7368. ac_status=$?
  7369. cat conftest.err >&5
  7370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7371. if (exit $ac_status) && test -s "$ac_outfile"; then
  7372. # The compiler can only warn and ignore the option if not recognized
  7373. # So say no if there are warnings other than the usual output.
  7374. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7375. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7376. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7377. lt_cv_prog_compiler_pic_works=yes
  7378. fi
  7379. fi
  7380. $RM conftest*
  7381. fi
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7383. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7384. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7385. case $lt_prog_compiler_pic in
  7386. "" | " "*) ;;
  7387. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7388. esac
  7389. else
  7390. lt_prog_compiler_pic=
  7391. lt_prog_compiler_can_build_shared=no
  7392. fi
  7393. fi
  7394. #
  7395. # Check to make sure the static flag actually works.
  7396. #
  7397. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7399. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7400. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7401. $as_echo_n "(cached) " >&6
  7402. else
  7403. lt_cv_prog_compiler_static_works=no
  7404. save_LDFLAGS="$LDFLAGS"
  7405. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7406. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7407. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7408. # The linker can only warn and ignore the option if not recognized
  7409. # So say no if there are warnings
  7410. if test -s conftest.err; then
  7411. # Append any errors to the config.log.
  7412. cat conftest.err 1>&5
  7413. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7414. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7415. if diff conftest.exp conftest.er2 >/dev/null; then
  7416. lt_cv_prog_compiler_static_works=yes
  7417. fi
  7418. else
  7419. lt_cv_prog_compiler_static_works=yes
  7420. fi
  7421. fi
  7422. $RM -r conftest*
  7423. LDFLAGS="$save_LDFLAGS"
  7424. fi
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7426. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7427. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7428. :
  7429. else
  7430. lt_prog_compiler_static=
  7431. fi
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7433. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7434. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7435. $as_echo_n "(cached) " >&6
  7436. else
  7437. lt_cv_prog_compiler_c_o=no
  7438. $RM -r conftest 2>/dev/null
  7439. mkdir conftest
  7440. cd conftest
  7441. mkdir out
  7442. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7443. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7444. # Insert the option either (1) after the last *FLAGS variable, or
  7445. # (2) before a word containing "conftest.", or (3) at the end.
  7446. # Note that $ac_compile itself does not contain backslashes and begins
  7447. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7448. lt_compile=`echo "$ac_compile" | $SED \
  7449. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7450. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7451. -e 's:$: $lt_compiler_flag:'`
  7452. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7453. (eval "$lt_compile" 2>out/conftest.err)
  7454. ac_status=$?
  7455. cat out/conftest.err >&5
  7456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7457. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7458. then
  7459. # The compiler can only warn and ignore the option if not recognized
  7460. # So say no if there are warnings
  7461. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7462. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7463. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7464. lt_cv_prog_compiler_c_o=yes
  7465. fi
  7466. fi
  7467. chmod u+w . 2>&5
  7468. $RM conftest*
  7469. # SGI C++ compiler will create directory out/ii_files/ for
  7470. # template instantiation
  7471. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7472. $RM out/* && rmdir out
  7473. cd ..
  7474. $RM -r conftest
  7475. $RM conftest*
  7476. fi
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7478. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7480. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7481. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7482. $as_echo_n "(cached) " >&6
  7483. else
  7484. lt_cv_prog_compiler_c_o=no
  7485. $RM -r conftest 2>/dev/null
  7486. mkdir conftest
  7487. cd conftest
  7488. mkdir out
  7489. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7490. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7491. # Insert the option either (1) after the last *FLAGS variable, or
  7492. # (2) before a word containing "conftest.", or (3) at the end.
  7493. # Note that $ac_compile itself does not contain backslashes and begins
  7494. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7495. lt_compile=`echo "$ac_compile" | $SED \
  7496. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7497. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7498. -e 's:$: $lt_compiler_flag:'`
  7499. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7500. (eval "$lt_compile" 2>out/conftest.err)
  7501. ac_status=$?
  7502. cat out/conftest.err >&5
  7503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7504. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7505. then
  7506. # The compiler can only warn and ignore the option if not recognized
  7507. # So say no if there are warnings
  7508. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7509. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7510. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7511. lt_cv_prog_compiler_c_o=yes
  7512. fi
  7513. fi
  7514. chmod u+w . 2>&5
  7515. $RM conftest*
  7516. # SGI C++ compiler will create directory out/ii_files/ for
  7517. # template instantiation
  7518. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7519. $RM out/* && rmdir out
  7520. cd ..
  7521. $RM -r conftest
  7522. $RM conftest*
  7523. fi
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7525. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7526. hard_links="nottested"
  7527. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7528. # do not overwrite the value of need_locks provided by the user
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7530. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7531. hard_links=yes
  7532. $RM conftest*
  7533. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7534. touch conftest.a
  7535. ln conftest.a conftest.b 2>&5 || hard_links=no
  7536. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7538. $as_echo "$hard_links" >&6; }
  7539. if test "$hard_links" = no; then
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7541. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7542. need_locks=warn
  7543. fi
  7544. else
  7545. need_locks=no
  7546. fi
  7547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7548. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7549. runpath_var=
  7550. allow_undefined_flag=
  7551. always_export_symbols=no
  7552. archive_cmds=
  7553. archive_expsym_cmds=
  7554. compiler_needs_object=no
  7555. enable_shared_with_static_runtimes=no
  7556. export_dynamic_flag_spec=
  7557. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7558. hardcode_automatic=no
  7559. hardcode_direct=no
  7560. hardcode_direct_absolute=no
  7561. hardcode_libdir_flag_spec=
  7562. hardcode_libdir_separator=
  7563. hardcode_minus_L=no
  7564. hardcode_shlibpath_var=unsupported
  7565. inherit_rpath=no
  7566. link_all_deplibs=unknown
  7567. module_cmds=
  7568. module_expsym_cmds=
  7569. old_archive_from_new_cmds=
  7570. old_archive_from_expsyms_cmds=
  7571. thread_safe_flag_spec=
  7572. whole_archive_flag_spec=
  7573. # include_expsyms should be a list of space-separated symbols to be *always*
  7574. # included in the symbol list
  7575. include_expsyms=
  7576. # exclude_expsyms can be an extended regexp of symbols to exclude
  7577. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7578. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7579. # as well as any symbol that contains `d'.
  7580. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7581. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7582. # platforms (ab)use it in PIC code, but their linkers get confused if
  7583. # the symbol is explicitly referenced. Since portable code cannot
  7584. # rely on this symbol name, it's probably fine to never include it in
  7585. # preloaded symbol tables.
  7586. # Exclude shared library initialization/finalization symbols.
  7587. extract_expsyms_cmds=
  7588. case $host_os in
  7589. cygwin* | mingw* | pw32* | cegcc*)
  7590. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7591. # When not using gcc, we currently assume that we are using
  7592. # Microsoft Visual C++.
  7593. if test "$GCC" != yes; then
  7594. with_gnu_ld=no
  7595. fi
  7596. ;;
  7597. interix*)
  7598. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7599. with_gnu_ld=yes
  7600. ;;
  7601. openbsd*)
  7602. with_gnu_ld=no
  7603. ;;
  7604. esac
  7605. ld_shlibs=yes
  7606. # On some targets, GNU ld is compatible enough with the native linker
  7607. # that we're better off using the native interface for both.
  7608. lt_use_gnu_ld_interface=no
  7609. if test "$with_gnu_ld" = yes; then
  7610. case $host_os in
  7611. aix*)
  7612. # The AIX port of GNU ld has always aspired to compatibility
  7613. # with the native linker. However, as the warning in the GNU ld
  7614. # block says, versions before 2.19.5* couldn't really create working
  7615. # shared libraries, regardless of the interface used.
  7616. case `$LD -v 2>&1` in
  7617. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7618. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7619. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7620. *)
  7621. lt_use_gnu_ld_interface=yes
  7622. ;;
  7623. esac
  7624. ;;
  7625. *)
  7626. lt_use_gnu_ld_interface=yes
  7627. ;;
  7628. esac
  7629. fi
  7630. if test "$lt_use_gnu_ld_interface" = yes; then
  7631. # If archive_cmds runs LD, not CC, wlarc should be empty
  7632. wlarc='${wl}'
  7633. # Set some defaults for GNU ld with shared library support. These
  7634. # are reset later if shared libraries are not supported. Putting them
  7635. # here allows them to be overridden if necessary.
  7636. runpath_var=LD_RUN_PATH
  7637. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7638. export_dynamic_flag_spec='${wl}--export-dynamic'
  7639. # ancient GNU ld didn't support --whole-archive et. al.
  7640. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7641. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7642. else
  7643. whole_archive_flag_spec=
  7644. fi
  7645. supports_anon_versioning=no
  7646. case `$LD -v 2>&1` in
  7647. *GNU\ gold*) supports_anon_versioning=yes ;;
  7648. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7649. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7650. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7651. *\ 2.11.*) ;; # other 2.11 versions
  7652. *) supports_anon_versioning=yes ;;
  7653. esac
  7654. # See if GNU ld supports shared libraries.
  7655. case $host_os in
  7656. aix[3-9]*)
  7657. # On AIX/PPC, the GNU linker is very broken
  7658. if test "$host_cpu" != ia64; then
  7659. ld_shlibs=no
  7660. cat <<_LT_EOF 1>&2
  7661. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7662. *** to be unable to reliably create shared libraries on AIX.
  7663. *** Therefore, libtool is disabling shared libraries support. If you
  7664. *** really care for shared libraries, you may want to install binutils
  7665. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7666. *** You will then need to restart the configuration process.
  7667. _LT_EOF
  7668. fi
  7669. ;;
  7670. amigaos*)
  7671. case $host_cpu in
  7672. powerpc)
  7673. # see comment about AmigaOS4 .so support
  7674. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7675. archive_expsym_cmds=''
  7676. ;;
  7677. m68k)
  7678. 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)'
  7679. hardcode_libdir_flag_spec='-L$libdir'
  7680. hardcode_minus_L=yes
  7681. ;;
  7682. esac
  7683. ;;
  7684. beos*)
  7685. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7686. allow_undefined_flag=unsupported
  7687. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7688. # support --undefined. This deserves some investigation. FIXME
  7689. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7690. else
  7691. ld_shlibs=no
  7692. fi
  7693. ;;
  7694. cygwin* | mingw* | pw32* | cegcc*)
  7695. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7696. # as there is no search path for DLLs.
  7697. hardcode_libdir_flag_spec='-L$libdir'
  7698. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7699. allow_undefined_flag=unsupported
  7700. always_export_symbols=no
  7701. enable_shared_with_static_runtimes=yes
  7702. 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'
  7703. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7704. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7705. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7706. # If the export-symbols file already is a .def file (1st line
  7707. # is EXPORTS), use it as is; otherwise, prepend...
  7708. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7709. cp $export_symbols $output_objdir/$soname.def;
  7710. else
  7711. echo EXPORTS > $output_objdir/$soname.def;
  7712. cat $export_symbols >> $output_objdir/$soname.def;
  7713. fi~
  7714. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7715. else
  7716. ld_shlibs=no
  7717. fi
  7718. ;;
  7719. haiku*)
  7720. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7721. link_all_deplibs=yes
  7722. ;;
  7723. interix[3-9]*)
  7724. hardcode_direct=no
  7725. hardcode_shlibpath_var=no
  7726. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7727. export_dynamic_flag_spec='${wl}-E'
  7728. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7729. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7730. # default) and relocated if they conflict, which is a slow very memory
  7731. # consuming and fragmenting process. To avoid this, we pick a random,
  7732. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7733. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7734. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7735. 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'
  7736. ;;
  7737. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7738. tmp_diet=no
  7739. if test "$host_os" = linux-dietlibc; then
  7740. case $cc_basename in
  7741. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7742. esac
  7743. fi
  7744. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7745. && test "$tmp_diet" = no
  7746. then
  7747. tmp_addflag=' $pic_flag'
  7748. tmp_sharedflag='-shared'
  7749. case $cc_basename,$host_cpu in
  7750. pgcc*) # Portland Group C compiler
  7751. 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'
  7752. tmp_addflag=' $pic_flag'
  7753. ;;
  7754. pgf77* | pgf90* | pgf95* | pgfortran*)
  7755. # Portland Group f77 and f90 compilers
  7756. 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'
  7757. tmp_addflag=' $pic_flag -Mnomain' ;;
  7758. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7759. tmp_addflag=' -i_dynamic' ;;
  7760. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7761. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7762. ifc* | ifort*) # Intel Fortran compiler
  7763. tmp_addflag=' -nofor_main' ;;
  7764. lf95*) # Lahey Fortran 8.1
  7765. whole_archive_flag_spec=
  7766. tmp_sharedflag='--shared' ;;
  7767. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7768. tmp_sharedflag='-qmkshrobj'
  7769. tmp_addflag= ;;
  7770. nvcc*) # Cuda Compiler Driver 2.2
  7771. 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'
  7772. compiler_needs_object=yes
  7773. ;;
  7774. esac
  7775. case `$CC -V 2>&1 | sed 5q` in
  7776. *Sun\ C*) # Sun C 5.9
  7777. 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'
  7778. compiler_needs_object=yes
  7779. tmp_sharedflag='-G' ;;
  7780. *Sun\ F*) # Sun Fortran 8.3
  7781. tmp_sharedflag='-G' ;;
  7782. esac
  7783. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7784. if test "x$supports_anon_versioning" = xyes; then
  7785. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7786. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7787. echo "local: *; };" >> $output_objdir/$libname.ver~
  7788. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7789. fi
  7790. case $cc_basename in
  7791. xlf* | bgf* | bgxlf* | mpixlf*)
  7792. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7793. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7794. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7795. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7796. if test "x$supports_anon_versioning" = xyes; then
  7797. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7798. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7799. echo "local: *; };" >> $output_objdir/$libname.ver~
  7800. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7801. fi
  7802. ;;
  7803. esac
  7804. else
  7805. ld_shlibs=no
  7806. fi
  7807. ;;
  7808. netbsd*)
  7809. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7810. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7811. wlarc=
  7812. else
  7813. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7814. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7815. fi
  7816. ;;
  7817. solaris*)
  7818. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7819. ld_shlibs=no
  7820. cat <<_LT_EOF 1>&2
  7821. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7822. *** create shared libraries on Solaris systems. Therefore, libtool
  7823. *** is disabling shared libraries support. We urge you to upgrade GNU
  7824. *** binutils to release 2.9.1 or newer. Another option is to modify
  7825. *** your PATH or compiler configuration so that the native linker is
  7826. *** used, and then restart.
  7827. _LT_EOF
  7828. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7829. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7830. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7831. else
  7832. ld_shlibs=no
  7833. fi
  7834. ;;
  7835. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7836. case `$LD -v 2>&1` in
  7837. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7838. ld_shlibs=no
  7839. cat <<_LT_EOF 1>&2
  7840. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7841. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7842. *** is disabling shared libraries support. We urge you to upgrade GNU
  7843. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7844. *** your PATH or compiler configuration so that the native linker is
  7845. *** used, and then restart.
  7846. _LT_EOF
  7847. ;;
  7848. *)
  7849. # For security reasons, it is highly recommended that you always
  7850. # use absolute paths for naming shared libraries, and exclude the
  7851. # DT_RUNPATH tag from executables and libraries. But doing so
  7852. # requires that you compile everything twice, which is a pain.
  7853. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7854. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7855. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7856. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7857. else
  7858. ld_shlibs=no
  7859. fi
  7860. ;;
  7861. esac
  7862. ;;
  7863. sunos4*)
  7864. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7865. wlarc=
  7866. hardcode_direct=yes
  7867. hardcode_shlibpath_var=no
  7868. ;;
  7869. *)
  7870. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7871. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7872. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7873. else
  7874. ld_shlibs=no
  7875. fi
  7876. ;;
  7877. esac
  7878. if test "$ld_shlibs" = no; then
  7879. runpath_var=
  7880. hardcode_libdir_flag_spec=
  7881. export_dynamic_flag_spec=
  7882. whole_archive_flag_spec=
  7883. fi
  7884. else
  7885. # PORTME fill in a description of your system's linker (not GNU ld)
  7886. case $host_os in
  7887. aix3*)
  7888. allow_undefined_flag=unsupported
  7889. always_export_symbols=yes
  7890. 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'
  7891. # Note: this linker hardcodes the directories in LIBPATH if there
  7892. # are no directories specified by -L.
  7893. hardcode_minus_L=yes
  7894. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7895. # Neither direct hardcoding nor static linking is supported with a
  7896. # broken collect2.
  7897. hardcode_direct=unsupported
  7898. fi
  7899. ;;
  7900. aix[4-9]*)
  7901. if test "$host_cpu" = ia64; then
  7902. # On IA64, the linker does run time linking by default, so we don't
  7903. # have to do anything special.
  7904. aix_use_runtimelinking=no
  7905. exp_sym_flag='-Bexport'
  7906. no_entry_flag=""
  7907. else
  7908. # If we're using GNU nm, then we don't want the "-C" option.
  7909. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7910. # Also, AIX nm treats weak defined symbols like other global
  7911. # defined symbols, whereas GNU nm marks them as "W".
  7912. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7913. 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'
  7914. else
  7915. 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'
  7916. fi
  7917. aix_use_runtimelinking=no
  7918. # Test if we are trying to use run time linking or normal
  7919. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7920. # need to do runtime linking.
  7921. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7922. for ld_flag in $LDFLAGS; do
  7923. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7924. aix_use_runtimelinking=yes
  7925. break
  7926. fi
  7927. done
  7928. ;;
  7929. esac
  7930. exp_sym_flag='-bexport'
  7931. no_entry_flag='-bnoentry'
  7932. fi
  7933. # When large executables or shared objects are built, AIX ld can
  7934. # have problems creating the table of contents. If linking a library
  7935. # or program results in "error TOC overflow" add -mminimal-toc to
  7936. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7937. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7938. archive_cmds=''
  7939. hardcode_direct=yes
  7940. hardcode_direct_absolute=yes
  7941. hardcode_libdir_separator=':'
  7942. link_all_deplibs=yes
  7943. file_list_spec='${wl}-f,'
  7944. if test "$GCC" = yes; then
  7945. case $host_os in aix4.[012]|aix4.[012].*)
  7946. # We only want to do this on AIX 4.2 and lower, the check
  7947. # below for broken collect2 doesn't work under 4.3+
  7948. collect2name=`${CC} -print-prog-name=collect2`
  7949. if test -f "$collect2name" &&
  7950. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7951. then
  7952. # We have reworked collect2
  7953. :
  7954. else
  7955. # We have old collect2
  7956. hardcode_direct=unsupported
  7957. # It fails to find uninstalled libraries when the uninstalled
  7958. # path is not listed in the libpath. Setting hardcode_minus_L
  7959. # to unsupported forces relinking
  7960. hardcode_minus_L=yes
  7961. hardcode_libdir_flag_spec='-L$libdir'
  7962. hardcode_libdir_separator=
  7963. fi
  7964. ;;
  7965. esac
  7966. shared_flag='-shared'
  7967. if test "$aix_use_runtimelinking" = yes; then
  7968. shared_flag="$shared_flag "'${wl}-G'
  7969. fi
  7970. else
  7971. # not using gcc
  7972. if test "$host_cpu" = ia64; then
  7973. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7974. # chokes on -Wl,-G. The following line is correct:
  7975. shared_flag='-G'
  7976. else
  7977. if test "$aix_use_runtimelinking" = yes; then
  7978. shared_flag='${wl}-G'
  7979. else
  7980. shared_flag='${wl}-bM:SRE'
  7981. fi
  7982. fi
  7983. fi
  7984. export_dynamic_flag_spec='${wl}-bexpall'
  7985. # It seems that -bexpall does not export symbols beginning with
  7986. # underscore (_), so it is better to generate a list of symbols to export.
  7987. always_export_symbols=yes
  7988. if test "$aix_use_runtimelinking" = yes; then
  7989. # Warning - without using the other runtime loading flags (-brtl),
  7990. # -berok will link without error, but may produce a broken library.
  7991. allow_undefined_flag='-berok'
  7992. # Determine the default libpath from the value encoded in an
  7993. # empty executable.
  7994. if test "${lt_cv_aix_libpath+set}" = set; then
  7995. aix_libpath=$lt_cv_aix_libpath
  7996. else
  7997. if ${lt_cv_aix_libpath_+:} false; then :
  7998. $as_echo_n "(cached) " >&6
  7999. else
  8000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8001. /* end confdefs.h. */
  8002. int
  8003. main ()
  8004. {
  8005. ;
  8006. return 0;
  8007. }
  8008. _ACEOF
  8009. if ac_fn_c_try_link "$LINENO"; then :
  8010. lt_aix_libpath_sed='
  8011. /Import File Strings/,/^$/ {
  8012. /^0/ {
  8013. s/^0 *\([^ ]*\) *$/\1/
  8014. p
  8015. }
  8016. }'
  8017. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8018. # Check for a 64-bit object if we didn't find anything.
  8019. if test -z "$lt_cv_aix_libpath_"; then
  8020. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8021. fi
  8022. fi
  8023. rm -f core conftest.err conftest.$ac_objext \
  8024. conftest$ac_exeext conftest.$ac_ext
  8025. if test -z "$lt_cv_aix_libpath_"; then
  8026. lt_cv_aix_libpath_="/usr/lib:/lib"
  8027. fi
  8028. fi
  8029. aix_libpath=$lt_cv_aix_libpath_
  8030. fi
  8031. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8032. 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"
  8033. else
  8034. if test "$host_cpu" = ia64; then
  8035. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8036. allow_undefined_flag="-z nodefs"
  8037. 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"
  8038. else
  8039. # Determine the default libpath from the value encoded in an
  8040. # empty executable.
  8041. if test "${lt_cv_aix_libpath+set}" = set; then
  8042. aix_libpath=$lt_cv_aix_libpath
  8043. else
  8044. if ${lt_cv_aix_libpath_+:} false; then :
  8045. $as_echo_n "(cached) " >&6
  8046. else
  8047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8048. /* end confdefs.h. */
  8049. int
  8050. main ()
  8051. {
  8052. ;
  8053. return 0;
  8054. }
  8055. _ACEOF
  8056. if ac_fn_c_try_link "$LINENO"; then :
  8057. lt_aix_libpath_sed='
  8058. /Import File Strings/,/^$/ {
  8059. /^0/ {
  8060. s/^0 *\([^ ]*\) *$/\1/
  8061. p
  8062. }
  8063. }'
  8064. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8065. # Check for a 64-bit object if we didn't find anything.
  8066. if test -z "$lt_cv_aix_libpath_"; then
  8067. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8068. fi
  8069. fi
  8070. rm -f core conftest.err conftest.$ac_objext \
  8071. conftest$ac_exeext conftest.$ac_ext
  8072. if test -z "$lt_cv_aix_libpath_"; then
  8073. lt_cv_aix_libpath_="/usr/lib:/lib"
  8074. fi
  8075. fi
  8076. aix_libpath=$lt_cv_aix_libpath_
  8077. fi
  8078. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8079. # Warning - without using the other run time loading flags,
  8080. # -berok will link without error, but may produce a broken library.
  8081. no_undefined_flag=' ${wl}-bernotok'
  8082. allow_undefined_flag=' ${wl}-berok'
  8083. if test "$with_gnu_ld" = yes; then
  8084. # We only use this code for GNU lds that support --whole-archive.
  8085. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8086. else
  8087. # Exported symbols can be pulled into shared objects from archives
  8088. whole_archive_flag_spec='$convenience'
  8089. fi
  8090. archive_cmds_need_lc=yes
  8091. # This is similar to how AIX traditionally builds its shared libraries.
  8092. 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'
  8093. fi
  8094. fi
  8095. ;;
  8096. amigaos*)
  8097. case $host_cpu in
  8098. powerpc)
  8099. # see comment about AmigaOS4 .so support
  8100. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8101. archive_expsym_cmds=''
  8102. ;;
  8103. m68k)
  8104. 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)'
  8105. hardcode_libdir_flag_spec='-L$libdir'
  8106. hardcode_minus_L=yes
  8107. ;;
  8108. esac
  8109. ;;
  8110. bsdi[45]*)
  8111. export_dynamic_flag_spec=-rdynamic
  8112. ;;
  8113. cygwin* | mingw* | pw32* | cegcc*)
  8114. # When not using gcc, we currently assume that we are using
  8115. # Microsoft Visual C++.
  8116. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8117. # no search path for DLLs.
  8118. case $cc_basename in
  8119. cl*)
  8120. # Native MSVC
  8121. hardcode_libdir_flag_spec=' '
  8122. allow_undefined_flag=unsupported
  8123. always_export_symbols=yes
  8124. file_list_spec='@'
  8125. # Tell ltmain to make .lib files, not .a files.
  8126. libext=lib
  8127. # Tell ltmain to make .dll files, not .so files.
  8128. shrext_cmds=".dll"
  8129. # FIXME: Setting linknames here is a bad hack.
  8130. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8131. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8132. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8133. else
  8134. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8135. fi~
  8136. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8137. linknames='
  8138. # The linker will not automatically build a static lib if we build a DLL.
  8139. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8140. enable_shared_with_static_runtimes=yes
  8141. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8142. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8143. # Don't use ranlib
  8144. old_postinstall_cmds='chmod 644 $oldlib'
  8145. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8146. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8147. case $lt_outputfile in
  8148. *.exe|*.EXE) ;;
  8149. *)
  8150. lt_outputfile="$lt_outputfile.exe"
  8151. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8152. ;;
  8153. esac~
  8154. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8155. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8156. $RM "$lt_outputfile.manifest";
  8157. fi'
  8158. ;;
  8159. *)
  8160. # Assume MSVC wrapper
  8161. hardcode_libdir_flag_spec=' '
  8162. allow_undefined_flag=unsupported
  8163. # Tell ltmain to make .lib files, not .a files.
  8164. libext=lib
  8165. # Tell ltmain to make .dll files, not .so files.
  8166. shrext_cmds=".dll"
  8167. # FIXME: Setting linknames here is a bad hack.
  8168. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8169. # The linker will automatically build a .lib file if we build a DLL.
  8170. old_archive_from_new_cmds='true'
  8171. # FIXME: Should let the user specify the lib program.
  8172. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8173. enable_shared_with_static_runtimes=yes
  8174. ;;
  8175. esac
  8176. ;;
  8177. darwin* | rhapsody*)
  8178. archive_cmds_need_lc=no
  8179. hardcode_direct=no
  8180. hardcode_automatic=yes
  8181. hardcode_shlibpath_var=unsupported
  8182. if test "$lt_cv_ld_force_load" = "yes"; then
  8183. 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\"`'
  8184. else
  8185. whole_archive_flag_spec=''
  8186. fi
  8187. link_all_deplibs=yes
  8188. allow_undefined_flag="$_lt_dar_allow_undefined"
  8189. case $cc_basename in
  8190. ifort*) _lt_dar_can_shared=yes ;;
  8191. *) _lt_dar_can_shared=$GCC ;;
  8192. esac
  8193. if test "$_lt_dar_can_shared" = "yes"; then
  8194. output_verbose_link_cmd=func_echo_all
  8195. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8196. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8197. 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}"
  8198. 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}"
  8199. else
  8200. ld_shlibs=no
  8201. fi
  8202. ;;
  8203. dgux*)
  8204. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8205. hardcode_libdir_flag_spec='-L$libdir'
  8206. hardcode_shlibpath_var=no
  8207. ;;
  8208. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8209. # support. Future versions do this automatically, but an explicit c++rt0.o
  8210. # does not break anything, and helps significantly (at the cost of a little
  8211. # extra space).
  8212. freebsd2.2*)
  8213. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8214. hardcode_libdir_flag_spec='-R$libdir'
  8215. hardcode_direct=yes
  8216. hardcode_shlibpath_var=no
  8217. ;;
  8218. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8219. freebsd2.*)
  8220. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8221. hardcode_direct=yes
  8222. hardcode_minus_L=yes
  8223. hardcode_shlibpath_var=no
  8224. ;;
  8225. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8226. freebsd* | dragonfly*)
  8227. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8228. hardcode_libdir_flag_spec='-R$libdir'
  8229. hardcode_direct=yes
  8230. hardcode_shlibpath_var=no
  8231. ;;
  8232. hpux9*)
  8233. if test "$GCC" = yes; then
  8234. 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'
  8235. else
  8236. 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'
  8237. fi
  8238. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8239. hardcode_libdir_separator=:
  8240. hardcode_direct=yes
  8241. # hardcode_minus_L: Not really in the search PATH,
  8242. # but as the default location of the library.
  8243. hardcode_minus_L=yes
  8244. export_dynamic_flag_spec='${wl}-E'
  8245. ;;
  8246. hpux10*)
  8247. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8248. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8249. else
  8250. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8251. fi
  8252. if test "$with_gnu_ld" = no; then
  8253. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8254. hardcode_libdir_separator=:
  8255. hardcode_direct=yes
  8256. hardcode_direct_absolute=yes
  8257. export_dynamic_flag_spec='${wl}-E'
  8258. # hardcode_minus_L: Not really in the search PATH,
  8259. # but as the default location of the library.
  8260. hardcode_minus_L=yes
  8261. fi
  8262. ;;
  8263. hpux11*)
  8264. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8265. case $host_cpu in
  8266. hppa*64*)
  8267. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8268. ;;
  8269. ia64*)
  8270. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8271. ;;
  8272. *)
  8273. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8274. ;;
  8275. esac
  8276. else
  8277. case $host_cpu in
  8278. hppa*64*)
  8279. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8280. ;;
  8281. ia64*)
  8282. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8283. ;;
  8284. *)
  8285. # Older versions of the 11.00 compiler do not understand -b yet
  8286. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8288. $as_echo_n "checking if $CC understands -b... " >&6; }
  8289. if ${lt_cv_prog_compiler__b+:} false; then :
  8290. $as_echo_n "(cached) " >&6
  8291. else
  8292. lt_cv_prog_compiler__b=no
  8293. save_LDFLAGS="$LDFLAGS"
  8294. LDFLAGS="$LDFLAGS -b"
  8295. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8296. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8297. # The linker can only warn and ignore the option if not recognized
  8298. # So say no if there are warnings
  8299. if test -s conftest.err; then
  8300. # Append any errors to the config.log.
  8301. cat conftest.err 1>&5
  8302. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8303. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8304. if diff conftest.exp conftest.er2 >/dev/null; then
  8305. lt_cv_prog_compiler__b=yes
  8306. fi
  8307. else
  8308. lt_cv_prog_compiler__b=yes
  8309. fi
  8310. fi
  8311. $RM -r conftest*
  8312. LDFLAGS="$save_LDFLAGS"
  8313. fi
  8314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8315. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8316. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8317. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8318. else
  8319. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8320. fi
  8321. ;;
  8322. esac
  8323. fi
  8324. if test "$with_gnu_ld" = no; then
  8325. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8326. hardcode_libdir_separator=:
  8327. case $host_cpu in
  8328. hppa*64*|ia64*)
  8329. hardcode_direct=no
  8330. hardcode_shlibpath_var=no
  8331. ;;
  8332. *)
  8333. hardcode_direct=yes
  8334. hardcode_direct_absolute=yes
  8335. export_dynamic_flag_spec='${wl}-E'
  8336. # hardcode_minus_L: Not really in the search PATH,
  8337. # but as the default location of the library.
  8338. hardcode_minus_L=yes
  8339. ;;
  8340. esac
  8341. fi
  8342. ;;
  8343. irix5* | irix6* | nonstopux*)
  8344. if test "$GCC" = yes; then
  8345. 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'
  8346. # Try to use the -exported_symbol ld option, if it does not
  8347. # work, assume that -exports_file does not work either and
  8348. # implicitly export all symbols.
  8349. # This should be the same for all languages, so no per-tag cache variable.
  8350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8351. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8352. if ${lt_cv_irix_exported_symbol+:} false; then :
  8353. $as_echo_n "(cached) " >&6
  8354. else
  8355. save_LDFLAGS="$LDFLAGS"
  8356. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8358. /* end confdefs.h. */
  8359. int foo (void) { return 0; }
  8360. _ACEOF
  8361. if ac_fn_c_try_link "$LINENO"; then :
  8362. lt_cv_irix_exported_symbol=yes
  8363. else
  8364. lt_cv_irix_exported_symbol=no
  8365. fi
  8366. rm -f core conftest.err conftest.$ac_objext \
  8367. conftest$ac_exeext conftest.$ac_ext
  8368. LDFLAGS="$save_LDFLAGS"
  8369. fi
  8370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8371. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8372. if test "$lt_cv_irix_exported_symbol" = yes; then
  8373. 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'
  8374. fi
  8375. else
  8376. 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'
  8377. 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'
  8378. fi
  8379. archive_cmds_need_lc='no'
  8380. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8381. hardcode_libdir_separator=:
  8382. inherit_rpath=yes
  8383. link_all_deplibs=yes
  8384. ;;
  8385. netbsd*)
  8386. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8387. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8388. else
  8389. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8390. fi
  8391. hardcode_libdir_flag_spec='-R$libdir'
  8392. hardcode_direct=yes
  8393. hardcode_shlibpath_var=no
  8394. ;;
  8395. newsos6)
  8396. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8397. hardcode_direct=yes
  8398. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8399. hardcode_libdir_separator=:
  8400. hardcode_shlibpath_var=no
  8401. ;;
  8402. *nto* | *qnx*)
  8403. ;;
  8404. openbsd*)
  8405. if test -f /usr/libexec/ld.so; then
  8406. hardcode_direct=yes
  8407. hardcode_shlibpath_var=no
  8408. hardcode_direct_absolute=yes
  8409. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8410. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8411. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8412. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8413. export_dynamic_flag_spec='${wl}-E'
  8414. else
  8415. case $host_os in
  8416. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8417. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8418. hardcode_libdir_flag_spec='-R$libdir'
  8419. ;;
  8420. *)
  8421. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8422. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8423. ;;
  8424. esac
  8425. fi
  8426. else
  8427. ld_shlibs=no
  8428. fi
  8429. ;;
  8430. os2*)
  8431. hardcode_libdir_flag_spec='-L$libdir'
  8432. hardcode_minus_L=yes
  8433. allow_undefined_flag=unsupported
  8434. 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'
  8435. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8436. ;;
  8437. osf3*)
  8438. if test "$GCC" = yes; then
  8439. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8440. 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'
  8441. else
  8442. allow_undefined_flag=' -expect_unresolved \*'
  8443. 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'
  8444. fi
  8445. archive_cmds_need_lc='no'
  8446. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8447. hardcode_libdir_separator=:
  8448. ;;
  8449. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8450. if test "$GCC" = yes; then
  8451. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8452. 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'
  8453. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8454. else
  8455. allow_undefined_flag=' -expect_unresolved \*'
  8456. 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'
  8457. 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~
  8458. $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'
  8459. # Both c and cxx compiler support -rpath directly
  8460. hardcode_libdir_flag_spec='-rpath $libdir'
  8461. fi
  8462. archive_cmds_need_lc='no'
  8463. hardcode_libdir_separator=:
  8464. ;;
  8465. solaris*)
  8466. no_undefined_flag=' -z defs'
  8467. if test "$GCC" = yes; then
  8468. wlarc='${wl}'
  8469. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8471. $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'
  8472. else
  8473. case `$CC -V 2>&1` in
  8474. *"Compilers 5.0"*)
  8475. wlarc=''
  8476. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8477. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8478. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8479. ;;
  8480. *)
  8481. wlarc='${wl}'
  8482. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8483. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8484. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8485. ;;
  8486. esac
  8487. fi
  8488. hardcode_libdir_flag_spec='-R$libdir'
  8489. hardcode_shlibpath_var=no
  8490. case $host_os in
  8491. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8492. *)
  8493. # The compiler driver will combine and reorder linker options,
  8494. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8495. # but is careful enough not to reorder.
  8496. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8497. if test "$GCC" = yes; then
  8498. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8499. else
  8500. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8501. fi
  8502. ;;
  8503. esac
  8504. link_all_deplibs=yes
  8505. ;;
  8506. sunos4*)
  8507. if test "x$host_vendor" = xsequent; then
  8508. # Use $CC to link under sequent, because it throws in some extra .o
  8509. # files that make .init and .fini sections work.
  8510. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8511. else
  8512. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8513. fi
  8514. hardcode_libdir_flag_spec='-L$libdir'
  8515. hardcode_direct=yes
  8516. hardcode_minus_L=yes
  8517. hardcode_shlibpath_var=no
  8518. ;;
  8519. sysv4)
  8520. case $host_vendor in
  8521. sni)
  8522. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8523. hardcode_direct=yes # is this really true???
  8524. ;;
  8525. siemens)
  8526. ## LD is ld it makes a PLAMLIB
  8527. ## CC just makes a GrossModule.
  8528. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8529. reload_cmds='$CC -r -o $output$reload_objs'
  8530. hardcode_direct=no
  8531. ;;
  8532. motorola)
  8533. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8534. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8535. ;;
  8536. esac
  8537. runpath_var='LD_RUN_PATH'
  8538. hardcode_shlibpath_var=no
  8539. ;;
  8540. sysv4.3*)
  8541. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8542. hardcode_shlibpath_var=no
  8543. export_dynamic_flag_spec='-Bexport'
  8544. ;;
  8545. sysv4*MP*)
  8546. if test -d /usr/nec; then
  8547. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8548. hardcode_shlibpath_var=no
  8549. runpath_var=LD_RUN_PATH
  8550. hardcode_runpath_var=yes
  8551. ld_shlibs=yes
  8552. fi
  8553. ;;
  8554. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8555. no_undefined_flag='${wl}-z,text'
  8556. archive_cmds_need_lc=no
  8557. hardcode_shlibpath_var=no
  8558. runpath_var='LD_RUN_PATH'
  8559. if test "$GCC" = yes; then
  8560. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8562. else
  8563. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8565. fi
  8566. ;;
  8567. sysv5* | sco3.2v5* | sco5v6*)
  8568. # Note: We can NOT use -z defs as we might desire, because we do not
  8569. # link with -lc, and that would cause any symbols used from libc to
  8570. # always be unresolved, which means just about no library would
  8571. # ever link correctly. If we're not using GNU ld we use -z text
  8572. # though, which does catch some bad symbols but isn't as heavy-handed
  8573. # as -z defs.
  8574. no_undefined_flag='${wl}-z,text'
  8575. allow_undefined_flag='${wl}-z,nodefs'
  8576. archive_cmds_need_lc=no
  8577. hardcode_shlibpath_var=no
  8578. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8579. hardcode_libdir_separator=':'
  8580. link_all_deplibs=yes
  8581. export_dynamic_flag_spec='${wl}-Bexport'
  8582. runpath_var='LD_RUN_PATH'
  8583. if test "$GCC" = yes; then
  8584. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8585. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8586. else
  8587. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8588. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8589. fi
  8590. ;;
  8591. uts4*)
  8592. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8593. hardcode_libdir_flag_spec='-L$libdir'
  8594. hardcode_shlibpath_var=no
  8595. ;;
  8596. *)
  8597. ld_shlibs=no
  8598. ;;
  8599. esac
  8600. if test x$host_vendor = xsni; then
  8601. case $host in
  8602. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8603. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8604. ;;
  8605. esac
  8606. fi
  8607. fi
  8608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8609. $as_echo "$ld_shlibs" >&6; }
  8610. test "$ld_shlibs" = no && can_build_shared=no
  8611. with_gnu_ld=$with_gnu_ld
  8612. #
  8613. # Do we need to explicitly link libc?
  8614. #
  8615. case "x$archive_cmds_need_lc" in
  8616. x|xyes)
  8617. # Assume -lc should be added
  8618. archive_cmds_need_lc=yes
  8619. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8620. case $archive_cmds in
  8621. *'~'*)
  8622. # FIXME: we may have to deal with multi-command sequences.
  8623. ;;
  8624. '$CC '*)
  8625. # Test whether the compiler implicitly links with -lc since on some
  8626. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8627. # to ld, don't add -lc before -lgcc.
  8628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8629. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8630. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8631. $as_echo_n "(cached) " >&6
  8632. else
  8633. $RM conftest*
  8634. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8636. (eval $ac_compile) 2>&5
  8637. ac_status=$?
  8638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8639. test $ac_status = 0; } 2>conftest.err; then
  8640. soname=conftest
  8641. lib=conftest
  8642. libobjs=conftest.$ac_objext
  8643. deplibs=
  8644. wl=$lt_prog_compiler_wl
  8645. pic_flag=$lt_prog_compiler_pic
  8646. compiler_flags=-v
  8647. linker_flags=-v
  8648. verstring=
  8649. output_objdir=.
  8650. libname=conftest
  8651. lt_save_allow_undefined_flag=$allow_undefined_flag
  8652. allow_undefined_flag=
  8653. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8654. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8655. ac_status=$?
  8656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8657. test $ac_status = 0; }
  8658. then
  8659. lt_cv_archive_cmds_need_lc=no
  8660. else
  8661. lt_cv_archive_cmds_need_lc=yes
  8662. fi
  8663. allow_undefined_flag=$lt_save_allow_undefined_flag
  8664. else
  8665. cat conftest.err 1>&5
  8666. fi
  8667. $RM conftest*
  8668. fi
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8670. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8671. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8672. ;;
  8673. esac
  8674. fi
  8675. ;;
  8676. esac
  8677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8678. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8679. if test "$GCC" = yes; then
  8680. case $host_os in
  8681. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8682. *) lt_awk_arg="/^libraries:/" ;;
  8683. esac
  8684. case $host_os in
  8685. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8686. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8687. esac
  8688. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8689. case $lt_search_path_spec in
  8690. *\;*)
  8691. # if the path contains ";" then we assume it to be the separator
  8692. # otherwise default to the standard path separator (i.e. ":") - it is
  8693. # assumed that no part of a normal pathname contains ";" but that should
  8694. # okay in the real world where ";" in dirpaths is itself problematic.
  8695. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8696. ;;
  8697. *)
  8698. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8699. ;;
  8700. esac
  8701. # Ok, now we have the path, separated by spaces, we can step through it
  8702. # and add multilib dir if necessary...
  8703. lt_tmp_lt_search_path_spec=
  8704. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8705. # ...but if some path already ends with the multilib dir we assume
  8706. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8707. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8708. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8709. lt_multi_os_dir=
  8710. ;;
  8711. esac
  8712. for lt_sys_path in $lt_search_path_spec; do
  8713. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8714. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8715. elif test -n "$lt_multi_os_dir"; then
  8716. test -d "$lt_sys_path" && \
  8717. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8718. fi
  8719. done
  8720. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8721. BEGIN {RS=" "; FS="/|\n";} {
  8722. lt_foo="";
  8723. lt_count=0;
  8724. for (lt_i = NF; lt_i > 0; lt_i--) {
  8725. if ($lt_i != "" && $lt_i != ".") {
  8726. if ($lt_i == "..") {
  8727. lt_count++;
  8728. } else {
  8729. if (lt_count == 0) {
  8730. lt_foo="/" $lt_i lt_foo;
  8731. } else {
  8732. lt_count--;
  8733. }
  8734. }
  8735. }
  8736. }
  8737. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8738. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8739. }'`
  8740. # AWK program above erroneously prepends '/' to C:/dos/paths
  8741. # for these hosts.
  8742. case $host_os in
  8743. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8744. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8745. esac
  8746. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8747. else
  8748. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8749. fi
  8750. library_names_spec=
  8751. libname_spec='lib$name'
  8752. soname_spec=
  8753. shrext_cmds=".so"
  8754. postinstall_cmds=
  8755. postuninstall_cmds=
  8756. finish_cmds=
  8757. finish_eval=
  8758. shlibpath_var=
  8759. shlibpath_overrides_runpath=unknown
  8760. version_type=none
  8761. dynamic_linker="$host_os ld.so"
  8762. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8763. need_lib_prefix=unknown
  8764. hardcode_into_libs=no
  8765. # when you set need_version to no, make sure it does not cause -set_version
  8766. # flags to be left without arguments
  8767. need_version=unknown
  8768. case $host_os in
  8769. aix3*)
  8770. version_type=linux # correct to gnu/linux during the next big refactor
  8771. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8772. shlibpath_var=LIBPATH
  8773. # AIX 3 has no versioning support, so we append a major version to the name.
  8774. soname_spec='${libname}${release}${shared_ext}$major'
  8775. ;;
  8776. aix[4-9]*)
  8777. version_type=linux # correct to gnu/linux during the next big refactor
  8778. need_lib_prefix=no
  8779. need_version=no
  8780. hardcode_into_libs=yes
  8781. if test "$host_cpu" = ia64; then
  8782. # AIX 5 supports IA64
  8783. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8784. shlibpath_var=LD_LIBRARY_PATH
  8785. else
  8786. # With GCC up to 2.95.x, collect2 would create an import file
  8787. # for dependence libraries. The import file would start with
  8788. # the line `#! .'. This would cause the generated library to
  8789. # depend on `.', always an invalid library. This was fixed in
  8790. # development snapshots of GCC prior to 3.0.
  8791. case $host_os in
  8792. aix4 | aix4.[01] | aix4.[01].*)
  8793. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8794. echo ' yes '
  8795. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8796. :
  8797. else
  8798. can_build_shared=no
  8799. fi
  8800. ;;
  8801. esac
  8802. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8803. # soname into executable. Probably we can add versioning support to
  8804. # collect2, so additional links can be useful in future.
  8805. if test "$aix_use_runtimelinking" = yes; then
  8806. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8807. # instead of lib<name>.a to let people know that these are not
  8808. # typical AIX shared libraries.
  8809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8810. else
  8811. # We preserve .a as extension for shared libraries through AIX4.2
  8812. # and later when we are not doing run time linking.
  8813. library_names_spec='${libname}${release}.a $libname.a'
  8814. soname_spec='${libname}${release}${shared_ext}$major'
  8815. fi
  8816. shlibpath_var=LIBPATH
  8817. fi
  8818. ;;
  8819. amigaos*)
  8820. case $host_cpu in
  8821. powerpc)
  8822. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8823. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8825. ;;
  8826. m68k)
  8827. library_names_spec='$libname.ixlibrary $libname.a'
  8828. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8829. 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'
  8830. ;;
  8831. esac
  8832. ;;
  8833. beos*)
  8834. library_names_spec='${libname}${shared_ext}'
  8835. dynamic_linker="$host_os ld.so"
  8836. shlibpath_var=LIBRARY_PATH
  8837. ;;
  8838. bsdi[45]*)
  8839. version_type=linux # correct to gnu/linux during the next big refactor
  8840. need_version=no
  8841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8842. soname_spec='${libname}${release}${shared_ext}$major'
  8843. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8844. shlibpath_var=LD_LIBRARY_PATH
  8845. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8846. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8847. # the default ld.so.conf also contains /usr/contrib/lib and
  8848. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8849. # libtool to hard-code these into programs
  8850. ;;
  8851. cygwin* | mingw* | pw32* | cegcc*)
  8852. version_type=windows
  8853. shrext_cmds=".dll"
  8854. need_version=no
  8855. need_lib_prefix=no
  8856. case $GCC,$cc_basename in
  8857. yes,*)
  8858. # gcc
  8859. library_names_spec='$libname.dll.a'
  8860. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8861. postinstall_cmds='base_file=`basename \${file}`~
  8862. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8863. dldir=$destdir/`dirname \$dlpath`~
  8864. test -d \$dldir || mkdir -p \$dldir~
  8865. $install_prog $dir/$dlname \$dldir/$dlname~
  8866. chmod a+x \$dldir/$dlname~
  8867. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8868. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8869. fi'
  8870. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8871. dlpath=$dir/\$dldll~
  8872. $RM \$dlpath'
  8873. shlibpath_overrides_runpath=yes
  8874. case $host_os in
  8875. cygwin*)
  8876. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8877. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8878. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8879. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8880. ;;
  8881. mingw* | cegcc*)
  8882. # MinGW DLLs use traditional 'lib' prefix
  8883. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8884. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8885. ;;
  8886. pw32*)
  8887. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8888. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8889. ;;
  8890. esac
  8891. dynamic_linker='Win32 ld.exe'
  8892. ;;
  8893. *,cl*)
  8894. # Native MSVC
  8895. libname_spec='$name'
  8896. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8897. library_names_spec='${libname}.dll.lib'
  8898. case $build_os in
  8899. mingw*)
  8900. sys_lib_search_path_spec=
  8901. lt_save_ifs=$IFS
  8902. IFS=';'
  8903. for lt_path in $LIB
  8904. do
  8905. IFS=$lt_save_ifs
  8906. # Let DOS variable expansion print the short 8.3 style file name.
  8907. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8908. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8909. done
  8910. IFS=$lt_save_ifs
  8911. # Convert to MSYS style.
  8912. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8913. ;;
  8914. cygwin*)
  8915. # Convert to unix form, then to dos form, then back to unix form
  8916. # but this time dos style (no spaces!) so that the unix form looks
  8917. # like /cygdrive/c/PROGRA~1:/cygdr...
  8918. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8919. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8920. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8921. ;;
  8922. *)
  8923. sys_lib_search_path_spec="$LIB"
  8924. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8925. # It is most probably a Windows format PATH.
  8926. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8927. else
  8928. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8929. fi
  8930. # FIXME: find the short name or the path components, as spaces are
  8931. # common. (e.g. "Program Files" -> "PROGRA~1")
  8932. ;;
  8933. esac
  8934. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8935. postinstall_cmds='base_file=`basename \${file}`~
  8936. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8937. dldir=$destdir/`dirname \$dlpath`~
  8938. test -d \$dldir || mkdir -p \$dldir~
  8939. $install_prog $dir/$dlname \$dldir/$dlname'
  8940. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8941. dlpath=$dir/\$dldll~
  8942. $RM \$dlpath'
  8943. shlibpath_overrides_runpath=yes
  8944. dynamic_linker='Win32 link.exe'
  8945. ;;
  8946. *)
  8947. # Assume MSVC wrapper
  8948. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8949. dynamic_linker='Win32 ld.exe'
  8950. ;;
  8951. esac
  8952. # FIXME: first we should search . and the directory the executable is in
  8953. shlibpath_var=PATH
  8954. ;;
  8955. darwin* | rhapsody*)
  8956. dynamic_linker="$host_os dyld"
  8957. version_type=darwin
  8958. need_lib_prefix=no
  8959. need_version=no
  8960. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8961. soname_spec='${libname}${release}${major}$shared_ext'
  8962. shlibpath_overrides_runpath=yes
  8963. shlibpath_var=DYLD_LIBRARY_PATH
  8964. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8965. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8966. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8967. ;;
  8968. dgux*)
  8969. version_type=linux # correct to gnu/linux during the next big refactor
  8970. need_lib_prefix=no
  8971. need_version=no
  8972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8973. soname_spec='${libname}${release}${shared_ext}$major'
  8974. shlibpath_var=LD_LIBRARY_PATH
  8975. ;;
  8976. freebsd* | dragonfly*)
  8977. # DragonFly does not have aout. When/if they implement a new
  8978. # versioning mechanism, adjust this.
  8979. if test -x /usr/bin/objformat; then
  8980. objformat=`/usr/bin/objformat`
  8981. else
  8982. case $host_os in
  8983. freebsd[23].*) objformat=aout ;;
  8984. *) objformat=elf ;;
  8985. esac
  8986. fi
  8987. version_type=freebsd-$objformat
  8988. case $version_type in
  8989. freebsd-elf*)
  8990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8991. need_version=no
  8992. need_lib_prefix=no
  8993. ;;
  8994. freebsd-*)
  8995. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8996. need_version=yes
  8997. ;;
  8998. esac
  8999. shlibpath_var=LD_LIBRARY_PATH
  9000. case $host_os in
  9001. freebsd2.*)
  9002. shlibpath_overrides_runpath=yes
  9003. ;;
  9004. freebsd3.[01]* | freebsdelf3.[01]*)
  9005. shlibpath_overrides_runpath=yes
  9006. hardcode_into_libs=yes
  9007. ;;
  9008. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9009. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9010. shlibpath_overrides_runpath=no
  9011. hardcode_into_libs=yes
  9012. ;;
  9013. *) # from 4.6 on, and DragonFly
  9014. shlibpath_overrides_runpath=yes
  9015. hardcode_into_libs=yes
  9016. ;;
  9017. esac
  9018. ;;
  9019. gnu*)
  9020. version_type=linux # correct to gnu/linux during the next big refactor
  9021. need_lib_prefix=no
  9022. need_version=no
  9023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9024. soname_spec='${libname}${release}${shared_ext}$major'
  9025. shlibpath_var=LD_LIBRARY_PATH
  9026. shlibpath_overrides_runpath=no
  9027. hardcode_into_libs=yes
  9028. ;;
  9029. haiku*)
  9030. version_type=linux # correct to gnu/linux during the next big refactor
  9031. need_lib_prefix=no
  9032. need_version=no
  9033. dynamic_linker="$host_os runtime_loader"
  9034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9035. soname_spec='${libname}${release}${shared_ext}$major'
  9036. shlibpath_var=LIBRARY_PATH
  9037. shlibpath_overrides_runpath=yes
  9038. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9039. hardcode_into_libs=yes
  9040. ;;
  9041. hpux9* | hpux10* | hpux11*)
  9042. # Give a soname corresponding to the major version so that dld.sl refuses to
  9043. # link against other versions.
  9044. version_type=sunos
  9045. need_lib_prefix=no
  9046. need_version=no
  9047. case $host_cpu in
  9048. ia64*)
  9049. shrext_cmds='.so'
  9050. hardcode_into_libs=yes
  9051. dynamic_linker="$host_os dld.so"
  9052. shlibpath_var=LD_LIBRARY_PATH
  9053. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. if test "X$HPUX_IA64_MODE" = X32; then
  9057. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9058. else
  9059. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9060. fi
  9061. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9062. ;;
  9063. hppa*64*)
  9064. shrext_cmds='.sl'
  9065. hardcode_into_libs=yes
  9066. dynamic_linker="$host_os dld.sl"
  9067. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9068. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9070. soname_spec='${libname}${release}${shared_ext}$major'
  9071. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9072. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9073. ;;
  9074. *)
  9075. shrext_cmds='.sl'
  9076. dynamic_linker="$host_os dld.sl"
  9077. shlibpath_var=SHLIB_PATH
  9078. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9080. soname_spec='${libname}${release}${shared_ext}$major'
  9081. ;;
  9082. esac
  9083. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9084. postinstall_cmds='chmod 555 $lib'
  9085. # or fails outright, so override atomically:
  9086. install_override_mode=555
  9087. ;;
  9088. interix[3-9]*)
  9089. version_type=linux # correct to gnu/linux during the next big refactor
  9090. need_lib_prefix=no
  9091. need_version=no
  9092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9093. soname_spec='${libname}${release}${shared_ext}$major'
  9094. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9095. shlibpath_var=LD_LIBRARY_PATH
  9096. shlibpath_overrides_runpath=no
  9097. hardcode_into_libs=yes
  9098. ;;
  9099. irix5* | irix6* | nonstopux*)
  9100. case $host_os in
  9101. nonstopux*) version_type=nonstopux ;;
  9102. *)
  9103. if test "$lt_cv_prog_gnu_ld" = yes; then
  9104. version_type=linux # correct to gnu/linux during the next big refactor
  9105. else
  9106. version_type=irix
  9107. fi ;;
  9108. esac
  9109. need_lib_prefix=no
  9110. need_version=no
  9111. soname_spec='${libname}${release}${shared_ext}$major'
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9113. case $host_os in
  9114. irix5* | nonstopux*)
  9115. libsuff= shlibsuff=
  9116. ;;
  9117. *)
  9118. case $LD in # libtool.m4 will add one of these switches to LD
  9119. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9120. libsuff= shlibsuff= libmagic=32-bit;;
  9121. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9122. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9123. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9124. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9125. *) libsuff= shlibsuff= libmagic=never-match;;
  9126. esac
  9127. ;;
  9128. esac
  9129. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9130. shlibpath_overrides_runpath=no
  9131. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9132. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9133. hardcode_into_libs=yes
  9134. ;;
  9135. # No shared lib support for Linux oldld, aout, or coff.
  9136. linux*oldld* | linux*aout* | linux*coff*)
  9137. dynamic_linker=no
  9138. ;;
  9139. # This must be glibc/ELF.
  9140. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9141. version_type=linux # correct to gnu/linux during the next big refactor
  9142. need_lib_prefix=no
  9143. need_version=no
  9144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9145. soname_spec='${libname}${release}${shared_ext}$major'
  9146. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9147. shlibpath_var=LD_LIBRARY_PATH
  9148. shlibpath_overrides_runpath=no
  9149. # Some binutils ld are patched to set DT_RUNPATH
  9150. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9151. $as_echo_n "(cached) " >&6
  9152. else
  9153. lt_cv_shlibpath_overrides_runpath=no
  9154. save_LDFLAGS=$LDFLAGS
  9155. save_libdir=$libdir
  9156. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9157. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9159. /* end confdefs.h. */
  9160. int
  9161. main ()
  9162. {
  9163. ;
  9164. return 0;
  9165. }
  9166. _ACEOF
  9167. if ac_fn_c_try_link "$LINENO"; then :
  9168. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9169. lt_cv_shlibpath_overrides_runpath=yes
  9170. fi
  9171. fi
  9172. rm -f core conftest.err conftest.$ac_objext \
  9173. conftest$ac_exeext conftest.$ac_ext
  9174. LDFLAGS=$save_LDFLAGS
  9175. libdir=$save_libdir
  9176. fi
  9177. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9178. # This implies no fast_install, which is unacceptable.
  9179. # Some rework will be needed to allow for fast_install
  9180. # before this can be enabled.
  9181. hardcode_into_libs=yes
  9182. # Append ld.so.conf contents to the search path
  9183. if test -f /etc/ld.so.conf; then
  9184. 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' ' '`
  9185. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9186. fi
  9187. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9188. # powerpc, because MkLinux only supported shared libraries with the
  9189. # GNU dynamic linker. Since this was broken with cross compilers,
  9190. # most powerpc-linux boxes support dynamic linking these days and
  9191. # people can always --disable-shared, the test was removed, and we
  9192. # assume the GNU/Linux dynamic linker is in use.
  9193. dynamic_linker='GNU/Linux ld.so'
  9194. ;;
  9195. netbsd*)
  9196. version_type=sunos
  9197. need_lib_prefix=no
  9198. need_version=no
  9199. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9201. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9202. dynamic_linker='NetBSD (a.out) ld.so'
  9203. else
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. dynamic_linker='NetBSD ld.elf_so'
  9207. fi
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. shlibpath_overrides_runpath=yes
  9210. hardcode_into_libs=yes
  9211. ;;
  9212. newsos6)
  9213. version_type=linux # correct to gnu/linux during the next big refactor
  9214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. shlibpath_overrides_runpath=yes
  9217. ;;
  9218. *nto* | *qnx*)
  9219. version_type=qnx
  9220. need_lib_prefix=no
  9221. need_version=no
  9222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9223. soname_spec='${libname}${release}${shared_ext}$major'
  9224. shlibpath_var=LD_LIBRARY_PATH
  9225. shlibpath_overrides_runpath=no
  9226. hardcode_into_libs=yes
  9227. dynamic_linker='ldqnx.so'
  9228. ;;
  9229. openbsd*)
  9230. version_type=sunos
  9231. sys_lib_dlsearch_path_spec="/usr/lib"
  9232. need_lib_prefix=no
  9233. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9234. case $host_os in
  9235. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9236. *) need_version=no ;;
  9237. esac
  9238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9239. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9240. shlibpath_var=LD_LIBRARY_PATH
  9241. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9242. case $host_os in
  9243. openbsd2.[89] | openbsd2.[89].*)
  9244. shlibpath_overrides_runpath=no
  9245. ;;
  9246. *)
  9247. shlibpath_overrides_runpath=yes
  9248. ;;
  9249. esac
  9250. else
  9251. shlibpath_overrides_runpath=yes
  9252. fi
  9253. ;;
  9254. os2*)
  9255. libname_spec='$name'
  9256. shrext_cmds=".dll"
  9257. need_lib_prefix=no
  9258. library_names_spec='$libname${shared_ext} $libname.a'
  9259. dynamic_linker='OS/2 ld.exe'
  9260. shlibpath_var=LIBPATH
  9261. ;;
  9262. osf3* | osf4* | osf5*)
  9263. version_type=osf
  9264. need_lib_prefix=no
  9265. need_version=no
  9266. soname_spec='${libname}${release}${shared_ext}$major'
  9267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9268. shlibpath_var=LD_LIBRARY_PATH
  9269. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9270. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9271. ;;
  9272. rdos*)
  9273. dynamic_linker=no
  9274. ;;
  9275. solaris*)
  9276. version_type=linux # correct to gnu/linux during the next big refactor
  9277. need_lib_prefix=no
  9278. need_version=no
  9279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9280. soname_spec='${libname}${release}${shared_ext}$major'
  9281. shlibpath_var=LD_LIBRARY_PATH
  9282. shlibpath_overrides_runpath=yes
  9283. hardcode_into_libs=yes
  9284. # ldd complains unless libraries are executable
  9285. postinstall_cmds='chmod +x $lib'
  9286. ;;
  9287. sunos4*)
  9288. version_type=sunos
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9290. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9291. shlibpath_var=LD_LIBRARY_PATH
  9292. shlibpath_overrides_runpath=yes
  9293. if test "$with_gnu_ld" = yes; then
  9294. need_lib_prefix=no
  9295. fi
  9296. need_version=yes
  9297. ;;
  9298. sysv4 | sysv4.3*)
  9299. version_type=linux # correct to gnu/linux during the next big refactor
  9300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9301. soname_spec='${libname}${release}${shared_ext}$major'
  9302. shlibpath_var=LD_LIBRARY_PATH
  9303. case $host_vendor in
  9304. sni)
  9305. shlibpath_overrides_runpath=no
  9306. need_lib_prefix=no
  9307. runpath_var=LD_RUN_PATH
  9308. ;;
  9309. siemens)
  9310. need_lib_prefix=no
  9311. ;;
  9312. motorola)
  9313. need_lib_prefix=no
  9314. need_version=no
  9315. shlibpath_overrides_runpath=no
  9316. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9317. ;;
  9318. esac
  9319. ;;
  9320. sysv4*MP*)
  9321. if test -d /usr/nec ;then
  9322. version_type=linux # correct to gnu/linux during the next big refactor
  9323. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9324. soname_spec='$libname${shared_ext}.$major'
  9325. shlibpath_var=LD_LIBRARY_PATH
  9326. fi
  9327. ;;
  9328. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9329. version_type=freebsd-elf
  9330. need_lib_prefix=no
  9331. need_version=no
  9332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9333. soname_spec='${libname}${release}${shared_ext}$major'
  9334. shlibpath_var=LD_LIBRARY_PATH
  9335. shlibpath_overrides_runpath=yes
  9336. hardcode_into_libs=yes
  9337. if test "$with_gnu_ld" = yes; then
  9338. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9339. else
  9340. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9341. case $host_os in
  9342. sco3.2v5*)
  9343. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9344. ;;
  9345. esac
  9346. fi
  9347. sys_lib_dlsearch_path_spec='/usr/lib'
  9348. ;;
  9349. tpf*)
  9350. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9351. version_type=linux # correct to gnu/linux during the next big refactor
  9352. need_lib_prefix=no
  9353. need_version=no
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9355. shlibpath_var=LD_LIBRARY_PATH
  9356. shlibpath_overrides_runpath=no
  9357. hardcode_into_libs=yes
  9358. ;;
  9359. uts4*)
  9360. version_type=linux # correct to gnu/linux during the next big refactor
  9361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9362. soname_spec='${libname}${release}${shared_ext}$major'
  9363. shlibpath_var=LD_LIBRARY_PATH
  9364. ;;
  9365. *)
  9366. dynamic_linker=no
  9367. ;;
  9368. esac
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9370. $as_echo "$dynamic_linker" >&6; }
  9371. test "$dynamic_linker" = no && can_build_shared=no
  9372. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9373. if test "$GCC" = yes; then
  9374. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9375. fi
  9376. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9377. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9378. fi
  9379. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9380. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9381. fi
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9383. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9384. hardcode_action=
  9385. if test -n "$hardcode_libdir_flag_spec" ||
  9386. test -n "$runpath_var" ||
  9387. test "X$hardcode_automatic" = "Xyes" ; then
  9388. # We can hardcode non-existent directories.
  9389. if test "$hardcode_direct" != no &&
  9390. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9391. # have to relink, otherwise we might link with an installed library
  9392. # when we should be linking with a yet-to-be-installed one
  9393. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9394. test "$hardcode_minus_L" != no; then
  9395. # Linking always hardcodes the temporary library directory.
  9396. hardcode_action=relink
  9397. else
  9398. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9399. hardcode_action=immediate
  9400. fi
  9401. else
  9402. # We cannot hardcode anything, or else we can only hardcode existing
  9403. # directories.
  9404. hardcode_action=unsupported
  9405. fi
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9407. $as_echo "$hardcode_action" >&6; }
  9408. if test "$hardcode_action" = relink ||
  9409. test "$inherit_rpath" = yes; then
  9410. # Fast installation is not supported
  9411. enable_fast_install=no
  9412. elif test "$shlibpath_overrides_runpath" = yes ||
  9413. test "$enable_shared" = no; then
  9414. # Fast installation is not necessary
  9415. enable_fast_install=needless
  9416. fi
  9417. if test "x$enable_dlopen" != xyes; then
  9418. enable_dlopen=unknown
  9419. enable_dlopen_self=unknown
  9420. enable_dlopen_self_static=unknown
  9421. else
  9422. lt_cv_dlopen=no
  9423. lt_cv_dlopen_libs=
  9424. case $host_os in
  9425. beos*)
  9426. lt_cv_dlopen="load_add_on"
  9427. lt_cv_dlopen_libs=
  9428. lt_cv_dlopen_self=yes
  9429. ;;
  9430. mingw* | pw32* | cegcc*)
  9431. lt_cv_dlopen="LoadLibrary"
  9432. lt_cv_dlopen_libs=
  9433. ;;
  9434. cygwin*)
  9435. lt_cv_dlopen="dlopen"
  9436. lt_cv_dlopen_libs=
  9437. ;;
  9438. darwin*)
  9439. # if libdl is installed we need to link against it
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9441. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9442. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9443. $as_echo_n "(cached) " >&6
  9444. else
  9445. ac_check_lib_save_LIBS=$LIBS
  9446. LIBS="-ldl $LIBS"
  9447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9448. /* end confdefs.h. */
  9449. /* Override any GCC internal prototype to avoid an error.
  9450. Use char because int might match the return type of a GCC
  9451. builtin and then its argument prototype would still apply. */
  9452. #ifdef __cplusplus
  9453. extern "C"
  9454. #endif
  9455. char dlopen ();
  9456. int
  9457. main ()
  9458. {
  9459. return dlopen ();
  9460. ;
  9461. return 0;
  9462. }
  9463. _ACEOF
  9464. if ac_fn_c_try_link "$LINENO"; then :
  9465. ac_cv_lib_dl_dlopen=yes
  9466. else
  9467. ac_cv_lib_dl_dlopen=no
  9468. fi
  9469. rm -f core conftest.err conftest.$ac_objext \
  9470. conftest$ac_exeext conftest.$ac_ext
  9471. LIBS=$ac_check_lib_save_LIBS
  9472. fi
  9473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9474. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9475. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9476. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9477. else
  9478. lt_cv_dlopen="dyld"
  9479. lt_cv_dlopen_libs=
  9480. lt_cv_dlopen_self=yes
  9481. fi
  9482. ;;
  9483. *)
  9484. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9485. if test "x$ac_cv_func_shl_load" = xyes; then :
  9486. lt_cv_dlopen="shl_load"
  9487. else
  9488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9489. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9490. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9491. $as_echo_n "(cached) " >&6
  9492. else
  9493. ac_check_lib_save_LIBS=$LIBS
  9494. LIBS="-ldld $LIBS"
  9495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9496. /* end confdefs.h. */
  9497. /* Override any GCC internal prototype to avoid an error.
  9498. Use char because int might match the return type of a GCC
  9499. builtin and then its argument prototype would still apply. */
  9500. #ifdef __cplusplus
  9501. extern "C"
  9502. #endif
  9503. char shl_load ();
  9504. int
  9505. main ()
  9506. {
  9507. return shl_load ();
  9508. ;
  9509. return 0;
  9510. }
  9511. _ACEOF
  9512. if ac_fn_c_try_link "$LINENO"; then :
  9513. ac_cv_lib_dld_shl_load=yes
  9514. else
  9515. ac_cv_lib_dld_shl_load=no
  9516. fi
  9517. rm -f core conftest.err conftest.$ac_objext \
  9518. conftest$ac_exeext conftest.$ac_ext
  9519. LIBS=$ac_check_lib_save_LIBS
  9520. fi
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9522. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9523. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9524. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9525. else
  9526. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9527. if test "x$ac_cv_func_dlopen" = xyes; then :
  9528. lt_cv_dlopen="dlopen"
  9529. else
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9531. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9532. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9533. $as_echo_n "(cached) " >&6
  9534. else
  9535. ac_check_lib_save_LIBS=$LIBS
  9536. LIBS="-ldl $LIBS"
  9537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9538. /* end confdefs.h. */
  9539. /* Override any GCC internal prototype to avoid an error.
  9540. Use char because int might match the return type of a GCC
  9541. builtin and then its argument prototype would still apply. */
  9542. #ifdef __cplusplus
  9543. extern "C"
  9544. #endif
  9545. char dlopen ();
  9546. int
  9547. main ()
  9548. {
  9549. return dlopen ();
  9550. ;
  9551. return 0;
  9552. }
  9553. _ACEOF
  9554. if ac_fn_c_try_link "$LINENO"; then :
  9555. ac_cv_lib_dl_dlopen=yes
  9556. else
  9557. ac_cv_lib_dl_dlopen=no
  9558. fi
  9559. rm -f core conftest.err conftest.$ac_objext \
  9560. conftest$ac_exeext conftest.$ac_ext
  9561. LIBS=$ac_check_lib_save_LIBS
  9562. fi
  9563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9564. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9565. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9566. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9567. else
  9568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9569. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9570. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9571. $as_echo_n "(cached) " >&6
  9572. else
  9573. ac_check_lib_save_LIBS=$LIBS
  9574. LIBS="-lsvld $LIBS"
  9575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9576. /* end confdefs.h. */
  9577. /* Override any GCC internal prototype to avoid an error.
  9578. Use char because int might match the return type of a GCC
  9579. builtin and then its argument prototype would still apply. */
  9580. #ifdef __cplusplus
  9581. extern "C"
  9582. #endif
  9583. char dlopen ();
  9584. int
  9585. main ()
  9586. {
  9587. return dlopen ();
  9588. ;
  9589. return 0;
  9590. }
  9591. _ACEOF
  9592. if ac_fn_c_try_link "$LINENO"; then :
  9593. ac_cv_lib_svld_dlopen=yes
  9594. else
  9595. ac_cv_lib_svld_dlopen=no
  9596. fi
  9597. rm -f core conftest.err conftest.$ac_objext \
  9598. conftest$ac_exeext conftest.$ac_ext
  9599. LIBS=$ac_check_lib_save_LIBS
  9600. fi
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9602. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9603. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9604. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9605. else
  9606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9607. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9608. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9609. $as_echo_n "(cached) " >&6
  9610. else
  9611. ac_check_lib_save_LIBS=$LIBS
  9612. LIBS="-ldld $LIBS"
  9613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9614. /* end confdefs.h. */
  9615. /* Override any GCC internal prototype to avoid an error.
  9616. Use char because int might match the return type of a GCC
  9617. builtin and then its argument prototype would still apply. */
  9618. #ifdef __cplusplus
  9619. extern "C"
  9620. #endif
  9621. char dld_link ();
  9622. int
  9623. main ()
  9624. {
  9625. return dld_link ();
  9626. ;
  9627. return 0;
  9628. }
  9629. _ACEOF
  9630. if ac_fn_c_try_link "$LINENO"; then :
  9631. ac_cv_lib_dld_dld_link=yes
  9632. else
  9633. ac_cv_lib_dld_dld_link=no
  9634. fi
  9635. rm -f core conftest.err conftest.$ac_objext \
  9636. conftest$ac_exeext conftest.$ac_ext
  9637. LIBS=$ac_check_lib_save_LIBS
  9638. fi
  9639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9640. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9641. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9642. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9643. fi
  9644. fi
  9645. fi
  9646. fi
  9647. fi
  9648. fi
  9649. ;;
  9650. esac
  9651. if test "x$lt_cv_dlopen" != xno; then
  9652. enable_dlopen=yes
  9653. else
  9654. enable_dlopen=no
  9655. fi
  9656. case $lt_cv_dlopen in
  9657. dlopen)
  9658. save_CPPFLAGS="$CPPFLAGS"
  9659. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9660. save_LDFLAGS="$LDFLAGS"
  9661. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9662. save_LIBS="$LIBS"
  9663. LIBS="$lt_cv_dlopen_libs $LIBS"
  9664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9665. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9666. if ${lt_cv_dlopen_self+:} false; then :
  9667. $as_echo_n "(cached) " >&6
  9668. else
  9669. if test "$cross_compiling" = yes; then :
  9670. lt_cv_dlopen_self=cross
  9671. else
  9672. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9673. lt_status=$lt_dlunknown
  9674. cat > conftest.$ac_ext <<_LT_EOF
  9675. #line $LINENO "configure"
  9676. #include "confdefs.h"
  9677. #if HAVE_DLFCN_H
  9678. #include <dlfcn.h>
  9679. #endif
  9680. #include <stdio.h>
  9681. #ifdef RTLD_GLOBAL
  9682. # define LT_DLGLOBAL RTLD_GLOBAL
  9683. #else
  9684. # ifdef DL_GLOBAL
  9685. # define LT_DLGLOBAL DL_GLOBAL
  9686. # else
  9687. # define LT_DLGLOBAL 0
  9688. # endif
  9689. #endif
  9690. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9691. find out it does not work in some platform. */
  9692. #ifndef LT_DLLAZY_OR_NOW
  9693. # ifdef RTLD_LAZY
  9694. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9695. # else
  9696. # ifdef DL_LAZY
  9697. # define LT_DLLAZY_OR_NOW DL_LAZY
  9698. # else
  9699. # ifdef RTLD_NOW
  9700. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9701. # else
  9702. # ifdef DL_NOW
  9703. # define LT_DLLAZY_OR_NOW DL_NOW
  9704. # else
  9705. # define LT_DLLAZY_OR_NOW 0
  9706. # endif
  9707. # endif
  9708. # endif
  9709. # endif
  9710. #endif
  9711. /* When -fvisbility=hidden is used, assume the code has been annotated
  9712. correspondingly for the symbols needed. */
  9713. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9714. int fnord () __attribute__((visibility("default")));
  9715. #endif
  9716. int fnord () { return 42; }
  9717. int main ()
  9718. {
  9719. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9720. int status = $lt_dlunknown;
  9721. if (self)
  9722. {
  9723. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9724. else
  9725. {
  9726. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9727. else puts (dlerror ());
  9728. }
  9729. /* dlclose (self); */
  9730. }
  9731. else
  9732. puts (dlerror ());
  9733. return status;
  9734. }
  9735. _LT_EOF
  9736. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9737. (eval $ac_link) 2>&5
  9738. ac_status=$?
  9739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9740. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9741. (./conftest; exit; ) >&5 2>/dev/null
  9742. lt_status=$?
  9743. case x$lt_status in
  9744. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9745. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9746. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9747. esac
  9748. else :
  9749. # compilation failed
  9750. lt_cv_dlopen_self=no
  9751. fi
  9752. fi
  9753. rm -fr conftest*
  9754. fi
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9756. $as_echo "$lt_cv_dlopen_self" >&6; }
  9757. if test "x$lt_cv_dlopen_self" = xyes; then
  9758. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9760. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9761. if ${lt_cv_dlopen_self_static+:} false; then :
  9762. $as_echo_n "(cached) " >&6
  9763. else
  9764. if test "$cross_compiling" = yes; then :
  9765. lt_cv_dlopen_self_static=cross
  9766. else
  9767. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9768. lt_status=$lt_dlunknown
  9769. cat > conftest.$ac_ext <<_LT_EOF
  9770. #line $LINENO "configure"
  9771. #include "confdefs.h"
  9772. #if HAVE_DLFCN_H
  9773. #include <dlfcn.h>
  9774. #endif
  9775. #include <stdio.h>
  9776. #ifdef RTLD_GLOBAL
  9777. # define LT_DLGLOBAL RTLD_GLOBAL
  9778. #else
  9779. # ifdef DL_GLOBAL
  9780. # define LT_DLGLOBAL DL_GLOBAL
  9781. # else
  9782. # define LT_DLGLOBAL 0
  9783. # endif
  9784. #endif
  9785. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9786. find out it does not work in some platform. */
  9787. #ifndef LT_DLLAZY_OR_NOW
  9788. # ifdef RTLD_LAZY
  9789. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9790. # else
  9791. # ifdef DL_LAZY
  9792. # define LT_DLLAZY_OR_NOW DL_LAZY
  9793. # else
  9794. # ifdef RTLD_NOW
  9795. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9796. # else
  9797. # ifdef DL_NOW
  9798. # define LT_DLLAZY_OR_NOW DL_NOW
  9799. # else
  9800. # define LT_DLLAZY_OR_NOW 0
  9801. # endif
  9802. # endif
  9803. # endif
  9804. # endif
  9805. #endif
  9806. /* When -fvisbility=hidden is used, assume the code has been annotated
  9807. correspondingly for the symbols needed. */
  9808. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9809. int fnord () __attribute__((visibility("default")));
  9810. #endif
  9811. int fnord () { return 42; }
  9812. int main ()
  9813. {
  9814. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9815. int status = $lt_dlunknown;
  9816. if (self)
  9817. {
  9818. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9819. else
  9820. {
  9821. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9822. else puts (dlerror ());
  9823. }
  9824. /* dlclose (self); */
  9825. }
  9826. else
  9827. puts (dlerror ());
  9828. return status;
  9829. }
  9830. _LT_EOF
  9831. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9832. (eval $ac_link) 2>&5
  9833. ac_status=$?
  9834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9835. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9836. (./conftest; exit; ) >&5 2>/dev/null
  9837. lt_status=$?
  9838. case x$lt_status in
  9839. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9840. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9841. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9842. esac
  9843. else :
  9844. # compilation failed
  9845. lt_cv_dlopen_self_static=no
  9846. fi
  9847. fi
  9848. rm -fr conftest*
  9849. fi
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9851. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9852. fi
  9853. CPPFLAGS="$save_CPPFLAGS"
  9854. LDFLAGS="$save_LDFLAGS"
  9855. LIBS="$save_LIBS"
  9856. ;;
  9857. esac
  9858. case $lt_cv_dlopen_self in
  9859. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9860. *) enable_dlopen_self=unknown ;;
  9861. esac
  9862. case $lt_cv_dlopen_self_static in
  9863. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9864. *) enable_dlopen_self_static=unknown ;;
  9865. esac
  9866. fi
  9867. striplib=
  9868. old_striplib=
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9870. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9871. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9872. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9873. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9875. $as_echo "yes" >&6; }
  9876. else
  9877. # FIXME - insert some real tests, host_os isn't really good enough
  9878. case $host_os in
  9879. darwin*)
  9880. if test -n "$STRIP" ; then
  9881. striplib="$STRIP -x"
  9882. old_striplib="$STRIP -S"
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9884. $as_echo "yes" >&6; }
  9885. else
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9887. $as_echo "no" >&6; }
  9888. fi
  9889. ;;
  9890. *)
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9892. $as_echo "no" >&6; }
  9893. ;;
  9894. esac
  9895. fi
  9896. # Report which library types will actually be built
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9898. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9900. $as_echo "$can_build_shared" >&6; }
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9902. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9903. test "$can_build_shared" = "no" && enable_shared=no
  9904. # On AIX, shared libraries and static libraries use the same namespace, and
  9905. # are all built from PIC.
  9906. case $host_os in
  9907. aix3*)
  9908. test "$enable_shared" = yes && enable_static=no
  9909. if test -n "$RANLIB"; then
  9910. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9911. postinstall_cmds='$RANLIB $lib'
  9912. fi
  9913. ;;
  9914. aix[4-9]*)
  9915. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9916. test "$enable_shared" = yes && enable_static=no
  9917. fi
  9918. ;;
  9919. esac
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9921. $as_echo "$enable_shared" >&6; }
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9923. $as_echo_n "checking whether to build static libraries... " >&6; }
  9924. # Make sure either enable_shared or enable_static is yes.
  9925. test "$enable_shared" = yes || enable_static=yes
  9926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9927. $as_echo "$enable_static" >&6; }
  9928. fi
  9929. ac_ext=c
  9930. ac_cpp='$CPP $CPPFLAGS'
  9931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9934. CC="$lt_save_CC"
  9935. ac_config_commands="$ac_config_commands libtool"
  9936. # Only expand once:
  9937. if test -n "$ac_tool_prefix"; then
  9938. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9939. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9941. $as_echo_n "checking for $ac_word... " >&6; }
  9942. if ${ac_cv_prog_RC+:} false; then :
  9943. $as_echo_n "(cached) " >&6
  9944. else
  9945. if test -n "$RC"; then
  9946. ac_cv_prog_RC="$RC" # Let the user override the test.
  9947. else
  9948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9949. for as_dir in $PATH
  9950. do
  9951. IFS=$as_save_IFS
  9952. test -z "$as_dir" && as_dir=.
  9953. for ac_exec_ext in '' $ac_executable_extensions; do
  9954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9955. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9957. break 2
  9958. fi
  9959. done
  9960. done
  9961. IFS=$as_save_IFS
  9962. fi
  9963. fi
  9964. RC=$ac_cv_prog_RC
  9965. if test -n "$RC"; then
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9967. $as_echo "$RC" >&6; }
  9968. else
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9970. $as_echo "no" >&6; }
  9971. fi
  9972. fi
  9973. if test -z "$ac_cv_prog_RC"; then
  9974. ac_ct_RC=$RC
  9975. # Extract the first word of "windres", so it can be a program name with args.
  9976. set dummy windres; ac_word=$2
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9978. $as_echo_n "checking for $ac_word... " >&6; }
  9979. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9980. $as_echo_n "(cached) " >&6
  9981. else
  9982. if test -n "$ac_ct_RC"; then
  9983. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9984. else
  9985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9986. for as_dir in $PATH
  9987. do
  9988. IFS=$as_save_IFS
  9989. test -z "$as_dir" && as_dir=.
  9990. for ac_exec_ext in '' $ac_executable_extensions; do
  9991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9992. ac_cv_prog_ac_ct_RC="windres"
  9993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9994. break 2
  9995. fi
  9996. done
  9997. done
  9998. IFS=$as_save_IFS
  9999. fi
  10000. fi
  10001. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10002. if test -n "$ac_ct_RC"; then
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10004. $as_echo "$ac_ct_RC" >&6; }
  10005. else
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10007. $as_echo "no" >&6; }
  10008. fi
  10009. if test "x$ac_ct_RC" = x; then
  10010. RC=""
  10011. else
  10012. case $cross_compiling:$ac_tool_warned in
  10013. yes:)
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10015. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10016. ac_tool_warned=yes ;;
  10017. esac
  10018. RC=$ac_ct_RC
  10019. fi
  10020. else
  10021. RC="$ac_cv_prog_RC"
  10022. fi
  10023. # Source file extension for RC test sources.
  10024. ac_ext=rc
  10025. # Object file extension for compiled RC test sources.
  10026. objext=o
  10027. objext_RC=$objext
  10028. # Code to be used in simple compile tests
  10029. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10030. # Code to be used in simple link tests
  10031. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10032. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10033. # If no C compiler was specified, use CC.
  10034. LTCC=${LTCC-"$CC"}
  10035. # If no C compiler flags were specified, use CFLAGS.
  10036. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10037. # Allow CC to be a program name with arguments.
  10038. compiler=$CC
  10039. # save warnings/boilerplate of simple test code
  10040. ac_outfile=conftest.$ac_objext
  10041. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10042. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10043. _lt_compiler_boilerplate=`cat conftest.err`
  10044. $RM conftest*
  10045. ac_outfile=conftest.$ac_objext
  10046. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10047. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10048. _lt_linker_boilerplate=`cat conftest.err`
  10049. $RM -r conftest*
  10050. # Allow CC to be a program name with arguments.
  10051. lt_save_CC="$CC"
  10052. lt_save_CFLAGS=$CFLAGS
  10053. lt_save_GCC=$GCC
  10054. GCC=
  10055. CC=${RC-"windres"}
  10056. CFLAGS=
  10057. compiler=$CC
  10058. compiler_RC=$CC
  10059. for cc_temp in $compiler""; do
  10060. case $cc_temp in
  10061. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10062. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10063. \-*) ;;
  10064. *) break;;
  10065. esac
  10066. done
  10067. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10068. lt_cv_prog_compiler_c_o_RC=yes
  10069. if test -n "$compiler"; then
  10070. :
  10071. fi
  10072. GCC=$lt_save_GCC
  10073. ac_ext=c
  10074. ac_cpp='$CPP $CPPFLAGS'
  10075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10078. CC=$lt_save_CC
  10079. CFLAGS=$lt_save_CFLAGS
  10080. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10081. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10082. LT_REVISION=$SDL_INTERFACE_AGE
  10083. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10084. ac_ext=c
  10085. ac_cpp='$CPP $CPPFLAGS'
  10086. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10087. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10088. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10089. if test -n "$ac_tool_prefix"; then
  10090. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10091. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10093. $as_echo_n "checking for $ac_word... " >&6; }
  10094. if ${ac_cv_prog_CC+:} false; then :
  10095. $as_echo_n "(cached) " >&6
  10096. else
  10097. if test -n "$CC"; then
  10098. ac_cv_prog_CC="$CC" # Let the user override the test.
  10099. else
  10100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10101. for as_dir in $PATH
  10102. do
  10103. IFS=$as_save_IFS
  10104. test -z "$as_dir" && as_dir=.
  10105. for ac_exec_ext in '' $ac_executable_extensions; do
  10106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10107. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10109. break 2
  10110. fi
  10111. done
  10112. done
  10113. IFS=$as_save_IFS
  10114. fi
  10115. fi
  10116. CC=$ac_cv_prog_CC
  10117. if test -n "$CC"; then
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10119. $as_echo "$CC" >&6; }
  10120. else
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10122. $as_echo "no" >&6; }
  10123. fi
  10124. fi
  10125. if test -z "$ac_cv_prog_CC"; then
  10126. ac_ct_CC=$CC
  10127. # Extract the first word of "gcc", so it can be a program name with args.
  10128. set dummy gcc; ac_word=$2
  10129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10130. $as_echo_n "checking for $ac_word... " >&6; }
  10131. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10132. $as_echo_n "(cached) " >&6
  10133. else
  10134. if test -n "$ac_ct_CC"; then
  10135. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10136. else
  10137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10138. for as_dir in $PATH
  10139. do
  10140. IFS=$as_save_IFS
  10141. test -z "$as_dir" && as_dir=.
  10142. for ac_exec_ext in '' $ac_executable_extensions; do
  10143. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10144. ac_cv_prog_ac_ct_CC="gcc"
  10145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10146. break 2
  10147. fi
  10148. done
  10149. done
  10150. IFS=$as_save_IFS
  10151. fi
  10152. fi
  10153. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10154. if test -n "$ac_ct_CC"; then
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10156. $as_echo "$ac_ct_CC" >&6; }
  10157. else
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10159. $as_echo "no" >&6; }
  10160. fi
  10161. if test "x$ac_ct_CC" = x; then
  10162. CC=""
  10163. else
  10164. case $cross_compiling:$ac_tool_warned in
  10165. yes:)
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10167. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10168. ac_tool_warned=yes ;;
  10169. esac
  10170. CC=$ac_ct_CC
  10171. fi
  10172. else
  10173. CC="$ac_cv_prog_CC"
  10174. fi
  10175. if test -z "$CC"; then
  10176. if test -n "$ac_tool_prefix"; then
  10177. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10178. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10180. $as_echo_n "checking for $ac_word... " >&6; }
  10181. if ${ac_cv_prog_CC+:} false; then :
  10182. $as_echo_n "(cached) " >&6
  10183. else
  10184. if test -n "$CC"; then
  10185. ac_cv_prog_CC="$CC" # Let the user override the test.
  10186. else
  10187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10188. for as_dir in $PATH
  10189. do
  10190. IFS=$as_save_IFS
  10191. test -z "$as_dir" && as_dir=.
  10192. for ac_exec_ext in '' $ac_executable_extensions; do
  10193. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10194. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10196. break 2
  10197. fi
  10198. done
  10199. done
  10200. IFS=$as_save_IFS
  10201. fi
  10202. fi
  10203. CC=$ac_cv_prog_CC
  10204. if test -n "$CC"; then
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10206. $as_echo "$CC" >&6; }
  10207. else
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10209. $as_echo "no" >&6; }
  10210. fi
  10211. fi
  10212. fi
  10213. if test -z "$CC"; then
  10214. # Extract the first word of "cc", so it can be a program name with args.
  10215. set dummy cc; ac_word=$2
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10217. $as_echo_n "checking for $ac_word... " >&6; }
  10218. if ${ac_cv_prog_CC+:} false; then :
  10219. $as_echo_n "(cached) " >&6
  10220. else
  10221. if test -n "$CC"; then
  10222. ac_cv_prog_CC="$CC" # Let the user override the test.
  10223. else
  10224. ac_prog_rejected=no
  10225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10226. for as_dir in $PATH
  10227. do
  10228. IFS=$as_save_IFS
  10229. test -z "$as_dir" && as_dir=.
  10230. for ac_exec_ext in '' $ac_executable_extensions; do
  10231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10232. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10233. ac_prog_rejected=yes
  10234. continue
  10235. fi
  10236. ac_cv_prog_CC="cc"
  10237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10238. break 2
  10239. fi
  10240. done
  10241. done
  10242. IFS=$as_save_IFS
  10243. if test $ac_prog_rejected = yes; then
  10244. # We found a bogon in the path, so make sure we never use it.
  10245. set dummy $ac_cv_prog_CC
  10246. shift
  10247. if test $# != 0; then
  10248. # We chose a different compiler from the bogus one.
  10249. # However, it has the same basename, so the bogon will be chosen
  10250. # first if we set CC to just the basename; use the full file name.
  10251. shift
  10252. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10253. fi
  10254. fi
  10255. fi
  10256. fi
  10257. CC=$ac_cv_prog_CC
  10258. if test -n "$CC"; then
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10260. $as_echo "$CC" >&6; }
  10261. else
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10263. $as_echo "no" >&6; }
  10264. fi
  10265. fi
  10266. if test -z "$CC"; then
  10267. if test -n "$ac_tool_prefix"; then
  10268. for ac_prog in cl.exe
  10269. do
  10270. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10271. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10273. $as_echo_n "checking for $ac_word... " >&6; }
  10274. if ${ac_cv_prog_CC+:} false; then :
  10275. $as_echo_n "(cached) " >&6
  10276. else
  10277. if test -n "$CC"; then
  10278. ac_cv_prog_CC="$CC" # Let the user override the test.
  10279. else
  10280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10281. for as_dir in $PATH
  10282. do
  10283. IFS=$as_save_IFS
  10284. test -z "$as_dir" && as_dir=.
  10285. for ac_exec_ext in '' $ac_executable_extensions; do
  10286. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10287. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10289. break 2
  10290. fi
  10291. done
  10292. done
  10293. IFS=$as_save_IFS
  10294. fi
  10295. fi
  10296. CC=$ac_cv_prog_CC
  10297. if test -n "$CC"; then
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10299. $as_echo "$CC" >&6; }
  10300. else
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10302. $as_echo "no" >&6; }
  10303. fi
  10304. test -n "$CC" && break
  10305. done
  10306. fi
  10307. if test -z "$CC"; then
  10308. ac_ct_CC=$CC
  10309. for ac_prog in cl.exe
  10310. do
  10311. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10312. set dummy $ac_prog; ac_word=$2
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10314. $as_echo_n "checking for $ac_word... " >&6; }
  10315. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10316. $as_echo_n "(cached) " >&6
  10317. else
  10318. if test -n "$ac_ct_CC"; then
  10319. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10320. else
  10321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10322. for as_dir in $PATH
  10323. do
  10324. IFS=$as_save_IFS
  10325. test -z "$as_dir" && as_dir=.
  10326. for ac_exec_ext in '' $ac_executable_extensions; do
  10327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10328. ac_cv_prog_ac_ct_CC="$ac_prog"
  10329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10330. break 2
  10331. fi
  10332. done
  10333. done
  10334. IFS=$as_save_IFS
  10335. fi
  10336. fi
  10337. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10338. if test -n "$ac_ct_CC"; then
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10340. $as_echo "$ac_ct_CC" >&6; }
  10341. else
  10342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10343. $as_echo "no" >&6; }
  10344. fi
  10345. test -n "$ac_ct_CC" && break
  10346. done
  10347. if test "x$ac_ct_CC" = x; then
  10348. CC=""
  10349. else
  10350. case $cross_compiling:$ac_tool_warned in
  10351. yes:)
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10353. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10354. ac_tool_warned=yes ;;
  10355. esac
  10356. CC=$ac_ct_CC
  10357. fi
  10358. fi
  10359. fi
  10360. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10361. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10362. as_fn_error $? "no acceptable C compiler found in \$PATH
  10363. See \`config.log' for more details" "$LINENO" 5; }
  10364. # Provide some information about the compiler.
  10365. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10366. set X $ac_compile
  10367. ac_compiler=$2
  10368. for ac_option in --version -v -V -qversion; do
  10369. { { ac_try="$ac_compiler $ac_option >&5"
  10370. case "(($ac_try" in
  10371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10372. *) ac_try_echo=$ac_try;;
  10373. esac
  10374. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10375. $as_echo "$ac_try_echo"; } >&5
  10376. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10377. ac_status=$?
  10378. if test -s conftest.err; then
  10379. sed '10a\
  10380. ... rest of stderr output deleted ...
  10381. 10q' conftest.err >conftest.er1
  10382. cat conftest.er1 >&5
  10383. fi
  10384. rm -f conftest.er1 conftest.err
  10385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10386. test $ac_status = 0; }
  10387. done
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10389. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10390. if ${ac_cv_c_compiler_gnu+:} false; then :
  10391. $as_echo_n "(cached) " >&6
  10392. else
  10393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10394. /* end confdefs.h. */
  10395. int
  10396. main ()
  10397. {
  10398. #ifndef __GNUC__
  10399. choke me
  10400. #endif
  10401. ;
  10402. return 0;
  10403. }
  10404. _ACEOF
  10405. if ac_fn_c_try_compile "$LINENO"; then :
  10406. ac_compiler_gnu=yes
  10407. else
  10408. ac_compiler_gnu=no
  10409. fi
  10410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10411. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10412. fi
  10413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10414. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10415. if test $ac_compiler_gnu = yes; then
  10416. GCC=yes
  10417. else
  10418. GCC=
  10419. fi
  10420. ac_test_CFLAGS=${CFLAGS+set}
  10421. ac_save_CFLAGS=$CFLAGS
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10423. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10424. if ${ac_cv_prog_cc_g+:} false; then :
  10425. $as_echo_n "(cached) " >&6
  10426. else
  10427. ac_save_c_werror_flag=$ac_c_werror_flag
  10428. ac_c_werror_flag=yes
  10429. ac_cv_prog_cc_g=no
  10430. CFLAGS="-g"
  10431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10432. /* end confdefs.h. */
  10433. int
  10434. main ()
  10435. {
  10436. ;
  10437. return 0;
  10438. }
  10439. _ACEOF
  10440. if ac_fn_c_try_compile "$LINENO"; then :
  10441. ac_cv_prog_cc_g=yes
  10442. else
  10443. CFLAGS=""
  10444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10445. /* end confdefs.h. */
  10446. int
  10447. main ()
  10448. {
  10449. ;
  10450. return 0;
  10451. }
  10452. _ACEOF
  10453. if ac_fn_c_try_compile "$LINENO"; then :
  10454. else
  10455. ac_c_werror_flag=$ac_save_c_werror_flag
  10456. CFLAGS="-g"
  10457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10458. /* end confdefs.h. */
  10459. int
  10460. main ()
  10461. {
  10462. ;
  10463. return 0;
  10464. }
  10465. _ACEOF
  10466. if ac_fn_c_try_compile "$LINENO"; then :
  10467. ac_cv_prog_cc_g=yes
  10468. fi
  10469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10470. fi
  10471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10472. fi
  10473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10474. ac_c_werror_flag=$ac_save_c_werror_flag
  10475. fi
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10477. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10478. if test "$ac_test_CFLAGS" = set; then
  10479. CFLAGS=$ac_save_CFLAGS
  10480. elif test $ac_cv_prog_cc_g = yes; then
  10481. if test "$GCC" = yes; then
  10482. CFLAGS="-g -O2"
  10483. else
  10484. CFLAGS="-g"
  10485. fi
  10486. else
  10487. if test "$GCC" = yes; then
  10488. CFLAGS="-O2"
  10489. else
  10490. CFLAGS=
  10491. fi
  10492. fi
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10494. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10495. if ${ac_cv_prog_cc_c89+:} false; then :
  10496. $as_echo_n "(cached) " >&6
  10497. else
  10498. ac_cv_prog_cc_c89=no
  10499. ac_save_CC=$CC
  10500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10501. /* end confdefs.h. */
  10502. #include <stdarg.h>
  10503. #include <stdio.h>
  10504. struct stat;
  10505. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10506. struct buf { int x; };
  10507. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10508. static char *e (p, i)
  10509. char **p;
  10510. int i;
  10511. {
  10512. return p[i];
  10513. }
  10514. static char *f (char * (*g) (char **, int), char **p, ...)
  10515. {
  10516. char *s;
  10517. va_list v;
  10518. va_start (v,p);
  10519. s = g (p, va_arg (v,int));
  10520. va_end (v);
  10521. return s;
  10522. }
  10523. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10524. function prototypes and stuff, but not '\xHH' hex character constants.
  10525. These don't provoke an error unfortunately, instead are silently treated
  10526. as 'x'. The following induces an error, until -std is added to get
  10527. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10528. array size at least. It's necessary to write '\x00'==0 to get something
  10529. that's true only with -std. */
  10530. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10531. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10532. inside strings and character constants. */
  10533. #define FOO(x) 'x'
  10534. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10535. int test (int i, double x);
  10536. struct s1 {int (*f) (int a);};
  10537. struct s2 {int (*f) (double a);};
  10538. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10539. int argc;
  10540. char **argv;
  10541. int
  10542. main ()
  10543. {
  10544. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10545. ;
  10546. return 0;
  10547. }
  10548. _ACEOF
  10549. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10550. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10551. do
  10552. CC="$ac_save_CC $ac_arg"
  10553. if ac_fn_c_try_compile "$LINENO"; then :
  10554. ac_cv_prog_cc_c89=$ac_arg
  10555. fi
  10556. rm -f core conftest.err conftest.$ac_objext
  10557. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10558. done
  10559. rm -f conftest.$ac_ext
  10560. CC=$ac_save_CC
  10561. fi
  10562. # AC_CACHE_VAL
  10563. case "x$ac_cv_prog_cc_c89" in
  10564. x)
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10566. $as_echo "none needed" >&6; } ;;
  10567. xno)
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10569. $as_echo "unsupported" >&6; } ;;
  10570. *)
  10571. CC="$CC $ac_cv_prog_cc_c89"
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10573. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10574. esac
  10575. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10576. fi
  10577. ac_ext=c
  10578. ac_cpp='$CPP $CPPFLAGS'
  10579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10582. ac_ext=cpp
  10583. ac_cpp='$CXXCPP $CPPFLAGS'
  10584. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10585. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10586. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10587. if test -z "$CXX"; then
  10588. if test -n "$CCC"; then
  10589. CXX=$CCC
  10590. else
  10591. if test -n "$ac_tool_prefix"; then
  10592. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10593. do
  10594. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10595. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10597. $as_echo_n "checking for $ac_word... " >&6; }
  10598. if ${ac_cv_prog_CXX+:} false; then :
  10599. $as_echo_n "(cached) " >&6
  10600. else
  10601. if test -n "$CXX"; then
  10602. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10603. else
  10604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10605. for as_dir in $PATH
  10606. do
  10607. IFS=$as_save_IFS
  10608. test -z "$as_dir" && as_dir=.
  10609. for ac_exec_ext in '' $ac_executable_extensions; do
  10610. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10611. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10613. break 2
  10614. fi
  10615. done
  10616. done
  10617. IFS=$as_save_IFS
  10618. fi
  10619. fi
  10620. CXX=$ac_cv_prog_CXX
  10621. if test -n "$CXX"; then
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10623. $as_echo "$CXX" >&6; }
  10624. else
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10626. $as_echo "no" >&6; }
  10627. fi
  10628. test -n "$CXX" && break
  10629. done
  10630. fi
  10631. if test -z "$CXX"; then
  10632. ac_ct_CXX=$CXX
  10633. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10634. do
  10635. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10636. set dummy $ac_prog; ac_word=$2
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10638. $as_echo_n "checking for $ac_word... " >&6; }
  10639. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10640. $as_echo_n "(cached) " >&6
  10641. else
  10642. if test -n "$ac_ct_CXX"; then
  10643. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10644. else
  10645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10646. for as_dir in $PATH
  10647. do
  10648. IFS=$as_save_IFS
  10649. test -z "$as_dir" && as_dir=.
  10650. for ac_exec_ext in '' $ac_executable_extensions; do
  10651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10652. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10654. break 2
  10655. fi
  10656. done
  10657. done
  10658. IFS=$as_save_IFS
  10659. fi
  10660. fi
  10661. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10662. if test -n "$ac_ct_CXX"; then
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10664. $as_echo "$ac_ct_CXX" >&6; }
  10665. else
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10667. $as_echo "no" >&6; }
  10668. fi
  10669. test -n "$ac_ct_CXX" && break
  10670. done
  10671. if test "x$ac_ct_CXX" = x; then
  10672. CXX="g++"
  10673. else
  10674. case $cross_compiling:$ac_tool_warned in
  10675. yes:)
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10677. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10678. ac_tool_warned=yes ;;
  10679. esac
  10680. CXX=$ac_ct_CXX
  10681. fi
  10682. fi
  10683. fi
  10684. fi
  10685. # Provide some information about the compiler.
  10686. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10687. set X $ac_compile
  10688. ac_compiler=$2
  10689. for ac_option in --version -v -V -qversion; do
  10690. { { ac_try="$ac_compiler $ac_option >&5"
  10691. case "(($ac_try" in
  10692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10693. *) ac_try_echo=$ac_try;;
  10694. esac
  10695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10696. $as_echo "$ac_try_echo"; } >&5
  10697. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10698. ac_status=$?
  10699. if test -s conftest.err; then
  10700. sed '10a\
  10701. ... rest of stderr output deleted ...
  10702. 10q' conftest.err >conftest.er1
  10703. cat conftest.er1 >&5
  10704. fi
  10705. rm -f conftest.er1 conftest.err
  10706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10707. test $ac_status = 0; }
  10708. done
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10710. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10711. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10712. $as_echo_n "(cached) " >&6
  10713. else
  10714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10715. /* end confdefs.h. */
  10716. int
  10717. main ()
  10718. {
  10719. #ifndef __GNUC__
  10720. choke me
  10721. #endif
  10722. ;
  10723. return 0;
  10724. }
  10725. _ACEOF
  10726. if ac_fn_cxx_try_compile "$LINENO"; then :
  10727. ac_compiler_gnu=yes
  10728. else
  10729. ac_compiler_gnu=no
  10730. fi
  10731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10732. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10733. fi
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10735. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10736. if test $ac_compiler_gnu = yes; then
  10737. GXX=yes
  10738. else
  10739. GXX=
  10740. fi
  10741. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10742. ac_save_CXXFLAGS=$CXXFLAGS
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10744. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10745. if ${ac_cv_prog_cxx_g+:} false; then :
  10746. $as_echo_n "(cached) " >&6
  10747. else
  10748. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10749. ac_cxx_werror_flag=yes
  10750. ac_cv_prog_cxx_g=no
  10751. CXXFLAGS="-g"
  10752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10753. /* end confdefs.h. */
  10754. int
  10755. main ()
  10756. {
  10757. ;
  10758. return 0;
  10759. }
  10760. _ACEOF
  10761. if ac_fn_cxx_try_compile "$LINENO"; then :
  10762. ac_cv_prog_cxx_g=yes
  10763. else
  10764. CXXFLAGS=""
  10765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10766. /* end confdefs.h. */
  10767. int
  10768. main ()
  10769. {
  10770. ;
  10771. return 0;
  10772. }
  10773. _ACEOF
  10774. if ac_fn_cxx_try_compile "$LINENO"; then :
  10775. else
  10776. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10777. CXXFLAGS="-g"
  10778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10779. /* end confdefs.h. */
  10780. int
  10781. main ()
  10782. {
  10783. ;
  10784. return 0;
  10785. }
  10786. _ACEOF
  10787. if ac_fn_cxx_try_compile "$LINENO"; then :
  10788. ac_cv_prog_cxx_g=yes
  10789. fi
  10790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10791. fi
  10792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10793. fi
  10794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10795. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10796. fi
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10798. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10799. if test "$ac_test_CXXFLAGS" = set; then
  10800. CXXFLAGS=$ac_save_CXXFLAGS
  10801. elif test $ac_cv_prog_cxx_g = yes; then
  10802. if test "$GXX" = yes; then
  10803. CXXFLAGS="-g -O2"
  10804. else
  10805. CXXFLAGS="-g"
  10806. fi
  10807. else
  10808. if test "$GXX" = yes; then
  10809. CXXFLAGS="-O2"
  10810. else
  10811. CXXFLAGS=
  10812. fi
  10813. fi
  10814. ac_ext=c
  10815. ac_cpp='$CPP $CPPFLAGS'
  10816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10819. func_stripname_cnf ()
  10820. {
  10821. case ${2} in
  10822. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10823. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10824. esac
  10825. } # func_stripname_cnf
  10826. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10827. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10828. (test "X$CXX" != "Xg++"))) ; then
  10829. ac_ext=cpp
  10830. ac_cpp='$CXXCPP $CPPFLAGS'
  10831. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10832. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10833. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10835. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10836. if test -z "$CXXCPP"; then
  10837. if ${ac_cv_prog_CXXCPP+:} false; then :
  10838. $as_echo_n "(cached) " >&6
  10839. else
  10840. # Double quotes because CXXCPP needs to be expanded
  10841. for CXXCPP in "$CXX -E" "/lib/cpp"
  10842. do
  10843. ac_preproc_ok=false
  10844. for ac_cxx_preproc_warn_flag in '' yes
  10845. do
  10846. # Use a header file that comes with gcc, so configuring glibc
  10847. # with a fresh cross-compiler works.
  10848. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10849. # <limits.h> exists even on freestanding compilers.
  10850. # On the NeXT, cc -E runs the code through the compiler's parser,
  10851. # not just through cpp. "Syntax error" is here to catch this case.
  10852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10853. /* end confdefs.h. */
  10854. #ifdef __STDC__
  10855. # include <limits.h>
  10856. #else
  10857. # include <assert.h>
  10858. #endif
  10859. Syntax error
  10860. _ACEOF
  10861. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10862. else
  10863. # Broken: fails on valid input.
  10864. continue
  10865. fi
  10866. rm -f conftest.err conftest.i conftest.$ac_ext
  10867. # OK, works on sane cases. Now check whether nonexistent headers
  10868. # can be detected and how.
  10869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10870. /* end confdefs.h. */
  10871. #include <ac_nonexistent.h>
  10872. _ACEOF
  10873. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10874. # Broken: success on invalid input.
  10875. continue
  10876. else
  10877. # Passes both tests.
  10878. ac_preproc_ok=:
  10879. break
  10880. fi
  10881. rm -f conftest.err conftest.i conftest.$ac_ext
  10882. done
  10883. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10884. rm -f conftest.i conftest.err conftest.$ac_ext
  10885. if $ac_preproc_ok; then :
  10886. break
  10887. fi
  10888. done
  10889. ac_cv_prog_CXXCPP=$CXXCPP
  10890. fi
  10891. CXXCPP=$ac_cv_prog_CXXCPP
  10892. else
  10893. ac_cv_prog_CXXCPP=$CXXCPP
  10894. fi
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10896. $as_echo "$CXXCPP" >&6; }
  10897. ac_preproc_ok=false
  10898. for ac_cxx_preproc_warn_flag in '' yes
  10899. do
  10900. # Use a header file that comes with gcc, so configuring glibc
  10901. # with a fresh cross-compiler works.
  10902. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10903. # <limits.h> exists even on freestanding compilers.
  10904. # On the NeXT, cc -E runs the code through the compiler's parser,
  10905. # not just through cpp. "Syntax error" is here to catch this case.
  10906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10907. /* end confdefs.h. */
  10908. #ifdef __STDC__
  10909. # include <limits.h>
  10910. #else
  10911. # include <assert.h>
  10912. #endif
  10913. Syntax error
  10914. _ACEOF
  10915. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10916. else
  10917. # Broken: fails on valid input.
  10918. continue
  10919. fi
  10920. rm -f conftest.err conftest.i conftest.$ac_ext
  10921. # OK, works on sane cases. Now check whether nonexistent headers
  10922. # can be detected and how.
  10923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10924. /* end confdefs.h. */
  10925. #include <ac_nonexistent.h>
  10926. _ACEOF
  10927. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10928. # Broken: success on invalid input.
  10929. continue
  10930. else
  10931. # Passes both tests.
  10932. ac_preproc_ok=:
  10933. break
  10934. fi
  10935. rm -f conftest.err conftest.i conftest.$ac_ext
  10936. done
  10937. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10938. rm -f conftest.i conftest.err conftest.$ac_ext
  10939. if $ac_preproc_ok; then :
  10940. else
  10941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10943. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10944. See \`config.log' for more details" "$LINENO" 5; }
  10945. fi
  10946. ac_ext=c
  10947. ac_cpp='$CPP $CPPFLAGS'
  10948. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10949. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10950. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10951. else
  10952. _lt_caught_CXX_error=yes
  10953. fi
  10954. ac_ext=cpp
  10955. ac_cpp='$CXXCPP $CPPFLAGS'
  10956. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10957. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10958. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10959. archive_cmds_need_lc_CXX=no
  10960. allow_undefined_flag_CXX=
  10961. always_export_symbols_CXX=no
  10962. archive_expsym_cmds_CXX=
  10963. compiler_needs_object_CXX=no
  10964. export_dynamic_flag_spec_CXX=
  10965. hardcode_direct_CXX=no
  10966. hardcode_direct_absolute_CXX=no
  10967. hardcode_libdir_flag_spec_CXX=
  10968. hardcode_libdir_separator_CXX=
  10969. hardcode_minus_L_CXX=no
  10970. hardcode_shlibpath_var_CXX=unsupported
  10971. hardcode_automatic_CXX=no
  10972. inherit_rpath_CXX=no
  10973. module_cmds_CXX=
  10974. module_expsym_cmds_CXX=
  10975. link_all_deplibs_CXX=unknown
  10976. old_archive_cmds_CXX=$old_archive_cmds
  10977. reload_flag_CXX=$reload_flag
  10978. reload_cmds_CXX=$reload_cmds
  10979. no_undefined_flag_CXX=
  10980. whole_archive_flag_spec_CXX=
  10981. enable_shared_with_static_runtimes_CXX=no
  10982. # Source file extension for C++ test sources.
  10983. ac_ext=cpp
  10984. # Object file extension for compiled C++ test sources.
  10985. objext=o
  10986. objext_CXX=$objext
  10987. # No sense in running all these tests if we already determined that
  10988. # the CXX compiler isn't working. Some variables (like enable_shared)
  10989. # are currently assumed to apply to all compilers on this platform,
  10990. # and will be corrupted by setting them based on a non-working compiler.
  10991. if test "$_lt_caught_CXX_error" != yes; then
  10992. # Code to be used in simple compile tests
  10993. lt_simple_compile_test_code="int some_variable = 0;"
  10994. # Code to be used in simple link tests
  10995. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10996. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10997. # If no C compiler was specified, use CC.
  10998. LTCC=${LTCC-"$CC"}
  10999. # If no C compiler flags were specified, use CFLAGS.
  11000. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11001. # Allow CC to be a program name with arguments.
  11002. compiler=$CC
  11003. # save warnings/boilerplate of simple test code
  11004. ac_outfile=conftest.$ac_objext
  11005. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11006. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11007. _lt_compiler_boilerplate=`cat conftest.err`
  11008. $RM conftest*
  11009. ac_outfile=conftest.$ac_objext
  11010. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11011. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11012. _lt_linker_boilerplate=`cat conftest.err`
  11013. $RM -r conftest*
  11014. # Allow CC to be a program name with arguments.
  11015. lt_save_CC=$CC
  11016. lt_save_CFLAGS=$CFLAGS
  11017. lt_save_LD=$LD
  11018. lt_save_GCC=$GCC
  11019. GCC=$GXX
  11020. lt_save_with_gnu_ld=$with_gnu_ld
  11021. lt_save_path_LD=$lt_cv_path_LD
  11022. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11023. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11024. else
  11025. $as_unset lt_cv_prog_gnu_ld
  11026. fi
  11027. if test -n "${lt_cv_path_LDCXX+set}"; then
  11028. lt_cv_path_LD=$lt_cv_path_LDCXX
  11029. else
  11030. $as_unset lt_cv_path_LD
  11031. fi
  11032. test -z "${LDCXX+set}" || LD=$LDCXX
  11033. CC=${CXX-"c++"}
  11034. CFLAGS=$CXXFLAGS
  11035. compiler=$CC
  11036. compiler_CXX=$CC
  11037. for cc_temp in $compiler""; do
  11038. case $cc_temp in
  11039. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11040. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11041. \-*) ;;
  11042. *) break;;
  11043. esac
  11044. done
  11045. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11046. if test -n "$compiler"; then
  11047. # We don't want -fno-exception when compiling C++ code, so set the
  11048. # no_builtin_flag separately
  11049. if test "$GXX" = yes; then
  11050. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11051. else
  11052. lt_prog_compiler_no_builtin_flag_CXX=
  11053. fi
  11054. if test "$GXX" = yes; then
  11055. # Set up default GNU C++ configuration
  11056. # Check whether --with-gnu-ld was given.
  11057. if test "${with_gnu_ld+set}" = set; then :
  11058. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11059. else
  11060. with_gnu_ld=no
  11061. fi
  11062. ac_prog=ld
  11063. if test "$GCC" = yes; then
  11064. # Check if gcc -print-prog-name=ld gives a path.
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11066. $as_echo_n "checking for ld used by $CC... " >&6; }
  11067. case $host in
  11068. *-*-mingw*)
  11069. # gcc leaves a trailing carriage return which upsets mingw
  11070. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11071. *)
  11072. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11073. esac
  11074. case $ac_prog in
  11075. # Accept absolute paths.
  11076. [\\/]* | ?:[\\/]*)
  11077. re_direlt='/[^/][^/]*/\.\./'
  11078. # Canonicalize the pathname of ld
  11079. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11080. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11081. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11082. done
  11083. test -z "$LD" && LD="$ac_prog"
  11084. ;;
  11085. "")
  11086. # If it fails, then pretend we aren't using GCC.
  11087. ac_prog=ld
  11088. ;;
  11089. *)
  11090. # If it is relative, then search for the first ld in PATH.
  11091. with_gnu_ld=unknown
  11092. ;;
  11093. esac
  11094. elif test "$with_gnu_ld" = yes; then
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11096. $as_echo_n "checking for GNU ld... " >&6; }
  11097. else
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11099. $as_echo_n "checking for non-GNU ld... " >&6; }
  11100. fi
  11101. if ${lt_cv_path_LD+:} false; then :
  11102. $as_echo_n "(cached) " >&6
  11103. else
  11104. if test -z "$LD"; then
  11105. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11106. for ac_dir in $PATH; do
  11107. IFS="$lt_save_ifs"
  11108. test -z "$ac_dir" && ac_dir=.
  11109. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11110. lt_cv_path_LD="$ac_dir/$ac_prog"
  11111. # Check to see if the program is GNU ld. I'd rather use --version,
  11112. # but apparently some variants of GNU ld only accept -v.
  11113. # Break only if it was the GNU/non-GNU ld that we prefer.
  11114. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11115. *GNU* | *'with BFD'*)
  11116. test "$with_gnu_ld" != no && break
  11117. ;;
  11118. *)
  11119. test "$with_gnu_ld" != yes && break
  11120. ;;
  11121. esac
  11122. fi
  11123. done
  11124. IFS="$lt_save_ifs"
  11125. else
  11126. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11127. fi
  11128. fi
  11129. LD="$lt_cv_path_LD"
  11130. if test -n "$LD"; then
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11132. $as_echo "$LD" >&6; }
  11133. else
  11134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11135. $as_echo "no" >&6; }
  11136. fi
  11137. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11139. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11140. if ${lt_cv_prog_gnu_ld+:} false; then :
  11141. $as_echo_n "(cached) " >&6
  11142. else
  11143. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11144. case `$LD -v 2>&1 </dev/null` in
  11145. *GNU* | *'with BFD'*)
  11146. lt_cv_prog_gnu_ld=yes
  11147. ;;
  11148. *)
  11149. lt_cv_prog_gnu_ld=no
  11150. ;;
  11151. esac
  11152. fi
  11153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11154. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11155. with_gnu_ld=$lt_cv_prog_gnu_ld
  11156. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11157. # archiving commands below assume that GNU ld is being used.
  11158. if test "$with_gnu_ld" = yes; then
  11159. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11160. 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'
  11161. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11162. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11163. # If archive_cmds runs LD, not CC, wlarc should be empty
  11164. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11165. # investigate it a little bit more. (MM)
  11166. wlarc='${wl}'
  11167. # ancient GNU ld didn't support --whole-archive et. al.
  11168. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11169. $GREP 'no-whole-archive' > /dev/null; then
  11170. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11171. else
  11172. whole_archive_flag_spec_CXX=
  11173. fi
  11174. else
  11175. with_gnu_ld=no
  11176. wlarc=
  11177. # A generic and very simple default shared library creation
  11178. # command for GNU C++ for the case where it uses the native
  11179. # linker, instead of GNU ld. If possible, this setting should
  11180. # overridden to take advantage of the native linker features on
  11181. # the platform it is being used on.
  11182. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11183. fi
  11184. # Commands to make compiler produce verbose output that lists
  11185. # what "hidden" libraries, object files and flags are used when
  11186. # linking a shared library.
  11187. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11188. else
  11189. GXX=no
  11190. with_gnu_ld=no
  11191. wlarc=
  11192. fi
  11193. # PORTME: fill in a description of your system's C++ link characteristics
  11194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11195. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11196. ld_shlibs_CXX=yes
  11197. case $host_os in
  11198. aix3*)
  11199. # FIXME: insert proper C++ library support
  11200. ld_shlibs_CXX=no
  11201. ;;
  11202. aix[4-9]*)
  11203. if test "$host_cpu" = ia64; then
  11204. # On IA64, the linker does run time linking by default, so we don't
  11205. # have to do anything special.
  11206. aix_use_runtimelinking=no
  11207. exp_sym_flag='-Bexport'
  11208. no_entry_flag=""
  11209. else
  11210. aix_use_runtimelinking=no
  11211. # Test if we are trying to use run time linking or normal
  11212. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11213. # need to do runtime linking.
  11214. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11215. for ld_flag in $LDFLAGS; do
  11216. case $ld_flag in
  11217. *-brtl*)
  11218. aix_use_runtimelinking=yes
  11219. break
  11220. ;;
  11221. esac
  11222. done
  11223. ;;
  11224. esac
  11225. exp_sym_flag='-bexport'
  11226. no_entry_flag='-bnoentry'
  11227. fi
  11228. # When large executables or shared objects are built, AIX ld can
  11229. # have problems creating the table of contents. If linking a library
  11230. # or program results in "error TOC overflow" add -mminimal-toc to
  11231. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11232. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11233. archive_cmds_CXX=''
  11234. hardcode_direct_CXX=yes
  11235. hardcode_direct_absolute_CXX=yes
  11236. hardcode_libdir_separator_CXX=':'
  11237. link_all_deplibs_CXX=yes
  11238. file_list_spec_CXX='${wl}-f,'
  11239. if test "$GXX" = yes; then
  11240. case $host_os in aix4.[012]|aix4.[012].*)
  11241. # We only want to do this on AIX 4.2 and lower, the check
  11242. # below for broken collect2 doesn't work under 4.3+
  11243. collect2name=`${CC} -print-prog-name=collect2`
  11244. if test -f "$collect2name" &&
  11245. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11246. then
  11247. # We have reworked collect2
  11248. :
  11249. else
  11250. # We have old collect2
  11251. hardcode_direct_CXX=unsupported
  11252. # It fails to find uninstalled libraries when the uninstalled
  11253. # path is not listed in the libpath. Setting hardcode_minus_L
  11254. # to unsupported forces relinking
  11255. hardcode_minus_L_CXX=yes
  11256. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11257. hardcode_libdir_separator_CXX=
  11258. fi
  11259. esac
  11260. shared_flag='-shared'
  11261. if test "$aix_use_runtimelinking" = yes; then
  11262. shared_flag="$shared_flag "'${wl}-G'
  11263. fi
  11264. else
  11265. # not using gcc
  11266. if test "$host_cpu" = ia64; then
  11267. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11268. # chokes on -Wl,-G. The following line is correct:
  11269. shared_flag='-G'
  11270. else
  11271. if test "$aix_use_runtimelinking" = yes; then
  11272. shared_flag='${wl}-G'
  11273. else
  11274. shared_flag='${wl}-bM:SRE'
  11275. fi
  11276. fi
  11277. fi
  11278. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11279. # It seems that -bexpall does not export symbols beginning with
  11280. # underscore (_), so it is better to generate a list of symbols to
  11281. # export.
  11282. always_export_symbols_CXX=yes
  11283. if test "$aix_use_runtimelinking" = yes; then
  11284. # Warning - without using the other runtime loading flags (-brtl),
  11285. # -berok will link without error, but may produce a broken library.
  11286. allow_undefined_flag_CXX='-berok'
  11287. # Determine the default libpath from the value encoded in an empty
  11288. # executable.
  11289. if test "${lt_cv_aix_libpath+set}" = set; then
  11290. aix_libpath=$lt_cv_aix_libpath
  11291. else
  11292. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11293. $as_echo_n "(cached) " >&6
  11294. else
  11295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11296. /* end confdefs.h. */
  11297. int
  11298. main ()
  11299. {
  11300. ;
  11301. return 0;
  11302. }
  11303. _ACEOF
  11304. if ac_fn_cxx_try_link "$LINENO"; then :
  11305. lt_aix_libpath_sed='
  11306. /Import File Strings/,/^$/ {
  11307. /^0/ {
  11308. s/^0 *\([^ ]*\) *$/\1/
  11309. p
  11310. }
  11311. }'
  11312. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11313. # Check for a 64-bit object if we didn't find anything.
  11314. if test -z "$lt_cv_aix_libpath__CXX"; then
  11315. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11316. fi
  11317. fi
  11318. rm -f core conftest.err conftest.$ac_objext \
  11319. conftest$ac_exeext conftest.$ac_ext
  11320. if test -z "$lt_cv_aix_libpath__CXX"; then
  11321. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11322. fi
  11323. fi
  11324. aix_libpath=$lt_cv_aix_libpath__CXX
  11325. fi
  11326. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11327. 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"
  11328. else
  11329. if test "$host_cpu" = ia64; then
  11330. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11331. allow_undefined_flag_CXX="-z nodefs"
  11332. 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"
  11333. else
  11334. # Determine the default libpath from the value encoded in an
  11335. # empty executable.
  11336. if test "${lt_cv_aix_libpath+set}" = set; then
  11337. aix_libpath=$lt_cv_aix_libpath
  11338. else
  11339. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11340. $as_echo_n "(cached) " >&6
  11341. else
  11342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11343. /* end confdefs.h. */
  11344. int
  11345. main ()
  11346. {
  11347. ;
  11348. return 0;
  11349. }
  11350. _ACEOF
  11351. if ac_fn_cxx_try_link "$LINENO"; then :
  11352. lt_aix_libpath_sed='
  11353. /Import File Strings/,/^$/ {
  11354. /^0/ {
  11355. s/^0 *\([^ ]*\) *$/\1/
  11356. p
  11357. }
  11358. }'
  11359. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11360. # Check for a 64-bit object if we didn't find anything.
  11361. if test -z "$lt_cv_aix_libpath__CXX"; then
  11362. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11363. fi
  11364. fi
  11365. rm -f core conftest.err conftest.$ac_objext \
  11366. conftest$ac_exeext conftest.$ac_ext
  11367. if test -z "$lt_cv_aix_libpath__CXX"; then
  11368. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11369. fi
  11370. fi
  11371. aix_libpath=$lt_cv_aix_libpath__CXX
  11372. fi
  11373. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11374. # Warning - without using the other run time loading flags,
  11375. # -berok will link without error, but may produce a broken library.
  11376. no_undefined_flag_CXX=' ${wl}-bernotok'
  11377. allow_undefined_flag_CXX=' ${wl}-berok'
  11378. if test "$with_gnu_ld" = yes; then
  11379. # We only use this code for GNU lds that support --whole-archive.
  11380. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11381. else
  11382. # Exported symbols can be pulled into shared objects from archives
  11383. whole_archive_flag_spec_CXX='$convenience'
  11384. fi
  11385. archive_cmds_need_lc_CXX=yes
  11386. # This is similar to how AIX traditionally builds its shared
  11387. # libraries.
  11388. 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'
  11389. fi
  11390. fi
  11391. ;;
  11392. beos*)
  11393. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11394. allow_undefined_flag_CXX=unsupported
  11395. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11396. # support --undefined. This deserves some investigation. FIXME
  11397. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11398. else
  11399. ld_shlibs_CXX=no
  11400. fi
  11401. ;;
  11402. chorus*)
  11403. case $cc_basename in
  11404. *)
  11405. # FIXME: insert proper C++ library support
  11406. ld_shlibs_CXX=no
  11407. ;;
  11408. esac
  11409. ;;
  11410. cygwin* | mingw* | pw32* | cegcc*)
  11411. case $GXX,$cc_basename in
  11412. ,cl* | no,cl*)
  11413. # Native MSVC
  11414. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11415. # no search path for DLLs.
  11416. hardcode_libdir_flag_spec_CXX=' '
  11417. allow_undefined_flag_CXX=unsupported
  11418. always_export_symbols_CXX=yes
  11419. file_list_spec_CXX='@'
  11420. # Tell ltmain to make .lib files, not .a files.
  11421. libext=lib
  11422. # Tell ltmain to make .dll files, not .so files.
  11423. shrext_cmds=".dll"
  11424. # FIXME: Setting linknames here is a bad hack.
  11425. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11426. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11427. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11428. else
  11429. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11430. fi~
  11431. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11432. linknames='
  11433. # The linker will not automatically build a static lib if we build a DLL.
  11434. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11435. enable_shared_with_static_runtimes_CXX=yes
  11436. # Don't use ranlib
  11437. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11438. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11439. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11440. case $lt_outputfile in
  11441. *.exe|*.EXE) ;;
  11442. *)
  11443. lt_outputfile="$lt_outputfile.exe"
  11444. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11445. ;;
  11446. esac~
  11447. func_to_tool_file "$lt_outputfile"~
  11448. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11449. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11450. $RM "$lt_outputfile.manifest";
  11451. fi'
  11452. ;;
  11453. *)
  11454. # g++
  11455. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11456. # as there is no search path for DLLs.
  11457. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11458. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11459. allow_undefined_flag_CXX=unsupported
  11460. always_export_symbols_CXX=no
  11461. enable_shared_with_static_runtimes_CXX=yes
  11462. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11463. 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'
  11464. # If the export-symbols file already is a .def file (1st line
  11465. # is EXPORTS), use it as is; otherwise, prepend...
  11466. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11467. cp $export_symbols $output_objdir/$soname.def;
  11468. else
  11469. echo EXPORTS > $output_objdir/$soname.def;
  11470. cat $export_symbols >> $output_objdir/$soname.def;
  11471. fi~
  11472. $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'
  11473. else
  11474. ld_shlibs_CXX=no
  11475. fi
  11476. ;;
  11477. esac
  11478. ;;
  11479. darwin* | rhapsody*)
  11480. archive_cmds_need_lc_CXX=no
  11481. hardcode_direct_CXX=no
  11482. hardcode_automatic_CXX=yes
  11483. hardcode_shlibpath_var_CXX=unsupported
  11484. if test "$lt_cv_ld_force_load" = "yes"; then
  11485. 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\"`'
  11486. else
  11487. whole_archive_flag_spec_CXX=''
  11488. fi
  11489. link_all_deplibs_CXX=yes
  11490. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11491. case $cc_basename in
  11492. ifort*) _lt_dar_can_shared=yes ;;
  11493. *) _lt_dar_can_shared=$GCC ;;
  11494. esac
  11495. if test "$_lt_dar_can_shared" = "yes"; then
  11496. output_verbose_link_cmd=func_echo_all
  11497. 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}"
  11498. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11499. 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}"
  11500. 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}"
  11501. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11502. 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}"
  11503. 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}"
  11504. fi
  11505. else
  11506. ld_shlibs_CXX=no
  11507. fi
  11508. ;;
  11509. dgux*)
  11510. case $cc_basename in
  11511. ec++*)
  11512. # FIXME: insert proper C++ library support
  11513. ld_shlibs_CXX=no
  11514. ;;
  11515. ghcx*)
  11516. # Green Hills C++ Compiler
  11517. # FIXME: insert proper C++ library support
  11518. ld_shlibs_CXX=no
  11519. ;;
  11520. *)
  11521. # FIXME: insert proper C++ library support
  11522. ld_shlibs_CXX=no
  11523. ;;
  11524. esac
  11525. ;;
  11526. freebsd2.*)
  11527. # C++ shared libraries reported to be fairly broken before
  11528. # switch to ELF
  11529. ld_shlibs_CXX=no
  11530. ;;
  11531. freebsd-elf*)
  11532. archive_cmds_need_lc_CXX=no
  11533. ;;
  11534. freebsd* | dragonfly*)
  11535. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11536. # conventions
  11537. ld_shlibs_CXX=yes
  11538. ;;
  11539. gnu*)
  11540. ;;
  11541. haiku*)
  11542. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11543. link_all_deplibs_CXX=yes
  11544. ;;
  11545. hpux9*)
  11546. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11547. hardcode_libdir_separator_CXX=:
  11548. export_dynamic_flag_spec_CXX='${wl}-E'
  11549. hardcode_direct_CXX=yes
  11550. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11551. # but as the default
  11552. # location of the library.
  11553. case $cc_basename in
  11554. CC*)
  11555. # FIXME: insert proper C++ library support
  11556. ld_shlibs_CXX=no
  11557. ;;
  11558. aCC*)
  11559. 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'
  11560. # Commands to make compiler produce verbose output that lists
  11561. # what "hidden" libraries, object files and flags are used when
  11562. # linking a shared library.
  11563. #
  11564. # There doesn't appear to be a way to prevent this compiler from
  11565. # explicitly linking system object files so we need to strip them
  11566. # from the output so that they don't get included in the library
  11567. # dependencies.
  11568. 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"'
  11569. ;;
  11570. *)
  11571. if test "$GXX" = yes; then
  11572. 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'
  11573. else
  11574. # FIXME: insert proper C++ library support
  11575. ld_shlibs_CXX=no
  11576. fi
  11577. ;;
  11578. esac
  11579. ;;
  11580. hpux10*|hpux11*)
  11581. if test $with_gnu_ld = no; then
  11582. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11583. hardcode_libdir_separator_CXX=:
  11584. case $host_cpu in
  11585. hppa*64*|ia64*)
  11586. ;;
  11587. *)
  11588. export_dynamic_flag_spec_CXX='${wl}-E'
  11589. ;;
  11590. esac
  11591. fi
  11592. case $host_cpu in
  11593. hppa*64*|ia64*)
  11594. hardcode_direct_CXX=no
  11595. hardcode_shlibpath_var_CXX=no
  11596. ;;
  11597. *)
  11598. hardcode_direct_CXX=yes
  11599. hardcode_direct_absolute_CXX=yes
  11600. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11601. # but as the default
  11602. # location of the library.
  11603. ;;
  11604. esac
  11605. case $cc_basename in
  11606. CC*)
  11607. # FIXME: insert proper C++ library support
  11608. ld_shlibs_CXX=no
  11609. ;;
  11610. aCC*)
  11611. case $host_cpu in
  11612. hppa*64*)
  11613. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11614. ;;
  11615. ia64*)
  11616. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11617. ;;
  11618. *)
  11619. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11620. ;;
  11621. esac
  11622. # Commands to make compiler produce verbose output that lists
  11623. # what "hidden" libraries, object files and flags are used when
  11624. # linking a shared library.
  11625. #
  11626. # There doesn't appear to be a way to prevent this compiler from
  11627. # explicitly linking system object files so we need to strip them
  11628. # from the output so that they don't get included in the library
  11629. # dependencies.
  11630. 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"'
  11631. ;;
  11632. *)
  11633. if test "$GXX" = yes; then
  11634. if test $with_gnu_ld = no; then
  11635. case $host_cpu in
  11636. hppa*64*)
  11637. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11638. ;;
  11639. ia64*)
  11640. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11641. ;;
  11642. *)
  11643. 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'
  11644. ;;
  11645. esac
  11646. fi
  11647. else
  11648. # FIXME: insert proper C++ library support
  11649. ld_shlibs_CXX=no
  11650. fi
  11651. ;;
  11652. esac
  11653. ;;
  11654. interix[3-9]*)
  11655. hardcode_direct_CXX=no
  11656. hardcode_shlibpath_var_CXX=no
  11657. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11658. export_dynamic_flag_spec_CXX='${wl}-E'
  11659. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11660. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11661. # default) and relocated if they conflict, which is a slow very memory
  11662. # consuming and fragmenting process. To avoid this, we pick a random,
  11663. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11664. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11665. 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'
  11666. 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'
  11667. ;;
  11668. irix5* | irix6*)
  11669. case $cc_basename in
  11670. CC*)
  11671. # SGI C++
  11672. 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'
  11673. # Archives containing C++ object files must be created using
  11674. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11675. # necessary to make sure instantiated templates are included
  11676. # in the archive.
  11677. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11678. ;;
  11679. *)
  11680. if test "$GXX" = yes; then
  11681. if test "$with_gnu_ld" = no; then
  11682. 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'
  11683. else
  11684. 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'
  11685. fi
  11686. fi
  11687. link_all_deplibs_CXX=yes
  11688. ;;
  11689. esac
  11690. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11691. hardcode_libdir_separator_CXX=:
  11692. inherit_rpath_CXX=yes
  11693. ;;
  11694. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11695. case $cc_basename in
  11696. KCC*)
  11697. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11698. # KCC will only create a shared library if the output file
  11699. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11700. # to its proper name (with version) after linking.
  11701. 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'
  11702. 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'
  11703. # Commands to make compiler produce verbose output that lists
  11704. # what "hidden" libraries, object files and flags are used when
  11705. # linking a shared library.
  11706. #
  11707. # There doesn't appear to be a way to prevent this compiler from
  11708. # explicitly linking system object files so we need to strip them
  11709. # from the output so that they don't get included in the library
  11710. # dependencies.
  11711. 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"'
  11712. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11713. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11714. # Archives containing C++ object files must be created using
  11715. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11716. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11717. ;;
  11718. icpc* | ecpc* )
  11719. # Intel C++
  11720. with_gnu_ld=yes
  11721. # version 8.0 and above of icpc choke on multiply defined symbols
  11722. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11723. # earlier do not add the objects themselves.
  11724. case `$CC -V 2>&1` in
  11725. *"Version 7."*)
  11726. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11727. 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'
  11728. ;;
  11729. *) # Version 8.0 or newer
  11730. tmp_idyn=
  11731. case $host_cpu in
  11732. ia64*) tmp_idyn=' -i_dynamic';;
  11733. esac
  11734. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11735. 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'
  11736. ;;
  11737. esac
  11738. archive_cmds_need_lc_CXX=no
  11739. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11740. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11741. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11742. ;;
  11743. pgCC* | pgcpp*)
  11744. # Portland Group C++ compiler
  11745. case `$CC -V` in
  11746. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11747. prelink_cmds_CXX='tpldir=Template.dir~
  11748. rm -rf $tpldir~
  11749. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11750. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11751. old_archive_cmds_CXX='tpldir=Template.dir~
  11752. rm -rf $tpldir~
  11753. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11754. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11755. $RANLIB $oldlib'
  11756. archive_cmds_CXX='tpldir=Template.dir~
  11757. rm -rf $tpldir~
  11758. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11759. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11760. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11761. rm -rf $tpldir~
  11762. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11763. $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'
  11764. ;;
  11765. *) # Version 6 and above use weak symbols
  11766. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11767. 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'
  11768. ;;
  11769. esac
  11770. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11771. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11772. 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'
  11773. ;;
  11774. cxx*)
  11775. # Compaq C++
  11776. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11777. 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'
  11778. runpath_var=LD_RUN_PATH
  11779. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11780. hardcode_libdir_separator_CXX=:
  11781. # Commands to make compiler produce verbose output that lists
  11782. # what "hidden" libraries, object files and flags are used when
  11783. # linking a shared library.
  11784. #
  11785. # There doesn't appear to be a way to prevent this compiler from
  11786. # explicitly linking system object files so we need to strip them
  11787. # from the output so that they don't get included in the library
  11788. # dependencies.
  11789. 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'
  11790. ;;
  11791. xl* | mpixl* | bgxl*)
  11792. # IBM XL 8.0 on PPC, with GNU ld
  11793. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11794. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11795. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11796. if test "x$supports_anon_versioning" = xyes; then
  11797. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11798. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11799. echo "local: *; };" >> $output_objdir/$libname.ver~
  11800. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11801. fi
  11802. ;;
  11803. *)
  11804. case `$CC -V 2>&1 | sed 5q` in
  11805. *Sun\ C*)
  11806. # Sun C++ 5.9
  11807. no_undefined_flag_CXX=' -zdefs'
  11808. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11809. 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'
  11810. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11811. 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'
  11812. compiler_needs_object_CXX=yes
  11813. # Not sure whether something based on
  11814. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11815. # would be better.
  11816. output_verbose_link_cmd='func_echo_all'
  11817. # Archives containing C++ object files must be created using
  11818. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11819. # necessary to make sure instantiated templates are included
  11820. # in the archive.
  11821. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11822. ;;
  11823. esac
  11824. ;;
  11825. esac
  11826. ;;
  11827. lynxos*)
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. m88k*)
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. mvs*)
  11836. case $cc_basename in
  11837. cxx*)
  11838. # FIXME: insert proper C++ library support
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. *)
  11842. # FIXME: insert proper C++ library support
  11843. ld_shlibs_CXX=no
  11844. ;;
  11845. esac
  11846. ;;
  11847. netbsd*)
  11848. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11849. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11850. wlarc=
  11851. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11852. hardcode_direct_CXX=yes
  11853. hardcode_shlibpath_var_CXX=no
  11854. fi
  11855. # Workaround some broken pre-1.5 toolchains
  11856. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11857. ;;
  11858. *nto* | *qnx*)
  11859. ld_shlibs_CXX=yes
  11860. ;;
  11861. openbsd2*)
  11862. # C++ shared libraries are fairly broken
  11863. ld_shlibs_CXX=no
  11864. ;;
  11865. openbsd*)
  11866. if test -f /usr/libexec/ld.so; then
  11867. hardcode_direct_CXX=yes
  11868. hardcode_shlibpath_var_CXX=no
  11869. hardcode_direct_absolute_CXX=yes
  11870. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11871. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11872. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11873. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11874. export_dynamic_flag_spec_CXX='${wl}-E'
  11875. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11876. fi
  11877. output_verbose_link_cmd=func_echo_all
  11878. else
  11879. ld_shlibs_CXX=no
  11880. fi
  11881. ;;
  11882. osf3* | osf4* | osf5*)
  11883. case $cc_basename in
  11884. KCC*)
  11885. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11886. # KCC will only create a shared library if the output file
  11887. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11888. # to its proper name (with version) after linking.
  11889. 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'
  11890. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11891. hardcode_libdir_separator_CXX=:
  11892. # Archives containing C++ object files must be created using
  11893. # the KAI C++ compiler.
  11894. case $host in
  11895. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11896. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11897. esac
  11898. ;;
  11899. RCC*)
  11900. # Rational C++ 2.4.1
  11901. # FIXME: insert proper C++ library support
  11902. ld_shlibs_CXX=no
  11903. ;;
  11904. cxx*)
  11905. case $host in
  11906. osf3*)
  11907. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11908. 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'
  11909. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11910. ;;
  11911. *)
  11912. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11913. 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'
  11914. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11915. echo "-hidden">> $lib.exp~
  11916. $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~
  11917. $RM $lib.exp'
  11918. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11919. ;;
  11920. esac
  11921. hardcode_libdir_separator_CXX=:
  11922. # Commands to make compiler produce verbose output that lists
  11923. # what "hidden" libraries, object files and flags are used when
  11924. # linking a shared library.
  11925. #
  11926. # There doesn't appear to be a way to prevent this compiler from
  11927. # explicitly linking system object files so we need to strip them
  11928. # from the output so that they don't get included in the library
  11929. # dependencies.
  11930. 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"'
  11931. ;;
  11932. *)
  11933. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11934. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11935. case $host in
  11936. osf3*)
  11937. 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'
  11938. ;;
  11939. *)
  11940. 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'
  11941. ;;
  11942. esac
  11943. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11944. hardcode_libdir_separator_CXX=:
  11945. # Commands to make compiler produce verbose output that lists
  11946. # what "hidden" libraries, object files and flags are used when
  11947. # linking a shared library.
  11948. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11949. else
  11950. # FIXME: insert proper C++ library support
  11951. ld_shlibs_CXX=no
  11952. fi
  11953. ;;
  11954. esac
  11955. ;;
  11956. psos*)
  11957. # FIXME: insert proper C++ library support
  11958. ld_shlibs_CXX=no
  11959. ;;
  11960. sunos4*)
  11961. case $cc_basename in
  11962. CC*)
  11963. # Sun C++ 4.x
  11964. # FIXME: insert proper C++ library support
  11965. ld_shlibs_CXX=no
  11966. ;;
  11967. lcc*)
  11968. # Lucid
  11969. # FIXME: insert proper C++ library support
  11970. ld_shlibs_CXX=no
  11971. ;;
  11972. *)
  11973. # FIXME: insert proper C++ library support
  11974. ld_shlibs_CXX=no
  11975. ;;
  11976. esac
  11977. ;;
  11978. solaris*)
  11979. case $cc_basename in
  11980. CC* | sunCC*)
  11981. # Sun C++ 4.2, 5.x and Centerline C++
  11982. archive_cmds_need_lc_CXX=yes
  11983. no_undefined_flag_CXX=' -zdefs'
  11984. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11985. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11986. $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'
  11987. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11988. hardcode_shlibpath_var_CXX=no
  11989. case $host_os in
  11990. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11991. *)
  11992. # The compiler driver will combine and reorder linker options,
  11993. # but understands `-z linker_flag'.
  11994. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11995. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11996. ;;
  11997. esac
  11998. link_all_deplibs_CXX=yes
  11999. output_verbose_link_cmd='func_echo_all'
  12000. # Archives containing C++ object files must be created using
  12001. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12002. # necessary to make sure instantiated templates are included
  12003. # in the archive.
  12004. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12005. ;;
  12006. gcx*)
  12007. # Green Hills C++ Compiler
  12008. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12009. # The C++ compiler must be used to create the archive.
  12010. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12011. ;;
  12012. *)
  12013. # GNU C++ compiler with Solaris linker
  12014. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12015. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12016. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12017. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12018. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12019. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12020. # Commands to make compiler produce verbose output that lists
  12021. # what "hidden" libraries, object files and flags are used when
  12022. # linking a shared library.
  12023. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12024. else
  12025. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12026. # platform.
  12027. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12028. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12029. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12030. # Commands to make compiler produce verbose output that lists
  12031. # what "hidden" libraries, object files and flags are used when
  12032. # linking a shared library.
  12033. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12034. fi
  12035. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12036. case $host_os in
  12037. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12038. *)
  12039. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12040. ;;
  12041. esac
  12042. fi
  12043. ;;
  12044. esac
  12045. ;;
  12046. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12047. no_undefined_flag_CXX='${wl}-z,text'
  12048. archive_cmds_need_lc_CXX=no
  12049. hardcode_shlibpath_var_CXX=no
  12050. runpath_var='LD_RUN_PATH'
  12051. case $cc_basename in
  12052. CC*)
  12053. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12054. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12055. ;;
  12056. *)
  12057. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12058. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12059. ;;
  12060. esac
  12061. ;;
  12062. sysv5* | sco3.2v5* | sco5v6*)
  12063. # Note: We can NOT use -z defs as we might desire, because we do not
  12064. # link with -lc, and that would cause any symbols used from libc to
  12065. # always be unresolved, which means just about no library would
  12066. # ever link correctly. If we're not using GNU ld we use -z text
  12067. # though, which does catch some bad symbols but isn't as heavy-handed
  12068. # as -z defs.
  12069. no_undefined_flag_CXX='${wl}-z,text'
  12070. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12071. archive_cmds_need_lc_CXX=no
  12072. hardcode_shlibpath_var_CXX=no
  12073. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12074. hardcode_libdir_separator_CXX=':'
  12075. link_all_deplibs_CXX=yes
  12076. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12077. runpath_var='LD_RUN_PATH'
  12078. case $cc_basename in
  12079. CC*)
  12080. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12081. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12082. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12083. '"$old_archive_cmds_CXX"
  12084. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12085. '"$reload_cmds_CXX"
  12086. ;;
  12087. *)
  12088. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12089. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12090. ;;
  12091. esac
  12092. ;;
  12093. tandem*)
  12094. case $cc_basename in
  12095. NCC*)
  12096. # NonStop-UX NCC 3.20
  12097. # FIXME: insert proper C++ library support
  12098. ld_shlibs_CXX=no
  12099. ;;
  12100. *)
  12101. # FIXME: insert proper C++ library support
  12102. ld_shlibs_CXX=no
  12103. ;;
  12104. esac
  12105. ;;
  12106. vxworks*)
  12107. # FIXME: insert proper C++ library support
  12108. ld_shlibs_CXX=no
  12109. ;;
  12110. *)
  12111. # FIXME: insert proper C++ library support
  12112. ld_shlibs_CXX=no
  12113. ;;
  12114. esac
  12115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12116. $as_echo "$ld_shlibs_CXX" >&6; }
  12117. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12118. GCC_CXX="$GXX"
  12119. LD_CXX="$LD"
  12120. ## CAVEAT EMPTOR:
  12121. ## There is no encapsulation within the following macros, do not change
  12122. ## the running order or otherwise move them around unless you know exactly
  12123. ## what you are doing...
  12124. # Dependencies to place before and after the object being linked:
  12125. predep_objects_CXX=
  12126. postdep_objects_CXX=
  12127. predeps_CXX=
  12128. postdeps_CXX=
  12129. compiler_lib_search_path_CXX=
  12130. cat > conftest.$ac_ext <<_LT_EOF
  12131. class Foo
  12132. {
  12133. public:
  12134. Foo (void) { a = 0; }
  12135. private:
  12136. int a;
  12137. };
  12138. _LT_EOF
  12139. _lt_libdeps_save_CFLAGS=$CFLAGS
  12140. case "$CC $CFLAGS " in #(
  12141. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12142. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12143. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12144. esac
  12145. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12146. (eval $ac_compile) 2>&5
  12147. ac_status=$?
  12148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12149. test $ac_status = 0; }; then
  12150. # Parse the compiler output and extract the necessary
  12151. # objects, libraries and library flags.
  12152. # Sentinel used to keep track of whether or not we are before
  12153. # the conftest object file.
  12154. pre_test_object_deps_done=no
  12155. for p in `eval "$output_verbose_link_cmd"`; do
  12156. case ${prev}${p} in
  12157. -L* | -R* | -l*)
  12158. # Some compilers place space between "-{L,R}" and the path.
  12159. # Remove the space.
  12160. if test $p = "-L" ||
  12161. test $p = "-R"; then
  12162. prev=$p
  12163. continue
  12164. fi
  12165. # Expand the sysroot to ease extracting the directories later.
  12166. if test -z "$prev"; then
  12167. case $p in
  12168. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12169. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12170. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12171. esac
  12172. fi
  12173. case $p in
  12174. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12175. esac
  12176. if test "$pre_test_object_deps_done" = no; then
  12177. case ${prev} in
  12178. -L | -R)
  12179. # Internal compiler library paths should come after those
  12180. # provided the user. The postdeps already come after the
  12181. # user supplied libs so there is no need to process them.
  12182. if test -z "$compiler_lib_search_path_CXX"; then
  12183. compiler_lib_search_path_CXX="${prev}${p}"
  12184. else
  12185. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12186. fi
  12187. ;;
  12188. # The "-l" case would never come before the object being
  12189. # linked, so don't bother handling this case.
  12190. esac
  12191. else
  12192. if test -z "$postdeps_CXX"; then
  12193. postdeps_CXX="${prev}${p}"
  12194. else
  12195. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12196. fi
  12197. fi
  12198. prev=
  12199. ;;
  12200. *.lto.$objext) ;; # Ignore GCC LTO objects
  12201. *.$objext)
  12202. # This assumes that the test object file only shows up
  12203. # once in the compiler output.
  12204. if test "$p" = "conftest.$objext"; then
  12205. pre_test_object_deps_done=yes
  12206. continue
  12207. fi
  12208. if test "$pre_test_object_deps_done" = no; then
  12209. if test -z "$predep_objects_CXX"; then
  12210. predep_objects_CXX="$p"
  12211. else
  12212. predep_objects_CXX="$predep_objects_CXX $p"
  12213. fi
  12214. else
  12215. if test -z "$postdep_objects_CXX"; then
  12216. postdep_objects_CXX="$p"
  12217. else
  12218. postdep_objects_CXX="$postdep_objects_CXX $p"
  12219. fi
  12220. fi
  12221. ;;
  12222. *) ;; # Ignore the rest.
  12223. esac
  12224. done
  12225. # Clean up.
  12226. rm -f a.out a.exe
  12227. else
  12228. echo "libtool.m4: error: problem compiling CXX test program"
  12229. fi
  12230. $RM -f confest.$objext
  12231. CFLAGS=$_lt_libdeps_save_CFLAGS
  12232. # PORTME: override above test on systems where it is broken
  12233. case $host_os in
  12234. interix[3-9]*)
  12235. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12236. # hack all around it, let's just trust "g++" to DTRT.
  12237. predep_objects_CXX=
  12238. postdep_objects_CXX=
  12239. postdeps_CXX=
  12240. ;;
  12241. linux*)
  12242. case `$CC -V 2>&1 | sed 5q` in
  12243. *Sun\ C*)
  12244. # Sun C++ 5.9
  12245. # The more standards-conforming stlport4 library is
  12246. # incompatible with the Cstd library. Avoid specifying
  12247. # it if it's in CXXFLAGS. Ignore libCrun as
  12248. # -library=stlport4 depends on it.
  12249. case " $CXX $CXXFLAGS " in
  12250. *" -library=stlport4 "*)
  12251. solaris_use_stlport4=yes
  12252. ;;
  12253. esac
  12254. if test "$solaris_use_stlport4" != yes; then
  12255. postdeps_CXX='-library=Cstd -library=Crun'
  12256. fi
  12257. ;;
  12258. esac
  12259. ;;
  12260. solaris*)
  12261. case $cc_basename in
  12262. CC* | sunCC*)
  12263. # The more standards-conforming stlport4 library is
  12264. # incompatible with the Cstd library. Avoid specifying
  12265. # it if it's in CXXFLAGS. Ignore libCrun as
  12266. # -library=stlport4 depends on it.
  12267. case " $CXX $CXXFLAGS " in
  12268. *" -library=stlport4 "*)
  12269. solaris_use_stlport4=yes
  12270. ;;
  12271. esac
  12272. # Adding this requires a known-good setup of shared libraries for
  12273. # Sun compiler versions before 5.6, else PIC objects from an old
  12274. # archive will be linked into the output, leading to subtle bugs.
  12275. if test "$solaris_use_stlport4" != yes; then
  12276. postdeps_CXX='-library=Cstd -library=Crun'
  12277. fi
  12278. ;;
  12279. esac
  12280. ;;
  12281. esac
  12282. case " $postdeps_CXX " in
  12283. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12284. esac
  12285. compiler_lib_search_dirs_CXX=
  12286. if test -n "${compiler_lib_search_path_CXX}"; then
  12287. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12288. fi
  12289. lt_prog_compiler_wl_CXX=
  12290. lt_prog_compiler_pic_CXX=
  12291. lt_prog_compiler_static_CXX=
  12292. # C++ specific cases for pic, static, wl, etc.
  12293. if test "$GXX" = yes; then
  12294. lt_prog_compiler_wl_CXX='-Wl,'
  12295. lt_prog_compiler_static_CXX='-static'
  12296. case $host_os in
  12297. aix*)
  12298. # All AIX code is PIC.
  12299. if test "$host_cpu" = ia64; then
  12300. # AIX 5 now supports IA64 processor
  12301. lt_prog_compiler_static_CXX='-Bstatic'
  12302. fi
  12303. ;;
  12304. amigaos*)
  12305. case $host_cpu in
  12306. powerpc)
  12307. # see comment about AmigaOS4 .so support
  12308. lt_prog_compiler_pic_CXX='-fPIC'
  12309. ;;
  12310. m68k)
  12311. # FIXME: we need at least 68020 code to build shared libraries, but
  12312. # adding the `-m68020' flag to GCC prevents building anything better,
  12313. # like `-m68040'.
  12314. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12315. ;;
  12316. esac
  12317. ;;
  12318. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12319. # PIC is the default for these OSes.
  12320. ;;
  12321. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12322. # This hack is so that the source file can tell whether it is being
  12323. # built for inclusion in a dll (and should export symbols for example).
  12324. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12325. # (--disable-auto-import) libraries
  12326. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12327. ;;
  12328. darwin* | rhapsody*)
  12329. # PIC is the default on this platform
  12330. # Common symbols not allowed in MH_DYLIB files
  12331. lt_prog_compiler_pic_CXX='-fno-common'
  12332. ;;
  12333. *djgpp*)
  12334. # DJGPP does not support shared libraries at all
  12335. lt_prog_compiler_pic_CXX=
  12336. ;;
  12337. haiku*)
  12338. # PIC is the default for Haiku.
  12339. # The "-static" flag exists, but is broken.
  12340. lt_prog_compiler_static_CXX=
  12341. ;;
  12342. interix[3-9]*)
  12343. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12344. # Instead, we relocate shared libraries at runtime.
  12345. ;;
  12346. sysv4*MP*)
  12347. if test -d /usr/nec; then
  12348. lt_prog_compiler_pic_CXX=-Kconform_pic
  12349. fi
  12350. ;;
  12351. hpux*)
  12352. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12353. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12354. # sets the default TLS model and affects inlining.
  12355. case $host_cpu in
  12356. hppa*64*)
  12357. ;;
  12358. *)
  12359. lt_prog_compiler_pic_CXX='-fPIC'
  12360. ;;
  12361. esac
  12362. ;;
  12363. *qnx* | *nto*)
  12364. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12365. # it will coredump.
  12366. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12367. ;;
  12368. *)
  12369. lt_prog_compiler_pic_CXX='-fPIC'
  12370. ;;
  12371. esac
  12372. else
  12373. case $host_os in
  12374. aix[4-9]*)
  12375. # All AIX code is PIC.
  12376. if test "$host_cpu" = ia64; then
  12377. # AIX 5 now supports IA64 processor
  12378. lt_prog_compiler_static_CXX='-Bstatic'
  12379. else
  12380. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12381. fi
  12382. ;;
  12383. chorus*)
  12384. case $cc_basename in
  12385. cxch68*)
  12386. # Green Hills C++ Compiler
  12387. # _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"
  12388. ;;
  12389. esac
  12390. ;;
  12391. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12392. # This hack is so that the source file can tell whether it is being
  12393. # built for inclusion in a dll (and should export symbols for example).
  12394. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12395. ;;
  12396. dgux*)
  12397. case $cc_basename in
  12398. ec++*)
  12399. lt_prog_compiler_pic_CXX='-KPIC'
  12400. ;;
  12401. ghcx*)
  12402. # Green Hills C++ Compiler
  12403. lt_prog_compiler_pic_CXX='-pic'
  12404. ;;
  12405. *)
  12406. ;;
  12407. esac
  12408. ;;
  12409. freebsd* | dragonfly*)
  12410. # FreeBSD uses GNU C++
  12411. ;;
  12412. hpux9* | hpux10* | hpux11*)
  12413. case $cc_basename in
  12414. CC*)
  12415. lt_prog_compiler_wl_CXX='-Wl,'
  12416. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12417. if test "$host_cpu" != ia64; then
  12418. lt_prog_compiler_pic_CXX='+Z'
  12419. fi
  12420. ;;
  12421. aCC*)
  12422. lt_prog_compiler_wl_CXX='-Wl,'
  12423. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12424. case $host_cpu in
  12425. hppa*64*|ia64*)
  12426. # +Z the default
  12427. ;;
  12428. *)
  12429. lt_prog_compiler_pic_CXX='+Z'
  12430. ;;
  12431. esac
  12432. ;;
  12433. *)
  12434. ;;
  12435. esac
  12436. ;;
  12437. interix*)
  12438. # This is c89, which is MS Visual C++ (no shared libs)
  12439. # Anyone wants to do a port?
  12440. ;;
  12441. irix5* | irix6* | nonstopux*)
  12442. case $cc_basename in
  12443. CC*)
  12444. lt_prog_compiler_wl_CXX='-Wl,'
  12445. lt_prog_compiler_static_CXX='-non_shared'
  12446. # CC pic flag -KPIC is the default.
  12447. ;;
  12448. *)
  12449. ;;
  12450. esac
  12451. ;;
  12452. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12453. case $cc_basename in
  12454. KCC*)
  12455. # KAI C++ Compiler
  12456. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12457. lt_prog_compiler_pic_CXX='-fPIC'
  12458. ;;
  12459. ecpc* )
  12460. # old Intel C++ for x86_64 which still supported -KPIC.
  12461. lt_prog_compiler_wl_CXX='-Wl,'
  12462. lt_prog_compiler_pic_CXX='-KPIC'
  12463. lt_prog_compiler_static_CXX='-static'
  12464. ;;
  12465. icpc* )
  12466. # Intel C++, used to be incompatible with GCC.
  12467. # ICC 10 doesn't accept -KPIC any more.
  12468. lt_prog_compiler_wl_CXX='-Wl,'
  12469. lt_prog_compiler_pic_CXX='-fPIC'
  12470. lt_prog_compiler_static_CXX='-static'
  12471. ;;
  12472. pgCC* | pgcpp*)
  12473. # Portland Group C++ compiler
  12474. lt_prog_compiler_wl_CXX='-Wl,'
  12475. lt_prog_compiler_pic_CXX='-fpic'
  12476. lt_prog_compiler_static_CXX='-Bstatic'
  12477. ;;
  12478. cxx*)
  12479. # Compaq C++
  12480. # Make sure the PIC flag is empty. It appears that all Alpha
  12481. # Linux and Compaq Tru64 Unix objects are PIC.
  12482. lt_prog_compiler_pic_CXX=
  12483. lt_prog_compiler_static_CXX='-non_shared'
  12484. ;;
  12485. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12486. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12487. lt_prog_compiler_wl_CXX='-Wl,'
  12488. lt_prog_compiler_pic_CXX='-qpic'
  12489. lt_prog_compiler_static_CXX='-qstaticlink'
  12490. ;;
  12491. *)
  12492. case `$CC -V 2>&1 | sed 5q` in
  12493. *Sun\ C*)
  12494. # Sun C++ 5.9
  12495. lt_prog_compiler_pic_CXX='-KPIC'
  12496. lt_prog_compiler_static_CXX='-Bstatic'
  12497. lt_prog_compiler_wl_CXX='-Qoption ld '
  12498. ;;
  12499. esac
  12500. ;;
  12501. esac
  12502. ;;
  12503. lynxos*)
  12504. ;;
  12505. m88k*)
  12506. ;;
  12507. mvs*)
  12508. case $cc_basename in
  12509. cxx*)
  12510. lt_prog_compiler_pic_CXX='-W c,exportall'
  12511. ;;
  12512. *)
  12513. ;;
  12514. esac
  12515. ;;
  12516. netbsd*)
  12517. ;;
  12518. *qnx* | *nto*)
  12519. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12520. # it will coredump.
  12521. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12522. ;;
  12523. osf3* | osf4* | osf5*)
  12524. case $cc_basename in
  12525. KCC*)
  12526. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12527. ;;
  12528. RCC*)
  12529. # Rational C++ 2.4.1
  12530. lt_prog_compiler_pic_CXX='-pic'
  12531. ;;
  12532. cxx*)
  12533. # Digital/Compaq C++
  12534. lt_prog_compiler_wl_CXX='-Wl,'
  12535. # Make sure the PIC flag is empty. It appears that all Alpha
  12536. # Linux and Compaq Tru64 Unix objects are PIC.
  12537. lt_prog_compiler_pic_CXX=
  12538. lt_prog_compiler_static_CXX='-non_shared'
  12539. ;;
  12540. *)
  12541. ;;
  12542. esac
  12543. ;;
  12544. psos*)
  12545. ;;
  12546. solaris*)
  12547. case $cc_basename in
  12548. CC* | sunCC*)
  12549. # Sun C++ 4.2, 5.x and Centerline C++
  12550. lt_prog_compiler_pic_CXX='-KPIC'
  12551. lt_prog_compiler_static_CXX='-Bstatic'
  12552. lt_prog_compiler_wl_CXX='-Qoption ld '
  12553. ;;
  12554. gcx*)
  12555. # Green Hills C++ Compiler
  12556. lt_prog_compiler_pic_CXX='-PIC'
  12557. ;;
  12558. *)
  12559. ;;
  12560. esac
  12561. ;;
  12562. sunos4*)
  12563. case $cc_basename in
  12564. CC*)
  12565. # Sun C++ 4.x
  12566. lt_prog_compiler_pic_CXX='-pic'
  12567. lt_prog_compiler_static_CXX='-Bstatic'
  12568. ;;
  12569. lcc*)
  12570. # Lucid
  12571. lt_prog_compiler_pic_CXX='-pic'
  12572. ;;
  12573. *)
  12574. ;;
  12575. esac
  12576. ;;
  12577. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12578. case $cc_basename in
  12579. CC*)
  12580. lt_prog_compiler_wl_CXX='-Wl,'
  12581. lt_prog_compiler_pic_CXX='-KPIC'
  12582. lt_prog_compiler_static_CXX='-Bstatic'
  12583. ;;
  12584. esac
  12585. ;;
  12586. tandem*)
  12587. case $cc_basename in
  12588. NCC*)
  12589. # NonStop-UX NCC 3.20
  12590. lt_prog_compiler_pic_CXX='-KPIC'
  12591. ;;
  12592. *)
  12593. ;;
  12594. esac
  12595. ;;
  12596. vxworks*)
  12597. ;;
  12598. *)
  12599. lt_prog_compiler_can_build_shared_CXX=no
  12600. ;;
  12601. esac
  12602. fi
  12603. case $host_os in
  12604. # For platforms which do not support PIC, -DPIC is meaningless:
  12605. *djgpp*)
  12606. lt_prog_compiler_pic_CXX=
  12607. ;;
  12608. *)
  12609. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12610. ;;
  12611. esac
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12613. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12614. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12615. $as_echo_n "(cached) " >&6
  12616. else
  12617. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12618. fi
  12619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12620. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12621. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12622. #
  12623. # Check to make sure the PIC flag actually works.
  12624. #
  12625. if test -n "$lt_prog_compiler_pic_CXX"; then
  12626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12627. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12628. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12629. $as_echo_n "(cached) " >&6
  12630. else
  12631. lt_cv_prog_compiler_pic_works_CXX=no
  12632. ac_outfile=conftest.$ac_objext
  12633. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12634. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12635. # Insert the option either (1) after the last *FLAGS variable, or
  12636. # (2) before a word containing "conftest.", or (3) at the end.
  12637. # Note that $ac_compile itself does not contain backslashes and begins
  12638. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12639. # The option is referenced via a variable to avoid confusing sed.
  12640. lt_compile=`echo "$ac_compile" | $SED \
  12641. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12642. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12643. -e 's:$: $lt_compiler_flag:'`
  12644. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12645. (eval "$lt_compile" 2>conftest.err)
  12646. ac_status=$?
  12647. cat conftest.err >&5
  12648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12649. if (exit $ac_status) && test -s "$ac_outfile"; then
  12650. # The compiler can only warn and ignore the option if not recognized
  12651. # So say no if there are warnings other than the usual output.
  12652. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12653. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12654. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12655. lt_cv_prog_compiler_pic_works_CXX=yes
  12656. fi
  12657. fi
  12658. $RM conftest*
  12659. fi
  12660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12661. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12662. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12663. case $lt_prog_compiler_pic_CXX in
  12664. "" | " "*) ;;
  12665. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12666. esac
  12667. else
  12668. lt_prog_compiler_pic_CXX=
  12669. lt_prog_compiler_can_build_shared_CXX=no
  12670. fi
  12671. fi
  12672. #
  12673. # Check to make sure the static flag actually works.
  12674. #
  12675. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12677. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12678. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12679. $as_echo_n "(cached) " >&6
  12680. else
  12681. lt_cv_prog_compiler_static_works_CXX=no
  12682. save_LDFLAGS="$LDFLAGS"
  12683. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12684. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12685. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12686. # The linker can only warn and ignore the option if not recognized
  12687. # So say no if there are warnings
  12688. if test -s conftest.err; then
  12689. # Append any errors to the config.log.
  12690. cat conftest.err 1>&5
  12691. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12692. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12693. if diff conftest.exp conftest.er2 >/dev/null; then
  12694. lt_cv_prog_compiler_static_works_CXX=yes
  12695. fi
  12696. else
  12697. lt_cv_prog_compiler_static_works_CXX=yes
  12698. fi
  12699. fi
  12700. $RM -r conftest*
  12701. LDFLAGS="$save_LDFLAGS"
  12702. fi
  12703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12704. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12705. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12706. :
  12707. else
  12708. lt_prog_compiler_static_CXX=
  12709. fi
  12710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12711. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12712. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12713. $as_echo_n "(cached) " >&6
  12714. else
  12715. lt_cv_prog_compiler_c_o_CXX=no
  12716. $RM -r conftest 2>/dev/null
  12717. mkdir conftest
  12718. cd conftest
  12719. mkdir out
  12720. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12721. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12722. # Insert the option either (1) after the last *FLAGS variable, or
  12723. # (2) before a word containing "conftest.", or (3) at the end.
  12724. # Note that $ac_compile itself does not contain backslashes and begins
  12725. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12726. lt_compile=`echo "$ac_compile" | $SED \
  12727. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12728. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12729. -e 's:$: $lt_compiler_flag:'`
  12730. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12731. (eval "$lt_compile" 2>out/conftest.err)
  12732. ac_status=$?
  12733. cat out/conftest.err >&5
  12734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12735. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12736. then
  12737. # The compiler can only warn and ignore the option if not recognized
  12738. # So say no if there are warnings
  12739. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12740. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12741. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12742. lt_cv_prog_compiler_c_o_CXX=yes
  12743. fi
  12744. fi
  12745. chmod u+w . 2>&5
  12746. $RM conftest*
  12747. # SGI C++ compiler will create directory out/ii_files/ for
  12748. # template instantiation
  12749. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12750. $RM out/* && rmdir out
  12751. cd ..
  12752. $RM -r conftest
  12753. $RM conftest*
  12754. fi
  12755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12756. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12758. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12759. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12760. $as_echo_n "(cached) " >&6
  12761. else
  12762. lt_cv_prog_compiler_c_o_CXX=no
  12763. $RM -r conftest 2>/dev/null
  12764. mkdir conftest
  12765. cd conftest
  12766. mkdir out
  12767. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12768. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12769. # Insert the option either (1) after the last *FLAGS variable, or
  12770. # (2) before a word containing "conftest.", or (3) at the end.
  12771. # Note that $ac_compile itself does not contain backslashes and begins
  12772. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12773. lt_compile=`echo "$ac_compile" | $SED \
  12774. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12775. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12776. -e 's:$: $lt_compiler_flag:'`
  12777. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12778. (eval "$lt_compile" 2>out/conftest.err)
  12779. ac_status=$?
  12780. cat out/conftest.err >&5
  12781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12782. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12783. then
  12784. # The compiler can only warn and ignore the option if not recognized
  12785. # So say no if there are warnings
  12786. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12787. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12788. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12789. lt_cv_prog_compiler_c_o_CXX=yes
  12790. fi
  12791. fi
  12792. chmod u+w . 2>&5
  12793. $RM conftest*
  12794. # SGI C++ compiler will create directory out/ii_files/ for
  12795. # template instantiation
  12796. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12797. $RM out/* && rmdir out
  12798. cd ..
  12799. $RM -r conftest
  12800. $RM conftest*
  12801. fi
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12803. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12804. hard_links="nottested"
  12805. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12806. # do not overwrite the value of need_locks provided by the user
  12807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12808. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12809. hard_links=yes
  12810. $RM conftest*
  12811. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12812. touch conftest.a
  12813. ln conftest.a conftest.b 2>&5 || hard_links=no
  12814. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12816. $as_echo "$hard_links" >&6; }
  12817. if test "$hard_links" = no; then
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12819. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12820. need_locks=warn
  12821. fi
  12822. else
  12823. need_locks=no
  12824. fi
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12826. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12827. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12828. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12829. case $host_os in
  12830. aix[4-9]*)
  12831. # If we're using GNU nm, then we don't want the "-C" option.
  12832. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12833. # Also, AIX nm treats weak defined symbols like other global defined
  12834. # symbols, whereas GNU nm marks them as "W".
  12835. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12836. 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'
  12837. else
  12838. 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'
  12839. fi
  12840. ;;
  12841. pw32*)
  12842. export_symbols_cmds_CXX="$ltdll_cmds"
  12843. ;;
  12844. cygwin* | mingw* | cegcc*)
  12845. case $cc_basename in
  12846. cl*)
  12847. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12848. ;;
  12849. *)
  12850. 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'
  12851. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12852. ;;
  12853. esac
  12854. ;;
  12855. *)
  12856. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12857. ;;
  12858. esac
  12859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12860. $as_echo "$ld_shlibs_CXX" >&6; }
  12861. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12862. with_gnu_ld_CXX=$with_gnu_ld
  12863. #
  12864. # Do we need to explicitly link libc?
  12865. #
  12866. case "x$archive_cmds_need_lc_CXX" in
  12867. x|xyes)
  12868. # Assume -lc should be added
  12869. archive_cmds_need_lc_CXX=yes
  12870. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12871. case $archive_cmds_CXX in
  12872. *'~'*)
  12873. # FIXME: we may have to deal with multi-command sequences.
  12874. ;;
  12875. '$CC '*)
  12876. # Test whether the compiler implicitly links with -lc since on some
  12877. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12878. # to ld, don't add -lc before -lgcc.
  12879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12880. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12881. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12882. $as_echo_n "(cached) " >&6
  12883. else
  12884. $RM conftest*
  12885. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12886. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12887. (eval $ac_compile) 2>&5
  12888. ac_status=$?
  12889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12890. test $ac_status = 0; } 2>conftest.err; then
  12891. soname=conftest
  12892. lib=conftest
  12893. libobjs=conftest.$ac_objext
  12894. deplibs=
  12895. wl=$lt_prog_compiler_wl_CXX
  12896. pic_flag=$lt_prog_compiler_pic_CXX
  12897. compiler_flags=-v
  12898. linker_flags=-v
  12899. verstring=
  12900. output_objdir=.
  12901. libname=conftest
  12902. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12903. allow_undefined_flag_CXX=
  12904. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12905. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12906. ac_status=$?
  12907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12908. test $ac_status = 0; }
  12909. then
  12910. lt_cv_archive_cmds_need_lc_CXX=no
  12911. else
  12912. lt_cv_archive_cmds_need_lc_CXX=yes
  12913. fi
  12914. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12915. else
  12916. cat conftest.err 1>&5
  12917. fi
  12918. $RM conftest*
  12919. fi
  12920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12921. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12922. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12923. ;;
  12924. esac
  12925. fi
  12926. ;;
  12927. esac
  12928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12929. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12930. library_names_spec=
  12931. libname_spec='lib$name'
  12932. soname_spec=
  12933. shrext_cmds=".so"
  12934. postinstall_cmds=
  12935. postuninstall_cmds=
  12936. finish_cmds=
  12937. finish_eval=
  12938. shlibpath_var=
  12939. shlibpath_overrides_runpath=unknown
  12940. version_type=none
  12941. dynamic_linker="$host_os ld.so"
  12942. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12943. need_lib_prefix=unknown
  12944. hardcode_into_libs=no
  12945. # when you set need_version to no, make sure it does not cause -set_version
  12946. # flags to be left without arguments
  12947. need_version=unknown
  12948. case $host_os in
  12949. aix3*)
  12950. version_type=linux # correct to gnu/linux during the next big refactor
  12951. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12952. shlibpath_var=LIBPATH
  12953. # AIX 3 has no versioning support, so we append a major version to the name.
  12954. soname_spec='${libname}${release}${shared_ext}$major'
  12955. ;;
  12956. aix[4-9]*)
  12957. version_type=linux # correct to gnu/linux during the next big refactor
  12958. need_lib_prefix=no
  12959. need_version=no
  12960. hardcode_into_libs=yes
  12961. if test "$host_cpu" = ia64; then
  12962. # AIX 5 supports IA64
  12963. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12964. shlibpath_var=LD_LIBRARY_PATH
  12965. else
  12966. # With GCC up to 2.95.x, collect2 would create an import file
  12967. # for dependence libraries. The import file would start with
  12968. # the line `#! .'. This would cause the generated library to
  12969. # depend on `.', always an invalid library. This was fixed in
  12970. # development snapshots of GCC prior to 3.0.
  12971. case $host_os in
  12972. aix4 | aix4.[01] | aix4.[01].*)
  12973. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12974. echo ' yes '
  12975. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12976. :
  12977. else
  12978. can_build_shared=no
  12979. fi
  12980. ;;
  12981. esac
  12982. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12983. # soname into executable. Probably we can add versioning support to
  12984. # collect2, so additional links can be useful in future.
  12985. if test "$aix_use_runtimelinking" = yes; then
  12986. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12987. # instead of lib<name>.a to let people know that these are not
  12988. # typical AIX shared libraries.
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12990. else
  12991. # We preserve .a as extension for shared libraries through AIX4.2
  12992. # and later when we are not doing run time linking.
  12993. library_names_spec='${libname}${release}.a $libname.a'
  12994. soname_spec='${libname}${release}${shared_ext}$major'
  12995. fi
  12996. shlibpath_var=LIBPATH
  12997. fi
  12998. ;;
  12999. amigaos*)
  13000. case $host_cpu in
  13001. powerpc)
  13002. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13003. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13005. ;;
  13006. m68k)
  13007. library_names_spec='$libname.ixlibrary $libname.a'
  13008. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13009. 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'
  13010. ;;
  13011. esac
  13012. ;;
  13013. beos*)
  13014. library_names_spec='${libname}${shared_ext}'
  13015. dynamic_linker="$host_os ld.so"
  13016. shlibpath_var=LIBRARY_PATH
  13017. ;;
  13018. bsdi[45]*)
  13019. version_type=linux # correct to gnu/linux during the next big refactor
  13020. need_version=no
  13021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13022. soname_spec='${libname}${release}${shared_ext}$major'
  13023. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13024. shlibpath_var=LD_LIBRARY_PATH
  13025. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13026. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13027. # the default ld.so.conf also contains /usr/contrib/lib and
  13028. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13029. # libtool to hard-code these into programs
  13030. ;;
  13031. cygwin* | mingw* | pw32* | cegcc*)
  13032. version_type=windows
  13033. shrext_cmds=".dll"
  13034. need_version=no
  13035. need_lib_prefix=no
  13036. case $GCC,$cc_basename in
  13037. yes,*)
  13038. # gcc
  13039. library_names_spec='$libname.dll.a'
  13040. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13041. postinstall_cmds='base_file=`basename \${file}`~
  13042. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13043. dldir=$destdir/`dirname \$dlpath`~
  13044. test -d \$dldir || mkdir -p \$dldir~
  13045. $install_prog $dir/$dlname \$dldir/$dlname~
  13046. chmod a+x \$dldir/$dlname~
  13047. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13048. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13049. fi'
  13050. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13051. dlpath=$dir/\$dldll~
  13052. $RM \$dlpath'
  13053. shlibpath_overrides_runpath=yes
  13054. case $host_os in
  13055. cygwin*)
  13056. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13057. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13058. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13059. ;;
  13060. mingw* | cegcc*)
  13061. # MinGW DLLs use traditional 'lib' prefix
  13062. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13063. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13064. ;;
  13065. pw32*)
  13066. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13067. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13068. ;;
  13069. esac
  13070. dynamic_linker='Win32 ld.exe'
  13071. ;;
  13072. *,cl*)
  13073. # Native MSVC
  13074. libname_spec='$name'
  13075. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13076. library_names_spec='${libname}.dll.lib'
  13077. case $build_os in
  13078. mingw*)
  13079. sys_lib_search_path_spec=
  13080. lt_save_ifs=$IFS
  13081. IFS=';'
  13082. for lt_path in $LIB
  13083. do
  13084. IFS=$lt_save_ifs
  13085. # Let DOS variable expansion print the short 8.3 style file name.
  13086. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13087. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13088. done
  13089. IFS=$lt_save_ifs
  13090. # Convert to MSYS style.
  13091. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13092. ;;
  13093. cygwin*)
  13094. # Convert to unix form, then to dos form, then back to unix form
  13095. # but this time dos style (no spaces!) so that the unix form looks
  13096. # like /cygdrive/c/PROGRA~1:/cygdr...
  13097. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13098. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13099. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13100. ;;
  13101. *)
  13102. sys_lib_search_path_spec="$LIB"
  13103. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13104. # It is most probably a Windows format PATH.
  13105. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13106. else
  13107. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13108. fi
  13109. # FIXME: find the short name or the path components, as spaces are
  13110. # common. (e.g. "Program Files" -> "PROGRA~1")
  13111. ;;
  13112. esac
  13113. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13114. postinstall_cmds='base_file=`basename \${file}`~
  13115. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13116. dldir=$destdir/`dirname \$dlpath`~
  13117. test -d \$dldir || mkdir -p \$dldir~
  13118. $install_prog $dir/$dlname \$dldir/$dlname'
  13119. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13120. dlpath=$dir/\$dldll~
  13121. $RM \$dlpath'
  13122. shlibpath_overrides_runpath=yes
  13123. dynamic_linker='Win32 link.exe'
  13124. ;;
  13125. *)
  13126. # Assume MSVC wrapper
  13127. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13128. dynamic_linker='Win32 ld.exe'
  13129. ;;
  13130. esac
  13131. # FIXME: first we should search . and the directory the executable is in
  13132. shlibpath_var=PATH
  13133. ;;
  13134. darwin* | rhapsody*)
  13135. dynamic_linker="$host_os dyld"
  13136. version_type=darwin
  13137. need_lib_prefix=no
  13138. need_version=no
  13139. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13140. soname_spec='${libname}${release}${major}$shared_ext'
  13141. shlibpath_overrides_runpath=yes
  13142. shlibpath_var=DYLD_LIBRARY_PATH
  13143. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13144. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13145. ;;
  13146. dgux*)
  13147. version_type=linux # correct to gnu/linux during the next big refactor
  13148. need_lib_prefix=no
  13149. need_version=no
  13150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13151. soname_spec='${libname}${release}${shared_ext}$major'
  13152. shlibpath_var=LD_LIBRARY_PATH
  13153. ;;
  13154. freebsd* | dragonfly*)
  13155. # DragonFly does not have aout. When/if they implement a new
  13156. # versioning mechanism, adjust this.
  13157. if test -x /usr/bin/objformat; then
  13158. objformat=`/usr/bin/objformat`
  13159. else
  13160. case $host_os in
  13161. freebsd[23].*) objformat=aout ;;
  13162. *) objformat=elf ;;
  13163. esac
  13164. fi
  13165. version_type=freebsd-$objformat
  13166. case $version_type in
  13167. freebsd-elf*)
  13168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13169. need_version=no
  13170. need_lib_prefix=no
  13171. ;;
  13172. freebsd-*)
  13173. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13174. need_version=yes
  13175. ;;
  13176. esac
  13177. shlibpath_var=LD_LIBRARY_PATH
  13178. case $host_os in
  13179. freebsd2.*)
  13180. shlibpath_overrides_runpath=yes
  13181. ;;
  13182. freebsd3.[01]* | freebsdelf3.[01]*)
  13183. shlibpath_overrides_runpath=yes
  13184. hardcode_into_libs=yes
  13185. ;;
  13186. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13187. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13188. shlibpath_overrides_runpath=no
  13189. hardcode_into_libs=yes
  13190. ;;
  13191. *) # from 4.6 on, and DragonFly
  13192. shlibpath_overrides_runpath=yes
  13193. hardcode_into_libs=yes
  13194. ;;
  13195. esac
  13196. ;;
  13197. gnu*)
  13198. version_type=linux # correct to gnu/linux during the next big refactor
  13199. need_lib_prefix=no
  13200. need_version=no
  13201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13202. soname_spec='${libname}${release}${shared_ext}$major'
  13203. shlibpath_var=LD_LIBRARY_PATH
  13204. shlibpath_overrides_runpath=no
  13205. hardcode_into_libs=yes
  13206. ;;
  13207. haiku*)
  13208. version_type=linux # correct to gnu/linux during the next big refactor
  13209. need_lib_prefix=no
  13210. need_version=no
  13211. dynamic_linker="$host_os runtime_loader"
  13212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13213. soname_spec='${libname}${release}${shared_ext}$major'
  13214. shlibpath_var=LIBRARY_PATH
  13215. shlibpath_overrides_runpath=yes
  13216. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13217. hardcode_into_libs=yes
  13218. ;;
  13219. hpux9* | hpux10* | hpux11*)
  13220. # Give a soname corresponding to the major version so that dld.sl refuses to
  13221. # link against other versions.
  13222. version_type=sunos
  13223. need_lib_prefix=no
  13224. need_version=no
  13225. case $host_cpu in
  13226. ia64*)
  13227. shrext_cmds='.so'
  13228. hardcode_into_libs=yes
  13229. dynamic_linker="$host_os dld.so"
  13230. shlibpath_var=LD_LIBRARY_PATH
  13231. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. if test "X$HPUX_IA64_MODE" = X32; then
  13235. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13236. else
  13237. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13238. fi
  13239. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13240. ;;
  13241. hppa*64*)
  13242. shrext_cmds='.sl'
  13243. hardcode_into_libs=yes
  13244. dynamic_linker="$host_os dld.sl"
  13245. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13246. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13248. soname_spec='${libname}${release}${shared_ext}$major'
  13249. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13250. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13251. ;;
  13252. *)
  13253. shrext_cmds='.sl'
  13254. dynamic_linker="$host_os dld.sl"
  13255. shlibpath_var=SHLIB_PATH
  13256. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13258. soname_spec='${libname}${release}${shared_ext}$major'
  13259. ;;
  13260. esac
  13261. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13262. postinstall_cmds='chmod 555 $lib'
  13263. # or fails outright, so override atomically:
  13264. install_override_mode=555
  13265. ;;
  13266. interix[3-9]*)
  13267. version_type=linux # correct to gnu/linux during the next big refactor
  13268. need_lib_prefix=no
  13269. need_version=no
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13271. soname_spec='${libname}${release}${shared_ext}$major'
  13272. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13273. shlibpath_var=LD_LIBRARY_PATH
  13274. shlibpath_overrides_runpath=no
  13275. hardcode_into_libs=yes
  13276. ;;
  13277. irix5* | irix6* | nonstopux*)
  13278. case $host_os in
  13279. nonstopux*) version_type=nonstopux ;;
  13280. *)
  13281. if test "$lt_cv_prog_gnu_ld" = yes; then
  13282. version_type=linux # correct to gnu/linux during the next big refactor
  13283. else
  13284. version_type=irix
  13285. fi ;;
  13286. esac
  13287. need_lib_prefix=no
  13288. need_version=no
  13289. soname_spec='${libname}${release}${shared_ext}$major'
  13290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13291. case $host_os in
  13292. irix5* | nonstopux*)
  13293. libsuff= shlibsuff=
  13294. ;;
  13295. *)
  13296. case $LD in # libtool.m4 will add one of these switches to LD
  13297. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13298. libsuff= shlibsuff= libmagic=32-bit;;
  13299. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13300. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13301. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13302. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13303. *) libsuff= shlibsuff= libmagic=never-match;;
  13304. esac
  13305. ;;
  13306. esac
  13307. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13308. shlibpath_overrides_runpath=no
  13309. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13310. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13311. hardcode_into_libs=yes
  13312. ;;
  13313. # No shared lib support for Linux oldld, aout, or coff.
  13314. linux*oldld* | linux*aout* | linux*coff*)
  13315. dynamic_linker=no
  13316. ;;
  13317. # This must be glibc/ELF.
  13318. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13319. version_type=linux # correct to gnu/linux during the next big refactor
  13320. need_lib_prefix=no
  13321. need_version=no
  13322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13323. soname_spec='${libname}${release}${shared_ext}$major'
  13324. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13325. shlibpath_var=LD_LIBRARY_PATH
  13326. shlibpath_overrides_runpath=no
  13327. # Some binutils ld are patched to set DT_RUNPATH
  13328. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13329. $as_echo_n "(cached) " >&6
  13330. else
  13331. lt_cv_shlibpath_overrides_runpath=no
  13332. save_LDFLAGS=$LDFLAGS
  13333. save_libdir=$libdir
  13334. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13335. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13337. /* end confdefs.h. */
  13338. int
  13339. main ()
  13340. {
  13341. ;
  13342. return 0;
  13343. }
  13344. _ACEOF
  13345. if ac_fn_cxx_try_link "$LINENO"; then :
  13346. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13347. lt_cv_shlibpath_overrides_runpath=yes
  13348. fi
  13349. fi
  13350. rm -f core conftest.err conftest.$ac_objext \
  13351. conftest$ac_exeext conftest.$ac_ext
  13352. LDFLAGS=$save_LDFLAGS
  13353. libdir=$save_libdir
  13354. fi
  13355. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13356. # This implies no fast_install, which is unacceptable.
  13357. # Some rework will be needed to allow for fast_install
  13358. # before this can be enabled.
  13359. hardcode_into_libs=yes
  13360. # Append ld.so.conf contents to the search path
  13361. if test -f /etc/ld.so.conf; then
  13362. 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' ' '`
  13363. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13364. fi
  13365. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13366. # powerpc, because MkLinux only supported shared libraries with the
  13367. # GNU dynamic linker. Since this was broken with cross compilers,
  13368. # most powerpc-linux boxes support dynamic linking these days and
  13369. # people can always --disable-shared, the test was removed, and we
  13370. # assume the GNU/Linux dynamic linker is in use.
  13371. dynamic_linker='GNU/Linux ld.so'
  13372. ;;
  13373. netbsd*)
  13374. version_type=sunos
  13375. need_lib_prefix=no
  13376. need_version=no
  13377. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13379. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13380. dynamic_linker='NetBSD (a.out) ld.so'
  13381. else
  13382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13383. soname_spec='${libname}${release}${shared_ext}$major'
  13384. dynamic_linker='NetBSD ld.elf_so'
  13385. fi
  13386. shlibpath_var=LD_LIBRARY_PATH
  13387. shlibpath_overrides_runpath=yes
  13388. hardcode_into_libs=yes
  13389. ;;
  13390. newsos6)
  13391. version_type=linux # correct to gnu/linux during the next big refactor
  13392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13393. shlibpath_var=LD_LIBRARY_PATH
  13394. shlibpath_overrides_runpath=yes
  13395. ;;
  13396. *nto* | *qnx*)
  13397. version_type=qnx
  13398. need_lib_prefix=no
  13399. need_version=no
  13400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13401. soname_spec='${libname}${release}${shared_ext}$major'
  13402. shlibpath_var=LD_LIBRARY_PATH
  13403. shlibpath_overrides_runpath=no
  13404. hardcode_into_libs=yes
  13405. dynamic_linker='ldqnx.so'
  13406. ;;
  13407. openbsd*)
  13408. version_type=sunos
  13409. sys_lib_dlsearch_path_spec="/usr/lib"
  13410. need_lib_prefix=no
  13411. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13412. case $host_os in
  13413. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13414. *) need_version=no ;;
  13415. esac
  13416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13417. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13418. shlibpath_var=LD_LIBRARY_PATH
  13419. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13420. case $host_os in
  13421. openbsd2.[89] | openbsd2.[89].*)
  13422. shlibpath_overrides_runpath=no
  13423. ;;
  13424. *)
  13425. shlibpath_overrides_runpath=yes
  13426. ;;
  13427. esac
  13428. else
  13429. shlibpath_overrides_runpath=yes
  13430. fi
  13431. ;;
  13432. os2*)
  13433. libname_spec='$name'
  13434. shrext_cmds=".dll"
  13435. need_lib_prefix=no
  13436. library_names_spec='$libname${shared_ext} $libname.a'
  13437. dynamic_linker='OS/2 ld.exe'
  13438. shlibpath_var=LIBPATH
  13439. ;;
  13440. osf3* | osf4* | osf5*)
  13441. version_type=osf
  13442. need_lib_prefix=no
  13443. need_version=no
  13444. soname_spec='${libname}${release}${shared_ext}$major'
  13445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13446. shlibpath_var=LD_LIBRARY_PATH
  13447. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13448. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13449. ;;
  13450. rdos*)
  13451. dynamic_linker=no
  13452. ;;
  13453. solaris*)
  13454. version_type=linux # correct to gnu/linux during the next big refactor
  13455. need_lib_prefix=no
  13456. need_version=no
  13457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13458. soname_spec='${libname}${release}${shared_ext}$major'
  13459. shlibpath_var=LD_LIBRARY_PATH
  13460. shlibpath_overrides_runpath=yes
  13461. hardcode_into_libs=yes
  13462. # ldd complains unless libraries are executable
  13463. postinstall_cmds='chmod +x $lib'
  13464. ;;
  13465. sunos4*)
  13466. version_type=sunos
  13467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13468. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13469. shlibpath_var=LD_LIBRARY_PATH
  13470. shlibpath_overrides_runpath=yes
  13471. if test "$with_gnu_ld" = yes; then
  13472. need_lib_prefix=no
  13473. fi
  13474. need_version=yes
  13475. ;;
  13476. sysv4 | sysv4.3*)
  13477. version_type=linux # correct to gnu/linux during the next big refactor
  13478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13479. soname_spec='${libname}${release}${shared_ext}$major'
  13480. shlibpath_var=LD_LIBRARY_PATH
  13481. case $host_vendor in
  13482. sni)
  13483. shlibpath_overrides_runpath=no
  13484. need_lib_prefix=no
  13485. runpath_var=LD_RUN_PATH
  13486. ;;
  13487. siemens)
  13488. need_lib_prefix=no
  13489. ;;
  13490. motorola)
  13491. need_lib_prefix=no
  13492. need_version=no
  13493. shlibpath_overrides_runpath=no
  13494. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13495. ;;
  13496. esac
  13497. ;;
  13498. sysv4*MP*)
  13499. if test -d /usr/nec ;then
  13500. version_type=linux # correct to gnu/linux during the next big refactor
  13501. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13502. soname_spec='$libname${shared_ext}.$major'
  13503. shlibpath_var=LD_LIBRARY_PATH
  13504. fi
  13505. ;;
  13506. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13507. version_type=freebsd-elf
  13508. need_lib_prefix=no
  13509. need_version=no
  13510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13511. soname_spec='${libname}${release}${shared_ext}$major'
  13512. shlibpath_var=LD_LIBRARY_PATH
  13513. shlibpath_overrides_runpath=yes
  13514. hardcode_into_libs=yes
  13515. if test "$with_gnu_ld" = yes; then
  13516. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13517. else
  13518. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13519. case $host_os in
  13520. sco3.2v5*)
  13521. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13522. ;;
  13523. esac
  13524. fi
  13525. sys_lib_dlsearch_path_spec='/usr/lib'
  13526. ;;
  13527. tpf*)
  13528. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13529. version_type=linux # correct to gnu/linux during the next big refactor
  13530. need_lib_prefix=no
  13531. need_version=no
  13532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13533. shlibpath_var=LD_LIBRARY_PATH
  13534. shlibpath_overrides_runpath=no
  13535. hardcode_into_libs=yes
  13536. ;;
  13537. uts4*)
  13538. version_type=linux # correct to gnu/linux during the next big refactor
  13539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13540. soname_spec='${libname}${release}${shared_ext}$major'
  13541. shlibpath_var=LD_LIBRARY_PATH
  13542. ;;
  13543. *)
  13544. dynamic_linker=no
  13545. ;;
  13546. esac
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13548. $as_echo "$dynamic_linker" >&6; }
  13549. test "$dynamic_linker" = no && can_build_shared=no
  13550. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13551. if test "$GCC" = yes; then
  13552. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13553. fi
  13554. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13555. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13556. fi
  13557. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13558. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13559. fi
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13561. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13562. hardcode_action_CXX=
  13563. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13564. test -n "$runpath_var_CXX" ||
  13565. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13566. # We can hardcode non-existent directories.
  13567. if test "$hardcode_direct_CXX" != no &&
  13568. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13569. # have to relink, otherwise we might link with an installed library
  13570. # when we should be linking with a yet-to-be-installed one
  13571. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13572. test "$hardcode_minus_L_CXX" != no; then
  13573. # Linking always hardcodes the temporary library directory.
  13574. hardcode_action_CXX=relink
  13575. else
  13576. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13577. hardcode_action_CXX=immediate
  13578. fi
  13579. else
  13580. # We cannot hardcode anything, or else we can only hardcode existing
  13581. # directories.
  13582. hardcode_action_CXX=unsupported
  13583. fi
  13584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13585. $as_echo "$hardcode_action_CXX" >&6; }
  13586. if test "$hardcode_action_CXX" = relink ||
  13587. test "$inherit_rpath_CXX" = yes; then
  13588. # Fast installation is not supported
  13589. enable_fast_install=no
  13590. elif test "$shlibpath_overrides_runpath" = yes ||
  13591. test "$enable_shared" = no; then
  13592. # Fast installation is not necessary
  13593. enable_fast_install=needless
  13594. fi
  13595. fi # test -n "$compiler"
  13596. CC=$lt_save_CC
  13597. CFLAGS=$lt_save_CFLAGS
  13598. LDCXX=$LD
  13599. LD=$lt_save_LD
  13600. GCC=$lt_save_GCC
  13601. with_gnu_ld=$lt_save_with_gnu_ld
  13602. lt_cv_path_LDCXX=$lt_cv_path_LD
  13603. lt_cv_path_LD=$lt_save_path_LD
  13604. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13605. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13606. fi # test "$_lt_caught_CXX_error" != yes
  13607. ac_ext=c
  13608. ac_cpp='$CPP $CPPFLAGS'
  13609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13612. # Find a good install program. We prefer a C program (faster),
  13613. # so one script is as good as another. But avoid the broken or
  13614. # incompatible versions:
  13615. # SysV /etc/install, /usr/sbin/install
  13616. # SunOS /usr/etc/install
  13617. # IRIX /sbin/install
  13618. # AIX /bin/install
  13619. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13620. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13621. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13622. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13623. # OS/2's system install, which has a completely different semantic
  13624. # ./install, which can be erroneously created by make from ./install.sh.
  13625. # Reject install programs that cannot install multiple files.
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13627. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13628. if test -z "$INSTALL"; then
  13629. if ${ac_cv_path_install+:} false; then :
  13630. $as_echo_n "(cached) " >&6
  13631. else
  13632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13633. for as_dir in $PATH
  13634. do
  13635. IFS=$as_save_IFS
  13636. test -z "$as_dir" && as_dir=.
  13637. # Account for people who put trailing slashes in PATH elements.
  13638. case $as_dir/ in #((
  13639. ./ | .// | /[cC]/* | \
  13640. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13641. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13642. /usr/ucb/* ) ;;
  13643. *)
  13644. # OSF1 and SCO ODT 3.0 have their own names for install.
  13645. # Don't use installbsd from OSF since it installs stuff as root
  13646. # by default.
  13647. for ac_prog in ginstall scoinst install; do
  13648. for ac_exec_ext in '' $ac_executable_extensions; do
  13649. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13650. if test $ac_prog = install &&
  13651. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13652. # AIX install. It has an incompatible calling convention.
  13653. :
  13654. elif test $ac_prog = install &&
  13655. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13656. # program-specific install script used by HP pwplus--don't use.
  13657. :
  13658. else
  13659. rm -rf conftest.one conftest.two conftest.dir
  13660. echo one > conftest.one
  13661. echo two > conftest.two
  13662. mkdir conftest.dir
  13663. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13664. test -s conftest.one && test -s conftest.two &&
  13665. test -s conftest.dir/conftest.one &&
  13666. test -s conftest.dir/conftest.two
  13667. then
  13668. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13669. break 3
  13670. fi
  13671. fi
  13672. fi
  13673. done
  13674. done
  13675. ;;
  13676. esac
  13677. done
  13678. IFS=$as_save_IFS
  13679. rm -rf conftest.one conftest.two conftest.dir
  13680. fi
  13681. if test "${ac_cv_path_install+set}" = set; then
  13682. INSTALL=$ac_cv_path_install
  13683. else
  13684. # As a last resort, use the slow shell script. Don't cache a
  13685. # value for INSTALL within a source directory, because that will
  13686. # break other packages using the cache if that directory is
  13687. # removed, or if the value is a relative name.
  13688. INSTALL=$ac_install_sh
  13689. fi
  13690. fi
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13692. $as_echo "$INSTALL" >&6; }
  13693. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13694. # It thinks the first close brace ends the variable substitution.
  13695. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13696. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13697. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13699. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13700. set x ${MAKE-make}
  13701. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13702. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13703. $as_echo_n "(cached) " >&6
  13704. else
  13705. cat >conftest.make <<\_ACEOF
  13706. SHELL = /bin/sh
  13707. all:
  13708. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13709. _ACEOF
  13710. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13711. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13712. *@@@%%%=?*=@@@%%%*)
  13713. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13714. *)
  13715. eval ac_cv_prog_make_${ac_make}_set=no;;
  13716. esac
  13717. rm -f conftest.make
  13718. fi
  13719. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13721. $as_echo "yes" >&6; }
  13722. SET_MAKE=
  13723. else
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13725. $as_echo "no" >&6; }
  13726. SET_MAKE="MAKE=${MAKE-make}"
  13727. fi
  13728. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13729. if test -n "$ac_tool_prefix"; then
  13730. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13731. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13733. $as_echo_n "checking for $ac_word... " >&6; }
  13734. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13735. $as_echo_n "(cached) " >&6
  13736. else
  13737. case $PKG_CONFIG in
  13738. [\\/]* | ?:[\\/]*)
  13739. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13740. ;;
  13741. *)
  13742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13743. for as_dir in $PATH
  13744. do
  13745. IFS=$as_save_IFS
  13746. test -z "$as_dir" && as_dir=.
  13747. for ac_exec_ext in '' $ac_executable_extensions; do
  13748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13749. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13751. break 2
  13752. fi
  13753. done
  13754. done
  13755. IFS=$as_save_IFS
  13756. ;;
  13757. esac
  13758. fi
  13759. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13760. if test -n "$PKG_CONFIG"; then
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13762. $as_echo "$PKG_CONFIG" >&6; }
  13763. else
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13765. $as_echo "no" >&6; }
  13766. fi
  13767. fi
  13768. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13769. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13770. # Extract the first word of "pkg-config", so it can be a program name with args.
  13771. set dummy pkg-config; ac_word=$2
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13773. $as_echo_n "checking for $ac_word... " >&6; }
  13774. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13775. $as_echo_n "(cached) " >&6
  13776. else
  13777. case $ac_pt_PKG_CONFIG in
  13778. [\\/]* | ?:[\\/]*)
  13779. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13780. ;;
  13781. *)
  13782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13783. for as_dir in $PATH
  13784. do
  13785. IFS=$as_save_IFS
  13786. test -z "$as_dir" && as_dir=.
  13787. for ac_exec_ext in '' $ac_executable_extensions; do
  13788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13789. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13791. break 2
  13792. fi
  13793. done
  13794. done
  13795. IFS=$as_save_IFS
  13796. ;;
  13797. esac
  13798. fi
  13799. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13800. if test -n "$ac_pt_PKG_CONFIG"; then
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13802. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13803. else
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13805. $as_echo "no" >&6; }
  13806. fi
  13807. if test "x$ac_pt_PKG_CONFIG" = x; then
  13808. PKG_CONFIG=""
  13809. else
  13810. case $cross_compiling:$ac_tool_warned in
  13811. yes:)
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13814. ac_tool_warned=yes ;;
  13815. esac
  13816. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13817. fi
  13818. else
  13819. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13820. fi
  13821. fi
  13822. if test -n "$PKG_CONFIG"; then
  13823. _pkg_min_version=0.9.0
  13824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13825. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13826. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13828. $as_echo "yes" >&6; }
  13829. else
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13831. $as_echo "no" >&6; }
  13832. PKG_CONFIG=""
  13833. fi
  13834. fi
  13835. case "$host" in
  13836. *-*-mingw*)
  13837. # Except on msys, where make can't handle full pathnames (bug 1972)
  13838. ;;
  13839. *)
  13840. srcdir=`cd $srcdir && pwd`
  13841. ;;
  13842. esac
  13843. INCLUDE="-I$srcdir/include"
  13844. case "$host" in
  13845. *-*-nto-qnx*)
  13846. ;;
  13847. *)
  13848. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13849. ;;
  13850. esac
  13851. case "$host" in
  13852. *-*-haiku*)
  13853. LINKER='$(CXX)'
  13854. LIBTOOLLINKERTAG='CXX'
  13855. ;;
  13856. *)
  13857. LINKER='$(CC)'
  13858. LIBTOOLLINKERTAG='CC'
  13859. ;;
  13860. esac
  13861. if test x$srcdir != x.; then
  13862. INCLUDE="-Iinclude $INCLUDE"
  13863. elif test -d .git; then
  13864. as_fn_error $? "
  13865. *** When building from a git clone you should configure and build in a
  13866. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13867. " "$LINENO" 5
  13868. fi
  13869. BASE_CFLAGS=""
  13870. BASE_LDFLAGS=""
  13871. case "$host" in
  13872. *-*-cygwin*)
  13873. # We build SDL on cygwin without the UNIX emulation layer
  13874. save_CFLAGS="$CFLAGS"
  13875. have_no_cygwin=no
  13876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13877. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13878. CFLAGS="$save_CFLAGS -mno-cygwin"
  13879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13880. /* end confdefs.h. */
  13881. int
  13882. main ()
  13883. {
  13884. ;
  13885. return 0;
  13886. }
  13887. _ACEOF
  13888. if ac_fn_c_try_compile "$LINENO"; then :
  13889. have_no_cygwin=yes
  13890. fi
  13891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13893. $as_echo "$have_no_cygwin" >&6; }
  13894. CFLAGS="$save_CFLAGS"
  13895. if test x$have_no_cygwin = xyes; then
  13896. BASE_CFLAGS="-mno-cygwin"
  13897. BASE_LDFLAGS="-mno-cygwin"
  13898. fi
  13899. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13900. ;;
  13901. esac
  13902. # Uncomment the following line if you want to force SDL and applications
  13903. # built with it to be compiled for a particular architecture.
  13904. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13905. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13906. # The default optimization for SDL is -O3 (Bug #31)
  13907. if test "x$orig_CFLAGS" = x; then
  13908. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13909. fi
  13910. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13911. BUILD_LDFLAGS="$LDFLAGS"
  13912. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13913. ## These are common directories to find software packages
  13914. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13915. # if test -d $path/include; then
  13916. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13917. # fi
  13918. # if test -d $path/lib; then
  13919. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13920. # fi
  13921. #done
  13922. SDL_CFLAGS="$BASE_CFLAGS"
  13923. SDL_LIBS="-lSDL2"
  13924. if test "x$BASE_LDFLAGS" != x; then
  13925. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13926. fi
  13927. if test "x$EXTRA_CFLAGS" != x; then
  13928. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13929. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13930. fi
  13931. if test "x$EXTRA_LDFLAGS" != x; then
  13932. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13933. fi
  13934. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13935. find_lib()
  13936. {
  13937. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13938. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13939. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13940. if test "$cross_compiling" = yes; then
  13941. host_lib_path=""
  13942. else
  13943. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13944. fi
  13945. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13946. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13947. if test x$lib != x; then
  13948. echo $lib
  13949. return
  13950. fi
  13951. done
  13952. # Try again, this time allowing more than one version digit after the .so
  13953. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13954. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13955. if test x$lib != x; then
  13956. echo $lib
  13957. return
  13958. fi
  13959. done
  13960. }
  13961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13962. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13963. if ${ac_cv_c_const+:} false; then :
  13964. $as_echo_n "(cached) " >&6
  13965. else
  13966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13967. /* end confdefs.h. */
  13968. int
  13969. main ()
  13970. {
  13971. #ifndef __cplusplus
  13972. /* Ultrix mips cc rejects this sort of thing. */
  13973. typedef int charset[2];
  13974. const charset cs = { 0, 0 };
  13975. /* SunOS 4.1.1 cc rejects this. */
  13976. char const *const *pcpcc;
  13977. char **ppc;
  13978. /* NEC SVR4.0.2 mips cc rejects this. */
  13979. struct point {int x, y;};
  13980. static struct point const zero = {0,0};
  13981. /* AIX XL C 1.02.0.0 rejects this.
  13982. It does not let you subtract one const X* pointer from another in
  13983. an arm of an if-expression whose if-part is not a constant
  13984. expression */
  13985. const char *g = "string";
  13986. pcpcc = &g + (g ? g-g : 0);
  13987. /* HPUX 7.0 cc rejects these. */
  13988. ++pcpcc;
  13989. ppc = (char**) pcpcc;
  13990. pcpcc = (char const *const *) ppc;
  13991. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13992. char tx;
  13993. char *t = &tx;
  13994. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13995. *t++ = 0;
  13996. if (s) return 0;
  13997. }
  13998. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13999. int x[] = {25, 17};
  14000. const int *foo = &x[0];
  14001. ++foo;
  14002. }
  14003. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14004. typedef const int *iptr;
  14005. iptr p = 0;
  14006. ++p;
  14007. }
  14008. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14009. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14010. struct s { int j; const int *ap[3]; } bx;
  14011. struct s *b = &bx; b->j = 5;
  14012. }
  14013. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14014. const int foo = 10;
  14015. if (!foo) return 0;
  14016. }
  14017. return !cs[0] && !zero.x;
  14018. #endif
  14019. ;
  14020. return 0;
  14021. }
  14022. _ACEOF
  14023. if ac_fn_c_try_compile "$LINENO"; then :
  14024. ac_cv_c_const=yes
  14025. else
  14026. ac_cv_c_const=no
  14027. fi
  14028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14029. fi
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14031. $as_echo "$ac_cv_c_const" >&6; }
  14032. if test $ac_cv_c_const = no; then
  14033. $as_echo "#define const /**/" >>confdefs.h
  14034. fi
  14035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14036. $as_echo_n "checking for inline... " >&6; }
  14037. if ${ac_cv_c_inline+:} false; then :
  14038. $as_echo_n "(cached) " >&6
  14039. else
  14040. ac_cv_c_inline=no
  14041. for ac_kw in inline __inline__ __inline; do
  14042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14043. /* end confdefs.h. */
  14044. #ifndef __cplusplus
  14045. typedef int foo_t;
  14046. static $ac_kw foo_t static_foo () {return 0; }
  14047. $ac_kw foo_t foo () {return 0; }
  14048. #endif
  14049. _ACEOF
  14050. if ac_fn_c_try_compile "$LINENO"; then :
  14051. ac_cv_c_inline=$ac_kw
  14052. fi
  14053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14054. test "$ac_cv_c_inline" != no && break
  14055. done
  14056. fi
  14057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14058. $as_echo "$ac_cv_c_inline" >&6; }
  14059. case $ac_cv_c_inline in
  14060. inline | yes) ;;
  14061. *)
  14062. case $ac_cv_c_inline in
  14063. no) ac_val=;;
  14064. *) ac_val=$ac_cv_c_inline;;
  14065. esac
  14066. cat >>confdefs.h <<_ACEOF
  14067. #ifndef __cplusplus
  14068. #define inline $ac_val
  14069. #endif
  14070. _ACEOF
  14071. ;;
  14072. esac
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14074. $as_echo_n "checking for working volatile... " >&6; }
  14075. if ${ac_cv_c_volatile+:} false; then :
  14076. $as_echo_n "(cached) " >&6
  14077. else
  14078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14079. /* end confdefs.h. */
  14080. int
  14081. main ()
  14082. {
  14083. volatile int x;
  14084. int * volatile y = (int *) 0;
  14085. return !x && !y;
  14086. ;
  14087. return 0;
  14088. }
  14089. _ACEOF
  14090. if ac_fn_c_try_compile "$LINENO"; then :
  14091. ac_cv_c_volatile=yes
  14092. else
  14093. ac_cv_c_volatile=no
  14094. fi
  14095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14096. fi
  14097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14098. $as_echo "$ac_cv_c_volatile" >&6; }
  14099. if test $ac_cv_c_volatile = no; then
  14100. $as_echo "#define volatile /**/" >>confdefs.h
  14101. fi
  14102. # Check whether --enable-assertions was given.
  14103. if test "${enable_assertions+set}" = set; then :
  14104. enableval=$enable_assertions;
  14105. else
  14106. enable_assertions=auto
  14107. fi
  14108. case "$enable_assertions" in
  14109. auto) # Use optimization settings to determine assertion level
  14110. ;;
  14111. disabled)
  14112. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14113. ;;
  14114. release)
  14115. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14116. ;;
  14117. enabled)
  14118. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14119. ;;
  14120. paranoid)
  14121. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14122. ;;
  14123. *)
  14124. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14125. ;;
  14126. esac
  14127. # Check whether --enable-dependency-tracking was given.
  14128. if test "${enable_dependency_tracking+set}" = set; then :
  14129. enableval=$enable_dependency_tracking;
  14130. else
  14131. enable_dependency_tracking=yes
  14132. fi
  14133. if test x$enable_dependency_tracking = xyes; then
  14134. have_gcc_mmd_mt=no
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14136. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14138. /* end confdefs.h. */
  14139. #if !defined(__GNUC__) || __GNUC__ < 3
  14140. #error Dependency tracking requires GCC 3.0 or newer
  14141. #endif
  14142. int
  14143. main ()
  14144. {
  14145. ;
  14146. return 0;
  14147. }
  14148. _ACEOF
  14149. if ac_fn_c_try_compile "$LINENO"; then :
  14150. have_gcc_mmd_mt=yes
  14151. fi
  14152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14154. $as_echo "$have_gcc_mmd_mt" >&6; }
  14155. if test x$have_gcc_mmd_mt = xyes; then
  14156. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14157. fi
  14158. fi
  14159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14160. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14161. have_no_undefined=no
  14162. case "$host" in
  14163. *-*-openbsd*)
  14164. ;;
  14165. *)
  14166. save_LDFLAGS="$LDFLAGS"
  14167. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14169. /* end confdefs.h. */
  14170. int
  14171. main ()
  14172. {
  14173. ;
  14174. return 0;
  14175. }
  14176. _ACEOF
  14177. if ac_fn_c_try_link "$LINENO"; then :
  14178. have_no_undefined=yes
  14179. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14180. fi
  14181. rm -f core conftest.err conftest.$ac_objext \
  14182. conftest$ac_exeext conftest.$ac_ext
  14183. LDFLAGS="$save_LDFLAGS"
  14184. ;;
  14185. esac
  14186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14187. $as_echo "$have_no_undefined" >&6; }
  14188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14189. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14190. have_dynamicbase=no
  14191. case "$host" in
  14192. *)
  14193. save_LDFLAGS="$LDFLAGS"
  14194. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14196. /* end confdefs.h. */
  14197. int
  14198. main ()
  14199. {
  14200. ;
  14201. return 0;
  14202. }
  14203. _ACEOF
  14204. if ac_fn_c_try_link "$LINENO"; then :
  14205. have_dynamicbase=yes
  14206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14207. fi
  14208. rm -f core conftest.err conftest.$ac_objext \
  14209. conftest$ac_exeext conftest.$ac_ext
  14210. LDFLAGS="$save_LDFLAGS"
  14211. ;;
  14212. esac
  14213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14214. $as_echo "$have_dynamicbase" >&6; }
  14215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14216. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14217. have_nxcompat=no
  14218. case "$host" in
  14219. *)
  14220. save_LDFLAGS="$LDFLAGS"
  14221. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14223. /* end confdefs.h. */
  14224. int
  14225. main ()
  14226. {
  14227. ;
  14228. return 0;
  14229. }
  14230. _ACEOF
  14231. if ac_fn_c_try_link "$LINENO"; then :
  14232. have_nxcompat=yes
  14233. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14234. fi
  14235. rm -f core conftest.err conftest.$ac_objext \
  14236. conftest$ac_exeext conftest.$ac_ext
  14237. LDFLAGS="$save_LDFLAGS"
  14238. ;;
  14239. esac
  14240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14241. $as_echo "$have_nxcompat" >&6; }
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14243. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14244. have_high_entropy_va=no
  14245. case "$host" in
  14246. *)
  14247. save_LDFLAGS="$LDFLAGS"
  14248. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14250. /* end confdefs.h. */
  14251. int
  14252. main ()
  14253. {
  14254. ;
  14255. return 0;
  14256. }
  14257. _ACEOF
  14258. if ac_fn_c_try_link "$LINENO"; then :
  14259. have_high_entropy_va=yes
  14260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14261. fi
  14262. rm -f core conftest.err conftest.$ac_objext \
  14263. conftest$ac_exeext conftest.$ac_ext
  14264. LDFLAGS="$save_LDFLAGS"
  14265. ;;
  14266. esac
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14268. $as_echo "$have_high_entropy_va" >&6; }
  14269. # Check whether --enable-libc was given.
  14270. if test "${enable_libc+set}" = set; then :
  14271. enableval=$enable_libc;
  14272. else
  14273. enable_libc=yes
  14274. fi
  14275. if test x$enable_libc = xyes; then
  14276. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14278. $as_echo_n "checking for ANSI C header files... " >&6; }
  14279. if ${ac_cv_header_stdc+:} false; then :
  14280. $as_echo_n "(cached) " >&6
  14281. else
  14282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14283. /* end confdefs.h. */
  14284. #include <stdlib.h>
  14285. #include <stdarg.h>
  14286. #include <string.h>
  14287. #include <float.h>
  14288. int
  14289. main ()
  14290. {
  14291. ;
  14292. return 0;
  14293. }
  14294. _ACEOF
  14295. if ac_fn_c_try_compile "$LINENO"; then :
  14296. ac_cv_header_stdc=yes
  14297. else
  14298. ac_cv_header_stdc=no
  14299. fi
  14300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14301. if test $ac_cv_header_stdc = yes; then
  14302. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14304. /* end confdefs.h. */
  14305. #include <string.h>
  14306. _ACEOF
  14307. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14308. $EGREP "memchr" >/dev/null 2>&1; then :
  14309. else
  14310. ac_cv_header_stdc=no
  14311. fi
  14312. rm -f conftest*
  14313. fi
  14314. if test $ac_cv_header_stdc = yes; then
  14315. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14317. /* end confdefs.h. */
  14318. #include <stdlib.h>
  14319. _ACEOF
  14320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14321. $EGREP "free" >/dev/null 2>&1; then :
  14322. else
  14323. ac_cv_header_stdc=no
  14324. fi
  14325. rm -f conftest*
  14326. fi
  14327. if test $ac_cv_header_stdc = yes; then
  14328. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14329. if test "$cross_compiling" = yes; then :
  14330. :
  14331. else
  14332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14333. /* end confdefs.h. */
  14334. #include <ctype.h>
  14335. #include <stdlib.h>
  14336. #if ((' ' & 0x0FF) == 0x020)
  14337. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14338. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14339. #else
  14340. # define ISLOWER(c) \
  14341. (('a' <= (c) && (c) <= 'i') \
  14342. || ('j' <= (c) && (c) <= 'r') \
  14343. || ('s' <= (c) && (c) <= 'z'))
  14344. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14345. #endif
  14346. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14347. int
  14348. main ()
  14349. {
  14350. int i;
  14351. for (i = 0; i < 256; i++)
  14352. if (XOR (islower (i), ISLOWER (i))
  14353. || toupper (i) != TOUPPER (i))
  14354. return 2;
  14355. return 0;
  14356. }
  14357. _ACEOF
  14358. if ac_fn_c_try_run "$LINENO"; then :
  14359. else
  14360. ac_cv_header_stdc=no
  14361. fi
  14362. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14363. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14364. fi
  14365. fi
  14366. fi
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14368. $as_echo "$ac_cv_header_stdc" >&6; }
  14369. if test $ac_cv_header_stdc = yes; then
  14370. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14371. fi
  14372. 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
  14373. do :
  14374. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14375. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14376. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14377. cat >>confdefs.h <<_ACEOF
  14378. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14379. _ACEOF
  14380. fi
  14381. done
  14382. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14383. if test "x$ac_cv_type_size_t" = xyes; then :
  14384. else
  14385. cat >>confdefs.h <<_ACEOF
  14386. #define size_t unsigned int
  14387. _ACEOF
  14388. fi
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14390. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14391. if ${ac_cv_define_M_PI+:} false; then :
  14392. $as_echo_n "(cached) " >&6
  14393. else
  14394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14395. /* end confdefs.h. */
  14396. #include <math.h>
  14397. #ifdef M_PI
  14398. YES_IS_DEFINED
  14399. #endif
  14400. _ACEOF
  14401. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14402. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14403. ac_cv_define_M_PI=yes
  14404. else
  14405. ac_cv_define_M_PI=no
  14406. fi
  14407. rm -f conftest*
  14408. fi
  14409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14410. $as_echo "$ac_cv_define_M_PI" >&6; }
  14411. if test "$ac_cv_define_M_PI" = "yes" ; then
  14412. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14413. fi
  14414. case "$host" in
  14415. *-*-cygwin* | *-*-mingw*)
  14416. ;;
  14417. *)
  14418. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14419. # for constant arguments. Useless!
  14420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14421. $as_echo_n "checking for working alloca.h... " >&6; }
  14422. if ${ac_cv_working_alloca_h+:} false; then :
  14423. $as_echo_n "(cached) " >&6
  14424. else
  14425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14426. /* end confdefs.h. */
  14427. #include <alloca.h>
  14428. int
  14429. main ()
  14430. {
  14431. char *p = (char *) alloca (2 * sizeof (int));
  14432. if (p) return 0;
  14433. ;
  14434. return 0;
  14435. }
  14436. _ACEOF
  14437. if ac_fn_c_try_link "$LINENO"; then :
  14438. ac_cv_working_alloca_h=yes
  14439. else
  14440. ac_cv_working_alloca_h=no
  14441. fi
  14442. rm -f core conftest.err conftest.$ac_objext \
  14443. conftest$ac_exeext conftest.$ac_ext
  14444. fi
  14445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14446. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14447. if test $ac_cv_working_alloca_h = yes; then
  14448. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14449. fi
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14451. $as_echo_n "checking for alloca... " >&6; }
  14452. if ${ac_cv_func_alloca_works+:} false; then :
  14453. $as_echo_n "(cached) " >&6
  14454. else
  14455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14456. /* end confdefs.h. */
  14457. #ifdef __GNUC__
  14458. # define alloca __builtin_alloca
  14459. #else
  14460. # ifdef _MSC_VER
  14461. # include <malloc.h>
  14462. # define alloca _alloca
  14463. # else
  14464. # ifdef HAVE_ALLOCA_H
  14465. # include <alloca.h>
  14466. # else
  14467. # ifdef _AIX
  14468. #pragma alloca
  14469. # else
  14470. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14471. void *alloca (size_t);
  14472. # endif
  14473. # endif
  14474. # endif
  14475. # endif
  14476. #endif
  14477. int
  14478. main ()
  14479. {
  14480. char *p = (char *) alloca (1);
  14481. if (p) return 0;
  14482. ;
  14483. return 0;
  14484. }
  14485. _ACEOF
  14486. if ac_fn_c_try_link "$LINENO"; then :
  14487. ac_cv_func_alloca_works=yes
  14488. else
  14489. ac_cv_func_alloca_works=no
  14490. fi
  14491. rm -f core conftest.err conftest.$ac_objext \
  14492. conftest$ac_exeext conftest.$ac_ext
  14493. fi
  14494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14495. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14496. if test $ac_cv_func_alloca_works = yes; then
  14497. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14498. else
  14499. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14500. # that cause trouble. Some versions do not even contain alloca or
  14501. # contain a buggy version. If you still want to use their alloca,
  14502. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14503. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14504. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14506. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14507. if ${ac_cv_os_cray+:} false; then :
  14508. $as_echo_n "(cached) " >&6
  14509. else
  14510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14511. /* end confdefs.h. */
  14512. #if defined CRAY && ! defined CRAY2
  14513. webecray
  14514. #else
  14515. wenotbecray
  14516. #endif
  14517. _ACEOF
  14518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14519. $EGREP "webecray" >/dev/null 2>&1; then :
  14520. ac_cv_os_cray=yes
  14521. else
  14522. ac_cv_os_cray=no
  14523. fi
  14524. rm -f conftest*
  14525. fi
  14526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14527. $as_echo "$ac_cv_os_cray" >&6; }
  14528. if test $ac_cv_os_cray = yes; then
  14529. for ac_func in _getb67 GETB67 getb67; do
  14530. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14531. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14532. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14533. cat >>confdefs.h <<_ACEOF
  14534. #define CRAY_STACKSEG_END $ac_func
  14535. _ACEOF
  14536. break
  14537. fi
  14538. done
  14539. fi
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14541. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14542. if ${ac_cv_c_stack_direction+:} false; then :
  14543. $as_echo_n "(cached) " >&6
  14544. else
  14545. if test "$cross_compiling" = yes; then :
  14546. ac_cv_c_stack_direction=0
  14547. else
  14548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14549. /* end confdefs.h. */
  14550. $ac_includes_default
  14551. int
  14552. find_stack_direction (int *addr, int depth)
  14553. {
  14554. int dir, dummy = 0;
  14555. if (! addr)
  14556. addr = &dummy;
  14557. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14558. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14559. return dir + dummy;
  14560. }
  14561. int
  14562. main (int argc, char **argv)
  14563. {
  14564. return find_stack_direction (0, argc + !argv + 20) < 0;
  14565. }
  14566. _ACEOF
  14567. if ac_fn_c_try_run "$LINENO"; then :
  14568. ac_cv_c_stack_direction=1
  14569. else
  14570. ac_cv_c_stack_direction=-1
  14571. fi
  14572. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14573. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14574. fi
  14575. fi
  14576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14577. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14578. cat >>confdefs.h <<_ACEOF
  14579. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14580. _ACEOF
  14581. fi
  14582. ;;
  14583. esac
  14584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14585. $as_echo_n "checking for working memcmp... " >&6; }
  14586. if ${ac_cv_func_memcmp_working+:} false; then :
  14587. $as_echo_n "(cached) " >&6
  14588. else
  14589. if test "$cross_compiling" = yes; then :
  14590. ac_cv_func_memcmp_working=no
  14591. else
  14592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14593. /* end confdefs.h. */
  14594. $ac_includes_default
  14595. int
  14596. main ()
  14597. {
  14598. /* Some versions of memcmp are not 8-bit clean. */
  14599. char c0 = '\100', c1 = '\200', c2 = '\201';
  14600. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14601. return 1;
  14602. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14603. or more and with at least one buffer not starting on a 4-byte boundary.
  14604. William Lewis provided this test program. */
  14605. {
  14606. char foo[21];
  14607. char bar[21];
  14608. int i;
  14609. for (i = 0; i < 4; i++)
  14610. {
  14611. char *a = foo + i;
  14612. char *b = bar + i;
  14613. strcpy (a, "--------01111111");
  14614. strcpy (b, "--------10000000");
  14615. if (memcmp (a, b, 16) >= 0)
  14616. return 1;
  14617. }
  14618. return 0;
  14619. }
  14620. ;
  14621. return 0;
  14622. }
  14623. _ACEOF
  14624. if ac_fn_c_try_run "$LINENO"; then :
  14625. ac_cv_func_memcmp_working=yes
  14626. else
  14627. ac_cv_func_memcmp_working=no
  14628. fi
  14629. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14630. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14631. fi
  14632. fi
  14633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14634. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14635. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14636. *" memcmp.$ac_objext "* ) ;;
  14637. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14638. ;;
  14639. esac
  14640. if test x$ac_cv_func_memcmp_working = xyes; then
  14641. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14642. fi
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14644. $as_echo_n "checking for working strtod... " >&6; }
  14645. if ${ac_cv_func_strtod+:} false; then :
  14646. $as_echo_n "(cached) " >&6
  14647. else
  14648. if test "$cross_compiling" = yes; then :
  14649. ac_cv_func_strtod=no
  14650. else
  14651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14652. /* end confdefs.h. */
  14653. $ac_includes_default
  14654. #ifndef strtod
  14655. double strtod ();
  14656. #endif
  14657. int
  14658. main()
  14659. {
  14660. {
  14661. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14662. char *string = " +69";
  14663. char *term;
  14664. double value;
  14665. value = strtod (string, &term);
  14666. if (value != 69 || term != (string + 4))
  14667. return 1;
  14668. }
  14669. {
  14670. /* Under Solaris 2.4, strtod returns the wrong value for the
  14671. terminating character under some conditions. */
  14672. char *string = "NaN";
  14673. char *term;
  14674. strtod (string, &term);
  14675. if (term != string && *(term - 1) == 0)
  14676. return 1;
  14677. }
  14678. return 0;
  14679. }
  14680. _ACEOF
  14681. if ac_fn_c_try_run "$LINENO"; then :
  14682. ac_cv_func_strtod=yes
  14683. else
  14684. ac_cv_func_strtod=no
  14685. fi
  14686. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14687. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14688. fi
  14689. fi
  14690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14691. $as_echo "$ac_cv_func_strtod" >&6; }
  14692. if test $ac_cv_func_strtod = no; then
  14693. case " $LIBOBJS " in
  14694. *" strtod.$ac_objext "* ) ;;
  14695. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14696. ;;
  14697. esac
  14698. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14699. if test "x$ac_cv_func_pow" = xyes; then :
  14700. fi
  14701. if test $ac_cv_func_pow = no; then
  14702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14703. $as_echo_n "checking for pow in -lm... " >&6; }
  14704. if ${ac_cv_lib_m_pow+:} false; then :
  14705. $as_echo_n "(cached) " >&6
  14706. else
  14707. ac_check_lib_save_LIBS=$LIBS
  14708. LIBS="-lm $LIBS"
  14709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14710. /* end confdefs.h. */
  14711. /* Override any GCC internal prototype to avoid an error.
  14712. Use char because int might match the return type of a GCC
  14713. builtin and then its argument prototype would still apply. */
  14714. #ifdef __cplusplus
  14715. extern "C"
  14716. #endif
  14717. char pow ();
  14718. int
  14719. main ()
  14720. {
  14721. return pow ();
  14722. ;
  14723. return 0;
  14724. }
  14725. _ACEOF
  14726. if ac_fn_c_try_link "$LINENO"; then :
  14727. ac_cv_lib_m_pow=yes
  14728. else
  14729. ac_cv_lib_m_pow=no
  14730. fi
  14731. rm -f core conftest.err conftest.$ac_objext \
  14732. conftest$ac_exeext conftest.$ac_ext
  14733. LIBS=$ac_check_lib_save_LIBS
  14734. fi
  14735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14736. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14737. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14738. POW_LIB=-lm
  14739. else
  14740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14741. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14742. fi
  14743. fi
  14744. fi
  14745. if test x$ac_cv_func_strtod = xyes; then
  14746. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14747. fi
  14748. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14749. if test "x$ac_cv_func_mprotect" = xyes; then :
  14750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14751. /* end confdefs.h. */
  14752. #include <sys/types.h>
  14753. #include <sys/mman.h>
  14754. int
  14755. main ()
  14756. {
  14757. ;
  14758. return 0;
  14759. }
  14760. _ACEOF
  14761. if ac_fn_c_try_compile "$LINENO"; then :
  14762. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14763. fi
  14764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14765. fi
  14766. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  14767. do :
  14768. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14769. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14770. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14771. cat >>confdefs.h <<_ACEOF
  14772. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14773. _ACEOF
  14774. fi
  14775. done
  14776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14777. $as_echo_n "checking for pow in -lm... " >&6; }
  14778. if ${ac_cv_lib_m_pow+:} false; then :
  14779. $as_echo_n "(cached) " >&6
  14780. else
  14781. ac_check_lib_save_LIBS=$LIBS
  14782. LIBS="-lm $LIBS"
  14783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14784. /* end confdefs.h. */
  14785. /* Override any GCC internal prototype to avoid an error.
  14786. Use char because int might match the return type of a GCC
  14787. builtin and then its argument prototype would still apply. */
  14788. #ifdef __cplusplus
  14789. extern "C"
  14790. #endif
  14791. char pow ();
  14792. int
  14793. main ()
  14794. {
  14795. return pow ();
  14796. ;
  14797. return 0;
  14798. }
  14799. _ACEOF
  14800. if ac_fn_c_try_link "$LINENO"; then :
  14801. ac_cv_lib_m_pow=yes
  14802. else
  14803. ac_cv_lib_m_pow=no
  14804. fi
  14805. rm -f core conftest.err conftest.$ac_objext \
  14806. conftest$ac_exeext conftest.$ac_ext
  14807. LIBS=$ac_check_lib_save_LIBS
  14808. fi
  14809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14810. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14811. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14812. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14813. fi
  14814. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14815. do :
  14816. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14817. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14818. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14819. cat >>confdefs.h <<_ACEOF
  14820. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14821. _ACEOF
  14822. fi
  14823. done
  14824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14825. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14826. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14827. $as_echo_n "(cached) " >&6
  14828. else
  14829. ac_check_lib_save_LIBS=$LIBS
  14830. LIBS="-liconv $LIBS"
  14831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14832. /* end confdefs.h. */
  14833. /* Override any GCC internal prototype to avoid an error.
  14834. Use char because int might match the return type of a GCC
  14835. builtin and then its argument prototype would still apply. */
  14836. #ifdef __cplusplus
  14837. extern "C"
  14838. #endif
  14839. char iconv_open ();
  14840. int
  14841. main ()
  14842. {
  14843. return iconv_open ();
  14844. ;
  14845. return 0;
  14846. }
  14847. _ACEOF
  14848. if ac_fn_c_try_link "$LINENO"; then :
  14849. ac_cv_lib_iconv_iconv_open=yes
  14850. else
  14851. ac_cv_lib_iconv_iconv_open=no
  14852. fi
  14853. rm -f core conftest.err conftest.$ac_objext \
  14854. conftest$ac_exeext conftest.$ac_ext
  14855. LIBS=$ac_check_lib_save_LIBS
  14856. fi
  14857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14858. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14859. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14860. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14861. fi
  14862. for ac_func in iconv
  14863. do :
  14864. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14865. if test "x$ac_cv_func_iconv" = xyes; then :
  14866. cat >>confdefs.h <<_ACEOF
  14867. #define HAVE_ICONV 1
  14868. _ACEOF
  14869. fi
  14870. done
  14871. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14872. "
  14873. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14874. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14875. fi
  14876. for ac_header in libunwind.h
  14877. do :
  14878. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14879. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14880. cat >>confdefs.h <<_ACEOF
  14881. #define HAVE_LIBUNWIND_H 1
  14882. _ACEOF
  14883. fi
  14884. done
  14885. fi
  14886. # Check whether --enable-gcc-atomics was given.
  14887. if test "${enable_gcc_atomics+set}" = set; then :
  14888. enableval=$enable_gcc_atomics;
  14889. else
  14890. enable_gcc_atomics=yes
  14891. fi
  14892. if test x$enable_gcc_atomics = xyes; then
  14893. have_gcc_atomics=no
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14895. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14897. /* end confdefs.h. */
  14898. int
  14899. main ()
  14900. {
  14901. int a;
  14902. void *x, *y, *z;
  14903. __sync_lock_test_and_set(&a, 4);
  14904. __sync_lock_test_and_set(&x, y);
  14905. __sync_fetch_and_add(&a, 1);
  14906. __sync_bool_compare_and_swap(&a, 5, 10);
  14907. __sync_bool_compare_and_swap(&x, y, z);
  14908. ;
  14909. return 0;
  14910. }
  14911. _ACEOF
  14912. if ac_fn_c_try_link "$LINENO"; then :
  14913. have_gcc_atomics=yes
  14914. fi
  14915. rm -f core conftest.err conftest.$ac_objext \
  14916. conftest$ac_exeext conftest.$ac_ext
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14918. $as_echo "$have_gcc_atomics" >&6; }
  14919. if test x$have_gcc_atomics = xyes; then
  14920. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14921. else
  14922. # See if we have the minimum operation needed for GCC atomics
  14923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14924. /* end confdefs.h. */
  14925. int
  14926. main ()
  14927. {
  14928. int a;
  14929. __sync_lock_test_and_set(&a, 1);
  14930. __sync_lock_release(&a);
  14931. ;
  14932. return 0;
  14933. }
  14934. _ACEOF
  14935. if ac_fn_c_try_link "$LINENO"; then :
  14936. have_gcc_sync_lock_test_and_set=yes
  14937. fi
  14938. rm -f core conftest.err conftest.$ac_objext \
  14939. conftest$ac_exeext conftest.$ac_ext
  14940. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14941. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14942. fi
  14943. fi
  14944. fi
  14945. # Standard C sources
  14946. SOURCES="$SOURCES $srcdir/src/*.c"
  14947. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14948. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14949. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14950. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14951. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14952. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14953. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14954. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  14955. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14956. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14957. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14958. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14959. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14960. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14961. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14962. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14963. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14964. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14965. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14966. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14967. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14968. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14969. # Check whether --enable-atomic was given.
  14970. if test "${enable_atomic+set}" = set; then :
  14971. enableval=$enable_atomic;
  14972. else
  14973. enable_atomic=yes
  14974. fi
  14975. if test x$enable_atomic != xyes; then
  14976. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14977. else
  14978. SUMMARY_modules="${SUMMARY_modules} atomic"
  14979. fi
  14980. # Check whether --enable-audio was given.
  14981. if test "${enable_audio+set}" = set; then :
  14982. enableval=$enable_audio;
  14983. else
  14984. enable_audio=yes
  14985. fi
  14986. if test x$enable_audio != xyes; then
  14987. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14988. else
  14989. SUMMARY_modules="${SUMMARY_modules} audio"
  14990. fi
  14991. # Check whether --enable-video was given.
  14992. if test "${enable_video+set}" = set; then :
  14993. enableval=$enable_video;
  14994. else
  14995. enable_video=yes
  14996. fi
  14997. if test x$enable_video != xyes; then
  14998. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14999. else
  15000. SUMMARY_modules="${SUMMARY_modules} video"
  15001. fi
  15002. # Check whether --enable-render was given.
  15003. if test "${enable_render+set}" = set; then :
  15004. enableval=$enable_render;
  15005. else
  15006. enable_render=yes
  15007. fi
  15008. if test x$enable_render != xyes; then
  15009. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15010. else
  15011. SUMMARY_modules="${SUMMARY_modules} render"
  15012. fi
  15013. # Check whether --enable-events was given.
  15014. if test "${enable_events+set}" = set; then :
  15015. enableval=$enable_events;
  15016. else
  15017. enable_events=yes
  15018. fi
  15019. if test x$enable_events != xyes; then
  15020. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15021. else
  15022. SUMMARY_modules="${SUMMARY_modules} events"
  15023. fi
  15024. # Check whether --enable-joystick was given.
  15025. if test "${enable_joystick+set}" = set; then :
  15026. enableval=$enable_joystick;
  15027. else
  15028. enable_joystick=yes
  15029. fi
  15030. if test x$enable_joystick != xyes; then
  15031. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15032. else
  15033. SUMMARY_modules="${SUMMARY_modules} joystick"
  15034. fi
  15035. # Check whether --enable-haptic was given.
  15036. if test "${enable_haptic+set}" = set; then :
  15037. enableval=$enable_haptic;
  15038. else
  15039. enable_haptic=yes
  15040. fi
  15041. if test x$enable_haptic != xyes; then
  15042. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15043. else
  15044. SUMMARY_modules="${SUMMARY_modules} haptic"
  15045. fi
  15046. # Check whether --enable-hidapi was given.
  15047. if test "${enable_hidapi+set}" = set; then :
  15048. enableval=$enable_hidapi;
  15049. else
  15050. enable_hidapi=yes
  15051. fi
  15052. if test x$enable_hidapi != xyes; then
  15053. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15054. else
  15055. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15056. fi
  15057. # Check whether --enable-sensor was given.
  15058. if test "${enable_sensor+set}" = set; then :
  15059. enableval=$enable_sensor;
  15060. else
  15061. enable_sensor=yes
  15062. fi
  15063. if test x$enable_sensor != xyes; then
  15064. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15065. else
  15066. SUMMARY_modules="${SUMMARY_modules} sensor"
  15067. fi
  15068. # Check whether --enable-power was given.
  15069. if test "${enable_power+set}" = set; then :
  15070. enableval=$enable_power;
  15071. else
  15072. enable_power=yes
  15073. fi
  15074. if test x$enable_power != xyes; then
  15075. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15076. else
  15077. SUMMARY_modules="${SUMMARY_modules} power"
  15078. fi
  15079. # Check whether --enable-filesystem was given.
  15080. if test "${enable_filesystem+set}" = set; then :
  15081. enableval=$enable_filesystem;
  15082. else
  15083. enable_filesystem=yes
  15084. fi
  15085. if test x$enable_filesystem != xyes; then
  15086. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15087. else
  15088. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15089. fi
  15090. # Check whether --enable-threads was given.
  15091. if test "${enable_threads+set}" = set; then :
  15092. enableval=$enable_threads;
  15093. else
  15094. enable_threads=yes
  15095. fi
  15096. if test x$enable_threads != xyes; then
  15097. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15098. else
  15099. SUMMARY_modules="${SUMMARY_modules} threads"
  15100. fi
  15101. # Check whether --enable-timers was given.
  15102. if test "${enable_timers+set}" = set; then :
  15103. enableval=$enable_timers;
  15104. else
  15105. enable_timers=yes
  15106. fi
  15107. if test x$enable_timers != xyes; then
  15108. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15109. else
  15110. SUMMARY_modules="${SUMMARY_modules} timers"
  15111. fi
  15112. # Check whether --enable-file was given.
  15113. if test "${enable_file+set}" = set; then :
  15114. enableval=$enable_file;
  15115. else
  15116. enable_file=yes
  15117. fi
  15118. if test x$enable_file != xyes; then
  15119. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15120. else
  15121. SUMMARY_modules="${SUMMARY_modules} file"
  15122. fi
  15123. # Check whether --enable-loadso was given.
  15124. if test "${enable_loadso+set}" = set; then :
  15125. enableval=$enable_loadso;
  15126. else
  15127. enable_loadso=yes
  15128. fi
  15129. if test x$enable_loadso != xyes; then
  15130. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15131. else
  15132. SUMMARY_modules="${SUMMARY_modules} loadso"
  15133. fi
  15134. # Check whether --enable-cpuinfo was given.
  15135. if test "${enable_cpuinfo+set}" = set; then :
  15136. enableval=$enable_cpuinfo;
  15137. else
  15138. enable_cpuinfo=yes
  15139. fi
  15140. if test x$enable_cpuinfo != xyes; then
  15141. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15142. else
  15143. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15144. fi
  15145. # Check whether --enable-assembly was given.
  15146. if test "${enable_assembly+set}" = set; then :
  15147. enableval=$enable_assembly;
  15148. else
  15149. enable_assembly=yes
  15150. fi
  15151. if test x$enable_assembly = xyes; then
  15152. SUMMARY_modules="${SUMMARY_modules} assembly"
  15153. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15154. # Make sure that we don't generate floating point code that would
  15155. # cause illegal instruction exceptions on older processors
  15156. case "$host" in
  15157. *-*-darwin*)
  15158. # Don't need to worry about Apple hardware, it's all SSE capable
  15159. default_ssemath=yes
  15160. ;;
  15161. *64-*-*)
  15162. # x86 64-bit architectures all have SSE instructions
  15163. default_ssemath=yes
  15164. ;;
  15165. *)
  15166. default_ssemath=no
  15167. ;;
  15168. esac
  15169. # Check whether --enable-ssemath was given.
  15170. if test "${enable_ssemath+set}" = set; then :
  15171. enableval=$enable_ssemath;
  15172. else
  15173. enable_ssemath=$default_ssemath
  15174. fi
  15175. if test x$enable_ssemath = xno; then
  15176. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15177. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15178. fi
  15179. fi
  15180. # Check whether --enable-mmx was given.
  15181. if test "${enable_mmx+set}" = set; then :
  15182. enableval=$enable_mmx;
  15183. else
  15184. enable_mmx=yes
  15185. fi
  15186. if test x$enable_mmx = xyes; then
  15187. save_CFLAGS="$CFLAGS"
  15188. have_gcc_mmx=no
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15190. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15191. mmx_CFLAGS="-mmmx"
  15192. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15194. /* end confdefs.h. */
  15195. #ifdef __MINGW32__
  15196. #include <_mingw.h>
  15197. #ifdef __MINGW64_VERSION_MAJOR
  15198. #include <intrin.h>
  15199. #else
  15200. #include <mmintrin.h>
  15201. #endif
  15202. #else
  15203. #include <mmintrin.h>
  15204. #endif
  15205. #ifndef __MMX__
  15206. #error Assembler CPP flag not enabled
  15207. #endif
  15208. int
  15209. main ()
  15210. {
  15211. ;
  15212. return 0;
  15213. }
  15214. _ACEOF
  15215. if ac_fn_c_try_compile "$LINENO"; then :
  15216. have_gcc_mmx=yes
  15217. fi
  15218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15220. $as_echo "$have_gcc_mmx" >&6; }
  15221. CFLAGS="$save_CFLAGS"
  15222. if test x$have_gcc_mmx = xyes; then
  15223. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15224. SUMMARY_math="${SUMMARY_math} mmx"
  15225. fi
  15226. fi
  15227. # Check whether --enable-3dnow was given.
  15228. if test "${enable_3dnow+set}" = set; then :
  15229. enableval=$enable_3dnow;
  15230. else
  15231. enable_3dnow=yes
  15232. fi
  15233. if test x$enable_3dnow = xyes; then
  15234. save_CFLAGS="$CFLAGS"
  15235. have_gcc_3dnow=no
  15236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15237. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15238. amd3dnow_CFLAGS="-m3dnow"
  15239. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15241. /* end confdefs.h. */
  15242. #include <mm3dnow.h>
  15243. #ifndef __3dNOW__
  15244. #error Assembler CPP flag not enabled
  15245. #endif
  15246. int
  15247. main ()
  15248. {
  15249. void *p = 0;
  15250. _m_prefetch(p);
  15251. ;
  15252. return 0;
  15253. }
  15254. _ACEOF
  15255. if ac_fn_c_try_link "$LINENO"; then :
  15256. have_gcc_3dnow=yes
  15257. fi
  15258. rm -f core conftest.err conftest.$ac_objext \
  15259. conftest$ac_exeext conftest.$ac_ext
  15260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15261. $as_echo "$have_gcc_3dnow" >&6; }
  15262. CFLAGS="$save_CFLAGS"
  15263. if test x$have_gcc_3dnow = xyes; then
  15264. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15265. SUMMARY_math="${SUMMARY_math} 3dnow"
  15266. fi
  15267. fi
  15268. # Check whether --enable-sse was given.
  15269. if test "${enable_sse+set}" = set; then :
  15270. enableval=$enable_sse;
  15271. else
  15272. enable_sse=yes
  15273. fi
  15274. if test x$enable_sse = xyes; then
  15275. save_CFLAGS="$CFLAGS"
  15276. have_gcc_sse=no
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15278. $as_echo_n "checking for GCC -msse option... " >&6; }
  15279. sse_CFLAGS="-msse"
  15280. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15282. /* end confdefs.h. */
  15283. #ifdef __MINGW32__
  15284. #include <_mingw.h>
  15285. #ifdef __MINGW64_VERSION_MAJOR
  15286. #include <intrin.h>
  15287. #else
  15288. #include <xmmintrin.h>
  15289. #endif
  15290. #else
  15291. #include <xmmintrin.h>
  15292. #endif
  15293. #ifndef __SSE__
  15294. #error Assembler CPP flag not enabled
  15295. #endif
  15296. int
  15297. main ()
  15298. {
  15299. ;
  15300. return 0;
  15301. }
  15302. _ACEOF
  15303. if ac_fn_c_try_compile "$LINENO"; then :
  15304. have_gcc_sse=yes
  15305. fi
  15306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15308. $as_echo "$have_gcc_sse" >&6; }
  15309. CFLAGS="$save_CFLAGS"
  15310. if test x$have_gcc_sse = xyes; then
  15311. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15312. SUMMARY_math="${SUMMARY_math} sse"
  15313. fi
  15314. fi
  15315. # Check whether --enable-sse2 was given.
  15316. if test "${enable_sse2+set}" = set; then :
  15317. enableval=$enable_sse2;
  15318. else
  15319. enable_sse2=$default_ssemath
  15320. fi
  15321. if test x$enable_sse2 = xyes; then
  15322. save_CFLAGS="$CFLAGS"
  15323. have_gcc_sse2=no
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15325. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15326. sse2_CFLAGS="-msse2"
  15327. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15329. /* end confdefs.h. */
  15330. #ifdef __MINGW32__
  15331. #include <_mingw.h>
  15332. #ifdef __MINGW64_VERSION_MAJOR
  15333. #include <intrin.h>
  15334. #else
  15335. #include <emmintrin.h>
  15336. #endif
  15337. #else
  15338. #include <emmintrin.h>
  15339. #endif
  15340. #ifndef __SSE2__
  15341. #error Assembler CPP flag not enabled
  15342. #endif
  15343. int
  15344. main ()
  15345. {
  15346. ;
  15347. return 0;
  15348. }
  15349. _ACEOF
  15350. if ac_fn_c_try_compile "$LINENO"; then :
  15351. have_gcc_sse2=yes
  15352. fi
  15353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15355. $as_echo "$have_gcc_sse2" >&6; }
  15356. CFLAGS="$save_CFLAGS"
  15357. if test x$have_gcc_sse2 = xyes; then
  15358. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15359. SUMMARY_math="${SUMMARY_math} sse2"
  15360. fi
  15361. fi
  15362. # Check whether --enable-sse3 was given.
  15363. if test "${enable_sse3+set}" = set; then :
  15364. enableval=$enable_sse3;
  15365. else
  15366. enable_sse3=$default_ssemath
  15367. fi
  15368. if test x$enable_sse3 = xyes; then
  15369. save_CFLAGS="$CFLAGS"
  15370. have_gcc_sse3=no
  15371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15372. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15373. sse3_CFLAGS="-msse3"
  15374. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15376. /* end confdefs.h. */
  15377. #ifdef __MINGW32__
  15378. #include <_mingw.h>
  15379. #ifdef __MINGW64_VERSION_MAJOR
  15380. #include <intrin.h>
  15381. #else
  15382. #include <pmmintrin.h>
  15383. #endif
  15384. #else
  15385. #include <pmmintrin.h>
  15386. #endif
  15387. #ifndef __SSE2__
  15388. #error Assembler CPP flag not enabled
  15389. #endif
  15390. int
  15391. main ()
  15392. {
  15393. ;
  15394. return 0;
  15395. }
  15396. _ACEOF
  15397. if ac_fn_c_try_compile "$LINENO"; then :
  15398. have_gcc_sse3=yes
  15399. fi
  15400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15402. $as_echo "$have_gcc_sse3" >&6; }
  15403. CFLAGS="$save_CFLAGS"
  15404. if test x$have_gcc_sse3 = xyes; then
  15405. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15406. SUMMARY_math="${SUMMARY_math} sse3"
  15407. fi
  15408. fi
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15410. $as_echo_n "checking for immintrin.h... " >&6; }
  15411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15412. /* end confdefs.h. */
  15413. #include <immintrin.h>
  15414. int
  15415. main ()
  15416. {
  15417. ;
  15418. return 0;
  15419. }
  15420. _ACEOF
  15421. if ac_fn_c_try_compile "$LINENO"; then :
  15422. have_immintrin_h_hdr=yes
  15423. else
  15424. have_immintrin_h_hdr=no
  15425. fi
  15426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  15428. $as_echo "$have_immintrin_h_hdr" >&6; }
  15429. if test x$have_immintrin_h_hdr = xyes; then
  15430. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15431. fi
  15432. # Check whether --enable-altivec was given.
  15433. if test "${enable_altivec+set}" = set; then :
  15434. enableval=$enable_altivec;
  15435. else
  15436. enable_altivec=yes
  15437. fi
  15438. if test x$enable_altivec = xyes; then
  15439. save_CFLAGS="$CFLAGS"
  15440. have_gcc_altivec=no
  15441. have_altivec_h_hdr=no
  15442. altivec_CFLAGS="-maltivec"
  15443. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15445. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15447. /* end confdefs.h. */
  15448. #include <altivec.h>
  15449. vector unsigned int vzero() {
  15450. return vec_splat_u32(0);
  15451. }
  15452. int
  15453. main ()
  15454. {
  15455. ;
  15456. return 0;
  15457. }
  15458. _ACEOF
  15459. if ac_fn_c_try_compile "$LINENO"; then :
  15460. have_gcc_altivec=yes
  15461. have_altivec_h_hdr=yes
  15462. fi
  15463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15465. $as_echo "$have_gcc_altivec" >&6; }
  15466. if test x$have_gcc_altivec = xno; then
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15468. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15470. /* end confdefs.h. */
  15471. vector unsigned int vzero() {
  15472. return vec_splat_u32(0);
  15473. }
  15474. int
  15475. main ()
  15476. {
  15477. ;
  15478. return 0;
  15479. }
  15480. _ACEOF
  15481. if ac_fn_c_try_compile "$LINENO"; then :
  15482. have_gcc_altivec=yes
  15483. fi
  15484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15486. $as_echo "$have_gcc_altivec" >&6; }
  15487. fi
  15488. if test x$have_gcc_altivec = xno; then
  15489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15490. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15491. altivec_CFLAGS="-faltivec"
  15492. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15494. /* end confdefs.h. */
  15495. #include <altivec.h>
  15496. vector unsigned int vzero() {
  15497. return vec_splat_u32(0);
  15498. }
  15499. int
  15500. main ()
  15501. {
  15502. ;
  15503. return 0;
  15504. }
  15505. _ACEOF
  15506. if ac_fn_c_try_compile "$LINENO"; then :
  15507. have_gcc_altivec=yes
  15508. have_altivec_h_hdr=yes
  15509. fi
  15510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15512. $as_echo "$have_gcc_altivec" >&6; }
  15513. fi
  15514. if test x$have_gcc_altivec = xno; then
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15516. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15518. /* end confdefs.h. */
  15519. vector unsigned int vzero() {
  15520. return vec_splat_u32(0);
  15521. }
  15522. int
  15523. main ()
  15524. {
  15525. ;
  15526. return 0;
  15527. }
  15528. _ACEOF
  15529. if ac_fn_c_try_compile "$LINENO"; then :
  15530. have_gcc_altivec=yes
  15531. fi
  15532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15534. $as_echo "$have_gcc_altivec" >&6; }
  15535. fi
  15536. CFLAGS="$save_CFLAGS"
  15537. if test x$have_gcc_altivec = xyes; then
  15538. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15539. if test x$have_altivec_h_hdr = xyes; then
  15540. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15541. fi
  15542. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15543. SUMMARY_math="${SUMMARY_math} altivec"
  15544. fi
  15545. fi
  15546. fi
  15547. CheckOSS()
  15548. {
  15549. # Check whether --enable-oss was given.
  15550. if test "${enable_oss+set}" = set; then :
  15551. enableval=$enable_oss;
  15552. else
  15553. enable_oss=maybe
  15554. fi
  15555. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15556. # use sndio instead. So on there, we default to disabled. You can force
  15557. # it on if you really want, though.
  15558. if test x$enable_oss = xmaybe; then
  15559. enable_oss=yes
  15560. case "$host" in
  15561. *-*-openbsd*)
  15562. enable_oss=no;;
  15563. esac
  15564. fi
  15565. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15567. $as_echo_n "checking for OSS audio support... " >&6; }
  15568. have_oss=no
  15569. if test x$have_oss != xyes; then
  15570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15571. /* end confdefs.h. */
  15572. #include <sys/soundcard.h>
  15573. int
  15574. main ()
  15575. {
  15576. int arg = SNDCTL_DSP_SETFRAGMENT;
  15577. ;
  15578. return 0;
  15579. }
  15580. _ACEOF
  15581. if ac_fn_c_try_compile "$LINENO"; then :
  15582. have_oss=yes
  15583. fi
  15584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15585. fi
  15586. if test x$have_oss != xyes; then
  15587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15588. /* end confdefs.h. */
  15589. #include <soundcard.h>
  15590. int
  15591. main ()
  15592. {
  15593. int arg = SNDCTL_DSP_SETFRAGMENT;
  15594. ;
  15595. return 0;
  15596. }
  15597. _ACEOF
  15598. if ac_fn_c_try_compile "$LINENO"; then :
  15599. have_oss=yes
  15600. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15601. fi
  15602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15603. fi
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15605. $as_echo "$have_oss" >&6; }
  15606. if test x$have_oss = xyes; then
  15607. SUMMARY_audio="${SUMMARY_audio} oss"
  15608. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15609. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15610. have_audio=yes
  15611. # We may need to link with ossaudio emulation library
  15612. case "$host" in
  15613. *-*-openbsd*|*-*-netbsd*)
  15614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15615. esac
  15616. fi
  15617. fi
  15618. }
  15619. CheckALSA()
  15620. {
  15621. # Check whether --enable-alsa was given.
  15622. if test "${enable_alsa+set}" = set; then :
  15623. enableval=$enable_alsa;
  15624. else
  15625. enable_alsa=yes
  15626. fi
  15627. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15628. alsa_save_CFLAGS="$CFLAGS"
  15629. alsa_save_LDFLAGS="$LDFLAGS"
  15630. alsa_save_LIBS="$LIBS"
  15631. alsa_found=yes
  15632. # Check whether --with-alsa-prefix was given.
  15633. if test "${with_alsa_prefix+set}" = set; then :
  15634. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15635. else
  15636. alsa_prefix=""
  15637. fi
  15638. # Check whether --with-alsa-inc-prefix was given.
  15639. if test "${with_alsa_inc_prefix+set}" = set; then :
  15640. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15641. else
  15642. alsa_inc_prefix=""
  15643. fi
  15644. # Check whether --enable-alsatest was given.
  15645. if test "${enable_alsatest+set}" = set; then :
  15646. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15647. else
  15648. enable_alsatest=yes
  15649. fi
  15650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15651. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15652. if test "$alsa_inc_prefix" != "" ; then
  15653. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15654. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15655. fi
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15657. $as_echo "$ALSA_CFLAGS" >&6; }
  15658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15659. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15660. if test "$alsa_prefix" != "" ; then
  15661. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15662. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15663. fi
  15664. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15665. LIBS=`echo $LIBS | sed 's/-lm//'`
  15666. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15667. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15668. LIBS=`echo $LIBS | sed 's/ //'`
  15669. LIBS="$ALSA_LIBS $LIBS"
  15670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15671. $as_echo "$ALSA_LIBS" >&6; }
  15672. min_alsa_version=1.0.11
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15674. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15675. no_alsa=""
  15676. alsa_min_major_version=`echo $min_alsa_version | \
  15677. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15678. alsa_min_minor_version=`echo $min_alsa_version | \
  15679. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15680. alsa_min_micro_version=`echo $min_alsa_version | \
  15681. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15682. ac_ext=c
  15683. ac_cpp='$CPP $CPPFLAGS'
  15684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15688. /* end confdefs.h. */
  15689. #include <alsa/asoundlib.h>
  15690. int
  15691. main ()
  15692. {
  15693. /* ensure backward compatibility */
  15694. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15695. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15696. #endif
  15697. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15698. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15699. #endif
  15700. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15701. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15702. #endif
  15703. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15704. exit(0);
  15705. # else
  15706. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15707. # error not present
  15708. # endif
  15709. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15710. exit(0);
  15711. # else
  15712. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15713. # error not present
  15714. # endif
  15715. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15716. # error not present
  15717. # endif
  15718. # endif
  15719. # endif
  15720. exit(0);
  15721. ;
  15722. return 0;
  15723. }
  15724. _ACEOF
  15725. if ac_fn_c_try_compile "$LINENO"; then :
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15727. $as_echo "found." >&6; }
  15728. else
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15730. $as_echo "not present." >&6; }
  15731. alsa_found=no
  15732. fi
  15733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15734. ac_ext=c
  15735. ac_cpp='$CPP $CPPFLAGS'
  15736. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15737. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15738. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15739. if test "x$enable_alsatest" = "xyes"; then
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15741. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15742. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15743. $as_echo_n "(cached) " >&6
  15744. else
  15745. ac_check_lib_save_LIBS=$LIBS
  15746. LIBS="-lasound $LIBS"
  15747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15748. /* end confdefs.h. */
  15749. /* Override any GCC internal prototype to avoid an error.
  15750. Use char because int might match the return type of a GCC
  15751. builtin and then its argument prototype would still apply. */
  15752. #ifdef __cplusplus
  15753. extern "C"
  15754. #endif
  15755. char snd_ctl_open ();
  15756. int
  15757. main ()
  15758. {
  15759. return snd_ctl_open ();
  15760. ;
  15761. return 0;
  15762. }
  15763. _ACEOF
  15764. if ac_fn_c_try_link "$LINENO"; then :
  15765. ac_cv_lib_asound_snd_ctl_open=yes
  15766. else
  15767. ac_cv_lib_asound_snd_ctl_open=no
  15768. fi
  15769. rm -f core conftest.err conftest.$ac_objext \
  15770. conftest$ac_exeext conftest.$ac_ext
  15771. LIBS=$ac_check_lib_save_LIBS
  15772. fi
  15773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15774. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15775. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15776. cat >>confdefs.h <<_ACEOF
  15777. #define HAVE_LIBASOUND 1
  15778. _ACEOF
  15779. LIBS="-lasound $LIBS"
  15780. else
  15781. alsa_found=no
  15782. fi
  15783. fi
  15784. if test "x$alsa_found" = "xyes" ; then
  15785. have_alsa=yes
  15786. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15787. LIBS=`echo $LIBS | sed 's/ //'`
  15788. LIBS="-lasound $LIBS"
  15789. fi
  15790. if test "x$alsa_found" = "xno" ; then
  15791. have_alsa=no
  15792. CFLAGS="$alsa_save_CFLAGS"
  15793. LDFLAGS="$alsa_save_LDFLAGS"
  15794. LIBS="$alsa_save_LIBS"
  15795. ALSA_CFLAGS=""
  15796. ALSA_LIBS=""
  15797. fi
  15798. # Restore all flags from before the ALSA detection runs
  15799. CFLAGS="$alsa_save_CFLAGS"
  15800. LDFLAGS="$alsa_save_LDFLAGS"
  15801. LIBS="$alsa_save_LIBS"
  15802. if test x$have_alsa = xyes; then
  15803. # Check whether --enable-alsa-shared was given.
  15804. if test "${enable_alsa_shared+set}" = set; then :
  15805. enableval=$enable_alsa_shared;
  15806. else
  15807. enable_alsa_shared=yes
  15808. fi
  15809. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15810. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15811. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15812. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15813. if test x$have_loadso != xyes && \
  15814. test x$enable_alsa_shared = xyes; then
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15816. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15817. fi
  15818. if test x$have_loadso = xyes && \
  15819. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15820. echo "-- dynamic libasound -> $alsa_lib"
  15821. cat >>confdefs.h <<_ACEOF
  15822. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15823. _ACEOF
  15824. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15825. else
  15826. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15827. SUMMARY_audio="${SUMMARY_audio} alsa"
  15828. fi
  15829. have_audio=yes
  15830. fi
  15831. fi
  15832. }
  15833. CheckJACK()
  15834. {
  15835. # Check whether --enable-jack was given.
  15836. if test "${enable_jack+set}" = set; then :
  15837. enableval=$enable_jack;
  15838. else
  15839. enable_jack=yes
  15840. fi
  15841. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15842. pkg_failed=no
  15843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15844. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15845. if test -n "$JACK_CFLAGS"; then
  15846. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15847. elif test -n "$PKG_CONFIG"; then
  15848. if test -n "$PKG_CONFIG" && \
  15849. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15850. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15851. ac_status=$?
  15852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15853. test $ac_status = 0; }; then
  15854. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15855. test "x$?" != "x0" && pkg_failed=yes
  15856. else
  15857. pkg_failed=yes
  15858. fi
  15859. else
  15860. pkg_failed=untried
  15861. fi
  15862. if test -n "$JACK_LIBS"; then
  15863. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15864. elif test -n "$PKG_CONFIG"; then
  15865. if test -n "$PKG_CONFIG" && \
  15866. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15867. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15868. ac_status=$?
  15869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15870. test $ac_status = 0; }; then
  15871. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15872. test "x$?" != "x0" && pkg_failed=yes
  15873. else
  15874. pkg_failed=yes
  15875. fi
  15876. else
  15877. pkg_failed=untried
  15878. fi
  15879. if test $pkg_failed = yes; then
  15880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15881. $as_echo "no" >&6; }
  15882. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15883. _pkg_short_errors_supported=yes
  15884. else
  15885. _pkg_short_errors_supported=no
  15886. fi
  15887. if test $_pkg_short_errors_supported = yes; then
  15888. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15889. else
  15890. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15891. fi
  15892. # Put the nasty error message in config.log where it belongs
  15893. echo "$JACK_PKG_ERRORS" >&5
  15894. audio_jack=no
  15895. elif test $pkg_failed = untried; then
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15897. $as_echo "no" >&6; }
  15898. audio_jack=no
  15899. else
  15900. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15901. JACK_LIBS=$pkg_cv_JACK_LIBS
  15902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15903. $as_echo "yes" >&6; }
  15904. audio_jack=yes
  15905. fi
  15906. if test x$audio_jack = xyes; then
  15907. # Check whether --enable-jack-shared was given.
  15908. if test "${enable_jack_shared+set}" = set; then :
  15909. enableval=$enable_jack_shared;
  15910. else
  15911. enable_jack_shared=yes
  15912. fi
  15913. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15914. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15915. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15916. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15917. if test x$have_loadso != xyes && \
  15918. test x$enable_jack_shared = xyes; then
  15919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15920. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15921. fi
  15922. if test x$have_loadso = xyes && \
  15923. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15924. echo "-- dynamic libjack -> $jack_lib"
  15925. cat >>confdefs.h <<_ACEOF
  15926. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15927. _ACEOF
  15928. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15929. case "$host" in
  15930. # On Solaris, jack must be linked deferred explicitly
  15931. # to prevent undefined symbol failures.
  15932. *-*-solaris*)
  15933. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15934. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15935. esac
  15936. else
  15937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15938. SUMMARY_audio="${SUMMARY_audio} jack"
  15939. fi
  15940. have_audio=yes
  15941. fi
  15942. fi
  15943. }
  15944. CheckESD()
  15945. {
  15946. # Check whether --enable-esd was given.
  15947. if test "${enable_esd+set}" = set; then :
  15948. enableval=$enable_esd;
  15949. else
  15950. enable_esd=yes
  15951. fi
  15952. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15953. # Check whether --with-esd-prefix was given.
  15954. if test "${with_esd_prefix+set}" = set; then :
  15955. withval=$with_esd_prefix; esd_prefix="$withval"
  15956. else
  15957. esd_prefix=""
  15958. fi
  15959. # Check whether --with-esd-exec-prefix was given.
  15960. if test "${with_esd_exec_prefix+set}" = set; then :
  15961. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15962. else
  15963. esd_exec_prefix=""
  15964. fi
  15965. # Check whether --enable-esdtest was given.
  15966. if test "${enable_esdtest+set}" = set; then :
  15967. enableval=$enable_esdtest;
  15968. else
  15969. enable_esdtest=yes
  15970. fi
  15971. if test x$esd_exec_prefix != x ; then
  15972. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15973. if test x${ESD_CONFIG+set} != xset ; then
  15974. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15975. fi
  15976. fi
  15977. if test x$esd_prefix != x ; then
  15978. esd_args="$esd_args --prefix=$esd_prefix"
  15979. if test x${ESD_CONFIG+set} != xset ; then
  15980. ESD_CONFIG=$esd_prefix/bin/esd-config
  15981. fi
  15982. fi
  15983. # Extract the first word of "esd-config", so it can be a program name with args.
  15984. set dummy esd-config; ac_word=$2
  15985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15986. $as_echo_n "checking for $ac_word... " >&6; }
  15987. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15988. $as_echo_n "(cached) " >&6
  15989. else
  15990. case $ESD_CONFIG in
  15991. [\\/]* | ?:[\\/]*)
  15992. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15993. ;;
  15994. *)
  15995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15996. for as_dir in $PATH
  15997. do
  15998. IFS=$as_save_IFS
  15999. test -z "$as_dir" && as_dir=.
  16000. for ac_exec_ext in '' $ac_executable_extensions; do
  16001. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16002. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16004. break 2
  16005. fi
  16006. done
  16007. done
  16008. IFS=$as_save_IFS
  16009. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16010. ;;
  16011. esac
  16012. fi
  16013. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16014. if test -n "$ESD_CONFIG"; then
  16015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16016. $as_echo "$ESD_CONFIG" >&6; }
  16017. else
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16019. $as_echo "no" >&6; }
  16020. fi
  16021. min_esd_version=0.2.8
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16023. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16024. no_esd=""
  16025. if test "$ESD_CONFIG" = "no" ; then
  16026. no_esd=yes
  16027. else
  16028. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16029. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16030. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16031. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16032. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16033. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16034. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16035. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16036. if test "x$enable_esdtest" = "xyes" ; then
  16037. ac_ext=c
  16038. ac_cpp='$CPP $CPPFLAGS'
  16039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16042. ac_save_CFLAGS="$CFLAGS"
  16043. ac_save_LIBS="$LIBS"
  16044. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16045. LIBS="$LIBS $ESD_LIBS"
  16046. rm -f conf.esdtest
  16047. if test "$cross_compiling" = yes; then :
  16048. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16049. else
  16050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16051. /* end confdefs.h. */
  16052. #include <stdio.h>
  16053. #include <stdlib.h>
  16054. #include <esd.h>
  16055. int main (void)
  16056. {
  16057. int major, minor, micro;
  16058. FILE *fp = fopen("conf.esdtest", "w");
  16059. if (fp) fclose(fp);
  16060. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16061. printf("%s, bad version string\n", "$min_esd_version");
  16062. exit(1);
  16063. }
  16064. if (($esd_major_version > major) ||
  16065. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16066. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16067. {
  16068. return 0;
  16069. }
  16070. else
  16071. {
  16072. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16073. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16074. printf("*** best to upgrade to the required version.\n");
  16075. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16076. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16077. printf("*** config.cache before re-running configure\n");
  16078. return 1;
  16079. }
  16080. }
  16081. _ACEOF
  16082. if ac_fn_c_try_run "$LINENO"; then :
  16083. else
  16084. no_esd=yes
  16085. fi
  16086. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16087. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16088. fi
  16089. CFLAGS="$ac_save_CFLAGS"
  16090. LIBS="$ac_save_LIBS"
  16091. ac_ext=c
  16092. ac_cpp='$CPP $CPPFLAGS'
  16093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16096. fi
  16097. fi
  16098. if test "x$no_esd" = x ; then
  16099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16100. $as_echo "yes" >&6; }
  16101. have_esd=yes
  16102. else
  16103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16104. $as_echo "no" >&6; }
  16105. if test "$ESD_CONFIG" = "no" ; then
  16106. echo "*** The esd-config script installed by ESD could not be found"
  16107. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16108. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16109. echo "*** full path to esd-config."
  16110. else
  16111. if test -f conf.esdtest ; then
  16112. :
  16113. else
  16114. echo "*** Could not run ESD test program, checking why..."
  16115. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16116. LIBS="$LIBS $ESD_LIBS"
  16117. ac_ext=c
  16118. ac_cpp='$CPP $CPPFLAGS'
  16119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16123. /* end confdefs.h. */
  16124. #include <stdio.h>
  16125. #include <esd.h>
  16126. int
  16127. main ()
  16128. {
  16129. return 0;
  16130. ;
  16131. return 0;
  16132. }
  16133. _ACEOF
  16134. if ac_fn_c_try_link "$LINENO"; then :
  16135. echo "*** The test program compiled, but did not run. This usually means"
  16136. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16137. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16138. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16139. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16140. echo "*** is required on your system"
  16141. echo "***"
  16142. echo "*** If you have an old version installed, it is best to remove it, although"
  16143. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16144. else
  16145. echo "*** The test program failed to compile or link. See the file config.log for the"
  16146. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16147. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16148. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16149. fi
  16150. rm -f core conftest.err conftest.$ac_objext \
  16151. conftest$ac_exeext conftest.$ac_ext
  16152. CFLAGS="$ac_save_CFLAGS"
  16153. LIBS="$ac_save_LIBS"
  16154. ac_ext=c
  16155. ac_cpp='$CPP $CPPFLAGS'
  16156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16159. fi
  16160. fi
  16161. ESD_CFLAGS=""
  16162. ESD_LIBS=""
  16163. have_esd=no
  16164. fi
  16165. rm -f conf.esdtest
  16166. if test x$have_esd = xyes; then
  16167. # Check whether --enable-esd-shared was given.
  16168. if test "${enable_esd_shared+set}" = set; then :
  16169. enableval=$enable_esd_shared;
  16170. else
  16171. enable_esd_shared=yes
  16172. fi
  16173. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16174. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16175. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16176. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16177. if test x$have_loadso != xyes && \
  16178. test x$enable_esd_shared = xyes; then
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16180. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16181. fi
  16182. if test x$have_loadso = xyes && \
  16183. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16184. echo "-- dynamic libesd -> $esd_lib"
  16185. cat >>confdefs.h <<_ACEOF
  16186. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16187. _ACEOF
  16188. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16189. else
  16190. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16191. SUMMARY_audio="${SUMMARY_audio} esd"
  16192. fi
  16193. have_audio=yes
  16194. fi
  16195. fi
  16196. }
  16197. CheckPipewire()
  16198. {
  16199. # Check whether --enable-pipewire was given.
  16200. if test "${enable_pipewire+set}" = set; then :
  16201. enableval=$enable_pipewire;
  16202. else
  16203. enable_pipewire=yes
  16204. fi
  16205. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16206. pkg_failed=no
  16207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16208. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16209. if test -n "$PIPEWIRE_CFLAGS"; then
  16210. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16211. elif test -n "$PKG_CONFIG"; then
  16212. if test -n "$PKG_CONFIG" && \
  16213. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16214. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16215. ac_status=$?
  16216. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16217. test $ac_status = 0; }; then
  16218. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16219. test "x$?" != "x0" && pkg_failed=yes
  16220. else
  16221. pkg_failed=yes
  16222. fi
  16223. else
  16224. pkg_failed=untried
  16225. fi
  16226. if test -n "$PIPEWIRE_LIBS"; then
  16227. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16228. elif test -n "$PKG_CONFIG"; then
  16229. if test -n "$PKG_CONFIG" && \
  16230. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16231. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16232. ac_status=$?
  16233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16234. test $ac_status = 0; }; then
  16235. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16236. test "x$?" != "x0" && pkg_failed=yes
  16237. else
  16238. pkg_failed=yes
  16239. fi
  16240. else
  16241. pkg_failed=untried
  16242. fi
  16243. if test $pkg_failed = yes; then
  16244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16245. $as_echo "no" >&6; }
  16246. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16247. _pkg_short_errors_supported=yes
  16248. else
  16249. _pkg_short_errors_supported=no
  16250. fi
  16251. if test $_pkg_short_errors_supported = yes; then
  16252. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16253. else
  16254. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16255. fi
  16256. # Put the nasty error message in config.log where it belongs
  16257. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16258. audio_pipewire=no
  16259. elif test $pkg_failed = untried; then
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16261. $as_echo "no" >&6; }
  16262. audio_pipewire=no
  16263. else
  16264. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16265. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16267. $as_echo "yes" >&6; }
  16268. audio_pipewire=yes
  16269. fi
  16270. if test x$audio_pipewire = xyes; then
  16271. # Check whether --enable-pipewire-shared was given.
  16272. if test "${enable_pipewire_shared+set}" = set; then :
  16273. enableval=$enable_pipewire_shared;
  16274. else
  16275. enable_pipewire_shared=yes
  16276. fi
  16277. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16278. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16279. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16280. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16281. if test x$have_loadso != xyes && \
  16282. test x$enable_pipewire_shared = xyes; then
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16284. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16285. fi
  16286. if test x$have_loadso = xyes && \
  16287. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16288. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16289. cat >>confdefs.h <<_ACEOF
  16290. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16291. _ACEOF
  16292. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16293. else
  16294. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16295. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16296. fi
  16297. have_audio=yes
  16298. fi
  16299. fi
  16300. }
  16301. CheckPulseAudio()
  16302. {
  16303. # Check whether --enable-pulseaudio was given.
  16304. if test "${enable_pulseaudio+set}" = set; then :
  16305. enableval=$enable_pulseaudio;
  16306. else
  16307. enable_pulseaudio=yes
  16308. fi
  16309. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16310. pkg_failed=no
  16311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16312. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16313. if test -n "$PULSEAUDIO_CFLAGS"; then
  16314. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16315. elif test -n "$PKG_CONFIG"; then
  16316. if test -n "$PKG_CONFIG" && \
  16317. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16318. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16319. ac_status=$?
  16320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16321. test $ac_status = 0; }; then
  16322. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16323. test "x$?" != "x0" && pkg_failed=yes
  16324. else
  16325. pkg_failed=yes
  16326. fi
  16327. else
  16328. pkg_failed=untried
  16329. fi
  16330. if test -n "$PULSEAUDIO_LIBS"; then
  16331. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16332. elif test -n "$PKG_CONFIG"; then
  16333. if test -n "$PKG_CONFIG" && \
  16334. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16335. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16336. ac_status=$?
  16337. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16338. test $ac_status = 0; }; then
  16339. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16340. test "x$?" != "x0" && pkg_failed=yes
  16341. else
  16342. pkg_failed=yes
  16343. fi
  16344. else
  16345. pkg_failed=untried
  16346. fi
  16347. if test $pkg_failed = yes; then
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16349. $as_echo "no" >&6; }
  16350. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16351. _pkg_short_errors_supported=yes
  16352. else
  16353. _pkg_short_errors_supported=no
  16354. fi
  16355. if test $_pkg_short_errors_supported = yes; then
  16356. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16357. else
  16358. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16359. fi
  16360. # Put the nasty error message in config.log where it belongs
  16361. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16362. audio_pulseaudio=no
  16363. elif test $pkg_failed = untried; then
  16364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16365. $as_echo "no" >&6; }
  16366. audio_pulseaudio=no
  16367. else
  16368. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16369. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16371. $as_echo "yes" >&6; }
  16372. audio_pulseaudio=yes
  16373. fi
  16374. if test x$audio_pulseaudio = xyes; then
  16375. # Check whether --enable-pulseaudio-shared was given.
  16376. if test "${enable_pulseaudio_shared+set}" = set; then :
  16377. enableval=$enable_pulseaudio_shared;
  16378. else
  16379. enable_pulseaudio_shared=yes
  16380. fi
  16381. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16382. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16383. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16384. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16385. if test x$have_loadso != xyes && \
  16386. test x$enable_pulseaudio_shared = xyes; then
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16388. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16389. fi
  16390. if test x$have_loadso = xyes && \
  16391. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16392. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16393. cat >>confdefs.h <<_ACEOF
  16394. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16395. _ACEOF
  16396. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16397. case "$host" in
  16398. # On Solaris, pulseaudio must be linked deferred explicitly
  16399. # to prevent undefined symbol failures.
  16400. *-*-solaris*)
  16401. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16402. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16403. esac
  16404. else
  16405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16406. SUMMARY_audio="${SUMMARY_audio} pulse"
  16407. fi
  16408. have_audio=yes
  16409. fi
  16410. fi
  16411. }
  16412. CheckARTSC()
  16413. {
  16414. # Check whether --enable-arts was given.
  16415. if test "${enable_arts+set}" = set; then :
  16416. enableval=$enable_arts;
  16417. else
  16418. enable_arts=yes
  16419. fi
  16420. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16421. # Extract the first word of "artsc-config", so it can be a program name with args.
  16422. set dummy artsc-config; ac_word=$2
  16423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16424. $as_echo_n "checking for $ac_word... " >&6; }
  16425. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16426. $as_echo_n "(cached) " >&6
  16427. else
  16428. case $ARTSCONFIG in
  16429. [\\/]* | ?:[\\/]*)
  16430. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16431. ;;
  16432. *)
  16433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16434. for as_dir in $PATH
  16435. do
  16436. IFS=$as_save_IFS
  16437. test -z "$as_dir" && as_dir=.
  16438. for ac_exec_ext in '' $ac_executable_extensions; do
  16439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16440. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16442. break 2
  16443. fi
  16444. done
  16445. done
  16446. IFS=$as_save_IFS
  16447. ;;
  16448. esac
  16449. fi
  16450. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16451. if test -n "$ARTSCONFIG"; then
  16452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16453. $as_echo "$ARTSCONFIG" >&6; }
  16454. else
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16456. $as_echo "no" >&6; }
  16457. fi
  16458. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16459. : # arts isn't installed
  16460. else
  16461. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16462. ARTS_LIBS=`$ARTSCONFIG --libs`
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16464. $as_echo_n "checking for aRts development environment... " >&6; }
  16465. audio_arts=no
  16466. save_CFLAGS="$CFLAGS"
  16467. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16469. /* end confdefs.h. */
  16470. #include <artsc.h>
  16471. int
  16472. main ()
  16473. {
  16474. arts_stream_t stream;
  16475. ;
  16476. return 0;
  16477. }
  16478. _ACEOF
  16479. if ac_fn_c_try_compile "$LINENO"; then :
  16480. audio_arts=yes
  16481. fi
  16482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16483. CFLAGS="$save_CFLAGS"
  16484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16485. $as_echo "$audio_arts" >&6; }
  16486. if test x$audio_arts = xyes; then
  16487. # Check whether --enable-arts-shared was given.
  16488. if test "${enable_arts_shared+set}" = set; then :
  16489. enableval=$enable_arts_shared;
  16490. else
  16491. enable_arts_shared=yes
  16492. fi
  16493. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16494. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16495. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16496. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16497. if test x$have_loadso != xyes && \
  16498. test x$enable_arts_shared = xyes; then
  16499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16500. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16501. fi
  16502. if test x$have_loadso = xyes && \
  16503. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16504. echo "-- dynamic libartsc -> $arts_lib"
  16505. cat >>confdefs.h <<_ACEOF
  16506. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16507. _ACEOF
  16508. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16509. else
  16510. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16511. SUMMARY_audio="${SUMMARY_audio} arts"
  16512. fi
  16513. have_audio=yes
  16514. fi
  16515. fi
  16516. fi
  16517. }
  16518. CheckNAS()
  16519. {
  16520. # Check whether --enable-nas was given.
  16521. if test "${enable_nas+set}" = set; then :
  16522. enableval=$enable_nas;
  16523. else
  16524. enable_nas=yes
  16525. fi
  16526. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16527. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16528. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16529. have_nas_hdr=yes
  16530. fi
  16531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16532. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16533. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16534. $as_echo_n "(cached) " >&6
  16535. else
  16536. ac_check_lib_save_LIBS=$LIBS
  16537. LIBS="-laudio $LIBS"
  16538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16539. /* end confdefs.h. */
  16540. /* Override any GCC internal prototype to avoid an error.
  16541. Use char because int might match the return type of a GCC
  16542. builtin and then its argument prototype would still apply. */
  16543. #ifdef __cplusplus
  16544. extern "C"
  16545. #endif
  16546. char AuOpenServer ();
  16547. int
  16548. main ()
  16549. {
  16550. return AuOpenServer ();
  16551. ;
  16552. return 0;
  16553. }
  16554. _ACEOF
  16555. if ac_fn_c_try_link "$LINENO"; then :
  16556. ac_cv_lib_audio_AuOpenServer=yes
  16557. else
  16558. ac_cv_lib_audio_AuOpenServer=no
  16559. fi
  16560. rm -f core conftest.err conftest.$ac_objext \
  16561. conftest$ac_exeext conftest.$ac_ext
  16562. LIBS=$ac_check_lib_save_LIBS
  16563. fi
  16564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16565. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16566. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16567. have_nas_lib=yes
  16568. fi
  16569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16570. $as_echo_n "checking for NAS audio support... " >&6; }
  16571. have_nas=no
  16572. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16573. have_nas=yes
  16574. NAS_LIBS="-laudio"
  16575. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16576. have_nas=yes
  16577. NAS_CFLAGS="-I/usr/X11R6/include/"
  16578. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16579. fi
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16581. $as_echo "$have_nas" >&6; }
  16582. if test x$have_nas = xyes; then
  16583. # Check whether --enable-nas-shared was given.
  16584. if test "${enable_nas_shared+set}" = set; then :
  16585. enableval=$enable_nas_shared;
  16586. else
  16587. enable_nas_shared=yes
  16588. fi
  16589. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16590. if test x$have_loadso != xyes && \
  16591. test x$enable_nas_shared = xyes; then
  16592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16593. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16594. fi
  16595. if test x$have_loadso = xyes && \
  16596. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16597. echo "-- dynamic libaudio -> $nas_lib"
  16598. cat >>confdefs.h <<_ACEOF
  16599. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16600. _ACEOF
  16601. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16602. else
  16603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16604. SUMMARY_audio="${SUMMARY_audio} nas"
  16605. fi
  16606. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16607. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16608. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16609. have_audio=yes
  16610. fi
  16611. fi
  16612. }
  16613. CheckSNDIO()
  16614. {
  16615. # Check whether --enable-sndio was given.
  16616. if test "${enable_sndio+set}" = set; then :
  16617. enableval=$enable_sndio;
  16618. else
  16619. enable_sndio=yes
  16620. fi
  16621. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16622. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16623. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16624. have_sndio_hdr=yes
  16625. fi
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16627. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16628. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16629. $as_echo_n "(cached) " >&6
  16630. else
  16631. ac_check_lib_save_LIBS=$LIBS
  16632. LIBS="-lsndio $LIBS"
  16633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16634. /* end confdefs.h. */
  16635. /* Override any GCC internal prototype to avoid an error.
  16636. Use char because int might match the return type of a GCC
  16637. builtin and then its argument prototype would still apply. */
  16638. #ifdef __cplusplus
  16639. extern "C"
  16640. #endif
  16641. char sio_open ();
  16642. int
  16643. main ()
  16644. {
  16645. return sio_open ();
  16646. ;
  16647. return 0;
  16648. }
  16649. _ACEOF
  16650. if ac_fn_c_try_link "$LINENO"; then :
  16651. ac_cv_lib_sndio_sio_open=yes
  16652. else
  16653. ac_cv_lib_sndio_sio_open=no
  16654. fi
  16655. rm -f core conftest.err conftest.$ac_objext \
  16656. conftest$ac_exeext conftest.$ac_ext
  16657. LIBS=$ac_check_lib_save_LIBS
  16658. fi
  16659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16660. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16661. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16662. have_sndio_lib=yes
  16663. fi
  16664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16665. $as_echo_n "checking for sndio audio support... " >&6; }
  16666. have_sndio=no
  16667. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16668. have_sndio=yes
  16669. SNDIO_LIBS="-lsndio"
  16670. fi
  16671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16672. $as_echo "$have_sndio" >&6; }
  16673. if test x$have_sndio = xyes; then
  16674. # Check whether --enable-sndio-shared was given.
  16675. if test "${enable_sndio_shared+set}" = set; then :
  16676. enableval=$enable_sndio_shared;
  16677. else
  16678. enable_sndio_shared=yes
  16679. fi
  16680. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16681. if test x$have_loadso != xyes && \
  16682. test x$enable_sndio_shared = xyes; then
  16683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16684. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16685. fi
  16686. if test x$have_loadso = xyes && \
  16687. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16688. echo "-- dynamic libsndio -> $sndio_lib"
  16689. cat >>confdefs.h <<_ACEOF
  16690. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16691. _ACEOF
  16692. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16693. else
  16694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16695. SUMMARY_audio="${SUMMARY_audio} sndio"
  16696. fi
  16697. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16698. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16699. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16700. have_audio=yes
  16701. fi
  16702. fi
  16703. }
  16704. CheckFusionSound()
  16705. {
  16706. # Check whether --enable-fusionsound was given.
  16707. if test "${enable_fusionsound+set}" = set; then :
  16708. enableval=$enable_fusionsound;
  16709. else
  16710. enable_fusionsound=no
  16711. fi
  16712. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16713. pkg_failed=no
  16714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16715. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16716. if test -n "$FUSIONSOUND_CFLAGS"; then
  16717. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16718. elif test -n "$PKG_CONFIG"; then
  16719. if test -n "$PKG_CONFIG" && \
  16720. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16721. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16722. ac_status=$?
  16723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16724. test $ac_status = 0; }; then
  16725. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16726. test "x$?" != "x0" && pkg_failed=yes
  16727. else
  16728. pkg_failed=yes
  16729. fi
  16730. else
  16731. pkg_failed=untried
  16732. fi
  16733. if test -n "$FUSIONSOUND_LIBS"; then
  16734. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16735. elif test -n "$PKG_CONFIG"; then
  16736. if test -n "$PKG_CONFIG" && \
  16737. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16738. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16739. ac_status=$?
  16740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16741. test $ac_status = 0; }; then
  16742. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16743. test "x$?" != "x0" && pkg_failed=yes
  16744. else
  16745. pkg_failed=yes
  16746. fi
  16747. else
  16748. pkg_failed=untried
  16749. fi
  16750. if test $pkg_failed = yes; then
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16752. $as_echo "no" >&6; }
  16753. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16754. _pkg_short_errors_supported=yes
  16755. else
  16756. _pkg_short_errors_supported=no
  16757. fi
  16758. if test $_pkg_short_errors_supported = yes; then
  16759. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16760. else
  16761. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16762. fi
  16763. # Put the nasty error message in config.log where it belongs
  16764. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16765. fusionsound=no
  16766. elif test $pkg_failed = untried; then
  16767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16768. $as_echo "no" >&6; }
  16769. fusionsound=no
  16770. else
  16771. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16772. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16774. $as_echo "yes" >&6; }
  16775. fusionsound=yes
  16776. fi
  16777. if test x$fusionsound = xyes; then
  16778. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16779. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16780. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16781. # Check whether --enable-fusionsound-shared was given.
  16782. if test "${enable_fusionsound_shared+set}" = set; then :
  16783. enableval=$enable_fusionsound_shared;
  16784. else
  16785. enable_fusionsound_shared=yes
  16786. fi
  16787. fusionsound_shared=no
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16789. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16790. if test x$have_loadso != xyes && \
  16791. test x$enable_fusionsound_shared = xyes; then
  16792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16793. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16794. fi
  16795. if test x$have_loadso = xyes && \
  16796. test x$enable_fusionsound_shared = xyes; then
  16797. cat >>confdefs.h <<_ACEOF
  16798. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16799. _ACEOF
  16800. fusionsound_shared=yes
  16801. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16802. else
  16803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16804. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16805. fi
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16807. $as_echo "$fusionsound_shared" >&6; }
  16808. have_audio=yes
  16809. fi
  16810. fi
  16811. }
  16812. CheckDiskAudio()
  16813. {
  16814. # Check whether --enable-diskaudio was given.
  16815. if test "${enable_diskaudio+set}" = set; then :
  16816. enableval=$enable_diskaudio;
  16817. else
  16818. enable_diskaudio=yes
  16819. fi
  16820. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16821. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16822. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16823. SUMMARY_audio="${SUMMARY_audio} disk"
  16824. fi
  16825. }
  16826. CheckDummyAudio()
  16827. {
  16828. # Check whether --enable-dummyaudio was given.
  16829. if test "${enable_dummyaudio+set}" = set; then :
  16830. enableval=$enable_dummyaudio;
  16831. else
  16832. enable_dummyaudio=yes
  16833. fi
  16834. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16835. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16836. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16837. SUMMARY_audio="${SUMMARY_audio} dummy"
  16838. fi
  16839. }
  16840. CheckLibSampleRate()
  16841. {
  16842. # Check whether --enable-libsamplerate was given.
  16843. if test "${enable_libsamplerate+set}" = set; then :
  16844. enableval=$enable_libsamplerate;
  16845. else
  16846. enable_libsamplerate=yes
  16847. fi
  16848. if test x$enable_libsamplerate = xyes; then
  16849. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16850. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16851. have_samplerate_h_hdr=yes
  16852. else
  16853. have_samplerate_h_hdr=no
  16854. fi
  16855. if test x$have_samplerate_h_hdr = xyes; then
  16856. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16857. # Check whether --enable-libsamplerate-shared was given.
  16858. if test "${enable_libsamplerate_shared+set}" = set; then :
  16859. enableval=$enable_libsamplerate_shared;
  16860. else
  16861. enable_libsamplerate_shared=yes
  16862. fi
  16863. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16864. if test x$have_loadso != xyes && \
  16865. test x$enable_libsamplerate_shared = xyes; then
  16866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16867. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16868. fi
  16869. if test x$have_loadso = xyes && \
  16870. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16871. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16872. cat >>confdefs.h <<_ACEOF
  16873. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16874. _ACEOF
  16875. else
  16876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16877. fi
  16878. fi
  16879. fi
  16880. }
  16881. CheckARM()
  16882. {
  16883. # Check whether --enable-arm-simd was given.
  16884. if test "${enable_arm_simd+set}" = set; then :
  16885. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16886. else
  16887. enable_arm_simd=no
  16888. fi
  16889. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16890. save_CFLAGS="$CFLAGS"
  16891. have_arm_simd=no
  16892. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16894. $as_echo_n "checking for ARM SIMD... " >&6; }
  16895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16896. /* end confdefs.h. */
  16897. .text
  16898. .arch armv6
  16899. .object_arch armv4
  16900. .arm
  16901. .altmacro
  16902. #ifndef __ARM_EABI__
  16903. #error EABI is required (to be sure that calling conventions are compatible)
  16904. #endif
  16905. pld [r0]
  16906. uqadd8 r0, r0, r0
  16907. _ACEOF
  16908. if ac_fn_c_try_compile "$LINENO"; then :
  16909. have_arm_simd=yes
  16910. fi
  16911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16913. $as_echo "$have_arm_simd" >&6; }
  16914. CFLAGS="$save_CFLAGS"
  16915. if test x$have_arm_simd = xyes; then
  16916. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16917. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16918. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16919. fi
  16920. fi
  16921. }
  16922. CheckNEON()
  16923. {
  16924. # Check whether --enable-arm-neon was given.
  16925. if test "${enable_arm_neon+set}" = set; then :
  16926. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16927. else
  16928. enable_arm_neon=no
  16929. fi
  16930. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16931. save_CFLAGS="$CFLAGS"
  16932. have_arm_neon=no
  16933. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16935. $as_echo_n "checking for ARM NEON... " >&6; }
  16936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16937. /* end confdefs.h. */
  16938. .text
  16939. .fpu neon
  16940. .arch armv7a
  16941. .object_arch armv4
  16942. .eabi_attribute 10, 0
  16943. .arm
  16944. .altmacro
  16945. #ifndef __ARM_EABI__
  16946. #error EABI is required (to be sure that calling conventions are compatible)
  16947. #endif
  16948. pld [r0]
  16949. vmovn.u16 d0, q0
  16950. _ACEOF
  16951. if ac_fn_c_try_compile "$LINENO"; then :
  16952. have_arm_neon=yes
  16953. fi
  16954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16956. $as_echo "$have_arm_neon" >&6; }
  16957. CFLAGS="$save_CFLAGS"
  16958. if test x$have_arm_neon = xyes; then
  16959. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16960. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16961. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16962. fi
  16963. fi
  16964. }
  16965. CheckVisibilityHidden()
  16966. {
  16967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16968. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16969. have_gcc_fvisibility=no
  16970. visibility_CFLAGS="-fvisibility=hidden"
  16971. save_CFLAGS="$CFLAGS"
  16972. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16974. /* end confdefs.h. */
  16975. #if !defined(__GNUC__) || __GNUC__ < 4
  16976. #error SDL only uses visibility attributes in GCC 4 or newer
  16977. #endif
  16978. int
  16979. main ()
  16980. {
  16981. ;
  16982. return 0;
  16983. }
  16984. _ACEOF
  16985. if ac_fn_c_try_compile "$LINENO"; then :
  16986. have_gcc_fvisibility=yes
  16987. fi
  16988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16990. $as_echo "$have_gcc_fvisibility" >&6; }
  16991. CFLAGS="$save_CFLAGS"
  16992. if test x$have_gcc_fvisibility = xyes; then
  16993. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16994. fi
  16995. }
  16996. CheckNoStrictAliasing()
  16997. {
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16999. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17000. have_gcc_no_strict_aliasing=no
  17001. save_CFLAGS="$CFLAGS"
  17002. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17004. /* end confdefs.h. */
  17005. int x = 0;
  17006. int
  17007. main ()
  17008. {
  17009. ;
  17010. return 0;
  17011. }
  17012. _ACEOF
  17013. if ac_fn_c_try_compile "$LINENO"; then :
  17014. have_gcc_no_strict_aliasing=yes
  17015. fi
  17016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17018. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17019. CFLAGS="$save_CFLAGS"
  17020. if test x$have_gcc_no_strict_aliasing = xyes; then
  17021. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17022. fi
  17023. }
  17024. CheckStackBoundary()
  17025. {
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17027. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17028. have_gcc_preferred_stack_boundary=no
  17029. save_CFLAGS="$CFLAGS"
  17030. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17032. /* end confdefs.h. */
  17033. int x = 0;
  17034. int
  17035. main ()
  17036. {
  17037. ;
  17038. return 0;
  17039. }
  17040. _ACEOF
  17041. if ac_fn_c_try_compile "$LINENO"; then :
  17042. have_gcc_preferred_stack_boundary=yes
  17043. fi
  17044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17046. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17047. CFLAGS="$save_CFLAGS"
  17048. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17049. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17050. fi
  17051. }
  17052. CheckDeclarationAfterStatement()
  17053. {
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17055. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17056. have_gcc_declaration_after_statement=no
  17057. save_CFLAGS="$CFLAGS"
  17058. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17060. /* end confdefs.h. */
  17061. int x = 0;
  17062. int
  17063. main ()
  17064. {
  17065. ;
  17066. return 0;
  17067. }
  17068. _ACEOF
  17069. if ac_fn_c_try_compile "$LINENO"; then :
  17070. have_gcc_declaration_after_statement=yes
  17071. fi
  17072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17074. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17075. CFLAGS="$save_CFLAGS"
  17076. if test x$have_gcc_declaration_after_statement = xyes; then
  17077. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17078. fi
  17079. }
  17080. CheckWarnAll()
  17081. {
  17082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17083. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17084. have_gcc_Wall=no
  17085. save_CFLAGS="$CFLAGS"
  17086. CFLAGS="$save_CFLAGS -Wall"
  17087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17088. /* end confdefs.h. */
  17089. int x = 0;
  17090. int
  17091. main ()
  17092. {
  17093. ;
  17094. return 0;
  17095. }
  17096. _ACEOF
  17097. if ac_fn_c_try_compile "$LINENO"; then :
  17098. have_gcc_Wall=yes
  17099. fi
  17100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17102. $as_echo "$have_gcc_Wall" >&6; }
  17103. CFLAGS="$save_CFLAGS"
  17104. if test x$have_gcc_Wall = xyes; then
  17105. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17107. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17108. need_gcc_Wno_multichar=no
  17109. case "$host" in
  17110. *-*-haiku*)
  17111. need_gcc_Wno_multichar=yes
  17112. ;;
  17113. esac
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17115. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17116. if test x$need_gcc_Wno_multichar = xyes; then
  17117. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17118. fi
  17119. fi
  17120. }
  17121. CheckWayland()
  17122. {
  17123. # Check whether --enable-video-wayland was given.
  17124. if test "${enable_video_wayland+set}" = set; then :
  17125. enableval=$enable_video_wayland;
  17126. else
  17127. enable_video_wayland=yes
  17128. fi
  17129. # Check whether --enable-video-wayland-qt-touch was given.
  17130. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17131. enableval=$enable_video_wayland_qt_touch;
  17132. else
  17133. enable_video_wayland_qt_touch=yes
  17134. fi
  17135. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17137. $as_echo_n "checking for Wayland support... " >&6; }
  17138. video_wayland=no
  17139. if test x$video_opengl_egl = xyes && \
  17140. test x$video_opengles_v2 = xyes; then
  17141. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17142. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17143. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17144. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17145. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17146. WAYLAND_SCANNER_CODE_MODE=private-code
  17147. else
  17148. WAYLAND_SCANNER_CODE_MODE=code
  17149. fi
  17150. video_wayland=yes
  17151. fi
  17152. fi
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17154. $as_echo "$video_wayland" >&6; }
  17155. if test x$video_wayland = xyes; then
  17156. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17157. if test x$enable_video_wayland_qt_touch = xyes; then
  17158. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17159. fi
  17160. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17161. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17162. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17163. # Check whether --enable-wayland-shared was given.
  17164. if test "${enable_wayland_shared+set}" = set; then :
  17165. enableval=$enable_wayland_shared;
  17166. else
  17167. enable_wayland_shared=maybe
  17168. fi
  17169. case "$host" in
  17170. *)
  17171. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17172. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17173. if test x$wayland_egl_lib = x; then
  17174. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17175. fi
  17176. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17177. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17178. ;;
  17179. esac
  17180. if test x$enable_wayland_shared = xmaybe; then
  17181. enable_wayland_shared=yes
  17182. fi
  17183. if test x$have_loadso != xyes && \
  17184. test x$enable_wayland_shared = xyes; then
  17185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17186. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17187. enable_wayland_shared=no
  17188. fi
  17189. if test x$have_loadso = xyes && \
  17190. test x$enable_wayland_shared = xyes && \
  17191. test x$wayland_client_lib != x && \
  17192. test x$wayland_egl_lib != x && \
  17193. test x$wayland_cursor_lib != x && \
  17194. test x$xkbcommon_lib != x; then
  17195. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17196. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17197. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17198. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17199. cat >>confdefs.h <<_ACEOF
  17200. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17201. _ACEOF
  17202. cat >>confdefs.h <<_ACEOF
  17203. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17204. _ACEOF
  17205. cat >>confdefs.h <<_ACEOF
  17206. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17207. _ACEOF
  17208. cat >>confdefs.h <<_ACEOF
  17209. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17210. _ACEOF
  17211. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17212. else
  17213. enable_wayland_shared=no
  17214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17215. SUMMARY_video="${SUMMARY_video} wayland"
  17216. fi
  17217. have_video=yes
  17218. # Check whether --enable-libdecor was given.
  17219. if test "${enable_libdecor+set}" = set; then :
  17220. enableval=$enable_libdecor;
  17221. else
  17222. enable_libdecor=yes
  17223. fi
  17224. if test x$enable_libdecor = xyes; then
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17226. $as_echo_n "checking for libdecor support... " >&6; }
  17227. if $PKG_CONFIG --exists libdecor-0; then :
  17228. video_libdecor=yes
  17229. else
  17230. video_libdecor=no
  17231. fi
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17233. $as_echo "$video_libdecor" >&6; }
  17234. if test x$video_libdecor = xyes; then
  17235. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17236. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17237. # Check whether --enable-libdecor-shared was given.
  17238. if test "${enable_libdecor_shared+set}" = set; then :
  17239. enableval=$enable_libdecor_shared;
  17240. else
  17241. enable_libdecor_shared=yes
  17242. fi
  17243. if test x$enable_wayland_shared != xyes; then
  17244. enable_libdecor_shared=no
  17245. fi
  17246. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17247. if test x$have_loadso != xyes && \
  17248. test x$enable_libdecor_shared = xyes; then
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17250. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17251. fi
  17252. if test x$have_loadso = xyes && \
  17253. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17254. echo "-- dynamic libdecor -> $decor_lib"
  17255. cat >>confdefs.h <<_ACEOF
  17256. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17257. _ACEOF
  17258. else
  17259. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17260. fi
  17261. fi
  17262. fi
  17263. fi
  17264. fi
  17265. }
  17266. CheckNativeClient()
  17267. {
  17268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17269. /* end confdefs.h. */
  17270. #if !defined(__native_client__)
  17271. #error "NO NACL"
  17272. #endif
  17273. int
  17274. main ()
  17275. {
  17276. ;
  17277. return 0;
  17278. }
  17279. _ACEOF
  17280. if ac_fn_c_try_compile "$LINENO"; then :
  17281. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17282. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17283. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17284. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17285. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17286. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17287. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17288. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17289. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17290. SUMMARY_audio="${SUMMARY_audio} nacl"
  17291. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17292. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17293. fi
  17294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17295. }
  17296. CheckRPI()
  17297. {
  17298. # Check whether --enable-video-rpi was given.
  17299. if test "${enable_video_rpi+set}" = set; then :
  17300. enableval=$enable_video_rpi;
  17301. else
  17302. enable_video_rpi=yes
  17303. fi
  17304. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17305. pkg_failed=no
  17306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17307. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17308. if test -n "$RPI_CFLAGS"; then
  17309. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17310. elif test -n "$PKG_CONFIG"; then
  17311. if test -n "$PKG_CONFIG" && \
  17312. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17313. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17314. ac_status=$?
  17315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17316. test $ac_status = 0; }; then
  17317. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17318. test "x$?" != "x0" && pkg_failed=yes
  17319. else
  17320. pkg_failed=yes
  17321. fi
  17322. else
  17323. pkg_failed=untried
  17324. fi
  17325. if test -n "$RPI_LIBS"; then
  17326. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17327. elif test -n "$PKG_CONFIG"; then
  17328. if test -n "$PKG_CONFIG" && \
  17329. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17330. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17331. ac_status=$?
  17332. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17333. test $ac_status = 0; }; then
  17334. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17335. test "x$?" != "x0" && pkg_failed=yes
  17336. else
  17337. pkg_failed=yes
  17338. fi
  17339. else
  17340. pkg_failed=untried
  17341. fi
  17342. if test $pkg_failed = yes; then
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17344. $as_echo "no" >&6; }
  17345. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17346. _pkg_short_errors_supported=yes
  17347. else
  17348. _pkg_short_errors_supported=no
  17349. fi
  17350. if test $_pkg_short_errors_supported = yes; then
  17351. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17352. else
  17353. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17354. fi
  17355. # Put the nasty error message in config.log where it belongs
  17356. echo "$RPI_PKG_ERRORS" >&5
  17357. video_rpi=no
  17358. elif test $pkg_failed = untried; then
  17359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17360. $as_echo "no" >&6; }
  17361. video_rpi=no
  17362. else
  17363. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17364. RPI_LIBS=$pkg_cv_RPI_LIBS
  17365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17366. $as_echo "yes" >&6; }
  17367. video_rpi=yes
  17368. fi
  17369. if test x$video_rpi = xno; then
  17370. if test x$ARCH = xnetbsd; then
  17371. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17372. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17373. else
  17374. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17375. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17376. fi
  17377. fi
  17378. # Save the original compiler flags and libraries
  17379. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17380. # Add the Raspberry Pi compiler flags and libraries
  17381. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17383. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17384. have_video_rpi=no
  17385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17386. /* end confdefs.h. */
  17387. #include <bcm_host.h>
  17388. int
  17389. main ()
  17390. {
  17391. bcm_host_init();
  17392. ;
  17393. return 0;
  17394. }
  17395. _ACEOF
  17396. if ac_fn_c_try_link "$LINENO"; then :
  17397. have_video_rpi=yes
  17398. fi
  17399. rm -f core conftest.err conftest.$ac_objext \
  17400. conftest$ac_exeext conftest.$ac_ext
  17401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17402. $as_echo "$have_video_rpi" >&6; }
  17403. # Restore the compiler flags and libraries
  17404. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17405. if test x$have_video_rpi = xyes; then
  17406. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17407. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17408. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17410. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17411. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17412. SUMMARY_video="${SUMMARY_video} rpi"
  17413. fi
  17414. fi
  17415. }
  17416. CheckX11()
  17417. {
  17418. # Check whether --enable-video-x11 was given.
  17419. if test "${enable_video_x11+set}" = set; then :
  17420. enableval=$enable_video_x11;
  17421. else
  17422. enable_video_x11=yes
  17423. fi
  17424. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17425. case "$host" in
  17426. *-*-darwin*)
  17427. # This isn't necessary for X11, but fixes GLX detection
  17428. if test "x$x_includes" = xNONE && \
  17429. test "x$x_libraries" = xNONE && \
  17430. test -d /opt/X11/include && \
  17431. test -d /opt/X11/lib; then
  17432. x_includes="/opt/X11/include"
  17433. x_libraries="/opt/X11/lib"
  17434. fi
  17435. ;;
  17436. esac
  17437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17438. $as_echo_n "checking for X... " >&6; }
  17439. # Check whether --with-x was given.
  17440. if test "${with_x+set}" = set; then :
  17441. withval=$with_x;
  17442. fi
  17443. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17444. if test "x$with_x" = xno; then
  17445. # The user explicitly disabled X.
  17446. have_x=disabled
  17447. else
  17448. case $x_includes,$x_libraries in #(
  17449. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17450. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17451. $as_echo_n "(cached) " >&6
  17452. else
  17453. # One or both of the vars are not set, and there is no cached value.
  17454. ac_x_includes=no
  17455. ac_x_libraries=no
  17456. # Do we need to do anything special at all?
  17457. ac_save_LIBS=$LIBS
  17458. LIBS="-lX11 $LIBS"
  17459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17460. /* end confdefs.h. */
  17461. #include <X11/Xlib.h>
  17462. int
  17463. main ()
  17464. {
  17465. XrmInitialize ()
  17466. ;
  17467. return 0;
  17468. }
  17469. _ACEOF
  17470. if ac_fn_c_try_link "$LINENO"; then :
  17471. # We can compile and link X programs with no special options.
  17472. ac_x_includes=
  17473. ac_x_libraries=
  17474. fi
  17475. rm -f core conftest.err conftest.$ac_objext \
  17476. conftest$ac_exeext conftest.$ac_ext
  17477. LIBS="$ac_save_LIBS"
  17478. # If that didn't work, only try xmkmf and filesystem searches
  17479. # for native compilation.
  17480. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17481. rm -f -r conftest.dir
  17482. if mkdir conftest.dir; then
  17483. cd conftest.dir
  17484. cat >Imakefile <<'_ACEOF'
  17485. incroot:
  17486. @echo incroot='${INCROOT}'
  17487. usrlibdir:
  17488. @echo usrlibdir='${USRLIBDIR}'
  17489. libdir:
  17490. @echo libdir='${LIBDIR}'
  17491. _ACEOF
  17492. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17493. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17494. for ac_var in incroot usrlibdir libdir; do
  17495. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17496. done
  17497. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17498. for ac_extension in a so sl dylib la dll; do
  17499. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17500. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17501. ac_im_usrlibdir=$ac_im_libdir; break
  17502. fi
  17503. done
  17504. # Screen out bogus values from the imake configuration. They are
  17505. # bogus both because they are the default anyway, and because
  17506. # using them would break gcc on systems where it needs fixed includes.
  17507. case $ac_im_incroot in
  17508. /usr/include) ac_x_includes= ;;
  17509. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17510. esac
  17511. case $ac_im_usrlibdir in
  17512. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17513. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17514. esac
  17515. fi
  17516. cd ..
  17517. rm -f -r conftest.dir
  17518. fi
  17519. # Standard set of common directories for X headers.
  17520. # Check X11 before X11Rn because it is often a symlink to the current release.
  17521. ac_x_header_dirs='
  17522. /usr/X11/include
  17523. /usr/X11R7/include
  17524. /usr/X11R6/include
  17525. /usr/X11R5/include
  17526. /usr/X11R4/include
  17527. /usr/include/X11
  17528. /usr/include/X11R7
  17529. /usr/include/X11R6
  17530. /usr/include/X11R5
  17531. /usr/include/X11R4
  17532. /usr/local/X11/include
  17533. /usr/local/X11R7/include
  17534. /usr/local/X11R6/include
  17535. /usr/local/X11R5/include
  17536. /usr/local/X11R4/include
  17537. /usr/local/include/X11
  17538. /usr/local/include/X11R7
  17539. /usr/local/include/X11R6
  17540. /usr/local/include/X11R5
  17541. /usr/local/include/X11R4
  17542. /opt/X11/include
  17543. /usr/X386/include
  17544. /usr/x386/include
  17545. /usr/XFree86/include/X11
  17546. /usr/include
  17547. /usr/local/include
  17548. /usr/unsupported/include
  17549. /usr/athena/include
  17550. /usr/local/x11r5/include
  17551. /usr/lpp/Xamples/include
  17552. /usr/openwin/include
  17553. /usr/openwin/share/include'
  17554. if test "$ac_x_includes" = no; then
  17555. # Guess where to find include files, by looking for Xlib.h.
  17556. # First, try using that file with no special directory specified.
  17557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17558. /* end confdefs.h. */
  17559. #include <X11/Xlib.h>
  17560. _ACEOF
  17561. if ac_fn_c_try_cpp "$LINENO"; then :
  17562. # We can compile using X headers with no special include directory.
  17563. ac_x_includes=
  17564. else
  17565. for ac_dir in $ac_x_header_dirs; do
  17566. if test -r "$ac_dir/X11/Xlib.h"; then
  17567. ac_x_includes=$ac_dir
  17568. break
  17569. fi
  17570. done
  17571. fi
  17572. rm -f conftest.err conftest.i conftest.$ac_ext
  17573. fi # $ac_x_includes = no
  17574. if test "$ac_x_libraries" = no; then
  17575. # Check for the libraries.
  17576. # See if we find them without any special options.
  17577. # Don't add to $LIBS permanently.
  17578. ac_save_LIBS=$LIBS
  17579. LIBS="-lX11 $LIBS"
  17580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17581. /* end confdefs.h. */
  17582. #include <X11/Xlib.h>
  17583. int
  17584. main ()
  17585. {
  17586. XrmInitialize ()
  17587. ;
  17588. return 0;
  17589. }
  17590. _ACEOF
  17591. if ac_fn_c_try_link "$LINENO"; then :
  17592. LIBS=$ac_save_LIBS
  17593. # We can link X programs with no special library path.
  17594. ac_x_libraries=
  17595. else
  17596. LIBS=$ac_save_LIBS
  17597. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17598. do
  17599. # Don't even attempt the hair of trying to link an X program!
  17600. for ac_extension in a so sl dylib la dll; do
  17601. if test -r "$ac_dir/libX11.$ac_extension"; then
  17602. ac_x_libraries=$ac_dir
  17603. break 2
  17604. fi
  17605. done
  17606. done
  17607. fi
  17608. rm -f core conftest.err conftest.$ac_objext \
  17609. conftest$ac_exeext conftest.$ac_ext
  17610. fi # $ac_x_libraries = no
  17611. fi
  17612. # Record the results.
  17613. case $ac_x_includes,$ac_x_libraries in #(
  17614. no,* | *,no | *\'*) :
  17615. # Didn't find X, or a directory has "'" in its name.
  17616. ac_cv_have_x="have_x=no" ;; #(
  17617. *) :
  17618. # Record where we found X for the cache.
  17619. ac_cv_have_x="have_x=yes\
  17620. ac_x_includes='$ac_x_includes'\
  17621. ac_x_libraries='$ac_x_libraries'" ;;
  17622. esac
  17623. fi
  17624. ;; #(
  17625. *) have_x=yes;;
  17626. esac
  17627. eval "$ac_cv_have_x"
  17628. fi # $with_x != no
  17629. if test "$have_x" != yes; then
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17631. $as_echo "$have_x" >&6; }
  17632. no_x=yes
  17633. else
  17634. # If each of the values was on the command line, it overrides each guess.
  17635. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17636. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17637. # Update the cache value to reflect the command line values.
  17638. ac_cv_have_x="have_x=yes\
  17639. ac_x_includes='$x_includes'\
  17640. ac_x_libraries='$x_libraries'"
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17642. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17643. fi
  17644. if test "$no_x" = yes; then
  17645. # Not all programs may use this symbol, but it does not hurt to define it.
  17646. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17647. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17648. else
  17649. if test -n "$x_includes"; then
  17650. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17651. fi
  17652. # It would also be nice to do this for all -L options, not just this one.
  17653. if test -n "$x_libraries"; then
  17654. X_LIBS="$X_LIBS -L$x_libraries"
  17655. # For Solaris; some versions of Sun CC require a space after -R and
  17656. # others require no space. Words are not sufficient . . . .
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17658. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17659. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17660. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17661. ac_c_werror_flag=yes
  17662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17663. /* end confdefs.h. */
  17664. int
  17665. main ()
  17666. {
  17667. ;
  17668. return 0;
  17669. }
  17670. _ACEOF
  17671. if ac_fn_c_try_link "$LINENO"; then :
  17672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17673. $as_echo "no" >&6; }
  17674. X_LIBS="$X_LIBS -R$x_libraries"
  17675. else
  17676. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17678. /* end confdefs.h. */
  17679. int
  17680. main ()
  17681. {
  17682. ;
  17683. return 0;
  17684. }
  17685. _ACEOF
  17686. if ac_fn_c_try_link "$LINENO"; then :
  17687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17688. $as_echo "yes" >&6; }
  17689. X_LIBS="$X_LIBS -R $x_libraries"
  17690. else
  17691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17692. $as_echo "neither works" >&6; }
  17693. fi
  17694. rm -f core conftest.err conftest.$ac_objext \
  17695. conftest$ac_exeext conftest.$ac_ext
  17696. fi
  17697. rm -f core conftest.err conftest.$ac_objext \
  17698. conftest$ac_exeext conftest.$ac_ext
  17699. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17700. LIBS=$ac_xsave_LIBS
  17701. fi
  17702. # Check for system-dependent libraries X programs must link with.
  17703. # Do this before checking for the system-independent R6 libraries
  17704. # (-lICE), since we may need -lsocket or whatever for X linking.
  17705. if test "$ISC" = yes; then
  17706. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17707. else
  17708. # Martyn Johnson says this is needed for Ultrix, if the X
  17709. # libraries were built with DECnet support. And Karl Berry says
  17710. # the Alpha needs dnet_stub (dnet does not exist).
  17711. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17713. /* end confdefs.h. */
  17714. /* Override any GCC internal prototype to avoid an error.
  17715. Use char because int might match the return type of a GCC
  17716. builtin and then its argument prototype would still apply. */
  17717. #ifdef __cplusplus
  17718. extern "C"
  17719. #endif
  17720. char XOpenDisplay ();
  17721. int
  17722. main ()
  17723. {
  17724. return XOpenDisplay ();
  17725. ;
  17726. return 0;
  17727. }
  17728. _ACEOF
  17729. if ac_fn_c_try_link "$LINENO"; then :
  17730. else
  17731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17732. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17733. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17734. $as_echo_n "(cached) " >&6
  17735. else
  17736. ac_check_lib_save_LIBS=$LIBS
  17737. LIBS="-ldnet $LIBS"
  17738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17739. /* end confdefs.h. */
  17740. /* Override any GCC internal prototype to avoid an error.
  17741. Use char because int might match the return type of a GCC
  17742. builtin and then its argument prototype would still apply. */
  17743. #ifdef __cplusplus
  17744. extern "C"
  17745. #endif
  17746. char dnet_ntoa ();
  17747. int
  17748. main ()
  17749. {
  17750. return dnet_ntoa ();
  17751. ;
  17752. return 0;
  17753. }
  17754. _ACEOF
  17755. if ac_fn_c_try_link "$LINENO"; then :
  17756. ac_cv_lib_dnet_dnet_ntoa=yes
  17757. else
  17758. ac_cv_lib_dnet_dnet_ntoa=no
  17759. fi
  17760. rm -f core conftest.err conftest.$ac_objext \
  17761. conftest$ac_exeext conftest.$ac_ext
  17762. LIBS=$ac_check_lib_save_LIBS
  17763. fi
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17765. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17766. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17767. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17768. fi
  17769. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17771. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17772. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17773. $as_echo_n "(cached) " >&6
  17774. else
  17775. ac_check_lib_save_LIBS=$LIBS
  17776. LIBS="-ldnet_stub $LIBS"
  17777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17778. /* end confdefs.h. */
  17779. /* Override any GCC internal prototype to avoid an error.
  17780. Use char because int might match the return type of a GCC
  17781. builtin and then its argument prototype would still apply. */
  17782. #ifdef __cplusplus
  17783. extern "C"
  17784. #endif
  17785. char dnet_ntoa ();
  17786. int
  17787. main ()
  17788. {
  17789. return dnet_ntoa ();
  17790. ;
  17791. return 0;
  17792. }
  17793. _ACEOF
  17794. if ac_fn_c_try_link "$LINENO"; then :
  17795. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17796. else
  17797. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17798. fi
  17799. rm -f core conftest.err conftest.$ac_objext \
  17800. conftest$ac_exeext conftest.$ac_ext
  17801. LIBS=$ac_check_lib_save_LIBS
  17802. fi
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17804. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17805. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17806. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17807. fi
  17808. fi
  17809. fi
  17810. rm -f core conftest.err conftest.$ac_objext \
  17811. conftest$ac_exeext conftest.$ac_ext
  17812. LIBS="$ac_xsave_LIBS"
  17813. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17814. # to get the SysV transport functions.
  17815. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17816. # needs -lnsl.
  17817. # The nsl library prevents programs from opening the X display
  17818. # on Irix 5.2, according to T.E. Dickey.
  17819. # The functions gethostbyname, getservbyname, and inet_addr are
  17820. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17821. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17822. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17823. fi
  17824. if test $ac_cv_func_gethostbyname = no; then
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17826. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17827. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17828. $as_echo_n "(cached) " >&6
  17829. else
  17830. ac_check_lib_save_LIBS=$LIBS
  17831. LIBS="-lnsl $LIBS"
  17832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17833. /* end confdefs.h. */
  17834. /* Override any GCC internal prototype to avoid an error.
  17835. Use char because int might match the return type of a GCC
  17836. builtin and then its argument prototype would still apply. */
  17837. #ifdef __cplusplus
  17838. extern "C"
  17839. #endif
  17840. char gethostbyname ();
  17841. int
  17842. main ()
  17843. {
  17844. return gethostbyname ();
  17845. ;
  17846. return 0;
  17847. }
  17848. _ACEOF
  17849. if ac_fn_c_try_link "$LINENO"; then :
  17850. ac_cv_lib_nsl_gethostbyname=yes
  17851. else
  17852. ac_cv_lib_nsl_gethostbyname=no
  17853. fi
  17854. rm -f core conftest.err conftest.$ac_objext \
  17855. conftest$ac_exeext conftest.$ac_ext
  17856. LIBS=$ac_check_lib_save_LIBS
  17857. fi
  17858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17859. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17860. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17861. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17862. fi
  17863. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17865. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17866. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17867. $as_echo_n "(cached) " >&6
  17868. else
  17869. ac_check_lib_save_LIBS=$LIBS
  17870. LIBS="-lbsd $LIBS"
  17871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17872. /* end confdefs.h. */
  17873. /* Override any GCC internal prototype to avoid an error.
  17874. Use char because int might match the return type of a GCC
  17875. builtin and then its argument prototype would still apply. */
  17876. #ifdef __cplusplus
  17877. extern "C"
  17878. #endif
  17879. char gethostbyname ();
  17880. int
  17881. main ()
  17882. {
  17883. return gethostbyname ();
  17884. ;
  17885. return 0;
  17886. }
  17887. _ACEOF
  17888. if ac_fn_c_try_link "$LINENO"; then :
  17889. ac_cv_lib_bsd_gethostbyname=yes
  17890. else
  17891. ac_cv_lib_bsd_gethostbyname=no
  17892. fi
  17893. rm -f core conftest.err conftest.$ac_objext \
  17894. conftest$ac_exeext conftest.$ac_ext
  17895. LIBS=$ac_check_lib_save_LIBS
  17896. fi
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17898. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17899. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17900. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17901. fi
  17902. fi
  17903. fi
  17904. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17905. # socket/setsockopt and other routines are undefined under SCO ODT
  17906. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17907. # on later versions), says Simon Leinen: it contains gethostby*
  17908. # variants that don't use the name server (or something). -lsocket
  17909. # must be given before -lnsl if both are needed. We assume that
  17910. # if connect needs -lnsl, so does gethostbyname.
  17911. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17912. if test "x$ac_cv_func_connect" = xyes; then :
  17913. fi
  17914. if test $ac_cv_func_connect = no; then
  17915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17916. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17917. if ${ac_cv_lib_socket_connect+:} false; then :
  17918. $as_echo_n "(cached) " >&6
  17919. else
  17920. ac_check_lib_save_LIBS=$LIBS
  17921. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17923. /* end confdefs.h. */
  17924. /* Override any GCC internal prototype to avoid an error.
  17925. Use char because int might match the return type of a GCC
  17926. builtin and then its argument prototype would still apply. */
  17927. #ifdef __cplusplus
  17928. extern "C"
  17929. #endif
  17930. char connect ();
  17931. int
  17932. main ()
  17933. {
  17934. return connect ();
  17935. ;
  17936. return 0;
  17937. }
  17938. _ACEOF
  17939. if ac_fn_c_try_link "$LINENO"; then :
  17940. ac_cv_lib_socket_connect=yes
  17941. else
  17942. ac_cv_lib_socket_connect=no
  17943. fi
  17944. rm -f core conftest.err conftest.$ac_objext \
  17945. conftest$ac_exeext conftest.$ac_ext
  17946. LIBS=$ac_check_lib_save_LIBS
  17947. fi
  17948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17949. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17950. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17951. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17952. fi
  17953. fi
  17954. # Guillermo Gomez says -lposix is necessary on A/UX.
  17955. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17956. if test "x$ac_cv_func_remove" = xyes; then :
  17957. fi
  17958. if test $ac_cv_func_remove = no; then
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17960. $as_echo_n "checking for remove in -lposix... " >&6; }
  17961. if ${ac_cv_lib_posix_remove+:} false; then :
  17962. $as_echo_n "(cached) " >&6
  17963. else
  17964. ac_check_lib_save_LIBS=$LIBS
  17965. LIBS="-lposix $LIBS"
  17966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17967. /* end confdefs.h. */
  17968. /* Override any GCC internal prototype to avoid an error.
  17969. Use char because int might match the return type of a GCC
  17970. builtin and then its argument prototype would still apply. */
  17971. #ifdef __cplusplus
  17972. extern "C"
  17973. #endif
  17974. char remove ();
  17975. int
  17976. main ()
  17977. {
  17978. return remove ();
  17979. ;
  17980. return 0;
  17981. }
  17982. _ACEOF
  17983. if ac_fn_c_try_link "$LINENO"; then :
  17984. ac_cv_lib_posix_remove=yes
  17985. else
  17986. ac_cv_lib_posix_remove=no
  17987. fi
  17988. rm -f core conftest.err conftest.$ac_objext \
  17989. conftest$ac_exeext conftest.$ac_ext
  17990. LIBS=$ac_check_lib_save_LIBS
  17991. fi
  17992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17993. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17994. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17995. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17996. fi
  17997. fi
  17998. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17999. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18000. if test "x$ac_cv_func_shmat" = xyes; then :
  18001. fi
  18002. if test $ac_cv_func_shmat = no; then
  18003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18004. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18005. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18006. $as_echo_n "(cached) " >&6
  18007. else
  18008. ac_check_lib_save_LIBS=$LIBS
  18009. LIBS="-lipc $LIBS"
  18010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18011. /* end confdefs.h. */
  18012. /* Override any GCC internal prototype to avoid an error.
  18013. Use char because int might match the return type of a GCC
  18014. builtin and then its argument prototype would still apply. */
  18015. #ifdef __cplusplus
  18016. extern "C"
  18017. #endif
  18018. char shmat ();
  18019. int
  18020. main ()
  18021. {
  18022. return shmat ();
  18023. ;
  18024. return 0;
  18025. }
  18026. _ACEOF
  18027. if ac_fn_c_try_link "$LINENO"; then :
  18028. ac_cv_lib_ipc_shmat=yes
  18029. else
  18030. ac_cv_lib_ipc_shmat=no
  18031. fi
  18032. rm -f core conftest.err conftest.$ac_objext \
  18033. conftest$ac_exeext conftest.$ac_ext
  18034. LIBS=$ac_check_lib_save_LIBS
  18035. fi
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18037. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18038. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18039. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18040. fi
  18041. fi
  18042. fi
  18043. # Check for libraries that X11R6 Xt/Xaw programs need.
  18044. ac_save_LDFLAGS=$LDFLAGS
  18045. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18046. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18047. # check for ICE first), but we must link in the order -lSM -lICE or
  18048. # we get undefined symbols. So assume we have SM if we have ICE.
  18049. # These have to be linked with before -lX11, unlike the other
  18050. # libraries we check for below, so use a different variable.
  18051. # John Interrante, Karl Berry
  18052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18053. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18054. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18055. $as_echo_n "(cached) " >&6
  18056. else
  18057. ac_check_lib_save_LIBS=$LIBS
  18058. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18060. /* end confdefs.h. */
  18061. /* Override any GCC internal prototype to avoid an error.
  18062. Use char because int might match the return type of a GCC
  18063. builtin and then its argument prototype would still apply. */
  18064. #ifdef __cplusplus
  18065. extern "C"
  18066. #endif
  18067. char IceConnectionNumber ();
  18068. int
  18069. main ()
  18070. {
  18071. return IceConnectionNumber ();
  18072. ;
  18073. return 0;
  18074. }
  18075. _ACEOF
  18076. if ac_fn_c_try_link "$LINENO"; then :
  18077. ac_cv_lib_ICE_IceConnectionNumber=yes
  18078. else
  18079. ac_cv_lib_ICE_IceConnectionNumber=no
  18080. fi
  18081. rm -f core conftest.err conftest.$ac_objext \
  18082. conftest$ac_exeext conftest.$ac_ext
  18083. LIBS=$ac_check_lib_save_LIBS
  18084. fi
  18085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18086. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18087. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18088. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18089. fi
  18090. LDFLAGS=$ac_save_LDFLAGS
  18091. fi
  18092. if test x$have_x = xyes; then
  18093. # Check whether --enable-x11-shared was given.
  18094. if test "${enable_x11_shared+set}" = set; then :
  18095. enableval=$enable_x11_shared;
  18096. else
  18097. enable_x11_shared=maybe
  18098. fi
  18099. case "$host" in
  18100. *-*-darwin*)
  18101. # Apple now puts this in /opt/X11
  18102. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18103. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18104. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18105. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18106. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18107. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18108. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18109. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18110. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18111. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18112. ;;
  18113. *-*-openbsd*)
  18114. x11_lib='libX11.so'
  18115. x11ext_lib='libXext.so'
  18116. xcursor_lib='libXcursor.so'
  18117. xinerama_lib='libXinerama.so'
  18118. xinput_lib='libXi.so'
  18119. xfixes_lib='libXfixes.so'
  18120. xrandr_lib='libXrandr.so'
  18121. xrender_lib='libXrender.so'
  18122. xss_lib='libXss.so'
  18123. xvidmode_lib='libXxf86vm.so'
  18124. ;;
  18125. *)
  18126. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18127. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18128. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18129. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18130. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18131. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18132. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18133. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18134. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18135. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18136. ;;
  18137. esac
  18138. if test x$ac_cv_func_shmat != xyes; then
  18139. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18140. fi
  18141. CFLAGS="$CFLAGS $X_CFLAGS"
  18142. LDFLAGS="$LDFLAGS $X_LIBS"
  18143. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18144. #include <X11/Xproto.h>
  18145. "
  18146. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18147. have_xext_h_hdr=yes
  18148. else
  18149. have_xext_h_hdr=no
  18150. fi
  18151. if test x$have_xext_h_hdr != xyes; then
  18152. as_fn_error $? "
  18153. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18154. " "$LINENO" 5
  18155. fi
  18156. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18157. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18158. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18159. # Needed so SDL applications can include SDL_syswm.h
  18160. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18161. if test x$enable_x11_shared = xmaybe; then
  18162. enable_x11_shared=yes
  18163. fi
  18164. if test x$have_loadso != xyes && \
  18165. test x$enable_x11_shared = xyes; then
  18166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18167. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18168. enable_x11_shared=no
  18169. fi
  18170. if test x$have_loadso = xyes && \
  18171. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18172. echo "-- dynamic libX11 -> $x11_lib"
  18173. echo "-- dynamic libX11ext -> $x11ext_lib"
  18174. cat >>confdefs.h <<_ACEOF
  18175. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18176. _ACEOF
  18177. cat >>confdefs.h <<_ACEOF
  18178. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18179. _ACEOF
  18180. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18181. else
  18182. enable_x11_shared=no
  18183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18184. SUMMARY_video="${SUMMARY_video} x11"
  18185. fi
  18186. have_video=yes
  18187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18188. $as_echo_n "checking for XGenericEvent... " >&6; }
  18189. have_XGenericEvent=no
  18190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18191. /* end confdefs.h. */
  18192. #include <X11/Xlib.h>
  18193. int
  18194. main ()
  18195. {
  18196. Display *display;
  18197. XEvent event;
  18198. XGenericEventCookie *cookie = &event.xcookie;
  18199. XNextEvent(display, &event);
  18200. XGetEventData(display, cookie);
  18201. XFreeEventData(display, cookie);
  18202. ;
  18203. return 0;
  18204. }
  18205. _ACEOF
  18206. if ac_fn_c_try_compile "$LINENO"; then :
  18207. have_XGenericEvent=yes
  18208. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18209. fi
  18210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18212. $as_echo "$have_XGenericEvent" >&6; }
  18213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18214. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18215. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18216. $as_echo_n "(cached) " >&6
  18217. else
  18218. ac_check_lib_save_LIBS=$LIBS
  18219. LIBS="-lX11 $LIBS"
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. /* Override any GCC internal prototype to avoid an error.
  18223. Use char because int might match the return type of a GCC
  18224. builtin and then its argument prototype would still apply. */
  18225. #ifdef __cplusplus
  18226. extern "C"
  18227. #endif
  18228. char XkbKeycodeToKeysym ();
  18229. int
  18230. main ()
  18231. {
  18232. return XkbKeycodeToKeysym ();
  18233. ;
  18234. return 0;
  18235. }
  18236. _ACEOF
  18237. if ac_fn_c_try_link "$LINENO"; then :
  18238. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18239. else
  18240. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18241. fi
  18242. rm -f core conftest.err conftest.$ac_objext \
  18243. conftest$ac_exeext conftest.$ac_ext
  18244. LIBS=$ac_check_lib_save_LIBS
  18245. fi
  18246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18247. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18248. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18249. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18250. fi
  18251. # Check whether --enable-video-x11-xcursor was given.
  18252. if test "${enable_video_x11_xcursor+set}" = set; then :
  18253. enableval=$enable_video_x11_xcursor;
  18254. else
  18255. enable_video_x11_xcursor=yes
  18256. fi
  18257. if test x$enable_video_x11_xcursor = xyes; then
  18258. definitely_enable_video_x11_xcursor=no
  18259. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18260. "
  18261. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18262. have_xcursor_h_hdr=yes
  18263. else
  18264. have_xcursor_h_hdr=no
  18265. fi
  18266. if test x$have_xcursor_h_hdr = xyes; then
  18267. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18268. echo "-- dynamic libXcursor -> $xcursor_lib"
  18269. cat >>confdefs.h <<_ACEOF
  18270. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18271. _ACEOF
  18272. definitely_enable_video_x11_xcursor=yes
  18273. else
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18275. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18276. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18277. $as_echo_n "(cached) " >&6
  18278. else
  18279. ac_check_lib_save_LIBS=$LIBS
  18280. LIBS="-lXcursor $LIBS"
  18281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18282. /* end confdefs.h. */
  18283. /* Override any GCC internal prototype to avoid an error.
  18284. Use char because int might match the return type of a GCC
  18285. builtin and then its argument prototype would still apply. */
  18286. #ifdef __cplusplus
  18287. extern "C"
  18288. #endif
  18289. char XcursorImageCreate ();
  18290. int
  18291. main ()
  18292. {
  18293. return XcursorImageCreate ();
  18294. ;
  18295. return 0;
  18296. }
  18297. _ACEOF
  18298. if ac_fn_c_try_link "$LINENO"; then :
  18299. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18300. else
  18301. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18302. fi
  18303. rm -f core conftest.err conftest.$ac_objext \
  18304. conftest$ac_exeext conftest.$ac_ext
  18305. LIBS=$ac_check_lib_save_LIBS
  18306. fi
  18307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18308. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18309. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18310. have_xcursor_lib=yes
  18311. fi
  18312. if test x$have_xcursor_lib = xyes ; then
  18313. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18314. definitely_enable_video_x11_xcursor=yes
  18315. fi
  18316. fi
  18317. fi
  18318. fi
  18319. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18320. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18321. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18322. fi
  18323. # Check whether --enable-video-x11-xdbe was given.
  18324. if test "${enable_video_x11_xdbe+set}" = set; then :
  18325. enableval=$enable_video_x11_xdbe;
  18326. else
  18327. enable_video_x11_xdbe=yes
  18328. fi
  18329. if test x$enable_video_x11_xdbe = xyes; then
  18330. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18331. "
  18332. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18333. have_dbe_h_hdr=yes
  18334. else
  18335. have_dbe_h_hdr=no
  18336. fi
  18337. if test x$have_dbe_h_hdr = xyes; then
  18338. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18339. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18340. fi
  18341. fi
  18342. # Check whether --enable-video-x11-xinerama was given.
  18343. if test "${enable_video_x11_xinerama+set}" = set; then :
  18344. enableval=$enable_video_x11_xinerama;
  18345. else
  18346. enable_video_x11_xinerama=yes
  18347. fi
  18348. if test x$enable_video_x11_xinerama = xyes; then
  18349. definitely_enable_video_x11_xinerama=no
  18350. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18351. "
  18352. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18353. have_xinerama_h_hdr=yes
  18354. else
  18355. have_xinerama_h_hdr=no
  18356. fi
  18357. if test x$have_xinerama_h_hdr = xyes; then
  18358. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18359. echo "-- dynamic libXinerama -> $xinerama_lib"
  18360. cat >>confdefs.h <<_ACEOF
  18361. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18362. _ACEOF
  18363. definitely_enable_video_x11_xinerama=yes
  18364. else
  18365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18366. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18367. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18368. $as_echo_n "(cached) " >&6
  18369. else
  18370. ac_check_lib_save_LIBS=$LIBS
  18371. LIBS="-lXinerama $LIBS"
  18372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18373. /* end confdefs.h. */
  18374. /* Override any GCC internal prototype to avoid an error.
  18375. Use char because int might match the return type of a GCC
  18376. builtin and then its argument prototype would still apply. */
  18377. #ifdef __cplusplus
  18378. extern "C"
  18379. #endif
  18380. char XineramaQueryExtension ();
  18381. int
  18382. main ()
  18383. {
  18384. return XineramaQueryExtension ();
  18385. ;
  18386. return 0;
  18387. }
  18388. _ACEOF
  18389. if ac_fn_c_try_link "$LINENO"; then :
  18390. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18391. else
  18392. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18393. fi
  18394. rm -f core conftest.err conftest.$ac_objext \
  18395. conftest$ac_exeext conftest.$ac_ext
  18396. LIBS=$ac_check_lib_save_LIBS
  18397. fi
  18398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18399. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18400. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18401. have_xinerama_lib=yes
  18402. fi
  18403. if test x$have_xinerama_lib = xyes ; then
  18404. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18405. definitely_enable_video_x11_xinerama=yes
  18406. fi
  18407. fi
  18408. fi
  18409. fi
  18410. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18411. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18412. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18413. fi
  18414. # Check whether --enable-video-x11-xinput was given.
  18415. if test "${enable_video_x11_xinput+set}" = set; then :
  18416. enableval=$enable_video_x11_xinput;
  18417. else
  18418. enable_video_x11_xinput=yes
  18419. fi
  18420. if test x$enable_video_x11_xinput = xyes; then
  18421. definitely_enable_video_x11_xinput=no
  18422. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18423. "
  18424. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18425. have_xinput_h_hdr=yes
  18426. else
  18427. have_xinput_h_hdr=no
  18428. fi
  18429. if test x$have_xinput_h_hdr = xyes; then
  18430. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18431. echo "-- dynamic libXi -> $xinput_lib"
  18432. cat >>confdefs.h <<_ACEOF
  18433. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18434. _ACEOF
  18435. definitely_enable_video_x11_xinput=yes
  18436. else
  18437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18438. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18439. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18440. $as_echo_n "(cached) " >&6
  18441. else
  18442. ac_check_lib_save_LIBS=$LIBS
  18443. LIBS="-lXi $LIBS"
  18444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18445. /* end confdefs.h. */
  18446. /* Override any GCC internal prototype to avoid an error.
  18447. Use char because int might match the return type of a GCC
  18448. builtin and then its argument prototype would still apply. */
  18449. #ifdef __cplusplus
  18450. extern "C"
  18451. #endif
  18452. char XOpenDevice ();
  18453. int
  18454. main ()
  18455. {
  18456. return XOpenDevice ();
  18457. ;
  18458. return 0;
  18459. }
  18460. _ACEOF
  18461. if ac_fn_c_try_link "$LINENO"; then :
  18462. ac_cv_lib_Xi_XOpenDevice=yes
  18463. else
  18464. ac_cv_lib_Xi_XOpenDevice=no
  18465. fi
  18466. rm -f core conftest.err conftest.$ac_objext \
  18467. conftest$ac_exeext conftest.$ac_ext
  18468. LIBS=$ac_check_lib_save_LIBS
  18469. fi
  18470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18471. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18472. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18473. have_xinput_lib=yes
  18474. fi
  18475. if test x$have_xinput_lib = xyes ; then
  18476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18477. definitely_enable_video_x11_xinput=yes
  18478. fi
  18479. fi
  18480. fi
  18481. fi
  18482. if test x$definitely_enable_video_x11_xinput = xyes; then
  18483. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18484. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18486. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18487. have_xinput2_multitouch=no
  18488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18489. /* end confdefs.h. */
  18490. #include <X11/Xlib.h>
  18491. #include <X11/Xproto.h>
  18492. #include <X11/extensions/XInput2.h>
  18493. int
  18494. main ()
  18495. {
  18496. int event_type = XI_TouchBegin;
  18497. XITouchClassInfo *t;
  18498. ;
  18499. return 0;
  18500. }
  18501. _ACEOF
  18502. if ac_fn_c_try_compile "$LINENO"; then :
  18503. have_xinput2_multitouch=yes
  18504. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18505. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18506. fi
  18507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18509. $as_echo "$have_xinput2_multitouch" >&6; }
  18510. fi
  18511. # Check whether --enable-video-x11-xfixes was given.
  18512. if test "${enable_video_x11_xfixes+set}" = set; then :
  18513. enableval=$enable_video_x11_xfixes;
  18514. else
  18515. enable_video_x11_xfixes=yes
  18516. fi
  18517. if test x$enable_video_x11_xfixes = xyes; then
  18518. definitely_enable_video_x11_xfixes=no
  18519. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "#include <X11/Xlib.h>
  18520. "
  18521. if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes; then :
  18522. have_xfixes_h_hdr=yes
  18523. else
  18524. have_xfixes_h_hdr=no
  18525. fi
  18526. if test x$have_xfixes_h_hdr = xyes; then
  18527. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  18528. echo "-- dynamic libXfixes -> $xfixes_lib"
  18529. cat >>confdefs.h <<_ACEOF
  18530. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  18531. _ACEOF
  18532. definitely_enable_video_x11_xfixes=yes
  18533. else
  18534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  18535. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  18536. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  18537. $as_echo_n "(cached) " >&6
  18538. else
  18539. ac_check_lib_save_LIBS=$LIBS
  18540. LIBS="-lXfixes $LIBS"
  18541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18542. /* end confdefs.h. */
  18543. /* Override any GCC internal prototype to avoid an error.
  18544. Use char because int might match the return type of a GCC
  18545. builtin and then its argument prototype would still apply. */
  18546. #ifdef __cplusplus
  18547. extern "C"
  18548. #endif
  18549. char XFixesCreatePointerBarrier ();
  18550. int
  18551. main ()
  18552. {
  18553. return XFixesCreatePointerBarrier ();
  18554. ;
  18555. return 0;
  18556. }
  18557. _ACEOF
  18558. if ac_fn_c_try_link "$LINENO"; then :
  18559. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  18560. else
  18561. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  18562. fi
  18563. rm -f core conftest.err conftest.$ac_objext \
  18564. conftest$ac_exeext conftest.$ac_ext
  18565. LIBS=$ac_check_lib_save_LIBS
  18566. fi
  18567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  18568. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  18569. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  18570. have_xfixes_lib=yes
  18571. fi
  18572. if test x$have_xfixes_lib = xyes ; then
  18573. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  18574. definitely_enable_video_x11_xfixes=yes
  18575. fi
  18576. fi
  18577. fi
  18578. fi
  18579. if test x$definitely_enable_video_x11_xfixes = xyes; then
  18580. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  18581. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  18582. fi
  18583. # Check whether --enable-video-x11-xrandr was given.
  18584. if test "${enable_video_x11_xrandr+set}" = set; then :
  18585. enableval=$enable_video_x11_xrandr;
  18586. else
  18587. enable_video_x11_xrandr=yes
  18588. fi
  18589. if test x$enable_video_x11_xrandr = xyes; then
  18590. definitely_enable_video_x11_xrandr=no
  18591. have_xrandr_h_hdr=no
  18592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18593. /* end confdefs.h. */
  18594. #include <X11/Xlib.h>
  18595. #include <X11/extensions/Xrandr.h>
  18596. int
  18597. main ()
  18598. {
  18599. XRRScreenResources *res = NULL;
  18600. ;
  18601. return 0;
  18602. }
  18603. _ACEOF
  18604. if ac_fn_c_try_compile "$LINENO"; then :
  18605. have_xrandr_h_hdr=yes
  18606. fi
  18607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18608. if test x$have_xrandr_h_hdr = xyes; then
  18609. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18610. echo "-- dynamic libXrandr -> $xrandr_lib"
  18611. cat >>confdefs.h <<_ACEOF
  18612. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18613. _ACEOF
  18614. definitely_enable_video_x11_xrandr=yes
  18615. else
  18616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18617. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18618. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18619. $as_echo_n "(cached) " >&6
  18620. else
  18621. ac_check_lib_save_LIBS=$LIBS
  18622. LIBS="-lXrandr $LIBS"
  18623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18624. /* end confdefs.h. */
  18625. /* Override any GCC internal prototype to avoid an error.
  18626. Use char because int might match the return type of a GCC
  18627. builtin and then its argument prototype would still apply. */
  18628. #ifdef __cplusplus
  18629. extern "C"
  18630. #endif
  18631. char XRRQueryExtension ();
  18632. int
  18633. main ()
  18634. {
  18635. return XRRQueryExtension ();
  18636. ;
  18637. return 0;
  18638. }
  18639. _ACEOF
  18640. if ac_fn_c_try_link "$LINENO"; then :
  18641. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18642. else
  18643. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18644. fi
  18645. rm -f core conftest.err conftest.$ac_objext \
  18646. conftest$ac_exeext conftest.$ac_ext
  18647. LIBS=$ac_check_lib_save_LIBS
  18648. fi
  18649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18650. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18651. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18652. have_xrandr_lib=yes
  18653. fi
  18654. if test x$have_xrandr_lib = xyes ; then
  18655. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18656. definitely_enable_video_x11_xrandr=yes
  18657. fi
  18658. fi
  18659. fi
  18660. fi
  18661. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18662. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18663. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18664. fi
  18665. # Check whether --enable-video-x11-scrnsaver was given.
  18666. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18667. enableval=$enable_video_x11_scrnsaver;
  18668. else
  18669. enable_video_x11_scrnsaver=yes
  18670. fi
  18671. if test x$enable_video_x11_scrnsaver = xyes; then
  18672. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18673. "
  18674. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18675. have_scrnsaver_h_hdr=yes
  18676. else
  18677. have_scrnsaver_h_hdr=no
  18678. fi
  18679. if test x$have_scrnsaver_h_hdr = xyes; then
  18680. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18681. echo "-- dynamic libXss -> $xss_lib"
  18682. cat >>confdefs.h <<_ACEOF
  18683. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18684. _ACEOF
  18685. definitely_enable_video_x11_scrnsaver=yes
  18686. else
  18687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18688. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18689. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18690. $as_echo_n "(cached) " >&6
  18691. else
  18692. ac_check_lib_save_LIBS=$LIBS
  18693. LIBS="-lXss $LIBS"
  18694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18695. /* end confdefs.h. */
  18696. /* Override any GCC internal prototype to avoid an error.
  18697. Use char because int might match the return type of a GCC
  18698. builtin and then its argument prototype would still apply. */
  18699. #ifdef __cplusplus
  18700. extern "C"
  18701. #endif
  18702. char XScreenSaverSuspend ();
  18703. int
  18704. main ()
  18705. {
  18706. return XScreenSaverSuspend ();
  18707. ;
  18708. return 0;
  18709. }
  18710. _ACEOF
  18711. if ac_fn_c_try_link "$LINENO"; then :
  18712. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18713. else
  18714. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18715. fi
  18716. rm -f core conftest.err conftest.$ac_objext \
  18717. conftest$ac_exeext conftest.$ac_ext
  18718. LIBS=$ac_check_lib_save_LIBS
  18719. fi
  18720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18721. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18722. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18723. have_xss_lib=yes
  18724. fi
  18725. if test x$have_xss_lib = xyes ; then
  18726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18727. definitely_enable_video_x11_scrnsaver=yes
  18728. fi
  18729. fi
  18730. fi
  18731. fi
  18732. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18733. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18734. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18735. fi
  18736. # Check whether --enable-video-x11-xshape was given.
  18737. if test "${enable_video_x11_xshape+set}" = set; then :
  18738. enableval=$enable_video_x11_xshape;
  18739. else
  18740. enable_video_x11_xshape=yes
  18741. fi
  18742. if test x$enable_video_x11_xshape = xyes; then
  18743. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18744. "
  18745. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18746. have_shape_h_hdr=yes
  18747. else
  18748. have_shape_h_hdr=no
  18749. fi
  18750. if test x$have_shape_h_hdr = xyes; then
  18751. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18752. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18753. fi
  18754. fi
  18755. # Check whether --enable-video-x11-vm was given.
  18756. if test "${enable_video_x11_vm+set}" = set; then :
  18757. enableval=$enable_video_x11_vm;
  18758. else
  18759. enable_video_x11_vm=yes
  18760. fi
  18761. if test x$enable_video_x11_vm = xyes; then
  18762. definitely_enable_video_x11_vm=no
  18763. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18764. "
  18765. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18766. have_vm_h_hdr=yes
  18767. else
  18768. have_vm_h_hdr=no
  18769. fi
  18770. if test x$have_vm_h_hdr = xyes; then
  18771. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18772. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18773. cat >>confdefs.h <<_ACEOF
  18774. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18775. _ACEOF
  18776. definitely_enable_video_x11_vm=yes
  18777. else
  18778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18779. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18780. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18781. $as_echo_n "(cached) " >&6
  18782. else
  18783. ac_check_lib_save_LIBS=$LIBS
  18784. LIBS="-lXxf86vm $LIBS"
  18785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18786. /* end confdefs.h. */
  18787. /* Override any GCC internal prototype to avoid an error.
  18788. Use char because int might match the return type of a GCC
  18789. builtin and then its argument prototype would still apply. */
  18790. #ifdef __cplusplus
  18791. extern "C"
  18792. #endif
  18793. char XF86VidModeQueryVersion ();
  18794. int
  18795. main ()
  18796. {
  18797. return XF86VidModeQueryVersion ();
  18798. ;
  18799. return 0;
  18800. }
  18801. _ACEOF
  18802. if ac_fn_c_try_link "$LINENO"; then :
  18803. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18804. else
  18805. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18806. fi
  18807. rm -f core conftest.err conftest.$ac_objext \
  18808. conftest$ac_exeext conftest.$ac_ext
  18809. LIBS=$ac_check_lib_save_LIBS
  18810. fi
  18811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18812. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18813. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18814. have_vm_lib=yes
  18815. fi
  18816. if test x$have_vm_lib = xyes ; then
  18817. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18818. definitely_enable_video_x11_vm=yes
  18819. fi
  18820. fi
  18821. fi
  18822. fi
  18823. if test x$definitely_enable_video_x11_vm = xyes; then
  18824. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18825. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18826. fi
  18827. fi
  18828. fi
  18829. if test x$have_x != xyes; then
  18830. # Prevent Mesa from including X11 headers
  18831. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18832. fi
  18833. }
  18834. CheckVivanteVideo()
  18835. {
  18836. # Check whether --enable-video-vivante was given.
  18837. if test "${enable_video_vivante+set}" = set; then :
  18838. enableval=$enable_video_vivante;
  18839. else
  18840. enable_video_vivante=yes
  18841. fi
  18842. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18844. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18845. have_vivante_vdk=no
  18846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18847. /* end confdefs.h. */
  18848. #define LINUX
  18849. #define EGL_API_FB
  18850. #include <gc_vdk.h>
  18851. int
  18852. main ()
  18853. {
  18854. ;
  18855. return 0;
  18856. }
  18857. _ACEOF
  18858. if ac_fn_c_try_compile "$LINENO"; then :
  18859. have_vivante_vdk=yes
  18860. fi
  18861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18863. $as_echo "$have_vivante_vdk" >&6; }
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18865. $as_echo_n "checking for Vivante FB API... " >&6; }
  18866. have_vivante_egl=no
  18867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18868. /* end confdefs.h. */
  18869. #define LINUX
  18870. #define EGL_API_FB
  18871. #include <EGL/eglvivante.h>
  18872. int
  18873. main ()
  18874. {
  18875. ;
  18876. return 0;
  18877. }
  18878. _ACEOF
  18879. if ac_fn_c_try_compile "$LINENO"; then :
  18880. have_vivante_egl=yes
  18881. fi
  18882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18884. $as_echo "$have_vivante_egl" >&6; }
  18885. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18886. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18887. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18888. if test x$have_vivante_vdk = xyes; then
  18889. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18890. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18891. fi
  18892. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18893. SUMMARY_video="${SUMMARY_video} vivante"
  18894. have_video=yes
  18895. fi
  18896. fi
  18897. }
  18898. CheckHaikuVideo()
  18899. {
  18900. if test x$enable_video = xyes; then
  18901. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18902. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18903. have_video=yes
  18904. SUMMARY_video="${SUMMARY_video} haiku"
  18905. fi
  18906. }
  18907. CheckCOCOA()
  18908. {
  18909. # Check whether --enable-video-cocoa was given.
  18910. if test "${enable_video_cocoa+set}" = set; then :
  18911. enableval=$enable_video_cocoa;
  18912. else
  18913. enable_video_cocoa=yes
  18914. fi
  18915. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18916. save_CFLAGS="$CFLAGS"
  18917. CFLAGS="$CFLAGS -x objective-c"
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18919. $as_echo_n "checking for Cocoa framework... " >&6; }
  18920. have_cocoa=no
  18921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18922. /* end confdefs.h. */
  18923. #import <Cocoa/Cocoa.h>
  18924. int
  18925. main ()
  18926. {
  18927. ;
  18928. return 0;
  18929. }
  18930. _ACEOF
  18931. if ac_fn_c_try_compile "$LINENO"; then :
  18932. have_cocoa=yes
  18933. fi
  18934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18936. $as_echo "$have_cocoa" >&6; }
  18937. CFLAGS="$save_CFLAGS"
  18938. if test x$have_cocoa = xyes; then
  18939. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18940. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18941. SUMMARY_video="${SUMMARY_video} cocoa"
  18942. have_video=yes
  18943. fi
  18944. fi
  18945. }
  18946. CheckMETAL()
  18947. {
  18948. # Check whether --enable-video-metal was given.
  18949. if test "${enable_video_metal+set}" = set; then :
  18950. enableval=$enable_video_metal;
  18951. else
  18952. enable_video_metal=yes
  18953. fi
  18954. # Check whether --enable-render-metal was given.
  18955. if test "${enable_render_metal+set}" = set; then :
  18956. enableval=$enable_render_metal;
  18957. else
  18958. enable_render_metal=yes
  18959. fi
  18960. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18961. save_CFLAGS="$CFLAGS"
  18962. CFLAGS="$CFLAGS -x objective-c"
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18964. $as_echo_n "checking for Metal framework... " >&6; }
  18965. have_metal=no
  18966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18967. /* end confdefs.h. */
  18968. #import <Cocoa/Cocoa.h>
  18969. #import <Metal/Metal.h>
  18970. #import <QuartzCore/CAMetalLayer.h>
  18971. #if TARGET_CPU_X86
  18972. #error Metal doesn't work on this configuration
  18973. #endif
  18974. int
  18975. main ()
  18976. {
  18977. ;
  18978. return 0;
  18979. }
  18980. _ACEOF
  18981. if ac_fn_c_try_compile "$LINENO"; then :
  18982. have_metal=yes
  18983. fi
  18984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18985. CFLAGS="$save_CFLAGS"
  18986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18987. $as_echo "$have_metal" >&6; }
  18988. if test x$have_metal = xyes; then
  18989. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18990. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18991. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18992. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18993. fi
  18994. SUMMARY_video="${SUMMARY_video} metal"
  18995. else
  18996. enable_video_metal=no
  18997. enable_render_metal=no
  18998. fi
  18999. fi
  19000. }
  19001. CheckDirectFB()
  19002. {
  19003. # Check whether --enable-video-directfb was given.
  19004. if test "${enable_video_directfb+set}" = set; then :
  19005. enableval=$enable_video_directfb;
  19006. else
  19007. enable_video_directfb=no
  19008. fi
  19009. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19010. pkg_failed=no
  19011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19012. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19013. if test -n "$DIRECTFB_CFLAGS"; then
  19014. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19015. elif test -n "$PKG_CONFIG"; then
  19016. if test -n "$PKG_CONFIG" && \
  19017. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19018. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19019. ac_status=$?
  19020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19021. test $ac_status = 0; }; then
  19022. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19023. test "x$?" != "x0" && pkg_failed=yes
  19024. else
  19025. pkg_failed=yes
  19026. fi
  19027. else
  19028. pkg_failed=untried
  19029. fi
  19030. if test -n "$DIRECTFB_LIBS"; then
  19031. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19032. elif test -n "$PKG_CONFIG"; then
  19033. if test -n "$PKG_CONFIG" && \
  19034. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19035. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19036. ac_status=$?
  19037. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19038. test $ac_status = 0; }; then
  19039. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19040. test "x$?" != "x0" && pkg_failed=yes
  19041. else
  19042. pkg_failed=yes
  19043. fi
  19044. else
  19045. pkg_failed=untried
  19046. fi
  19047. if test $pkg_failed = yes; then
  19048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19049. $as_echo "no" >&6; }
  19050. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19051. _pkg_short_errors_supported=yes
  19052. else
  19053. _pkg_short_errors_supported=no
  19054. fi
  19055. if test $_pkg_short_errors_supported = yes; then
  19056. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19057. else
  19058. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19059. fi
  19060. # Put the nasty error message in config.log where it belongs
  19061. echo "$DIRECTFB_PKG_ERRORS" >&5
  19062. video_directfb=no
  19063. elif test $pkg_failed = untried; then
  19064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19065. $as_echo "no" >&6; }
  19066. video_directfb=no
  19067. else
  19068. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19069. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19071. $as_echo "yes" >&6; }
  19072. video_directfb=yes
  19073. fi
  19074. if test x$video_directfb = xyes; then
  19075. # SuSE 11.1 installs directfb-config without directfb-devel
  19076. save_CPPFLAGS="$CPPFLAGS"
  19077. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19078. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19079. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19080. have_directfb_hdr=yes
  19081. else
  19082. have_directfb_hdr=no
  19083. fi
  19084. CPPFLAGS="$save_CPPFLAGS"
  19085. video_directfb=$have_directfb_hdr
  19086. fi
  19087. if test x$video_directfb = xyes; then
  19088. # Check whether --enable-directfb-shared was given.
  19089. if test "${enable_directfb_shared+set}" = set; then :
  19090. enableval=$enable_directfb_shared;
  19091. else
  19092. enable_directfb_shared=yes
  19093. fi
  19094. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19095. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19096. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19097. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19098. directfb_shared=no
  19099. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19100. if test x$have_loadso != xyes && \
  19101. test x$enable_directfb_shared = xyes; then
  19102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19103. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19104. fi
  19105. if test x$have_loadso = xyes && \
  19106. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19107. directfb_shared=yes
  19108. echo "-- dynamic libdirectfb -> $directfb_lib"
  19109. cat >>confdefs.h <<_ACEOF
  19110. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19111. _ACEOF
  19112. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19113. else
  19114. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19115. SUMMARY_video="${SUMMARY_video} directfb"
  19116. fi
  19117. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19118. have_video=yes
  19119. fi
  19120. fi
  19121. }
  19122. CheckKMSDRM()
  19123. {
  19124. # Check whether --enable-video-kmsdrm was given.
  19125. if test "${enable_video_kmsdrm+set}" = set; then :
  19126. enableval=$enable_video_kmsdrm;
  19127. else
  19128. enable_video_kmsdrm=yes
  19129. fi
  19130. if test x$enable_video = xyes && \
  19131. test x$enable_video_kmsdrm = xyes && \
  19132. test x$video_opengl_egl = xyes; then
  19133. video_kmsdrm=no
  19134. pkg_failed=no
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19136. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19137. if test -n "$LIBDRM_CFLAGS"; then
  19138. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19139. elif test -n "$PKG_CONFIG"; then
  19140. if test -n "$PKG_CONFIG" && \
  19141. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19142. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19143. ac_status=$?
  19144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19145. test $ac_status = 0; }; then
  19146. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19147. test "x$?" != "x0" && pkg_failed=yes
  19148. else
  19149. pkg_failed=yes
  19150. fi
  19151. else
  19152. pkg_failed=untried
  19153. fi
  19154. if test -n "$LIBDRM_LIBS"; then
  19155. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19156. elif test -n "$PKG_CONFIG"; then
  19157. if test -n "$PKG_CONFIG" && \
  19158. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19159. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19160. ac_status=$?
  19161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19162. test $ac_status = 0; }; then
  19163. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19164. test "x$?" != "x0" && pkg_failed=yes
  19165. else
  19166. pkg_failed=yes
  19167. fi
  19168. else
  19169. pkg_failed=untried
  19170. fi
  19171. if test $pkg_failed = yes; then
  19172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19173. $as_echo "no" >&6; }
  19174. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19175. _pkg_short_errors_supported=yes
  19176. else
  19177. _pkg_short_errors_supported=no
  19178. fi
  19179. if test $_pkg_short_errors_supported = yes; then
  19180. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19181. else
  19182. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19183. fi
  19184. # Put the nasty error message in config.log where it belongs
  19185. echo "$LIBDRM_PKG_ERRORS" >&5
  19186. libdrm_avail=no
  19187. elif test $pkg_failed = untried; then
  19188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19189. $as_echo "no" >&6; }
  19190. libdrm_avail=no
  19191. else
  19192. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19193. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19195. $as_echo "yes" >&6; }
  19196. libdrm_avail=yes
  19197. fi
  19198. pkg_failed=no
  19199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19200. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19201. if test -n "$LIBGBM_CFLAGS"; then
  19202. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19203. elif test -n "$PKG_CONFIG"; then
  19204. if test -n "$PKG_CONFIG" && \
  19205. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19206. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19207. ac_status=$?
  19208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19209. test $ac_status = 0; }; then
  19210. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19211. test "x$?" != "x0" && pkg_failed=yes
  19212. else
  19213. pkg_failed=yes
  19214. fi
  19215. else
  19216. pkg_failed=untried
  19217. fi
  19218. if test -n "$LIBGBM_LIBS"; then
  19219. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19220. elif test -n "$PKG_CONFIG"; then
  19221. if test -n "$PKG_CONFIG" && \
  19222. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19223. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19224. ac_status=$?
  19225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19226. test $ac_status = 0; }; then
  19227. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19228. test "x$?" != "x0" && pkg_failed=yes
  19229. else
  19230. pkg_failed=yes
  19231. fi
  19232. else
  19233. pkg_failed=untried
  19234. fi
  19235. if test $pkg_failed = yes; then
  19236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19237. $as_echo "no" >&6; }
  19238. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19239. _pkg_short_errors_supported=yes
  19240. else
  19241. _pkg_short_errors_supported=no
  19242. fi
  19243. if test $_pkg_short_errors_supported = yes; then
  19244. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19245. else
  19246. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19247. fi
  19248. # Put the nasty error message in config.log where it belongs
  19249. echo "$LIBGBM_PKG_ERRORS" >&5
  19250. libgbm_avail=no
  19251. elif test $pkg_failed = untried; then
  19252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19253. $as_echo "no" >&6; }
  19254. libgbm_avail=no
  19255. else
  19256. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19257. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19259. $as_echo "yes" >&6; }
  19260. libgbm_avail=yes
  19261. fi
  19262. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19263. video_kmsdrm=yes
  19264. fi
  19265. if test x$video_kmsdrm = xyes; then
  19266. # Check whether --enable-kmsdrm-shared was given.
  19267. if test "${enable_kmsdrm_shared+set}" = set; then :
  19268. enableval=$enable_kmsdrm_shared;
  19269. else
  19270. enable_kmsdrm_shared=yes
  19271. fi
  19272. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19273. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19274. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19276. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19277. kmsdrm_shared=no
  19278. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19279. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19280. if test x$have_loadso != xyes && \
  19281. test x$enable_kmsdrm_shared = xyes; then
  19282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19283. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19284. fi
  19285. if test x$have_loadso = xyes && \
  19286. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19287. kmsdrm_shared=yes
  19288. cat >>confdefs.h <<_ACEOF
  19289. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19290. _ACEOF
  19291. cat >>confdefs.h <<_ACEOF
  19292. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19293. _ACEOF
  19294. cat >>confdefs.h <<_ACEOF
  19295. #define HAVE_KMSDRM_SHARED "TRUE"
  19296. _ACEOF
  19297. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19298. else
  19299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19300. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19301. fi
  19302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19303. $as_echo "$kmsdrm_shared" >&6; }
  19304. if test x$kmsdrm_shared = xyes; then
  19305. echo "-- dynamic libdrm -> $drm_lib"
  19306. echo "-- dynamic libgmb -> $gbm_lib"
  19307. fi
  19308. have_video=yes
  19309. fi
  19310. fi
  19311. }
  19312. CheckDummyVideo()
  19313. {
  19314. # Check whether --enable-video-dummy was given.
  19315. if test "${enable_video_dummy+set}" = set; then :
  19316. enableval=$enable_video_dummy;
  19317. else
  19318. enable_video_dummy=yes
  19319. fi
  19320. if test x$enable_video_dummy = xyes; then
  19321. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19322. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19323. have_video=yes
  19324. SUMMARY_video="${SUMMARY_video} dummy"
  19325. fi
  19326. }
  19327. CheckQNXVideo()
  19328. {
  19329. if test x$enable_video = xyes; then
  19330. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19331. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19332. have_video=yes
  19333. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19334. SUMMARY_video="${SUMMARY_video} qnx"
  19335. fi
  19336. }
  19337. CheckQNXAudio()
  19338. {
  19339. if test x$enable_audio = xyes; then
  19340. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19341. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19342. have_audio=yes
  19343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19344. SUMMARY_audio="${SUMMARY_audio} qsa"
  19345. fi
  19346. }
  19347. # Check whether --enable-video-opengl was given.
  19348. if test "${enable_video_opengl+set}" = set; then :
  19349. enableval=$enable_video_opengl;
  19350. else
  19351. enable_video_opengl=yes
  19352. fi
  19353. CheckGLX()
  19354. {
  19355. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19357. $as_echo_n "checking for GLX support... " >&6; }
  19358. video_opengl_glx=no
  19359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19360. /* end confdefs.h. */
  19361. #include <GL/glx.h>
  19362. int
  19363. main ()
  19364. {
  19365. ;
  19366. return 0;
  19367. }
  19368. _ACEOF
  19369. if ac_fn_c_try_compile "$LINENO"; then :
  19370. video_opengl_glx=yes
  19371. fi
  19372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19374. $as_echo "$video_opengl_glx" >&6; }
  19375. if test x$video_opengl_glx = xyes; then
  19376. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19377. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19378. fi
  19379. fi
  19380. }
  19381. # Check whether --enable-video-opengles was given.
  19382. if test "${enable_video_opengles+set}" = set; then :
  19383. enableval=$enable_video_opengles;
  19384. else
  19385. enable_video_opengles=yes
  19386. fi
  19387. # Check whether --enable-video-opengles1 was given.
  19388. if test "${enable_video_opengles1+set}" = set; then :
  19389. enableval=$enable_video_opengles1;
  19390. else
  19391. enable_video_opengles1=yes
  19392. fi
  19393. # Check whether --enable-video-opengles2 was given.
  19394. if test "${enable_video_opengles2+set}" = set; then :
  19395. enableval=$enable_video_opengles2;
  19396. else
  19397. enable_video_opengles2=yes
  19398. fi
  19399. CheckEGL()
  19400. {
  19401. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19403. $as_echo_n "checking for EGL support... " >&6; }
  19404. video_opengl_egl=no
  19405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19406. /* end confdefs.h. */
  19407. #define LINUX
  19408. #define EGL_API_FB
  19409. #define MESA_EGL_NO_X11_HEADERS
  19410. #define EGL_NO_X11
  19411. #include <EGL/egl.h>
  19412. #include <EGL/eglext.h>
  19413. int
  19414. main ()
  19415. {
  19416. ;
  19417. return 0;
  19418. }
  19419. _ACEOF
  19420. if ac_fn_c_try_compile "$LINENO"; then :
  19421. video_opengl_egl=yes
  19422. fi
  19423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19425. $as_echo "$video_opengl_egl" >&6; }
  19426. if test x$video_opengl_egl = xyes; then
  19427. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19428. fi
  19429. fi
  19430. }
  19431. CheckOpenGL()
  19432. {
  19433. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19435. $as_echo_n "checking for OpenGL headers... " >&6; }
  19436. video_opengl=no
  19437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19438. /* end confdefs.h. */
  19439. #include <GL/gl.h>
  19440. #include <GL/glext.h>
  19441. int
  19442. main ()
  19443. {
  19444. ;
  19445. return 0;
  19446. }
  19447. _ACEOF
  19448. if ac_fn_c_try_compile "$LINENO"; then :
  19449. video_opengl=yes
  19450. fi
  19451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19453. $as_echo "$video_opengl" >&6; }
  19454. if test x$video_opengl = xyes; then
  19455. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19456. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19457. SUMMARY_video="${SUMMARY_video} opengl"
  19458. fi
  19459. fi
  19460. }
  19461. CheckOpenGLES()
  19462. {
  19463. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19464. if test x$enable_video_opengles1 = xyes; then
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19466. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19467. video_opengles_v1=no
  19468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19469. /* end confdefs.h. */
  19470. #include <GLES/gl.h>
  19471. #include <GLES/glext.h>
  19472. int
  19473. main ()
  19474. {
  19475. ;
  19476. return 0;
  19477. }
  19478. _ACEOF
  19479. if ac_fn_c_try_compile "$LINENO"; then :
  19480. video_opengles_v1=yes
  19481. fi
  19482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19484. $as_echo "$video_opengles_v1" >&6; }
  19485. if test x$video_opengles_v1 = xyes; then
  19486. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19487. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19488. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19489. fi
  19490. fi
  19491. if test x$enable_video_opengles2 = xyes; then
  19492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19493. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19494. video_opengles_v2=no
  19495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19496. /* end confdefs.h. */
  19497. #include <GLES2/gl2.h>
  19498. #include <GLES2/gl2ext.h>
  19499. int
  19500. main ()
  19501. {
  19502. ;
  19503. return 0;
  19504. }
  19505. _ACEOF
  19506. if ac_fn_c_try_compile "$LINENO"; then :
  19507. video_opengles_v2=yes
  19508. fi
  19509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19511. $as_echo "$video_opengles_v2" >&6; }
  19512. if test x$video_opengles_v2 = xyes; then
  19513. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19514. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19515. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19516. fi
  19517. fi
  19518. fi
  19519. }
  19520. CheckWINDOWSGL()
  19521. {
  19522. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19523. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19524. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19525. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19526. SUMMARY_video="${SUMMARY_video} opengl"
  19527. fi
  19528. }
  19529. CheckWINDOWSGLES()
  19530. {
  19531. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19533. $as_echo_n "checking for EGL support... " >&6; }
  19534. video_opengl_egl=no
  19535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19536. /* end confdefs.h. */
  19537. #include <EGL/egl.h>
  19538. int
  19539. main ()
  19540. {
  19541. ;
  19542. return 0;
  19543. }
  19544. _ACEOF
  19545. if ac_fn_c_try_compile "$LINENO"; then :
  19546. video_opengl_egl=yes
  19547. fi
  19548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19550. $as_echo "$video_opengl_egl" >&6; }
  19551. if test x$video_opengl_egl = xyes; then
  19552. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19553. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19554. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19555. fi
  19556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19557. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19558. video_opengles_v2=no
  19559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19560. /* end confdefs.h. */
  19561. #include <GLES2/gl2.h>
  19562. #include <GLES2/gl2ext.h>
  19563. int
  19564. main ()
  19565. {
  19566. ;
  19567. return 0;
  19568. }
  19569. _ACEOF
  19570. if ac_fn_c_try_compile "$LINENO"; then :
  19571. video_opengles_v2=yes
  19572. fi
  19573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19575. $as_echo "$video_opengles_v2" >&6; }
  19576. if test x$video_opengles_v2 = xyes; then
  19577. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19578. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19579. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19580. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19581. fi
  19582. fi
  19583. }
  19584. CheckHaikuGL()
  19585. {
  19586. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19587. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19588. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19589. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19590. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19591. SUMMARY_video="${SUMMARY_video} opengl"
  19592. fi
  19593. }
  19594. CheckMacGL()
  19595. {
  19596. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19597. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19598. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19599. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19600. SUMMARY_video="${SUMMARY_video} opengl"
  19601. fi
  19602. }
  19603. CheckMacGLES()
  19604. {
  19605. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19606. video_opengl_egl=yes
  19607. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19608. video_opengles_v2=yes
  19609. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19610. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19611. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19612. fi
  19613. }
  19614. CheckEmscriptenGLES()
  19615. {
  19616. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19618. $as_echo_n "checking for EGL support... " >&6; }
  19619. video_opengl_egl=no
  19620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19621. /* end confdefs.h. */
  19622. #include <EGL/egl.h>
  19623. int
  19624. main ()
  19625. {
  19626. ;
  19627. return 0;
  19628. }
  19629. _ACEOF
  19630. if ac_fn_c_try_compile "$LINENO"; then :
  19631. video_opengl_egl=yes
  19632. fi
  19633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19635. $as_echo "$video_opengl_egl" >&6; }
  19636. if test x$video_opengl_egl = xyes; then
  19637. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19638. fi
  19639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19640. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19641. video_opengles_v2=no
  19642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19643. /* end confdefs.h. */
  19644. #include <GLES2/gl2.h>
  19645. #include <GLES2/gl2ext.h>
  19646. int
  19647. main ()
  19648. {
  19649. ;
  19650. return 0;
  19651. }
  19652. _ACEOF
  19653. if ac_fn_c_try_compile "$LINENO"; then :
  19654. video_opengles_v2=yes
  19655. fi
  19656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19658. $as_echo "$video_opengles_v2" >&6; }
  19659. if test x$video_opengles_v2 = xyes; then
  19660. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19661. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19662. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19663. fi
  19664. fi
  19665. }
  19666. # Check whether --enable-video-vulkan was given.
  19667. if test "${enable_video_vulkan+set}" = set; then :
  19668. enableval=$enable_video_vulkan;
  19669. else
  19670. enable_video_vulkan=yes
  19671. fi
  19672. CheckVulkan()
  19673. {
  19674. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19675. case "$host" in
  19676. *-*-android*)
  19677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19678. /* end confdefs.h. */
  19679. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19680. #error Vulkan doesn't work on this configuration
  19681. #endif
  19682. int
  19683. main ()
  19684. {
  19685. ;
  19686. return 0;
  19687. }
  19688. _ACEOF
  19689. if ac_fn_c_try_compile "$LINENO"; then :
  19690. else
  19691. enable_video_vulkan=no
  19692. fi
  19693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19694. ;;
  19695. *-*-darwin*)
  19696. save_CFLAGS="$CFLAGS"
  19697. CFLAGS="$CFLAGS -x objective-c"
  19698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19699. /* end confdefs.h. */
  19700. #include <Cocoa/Cocoa.h>
  19701. #include <Metal/Metal.h>
  19702. #include <QuartzCore/CAMetalLayer.h>
  19703. #if TARGET_CPU_X86
  19704. #error Vulkan doesn't work on this configuration
  19705. #endif
  19706. int
  19707. main ()
  19708. {
  19709. ;
  19710. return 0;
  19711. }
  19712. _ACEOF
  19713. if ac_fn_c_try_compile "$LINENO"; then :
  19714. else
  19715. enable_video_vulkan=no
  19716. fi
  19717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19718. CFLAGS="$save_CFLAGS"
  19719. ;;
  19720. *)
  19721. ;;
  19722. esac
  19723. if test x$enable_video_vulkan = xno; then
  19724. # For reasons I am totally unable to see, I get an undefined macro error if
  19725. # I put this in the AC_TRY_COMPILE.
  19726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19727. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19728. fi
  19729. fi
  19730. if test x$have_loadso != xyes; then
  19731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  19732. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  19733. enable_video_vulkan=no
  19734. fi
  19735. if test x$enable_video_vulkan = xyes; then
  19736. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19737. SUMMARY_video="${SUMMARY_video} vulkan"
  19738. fi
  19739. }
  19740. CheckInputEvents()
  19741. {
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19743. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19744. use_input_events=no
  19745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19746. /* end confdefs.h. */
  19747. #include <linux/input.h>
  19748. int
  19749. main ()
  19750. {
  19751. #ifndef EVIOCGNAME
  19752. #error EVIOCGNAME() ioctl not available
  19753. #endif
  19754. ;
  19755. return 0;
  19756. }
  19757. _ACEOF
  19758. if ac_fn_c_try_compile "$LINENO"; then :
  19759. use_input_events=yes
  19760. fi
  19761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19763. $as_echo "$use_input_events" >&6; }
  19764. if test x$use_input_events = xyes; then
  19765. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19766. SUMMARY_input="${SUMMARY_input} linuxev"
  19767. fi
  19768. }
  19769. CheckInputKD()
  19770. {
  19771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19772. $as_echo_n "checking for Linux kd.h... " >&6; }
  19773. use_input_kd=no
  19774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19775. /* end confdefs.h. */
  19776. #include <linux/kd.h>
  19777. #include <linux/keyboard.h>
  19778. int
  19779. main ()
  19780. {
  19781. struct kbentry kbe;
  19782. kbe.kb_table = KG_CTRL;
  19783. ioctl(0, KDGKBENT, &kbe);
  19784. ;
  19785. return 0;
  19786. }
  19787. _ACEOF
  19788. if ac_fn_c_try_compile "$LINENO"; then :
  19789. use_input_kd=yes
  19790. fi
  19791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19793. $as_echo "$use_input_kd" >&6; }
  19794. if test x$use_input_kd = xyes; then
  19795. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19796. SUMMARY_input="${SUMMARY_input} linuxkd"
  19797. fi
  19798. }
  19799. CheckInputKBIO()
  19800. {
  19801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19802. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19803. use_input_kbio=no
  19804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19805. /* end confdefs.h. */
  19806. #include <sys/kbio.h>
  19807. #include <sys/ioctl.h>
  19808. int
  19809. main ()
  19810. {
  19811. accentmap_t accTable;
  19812. ioctl(0, KDENABIO, 1);
  19813. ;
  19814. return 0;
  19815. }
  19816. _ACEOF
  19817. if ac_fn_c_try_compile "$LINENO"; then :
  19818. use_input_kbio=yes
  19819. fi
  19820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19822. $as_echo "$use_input_kbio" >&6; }
  19823. if test x$use_input_kbio = xyes; then
  19824. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19825. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19826. fi
  19827. }
  19828. CheckInputWSCONS()
  19829. {
  19830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19831. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19832. use_input_wscons=no
  19833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19834. /* end confdefs.h. */
  19835. #include <sys/time.h>
  19836. #include <dev/wscons/wsconsio.h>
  19837. #include <dev/wscons/wsksymdef.h>
  19838. #include <dev/wscons/wsksymvar.h>
  19839. #include <sys/ioctl.h>
  19840. int
  19841. main ()
  19842. {
  19843. struct wskbd_map_data data;
  19844. ioctl(0, WSKBDIO_GETMAP, &data);
  19845. ;
  19846. return 0;
  19847. }
  19848. _ACEOF
  19849. if ac_fn_c_try_compile "$LINENO"; then :
  19850. use_input_wscons=yes
  19851. fi
  19852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19854. $as_echo "$use_input_wscons" >&6; }
  19855. if test x$use_input_wscons = xyes; then
  19856. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19857. SUMMARY_input="${SUMMARY_input} wscons"
  19858. fi
  19859. }
  19860. CheckLibUDev()
  19861. {
  19862. # Check whether --enable-libudev was given.
  19863. if test "${enable_libudev+set}" = set; then :
  19864. enableval=$enable_libudev;
  19865. else
  19866. enable_libudev=yes
  19867. fi
  19868. if test x$enable_libudev = xyes; then
  19869. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19870. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19871. have_libudev_h_hdr=yes
  19872. else
  19873. have_libudev_h_hdr=no
  19874. fi
  19875. if test x$have_libudev_h_hdr = xyes; then
  19876. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19877. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19878. if test x$udev_lib != x; then
  19879. echo "-- dynamic udev -> $udev_lib"
  19880. cat >>confdefs.h <<_ACEOF
  19881. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19882. _ACEOF
  19883. fi
  19884. fi
  19885. fi
  19886. }
  19887. CheckDBus()
  19888. {
  19889. # Check whether --enable-dbus was given.
  19890. if test "${enable_dbus+set}" = set; then :
  19891. enableval=$enable_dbus;
  19892. else
  19893. enable_dbus=yes
  19894. fi
  19895. if test x$enable_dbus = xyes; then
  19896. pkg_failed=no
  19897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19898. $as_echo_n "checking for dbus-1... " >&6; }
  19899. if test -n "$DBUS_CFLAGS"; then
  19900. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19901. elif test -n "$PKG_CONFIG"; then
  19902. if test -n "$PKG_CONFIG" && \
  19903. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19904. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19905. ac_status=$?
  19906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19907. test $ac_status = 0; }; then
  19908. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19909. test "x$?" != "x0" && pkg_failed=yes
  19910. else
  19911. pkg_failed=yes
  19912. fi
  19913. else
  19914. pkg_failed=untried
  19915. fi
  19916. if test -n "$DBUS_LIBS"; then
  19917. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19918. elif test -n "$PKG_CONFIG"; then
  19919. if test -n "$PKG_CONFIG" && \
  19920. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19921. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19922. ac_status=$?
  19923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19924. test $ac_status = 0; }; then
  19925. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19926. test "x$?" != "x0" && pkg_failed=yes
  19927. else
  19928. pkg_failed=yes
  19929. fi
  19930. else
  19931. pkg_failed=untried
  19932. fi
  19933. if test $pkg_failed = yes; then
  19934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19935. $as_echo "no" >&6; }
  19936. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19937. _pkg_short_errors_supported=yes
  19938. else
  19939. _pkg_short_errors_supported=no
  19940. fi
  19941. if test $_pkg_short_errors_supported = yes; then
  19942. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19943. else
  19944. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19945. fi
  19946. # Put the nasty error message in config.log where it belongs
  19947. echo "$DBUS_PKG_ERRORS" >&5
  19948. have_dbus=no
  19949. elif test $pkg_failed = untried; then
  19950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19951. $as_echo "no" >&6; }
  19952. have_dbus=no
  19953. else
  19954. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19955. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19957. $as_echo "yes" >&6; }
  19958. have_dbus=yes
  19959. fi
  19960. save_CPPFLAGS="$CPPFLAGS"
  19961. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19962. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19963. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19964. have_dbus_dbus_h_hdr=yes
  19965. else
  19966. have_dbus_dbus_h_hdr=no
  19967. fi
  19968. CPPFLAGS="$save_CPPFLAGS"
  19969. if test x$have_dbus_dbus_h_hdr = xyes; then
  19970. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19971. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19972. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19973. fi
  19974. fi
  19975. }
  19976. CheckIME()
  19977. {
  19978. # Check whether --enable-ime was given.
  19979. if test "${enable_ime+set}" = set; then :
  19980. enableval=$enable_ime;
  19981. else
  19982. enable_ime=yes
  19983. fi
  19984. if test x$enable_ime = xyes; then
  19985. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19986. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19987. fi
  19988. }
  19989. CheckInotify()
  19990. {
  19991. save_LIBS="$LIBS"
  19992. case "$host" in
  19993. *-*-freebsd*) LIBS="$LIBS -linotify"
  19994. ;;
  19995. esac
  19996. for ac_header in sys/inotify.h
  19997. do :
  19998. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19999. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20000. cat >>confdefs.h <<_ACEOF
  20001. #define HAVE_SYS_INOTIFY_H 1
  20002. _ACEOF
  20003. have_inotify_inotify_h_hdr=yes
  20004. fi
  20005. done
  20006. for ac_func in inotify_init
  20007. do :
  20008. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20009. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20010. cat >>confdefs.h <<_ACEOF
  20011. #define HAVE_INOTIFY_INIT 1
  20012. _ACEOF
  20013. have_inotify=yes
  20014. fi
  20015. done
  20016. for ac_func in inotify_init1
  20017. do :
  20018. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20019. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20020. cat >>confdefs.h <<_ACEOF
  20021. #define HAVE_INOTIFY_INIT1 1
  20022. _ACEOF
  20023. fi
  20024. done
  20025. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20026. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20027. case "$host" in
  20028. *-*-freebsd*)
  20029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20030. ;;
  20031. esac
  20032. fi
  20033. LIBS="$save_LIBS"
  20034. }
  20035. CheckIBus()
  20036. {
  20037. # Check whether --enable-ibus was given.
  20038. if test "${enable_ibus+set}" = set; then :
  20039. enableval=$enable_ibus;
  20040. else
  20041. enable_ibus=yes
  20042. fi
  20043. if test x$enable_ibus = xyes; then
  20044. pkg_failed=no
  20045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20046. $as_echo_n "checking for ibus-1.0... " >&6; }
  20047. if test -n "$IBUS_CFLAGS"; then
  20048. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20049. elif test -n "$PKG_CONFIG"; then
  20050. if test -n "$PKG_CONFIG" && \
  20051. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20052. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20053. ac_status=$?
  20054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20055. test $ac_status = 0; }; then
  20056. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20057. test "x$?" != "x0" && pkg_failed=yes
  20058. else
  20059. pkg_failed=yes
  20060. fi
  20061. else
  20062. pkg_failed=untried
  20063. fi
  20064. if test -n "$IBUS_LIBS"; then
  20065. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20066. elif test -n "$PKG_CONFIG"; then
  20067. if test -n "$PKG_CONFIG" && \
  20068. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20069. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20070. ac_status=$?
  20071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20072. test $ac_status = 0; }; then
  20073. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20074. test "x$?" != "x0" && pkg_failed=yes
  20075. else
  20076. pkg_failed=yes
  20077. fi
  20078. else
  20079. pkg_failed=untried
  20080. fi
  20081. if test $pkg_failed = yes; then
  20082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20083. $as_echo "no" >&6; }
  20084. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20085. _pkg_short_errors_supported=yes
  20086. else
  20087. _pkg_short_errors_supported=no
  20088. fi
  20089. if test $_pkg_short_errors_supported = yes; then
  20090. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20091. else
  20092. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20093. fi
  20094. # Put the nasty error message in config.log where it belongs
  20095. echo "$IBUS_PKG_ERRORS" >&5
  20096. have_ibus=no
  20097. elif test $pkg_failed = untried; then
  20098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20099. $as_echo "no" >&6; }
  20100. have_ibus=no
  20101. else
  20102. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20103. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20105. $as_echo "yes" >&6; }
  20106. have_ibus=yes
  20107. fi
  20108. save_CPPFLAGS="$CPPFLAGS"
  20109. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20110. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20111. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20112. have_ibus_ibus_h_hdr=yes
  20113. else
  20114. have_ibus_ibus_h_hdr=no
  20115. fi
  20116. CPPFLAGS="$save_CPPFLAGS"
  20117. if test x$have_ibus_ibus_h_hdr = xyes; then
  20118. if test x$enable_ime != xyes; then
  20119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20120. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20121. have_ibus_ibus_h_hdr=no
  20122. elif test x$enable_dbus != xyes; then
  20123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20124. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20125. have_ibus_ibus_h_hdr=no
  20126. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20128. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20129. have_ibus_ibus_h_hdr=no
  20130. else
  20131. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20132. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20133. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20134. fi
  20135. fi
  20136. fi
  20137. }
  20138. CheckFcitx()
  20139. {
  20140. # Check whether --enable-fcitx was given.
  20141. if test "${enable_fcitx+set}" = set; then :
  20142. enableval=$enable_fcitx;
  20143. else
  20144. enable_fcitx=yes
  20145. fi
  20146. if test x$enable_fcitx = xyes; then
  20147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20148. $as_echo_n "checking for fcitx support... " >&6; }
  20149. have_fcitx=no
  20150. if test x$enable_ime != xyes; then
  20151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20152. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20153. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20155. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20156. else
  20157. have_fcitx=yes
  20158. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20159. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20160. fi
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20162. $as_echo "$have_fcitx" >&6; }
  20163. fi
  20164. }
  20165. CheckJoystickMFI()
  20166. {
  20167. # Check whether --enable-joystick-mfi was given.
  20168. if test "${enable_joystick_mfi+set}" = set; then :
  20169. enableval=$enable_joystick_mfi;
  20170. else
  20171. enable_joystick_mfi=yes
  20172. fi
  20173. if test x$enable_joystick_mfi = xyes; then
  20174. save_CFLAGS="$CFLAGS"
  20175. save_LDFLAGS="$LDFLAGS"
  20176. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20177. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20179. $as_echo_n "checking for GameController framework... " >&6; }
  20180. enable_joystick_mfi=no
  20181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20182. /* end confdefs.h. */
  20183. #include <AvailabilityMacros.h>
  20184. #include <TargetConditionals.h>
  20185. #import <GameController/GameController.h>
  20186. int
  20187. main ()
  20188. {
  20189. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20190. #error GameController framework doesn't work on this configuration
  20191. #endif
  20192. #if TARGET_CPU_X86
  20193. #error GameController framework doesn't work on this configuration
  20194. #endif
  20195. ;
  20196. return 0;
  20197. }
  20198. _ACEOF
  20199. if ac_fn_c_try_link "$LINENO"; then :
  20200. enable_joystick_mfi=yes
  20201. fi
  20202. rm -f core conftest.err conftest.$ac_objext \
  20203. conftest$ac_exeext conftest.$ac_ext
  20204. CFLAGS="$save_CFLAGS"
  20205. LDFLAGS="$save_LDFLAGS"
  20206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20207. $as_echo "$enable_joystick_mfi" >&6; }
  20208. if test x$enable_joystick_mfi = xyes; then
  20209. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20210. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20212. fi
  20213. fi
  20214. }
  20215. CheckPTHREAD()
  20216. {
  20217. case "$host" in
  20218. *-*-emscripten*)
  20219. enable_pthreads_default=no
  20220. ;;
  20221. *)
  20222. enable_pthreads_default=yes
  20223. ;;
  20224. esac
  20225. # Check whether --enable-pthreads was given.
  20226. if test "${enable_pthreads+set}" = set; then :
  20227. enableval=$enable_pthreads;
  20228. else
  20229. enable_pthreads=maybe
  20230. fi
  20231. # Check whether --enable-pthread-sem was given.
  20232. if test "${enable_pthread_sem+set}" = set; then :
  20233. enableval=$enable_pthread_sem;
  20234. else
  20235. enable_pthread_sem=maybe
  20236. fi
  20237. if test x$enable_pthreads = xmaybe; then
  20238. enable_pthreads=$enable_pthreads_default
  20239. fi
  20240. if test x$enable_pthread_sem = xmaybe; then
  20241. enable_pthread_sem=$enable_pthreads
  20242. fi
  20243. case "$host" in
  20244. *-*-android*)
  20245. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20246. pthread_lib=""
  20247. ;;
  20248. *-*-linux*|*-*-uclinux*)
  20249. pthread_cflags="-D_REENTRANT"
  20250. pthread_lib="-lpthread"
  20251. ;;
  20252. *-*-bsdi*)
  20253. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20254. pthread_lib=""
  20255. ;;
  20256. *-*-darwin*)
  20257. pthread_cflags="-D_THREAD_SAFE"
  20258. # causes Carbon.p complaints?
  20259. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20260. ;;
  20261. *-*-freebsd*|*-*-dragonfly*)
  20262. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20263. pthread_lib="-pthread"
  20264. ;;
  20265. *-*-netbsd*)
  20266. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20267. pthread_lib="-lpthread"
  20268. ;;
  20269. *-*-openbsd*)
  20270. pthread_cflags="-D_REENTRANT"
  20271. pthread_lib="-pthread"
  20272. ;;
  20273. *-*-solaris2.9)
  20274. # From Solaris 9+, posix4's preferred name is rt.
  20275. pthread_cflags="-D_REENTRANT"
  20276. pthread_lib="-lpthread -lrt"
  20277. ;;
  20278. *-*-solaris2.10)
  20279. # Solaris 10+ merged pthread into libc.
  20280. pthread_cflags="-D_REENTRANT"
  20281. pthread_lib="-lrt"
  20282. ;;
  20283. *-*-solaris*)
  20284. # Solaris 11+ merged rt into libc.
  20285. pthread_cflags="-D_REENTRANT"
  20286. pthread_lib=""
  20287. ;;
  20288. *-*-sysv5*)
  20289. pthread_cflags="-D_REENTRANT -Kthread"
  20290. pthread_lib=""
  20291. ;;
  20292. *-*-aix*)
  20293. pthread_cflags="-D_REENTRANT -mthreads"
  20294. pthread_lib="-lpthread"
  20295. ;;
  20296. *-*-hpux11*)
  20297. pthread_cflags="-D_REENTRANT"
  20298. pthread_lib="-L/usr/lib -lpthread"
  20299. ;;
  20300. *-*-haiku*)
  20301. pthread_cflags="-D_REENTRANT"
  20302. pthread_lib=""
  20303. ;;
  20304. *-*-nto*)
  20305. pthread_cflags="-D_REENTRANT"
  20306. pthread_lib=""
  20307. ;;
  20308. *-*-emscripten*)
  20309. pthread_cflags="-D_REENTRANT -pthread"
  20310. pthread_lib="-pthread"
  20311. ;;
  20312. *)
  20313. pthread_cflags="-D_REENTRANT"
  20314. pthread_lib="-lpthread"
  20315. ;;
  20316. esac
  20317. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20318. # Save the original compiler flags and libraries
  20319. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20320. # Add the pthread compiler flags and libraries
  20321. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20322. # Check to see if we have pthread support on this system
  20323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20324. $as_echo_n "checking for pthreads... " >&6; }
  20325. use_pthreads=no
  20326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20327. /* end confdefs.h. */
  20328. #include <pthread.h>
  20329. int
  20330. main ()
  20331. {
  20332. pthread_attr_t type;
  20333. pthread_attr_init(&type);
  20334. ;
  20335. return 0;
  20336. }
  20337. _ACEOF
  20338. if ac_fn_c_try_link "$LINENO"; then :
  20339. use_pthreads=yes
  20340. fi
  20341. rm -f core conftest.err conftest.$ac_objext \
  20342. conftest$ac_exeext conftest.$ac_ext
  20343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20344. $as_echo "$use_pthreads" >&6; }
  20345. # Restore the compiler flags and libraries
  20346. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20347. # Do futher testing if we have pthread support...
  20348. if test x$use_pthreads = xyes; then
  20349. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20350. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20352. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20353. # Save the original compiler flags and libraries
  20354. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20355. # Add the pthread compiler flags and libraries
  20356. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20357. # Check to see if recursive mutexes are available
  20358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20359. $as_echo_n "checking for recursive mutexes... " >&6; }
  20360. has_recursive_mutexes=no
  20361. if test x$has_recursive_mutexes = xno; then
  20362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20363. /* end confdefs.h. */
  20364. #define _GNU_SOURCE 1
  20365. #include <pthread.h>
  20366. int
  20367. main ()
  20368. {
  20369. pthread_mutexattr_t attr;
  20370. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20371. ;
  20372. return 0;
  20373. }
  20374. _ACEOF
  20375. if ac_fn_c_try_link "$LINENO"; then :
  20376. has_recursive_mutexes=yes
  20377. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20378. fi
  20379. rm -f core conftest.err conftest.$ac_objext \
  20380. conftest$ac_exeext conftest.$ac_ext
  20381. fi
  20382. if test x$has_recursive_mutexes = xno; then
  20383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20384. /* end confdefs.h. */
  20385. #define _GNU_SOURCE 1
  20386. #include <pthread.h>
  20387. int
  20388. main ()
  20389. {
  20390. pthread_mutexattr_t attr;
  20391. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20392. ;
  20393. return 0;
  20394. }
  20395. _ACEOF
  20396. if ac_fn_c_try_link "$LINENO"; then :
  20397. has_recursive_mutexes=yes
  20398. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20399. fi
  20400. rm -f core conftest.err conftest.$ac_objext \
  20401. conftest$ac_exeext conftest.$ac_ext
  20402. fi
  20403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20404. $as_echo "$has_recursive_mutexes" >&6; }
  20405. # Check to see if pthread semaphore support is missing
  20406. if test x$enable_pthread_sem = xyes; then
  20407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20408. $as_echo_n "checking for pthread semaphores... " >&6; }
  20409. have_pthread_sem=no
  20410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20411. /* end confdefs.h. */
  20412. #include <pthread.h>
  20413. #include <semaphore.h>
  20414. int
  20415. main ()
  20416. {
  20417. ;
  20418. return 0;
  20419. }
  20420. _ACEOF
  20421. if ac_fn_c_try_compile "$LINENO"; then :
  20422. have_pthread_sem=yes
  20423. fi
  20424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20426. $as_echo "$have_pthread_sem" >&6; }
  20427. fi
  20428. if test x$have_pthread_sem = xyes; then
  20429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20430. $as_echo_n "checking for sem_timedwait... " >&6; }
  20431. have_sem_timedwait=no
  20432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20433. /* end confdefs.h. */
  20434. #include <pthread.h>
  20435. #include <semaphore.h>
  20436. int
  20437. main ()
  20438. {
  20439. sem_timedwait(NULL, NULL);
  20440. ;
  20441. return 0;
  20442. }
  20443. _ACEOF
  20444. if ac_fn_c_try_link "$LINENO"; then :
  20445. have_sem_timedwait=yes
  20446. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20447. fi
  20448. rm -f core conftest.err conftest.$ac_objext \
  20449. conftest$ac_exeext conftest.$ac_ext
  20450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20451. $as_echo "$have_sem_timedwait" >&6; }
  20452. fi
  20453. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20454. "
  20455. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20456. have_pthread_np_h=yes
  20457. else
  20458. have_pthread_np_h=no
  20459. fi
  20460. if test x$have_pthread_np_h = xyes; then
  20461. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20462. fi
  20463. # Check to see if pthread naming is available
  20464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20465. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20467. /* end confdefs.h. */
  20468. /* Override any GCC internal prototype to avoid an error.
  20469. Use char because int might match the return type of a GCC
  20470. builtin and then its argument prototype would still apply. */
  20471. #ifdef __cplusplus
  20472. extern "C"
  20473. #endif
  20474. char pthread_setname_np ();
  20475. int
  20476. main ()
  20477. {
  20478. return pthread_setname_np ();
  20479. ;
  20480. return 0;
  20481. }
  20482. _ACEOF
  20483. if ac_fn_c_try_link "$LINENO"; then :
  20484. has_pthread_setname_np=yes
  20485. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20486. else
  20487. has_pthread_setname_np=no
  20488. fi
  20489. rm -f core conftest.err conftest.$ac_objext \
  20490. conftest$ac_exeext conftest.$ac_ext
  20491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20492. $as_echo "$has_pthread_setname_np" >&6; }
  20493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20494. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20496. /* end confdefs.h. */
  20497. /* Override any GCC internal prototype to avoid an error.
  20498. Use char because int might match the return type of a GCC
  20499. builtin and then its argument prototype would still apply. */
  20500. #ifdef __cplusplus
  20501. extern "C"
  20502. #endif
  20503. char pthread_set_name_np ();
  20504. int
  20505. main ()
  20506. {
  20507. return pthread_set_name_np ();
  20508. ;
  20509. return 0;
  20510. }
  20511. _ACEOF
  20512. if ac_fn_c_try_link "$LINENO"; then :
  20513. has_pthread_set_name_np=yes
  20514. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20515. else
  20516. has_pthread_set_name_np=no
  20517. fi
  20518. rm -f core conftest.err conftest.$ac_objext \
  20519. conftest$ac_exeext conftest.$ac_ext
  20520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20521. $as_echo "$has_pthread_set_name_np" >&6; }
  20522. # Restore the compiler flags and libraries
  20523. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20524. # Basic thread creation functions
  20525. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20526. # Semaphores
  20527. # We can fake these with mutexes and condition variables if necessary
  20528. if test x$have_pthread_sem = xyes; then
  20529. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20530. else
  20531. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20532. fi
  20533. # Mutexes
  20534. # We can fake these with semaphores if necessary
  20535. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20536. # Condition variables
  20537. # We can fake these with semaphores and mutexes if necessary
  20538. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20539. # Thread local storage
  20540. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20541. have_threads=yes
  20542. fi
  20543. fi
  20544. }
  20545. CheckWINDOWS()
  20546. {
  20547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20548. $as_echo_n "checking Windows compiler... " >&6; }
  20549. have_win32_gcc=no
  20550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20551. /* end confdefs.h. */
  20552. #include <windows.h>
  20553. int
  20554. main ()
  20555. {
  20556. ;
  20557. return 0;
  20558. }
  20559. _ACEOF
  20560. if ac_fn_c_try_compile "$LINENO"; then :
  20561. have_win32_gcc=yes
  20562. fi
  20563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20565. $as_echo "$have_win32_gcc" >&6; }
  20566. if test x$have_win32_gcc != xyes; then
  20567. as_fn_error $? "
  20568. *** Your compiler ($CC) does not produce Windows executables!
  20569. " "$LINENO" 5
  20570. fi
  20571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20572. $as_echo_n "checking Windows CE... " >&6; }
  20573. have_wince=no
  20574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20575. /* end confdefs.h. */
  20576. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20577. #error This is not Windows CE
  20578. #endif
  20579. int
  20580. main ()
  20581. {
  20582. ;
  20583. return 0;
  20584. }
  20585. _ACEOF
  20586. if ac_fn_c_try_compile "$LINENO"; then :
  20587. have_wince=yes
  20588. as_fn_error $? "
  20589. *** Sorry, Windows CE is no longer supported.
  20590. " "$LINENO" 5
  20591. fi
  20592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20594. $as_echo "$have_wince" >&6; }
  20595. # This fixes Windows stack alignment with newer GCC
  20596. CheckStackBoundary
  20597. }
  20598. CheckDIRECTX()
  20599. {
  20600. # Check whether --enable-directx was given.
  20601. if test "${enable_directx+set}" = set; then :
  20602. enableval=$enable_directx;
  20603. else
  20604. enable_directx=yes
  20605. fi
  20606. if test x$enable_directx = xyes; then
  20607. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20608. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20609. have_d3d=yes
  20610. fi
  20611. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20612. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20613. have_d3d11=yes
  20614. fi
  20615. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20616. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20617. have_ddraw=yes
  20618. fi
  20619. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20620. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20621. have_dsound=yes
  20622. fi
  20623. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20624. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20625. have_dinput=yes
  20626. fi
  20627. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20628. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20629. have_dxgi=yes
  20630. fi
  20631. if test x$have_ddraw = xyes; then
  20632. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20633. fi
  20634. if test x$have_dinput = xyes; then
  20635. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20636. fi
  20637. if test x$have_dsound = xyes; then
  20638. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20639. fi
  20640. if test x$have_dxgi = xyes; then
  20641. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20642. fi
  20643. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20644. # FIXME: ...so force it off for now.
  20645. case "$host" in
  20646. *-*-cygwin*)
  20647. have_dinput=false
  20648. ;;
  20649. esac
  20650. fi
  20651. # Check whether --enable-xinput was given.
  20652. if test "${enable_xinput+set}" = set; then :
  20653. enableval=$enable_xinput;
  20654. else
  20655. enable_xinput=yes
  20656. fi
  20657. if test x$enable_xinput = xyes; then
  20658. have_xinput_gamepadex=no
  20659. have_xinput_stateex=no
  20660. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20661. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20662. have_xinput=yes
  20663. fi
  20664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20665. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20667. /* end confdefs.h. */
  20668. #include <windows.h>
  20669. #include <xinput.h>
  20670. XINPUT_GAMEPAD_EX x1;
  20671. int
  20672. main ()
  20673. {
  20674. ;
  20675. return 0;
  20676. }
  20677. _ACEOF
  20678. if ac_fn_c_try_compile "$LINENO"; then :
  20679. have_xinput_gamepadex=yes
  20680. fi
  20681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20683. $as_echo "$have_xinput_gamepadex" >&6; }
  20684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20685. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20687. /* end confdefs.h. */
  20688. #include <windows.h>
  20689. #include <xinput.h>
  20690. XINPUT_STATE_EX s1;
  20691. int
  20692. main ()
  20693. {
  20694. ;
  20695. return 0;
  20696. }
  20697. _ACEOF
  20698. if ac_fn_c_try_compile "$LINENO"; then :
  20699. have_xinput_stateex=yes
  20700. fi
  20701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20703. $as_echo "$have_xinput_stateex" >&6; }
  20704. if test x$have_xinput = xyes; then
  20705. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20706. fi
  20707. if test x$have_xinput_gamepadex = xyes; then
  20708. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20709. fi
  20710. if test x$have_xinput_stateex = xyes; then
  20711. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20712. fi
  20713. fi
  20714. ac_fn_c_check_header_mongrel "$LINENO" "windows.gaming.input.h" "ac_cv_header_windows_gaming_input_h" "$ac_includes_default"
  20715. if test "x$ac_cv_header_windows_gaming_input_h" = xyes; then :
  20716. have_wgi=yes
  20717. fi
  20718. if test x$have_wgi = xyes; then
  20719. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  20720. fi
  20721. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20722. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20723. have_wasapi=yes
  20724. fi
  20725. if test x$have_wasapi = xyes; then
  20726. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20727. fi
  20728. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20729. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20730. else
  20731. have_wasapi=no
  20732. fi
  20733. if test x$have_wasapi = xyes; then
  20734. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20735. fi
  20736. # Check whether --enable-wasapi was given.
  20737. if test "${enable_wasapi+set}" = set; then :
  20738. enableval=$enable_wasapi;
  20739. else
  20740. enable_wasapi=yes
  20741. fi
  20742. }
  20743. CheckDLOPEN()
  20744. {
  20745. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  20746. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  20747. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  20748. have_dlfcn_h=yes
  20749. else
  20750. have_dlfcn_h=no
  20751. fi
  20752. have_dlopen=no
  20753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20754. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20755. if ${ac_cv_lib_c_dlopen+:} false; then :
  20756. $as_echo_n "(cached) " >&6
  20757. else
  20758. ac_check_lib_save_LIBS=$LIBS
  20759. LIBS="-lc $LIBS"
  20760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20761. /* end confdefs.h. */
  20762. /* Override any GCC internal prototype to avoid an error.
  20763. Use char because int might match the return type of a GCC
  20764. builtin and then its argument prototype would still apply. */
  20765. #ifdef __cplusplus
  20766. extern "C"
  20767. #endif
  20768. char dlopen ();
  20769. int
  20770. main ()
  20771. {
  20772. return dlopen ();
  20773. ;
  20774. return 0;
  20775. }
  20776. _ACEOF
  20777. if ac_fn_c_try_link "$LINENO"; then :
  20778. ac_cv_lib_c_dlopen=yes
  20779. else
  20780. ac_cv_lib_c_dlopen=no
  20781. fi
  20782. rm -f core conftest.err conftest.$ac_objext \
  20783. conftest$ac_exeext conftest.$ac_ext
  20784. LIBS=$ac_check_lib_save_LIBS
  20785. fi
  20786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20787. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20788. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20789. have_dlopen=yes
  20790. else
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20792. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20793. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20794. $as_echo_n "(cached) " >&6
  20795. else
  20796. ac_check_lib_save_LIBS=$LIBS
  20797. LIBS="-ldl $LIBS"
  20798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20799. /* end confdefs.h. */
  20800. /* Override any GCC internal prototype to avoid an error.
  20801. Use char because int might match the return type of a GCC
  20802. builtin and then its argument prototype would still apply. */
  20803. #ifdef __cplusplus
  20804. extern "C"
  20805. #endif
  20806. char dlopen ();
  20807. int
  20808. main ()
  20809. {
  20810. return dlopen ();
  20811. ;
  20812. return 0;
  20813. }
  20814. _ACEOF
  20815. if ac_fn_c_try_link "$LINENO"; then :
  20816. ac_cv_lib_dl_dlopen=yes
  20817. else
  20818. ac_cv_lib_dl_dlopen=no
  20819. fi
  20820. rm -f core conftest.err conftest.$ac_objext \
  20821. conftest$ac_exeext conftest.$ac_ext
  20822. LIBS=$ac_check_lib_save_LIBS
  20823. fi
  20824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20825. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20826. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20827. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20828. fi
  20829. fi
  20830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20831. $as_echo_n "checking for dlopen... " >&6; }
  20832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20833. $as_echo "$have_dlopen" >&6; }
  20834. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  20835. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  20836. if test x$enable_loadso = xyes; then
  20837. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20838. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20839. have_loadso=yes
  20840. fi
  20841. fi
  20842. }
  20843. CheckUSBHID()
  20844. {
  20845. case "$host" in
  20846. *-*-*bsd*|*-*-dragonfly*)
  20847. if test x$enable_joystick = xyes; then
  20848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20849. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20850. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20851. $as_echo_n "(cached) " >&6
  20852. else
  20853. ac_check_lib_save_LIBS=$LIBS
  20854. LIBS="-lusbhid $LIBS"
  20855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20856. /* end confdefs.h. */
  20857. /* Override any GCC internal prototype to avoid an error.
  20858. Use char because int might match the return type of a GCC
  20859. builtin and then its argument prototype would still apply. */
  20860. #ifdef __cplusplus
  20861. extern "C"
  20862. #endif
  20863. char hid_init ();
  20864. int
  20865. main ()
  20866. {
  20867. return hid_init ();
  20868. ;
  20869. return 0;
  20870. }
  20871. _ACEOF
  20872. if ac_fn_c_try_link "$LINENO"; then :
  20873. ac_cv_lib_usbhid_hid_init=yes
  20874. else
  20875. ac_cv_lib_usbhid_hid_init=no
  20876. fi
  20877. rm -f core conftest.err conftest.$ac_objext \
  20878. conftest$ac_exeext conftest.$ac_ext
  20879. LIBS=$ac_check_lib_save_LIBS
  20880. fi
  20881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20882. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20883. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20884. have_libusbhid=yes
  20885. fi
  20886. if test x$have_libusbhid = xyes; then
  20887. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20888. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20889. USB_CFLAGS="-DHAVE_USBHID_H"
  20890. fi
  20891. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20892. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20893. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20894. fi
  20895. USB_LIBS="$USB_LIBS -lusbhid"
  20896. else
  20897. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20898. if test "x$ac_cv_header_usb_h" = xyes; then :
  20899. USB_CFLAGS="-DHAVE_USB_H"
  20900. fi
  20901. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20902. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20903. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20904. fi
  20905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20906. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20907. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20908. $as_echo_n "(cached) " >&6
  20909. else
  20910. ac_check_lib_save_LIBS=$LIBS
  20911. LIBS="-lusb $LIBS"
  20912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20913. /* end confdefs.h. */
  20914. /* Override any GCC internal prototype to avoid an error.
  20915. Use char because int might match the return type of a GCC
  20916. builtin and then its argument prototype would still apply. */
  20917. #ifdef __cplusplus
  20918. extern "C"
  20919. #endif
  20920. char hid_init ();
  20921. int
  20922. main ()
  20923. {
  20924. return hid_init ();
  20925. ;
  20926. return 0;
  20927. }
  20928. _ACEOF
  20929. if ac_fn_c_try_link "$LINENO"; then :
  20930. ac_cv_lib_usb_hid_init=yes
  20931. else
  20932. ac_cv_lib_usb_hid_init=no
  20933. fi
  20934. rm -f core conftest.err conftest.$ac_objext \
  20935. conftest$ac_exeext conftest.$ac_ext
  20936. LIBS=$ac_check_lib_save_LIBS
  20937. fi
  20938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20939. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20940. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20941. USB_LIBS="$USB_LIBS -lusb"
  20942. fi
  20943. fi
  20944. save_CFLAGS="$CFLAGS"
  20945. CFLAGS="$CFLAGS $USB_CFLAGS"
  20946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20947. $as_echo_n "checking for usbhid... " >&6; }
  20948. have_usbhid=no
  20949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20950. /* end confdefs.h. */
  20951. #include <sys/types.h>
  20952. #if defined(HAVE_USB_H)
  20953. #include <usb.h>
  20954. #endif
  20955. #ifdef __DragonFly__
  20956. # include <bus/u4b/usb.h>
  20957. # include <bus/u4b/usbhid.h>
  20958. #else
  20959. # include <dev/usb/usb.h>
  20960. # include <dev/usb/usbhid.h>
  20961. #endif
  20962. #if defined(HAVE_USBHID_H)
  20963. #include <usbhid.h>
  20964. #elif defined(HAVE_LIBUSB_H)
  20965. #include <libusb.h>
  20966. #elif defined(HAVE_LIBUSBHID_H)
  20967. #include <libusbhid.h>
  20968. #endif
  20969. int
  20970. main ()
  20971. {
  20972. struct report_desc *repdesc;
  20973. struct usb_ctl_report *repbuf;
  20974. hid_kind_t hidkind;
  20975. ;
  20976. return 0;
  20977. }
  20978. _ACEOF
  20979. if ac_fn_c_try_compile "$LINENO"; then :
  20980. have_usbhid=yes
  20981. fi
  20982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20984. $as_echo "$have_usbhid" >&6; }
  20985. if test x$have_usbhid = xyes; then
  20986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20987. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20988. have_usbhid_ucr_data=no
  20989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20990. /* end confdefs.h. */
  20991. #include <sys/types.h>
  20992. #if defined(HAVE_USB_H)
  20993. #include <usb.h>
  20994. #endif
  20995. #ifdef __DragonFly__
  20996. # include <bus/u4b/usb.h>
  20997. # include <bus/u4b/usbhid.h>
  20998. #else
  20999. # include <dev/usb/usb.h>
  21000. # include <dev/usb/usbhid.h>
  21001. #endif
  21002. #if defined(HAVE_USBHID_H)
  21003. #include <usbhid.h>
  21004. #elif defined(HAVE_LIBUSB_H)
  21005. #include <libusb.h>
  21006. #elif defined(HAVE_LIBUSBHID_H)
  21007. #include <libusbhid.h>
  21008. #endif
  21009. int
  21010. main ()
  21011. {
  21012. struct usb_ctl_report buf;
  21013. if (buf.ucr_data) { }
  21014. ;
  21015. return 0;
  21016. }
  21017. _ACEOF
  21018. if ac_fn_c_try_compile "$LINENO"; then :
  21019. have_usbhid_ucr_data=yes
  21020. fi
  21021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21022. if test x$have_usbhid_ucr_data = xyes; then
  21023. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21024. fi
  21025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21026. $as_echo "$have_usbhid_ucr_data" >&6; }
  21027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21028. $as_echo_n "checking for new usbhid API... " >&6; }
  21029. have_usbhid_new=no
  21030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21031. /* end confdefs.h. */
  21032. #include <sys/types.h>
  21033. #if defined(HAVE_USB_H)
  21034. #include <usb.h>
  21035. #endif
  21036. #ifdef __DragonFly__
  21037. #include <bus/u4b/usb.h>
  21038. #include <bus/u4b/usbhid.h>
  21039. #else
  21040. #include <dev/usb/usb.h>
  21041. #include <dev/usb/usbhid.h>
  21042. #endif
  21043. #if defined(HAVE_USBHID_H)
  21044. #include <usbhid.h>
  21045. #elif defined(HAVE_LIBUSB_H)
  21046. #include <libusb.h>
  21047. #elif defined(HAVE_LIBUSBHID_H)
  21048. #include <libusbhid.h>
  21049. #endif
  21050. int
  21051. main ()
  21052. {
  21053. report_desc_t d;
  21054. hid_start_parse(d, 1, 1);
  21055. ;
  21056. return 0;
  21057. }
  21058. _ACEOF
  21059. if ac_fn_c_try_compile "$LINENO"; then :
  21060. have_usbhid_new=yes
  21061. fi
  21062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21063. if test x$have_usbhid_new = xyes; then
  21064. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21065. fi
  21066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21067. $as_echo "$have_usbhid_new" >&6; }
  21068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21069. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21070. have_machine_joystick=no
  21071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21072. /* end confdefs.h. */
  21073. #include <machine/joystick.h>
  21074. int
  21075. main ()
  21076. {
  21077. struct joystick t;
  21078. ;
  21079. return 0;
  21080. }
  21081. _ACEOF
  21082. if ac_fn_c_try_compile "$LINENO"; then :
  21083. have_machine_joystick=yes
  21084. fi
  21085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21086. if test x$have_machine_joystick = xyes; then
  21087. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21088. fi
  21089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21090. $as_echo "$have_machine_joystick" >&6; }
  21091. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21092. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21093. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21095. have_joystick=yes
  21096. fi
  21097. CFLAGS="$save_CFLAGS"
  21098. fi
  21099. ;;
  21100. esac
  21101. }
  21102. CheckHIDAPI()
  21103. {
  21104. # Check whether --enable-hidapi-joystick was given.
  21105. if test "${enable_hidapi_joystick+set}" = set; then :
  21106. enableval=$enable_hidapi_joystick;
  21107. else
  21108. enable_hidapi_joystick=yes
  21109. fi
  21110. # Check whether --enable-hidapi-libusb was given.
  21111. if test "${enable_hidapi_libusb+set}" = set; then :
  21112. enableval=$enable_hidapi_libusb;
  21113. else
  21114. enable_hidapi_libusb=maybe
  21115. fi
  21116. if test x$enable_hidapi = xyes; then
  21117. case "$host" in
  21118. # libusb does not support iOS
  21119. *-ios-* )
  21120. enable_hidapi_libusb=no
  21121. ;;
  21122. # On the other hand, *BSD specifically uses libusb only
  21123. *-*-*bsd* )
  21124. enable_hidapi_libusb=yes
  21125. require_hidapi_libusb=yes
  21126. ;;
  21127. esac
  21128. hidapi_support=yes
  21129. if test x$enable_hidapi_libusb = xyes; then
  21130. pkg_failed=no
  21131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21132. $as_echo_n "checking for libusb-1.0... " >&6; }
  21133. if test -n "$LIBUSB_CFLAGS"; then
  21134. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21135. elif test -n "$PKG_CONFIG"; then
  21136. if test -n "$PKG_CONFIG" && \
  21137. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21138. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21139. ac_status=$?
  21140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21141. test $ac_status = 0; }; then
  21142. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21143. test "x$?" != "x0" && pkg_failed=yes
  21144. else
  21145. pkg_failed=yes
  21146. fi
  21147. else
  21148. pkg_failed=untried
  21149. fi
  21150. if test -n "$LIBUSB_LIBS"; then
  21151. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21152. elif test -n "$PKG_CONFIG"; then
  21153. if test -n "$PKG_CONFIG" && \
  21154. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21155. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21156. ac_status=$?
  21157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21158. test $ac_status = 0; }; then
  21159. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21160. test "x$?" != "x0" && pkg_failed=yes
  21161. else
  21162. pkg_failed=yes
  21163. fi
  21164. else
  21165. pkg_failed=untried
  21166. fi
  21167. if test $pkg_failed = yes; then
  21168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21169. $as_echo "no" >&6; }
  21170. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21171. _pkg_short_errors_supported=yes
  21172. else
  21173. _pkg_short_errors_supported=no
  21174. fi
  21175. if test $_pkg_short_errors_supported = yes; then
  21176. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21177. else
  21178. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21179. fi
  21180. # Put the nasty error message in config.log where it belongs
  21181. echo "$LIBUSB_PKG_ERRORS" >&5
  21182. have_libusb=no
  21183. elif test $pkg_failed = untried; then
  21184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21185. $as_echo "no" >&6; }
  21186. have_libusb=no
  21187. else
  21188. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21189. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21191. $as_echo "yes" >&6; }
  21192. have_libusb=yes
  21193. fi
  21194. save_CPPFLAGS="$CPPFLAGS"
  21195. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21196. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21197. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21198. have_libusb_h=yes
  21199. else
  21200. have_libusb_h=no
  21201. fi
  21202. CPPFLAGS="$save_CPPFLAGS"
  21203. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21204. hidapi_support=no
  21205. fi
  21206. fi
  21207. if test x$hidapi_support = xyes; then
  21208. if test x$have_libusb_h = xyes; then
  21209. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21210. if test x$require_hidapi_libusb = xyes; then
  21211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21212. else
  21213. if test x$have_loadso != xyes; then
  21214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21215. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21216. fi
  21217. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21218. libusb_lib=""
  21219. case "$host" in
  21220. *-*-darwin* )
  21221. libusb_lib="libusb-1.0.0.dylib"
  21222. ;;
  21223. *-*-cygwin* | *-*-mingw* )
  21224. libusb_lib="libusb-1.0.dll"
  21225. ;;
  21226. esac
  21227. if test x$libusb_lib = x; then
  21228. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21229. fi
  21230. cat >>confdefs.h <<_ACEOF
  21231. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21232. _ACEOF
  21233. fi
  21234. fi
  21235. else
  21236. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  21237. fi
  21238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21239. $as_echo_n "checking for hidapi support... " >&6; }
  21240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21241. $as_echo "$hidapi_support" >&6; }
  21242. fi
  21243. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  21244. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21245. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21246. fi
  21247. }
  21248. CheckClockGettime()
  21249. {
  21250. # Check whether --enable-clock_gettime was given.
  21251. if test "${enable_clock_gettime+set}" = set; then :
  21252. enableval=$enable_clock_gettime;
  21253. else
  21254. enable_clock_gettime=yes
  21255. fi
  21256. if test x$enable_clock_gettime = xyes; then
  21257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21258. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21259. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21260. $as_echo_n "(cached) " >&6
  21261. else
  21262. ac_check_lib_save_LIBS=$LIBS
  21263. LIBS="-lrt $LIBS"
  21264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21265. /* end confdefs.h. */
  21266. /* Override any GCC internal prototype to avoid an error.
  21267. Use char because int might match the return type of a GCC
  21268. builtin and then its argument prototype would still apply. */
  21269. #ifdef __cplusplus
  21270. extern "C"
  21271. #endif
  21272. char clock_gettime ();
  21273. int
  21274. main ()
  21275. {
  21276. return clock_gettime ();
  21277. ;
  21278. return 0;
  21279. }
  21280. _ACEOF
  21281. if ac_fn_c_try_link "$LINENO"; then :
  21282. ac_cv_lib_rt_clock_gettime=yes
  21283. else
  21284. ac_cv_lib_rt_clock_gettime=no
  21285. fi
  21286. rm -f core conftest.err conftest.$ac_objext \
  21287. conftest$ac_exeext conftest.$ac_ext
  21288. LIBS=$ac_check_lib_save_LIBS
  21289. fi
  21290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21291. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21292. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21293. have_clock_gettime=yes
  21294. fi
  21295. if test x$have_clock_gettime = xyes; then
  21296. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21298. else
  21299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21300. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21301. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21302. $as_echo_n "(cached) " >&6
  21303. else
  21304. ac_check_lib_save_LIBS=$LIBS
  21305. LIBS="-lc $LIBS"
  21306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21307. /* end confdefs.h. */
  21308. /* Override any GCC internal prototype to avoid an error.
  21309. Use char because int might match the return type of a GCC
  21310. builtin and then its argument prototype would still apply. */
  21311. #ifdef __cplusplus
  21312. extern "C"
  21313. #endif
  21314. char clock_gettime ();
  21315. int
  21316. main ()
  21317. {
  21318. return clock_gettime ();
  21319. ;
  21320. return 0;
  21321. }
  21322. _ACEOF
  21323. if ac_fn_c_try_link "$LINENO"; then :
  21324. ac_cv_lib_c_clock_gettime=yes
  21325. else
  21326. ac_cv_lib_c_clock_gettime=no
  21327. fi
  21328. rm -f core conftest.err conftest.$ac_objext \
  21329. conftest$ac_exeext conftest.$ac_ext
  21330. LIBS=$ac_check_lib_save_LIBS
  21331. fi
  21332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21333. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21334. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21335. have_clock_gettime=yes
  21336. fi
  21337. if test x$have_clock_gettime = xyes; then
  21338. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21339. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21340. fi
  21341. fi
  21342. fi
  21343. }
  21344. CheckLinuxVersion()
  21345. {
  21346. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21347. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21348. have_linux_version_h=yes
  21349. fi
  21350. if test x$have_linux_version_h = xyes; then
  21351. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21352. fi
  21353. }
  21354. CheckRPATH()
  21355. {
  21356. # Check whether --enable-rpath was given.
  21357. if test "${enable_rpath+set}" = set; then :
  21358. enableval=$enable_rpath;
  21359. else
  21360. enable_rpath=yes
  21361. fi
  21362. }
  21363. CheckEventSignals()
  21364. {
  21365. # Check whether --enable-backgrounding-signal was given.
  21366. if test "${enable_backgrounding_signal+set}" = set; then :
  21367. enableval=$enable_backgrounding_signal;
  21368. else
  21369. enable_backgrounding_signal=no
  21370. fi
  21371. if test x$enable_backgrounding_signal != xno; then
  21372. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21373. fi
  21374. # Check whether --enable-foregrounding-signal was given.
  21375. if test "${enable_foregrounding_signal+set}" = set; then :
  21376. enableval=$enable_foregrounding_signal;
  21377. else
  21378. enable_foregrounding_signal=no
  21379. fi
  21380. if test x$enable_foregrounding_signal != xno; then
  21381. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21382. fi
  21383. }
  21384. CheckVirtualJoystick()
  21385. {
  21386. # Check whether --enable-joystick-virtual was given.
  21387. if test "${enable_joystick_virtual+set}" = set; then :
  21388. enableval=$enable_joystick_virtual;
  21389. else
  21390. enable_joystick_virtual=yes
  21391. fi
  21392. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21393. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21394. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21395. have_joystick_virtual=yes
  21396. fi
  21397. }
  21398. CheckWarnAll
  21399. CheckNoStrictAliasing
  21400. CheckEventSignals
  21401. have_locale=no
  21402. case "$host" in
  21403. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21404. case "$host" in
  21405. *-*-android*)
  21406. # Android
  21407. ARCH=android
  21408. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21409. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21410. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21411. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21412. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21413. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21414. if test x$enable_video = xyes; then
  21415. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21416. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21417. SUMMARY_video="${SUMMARY_video} android"
  21418. fi
  21419. ;;
  21420. *-*-linux*) ARCH=linux ;;
  21421. *-*-uclinux*) ARCH=linux ;;
  21422. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21423. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21424. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21425. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21426. *-*-bsdi*) ARCH=bsdi ;;
  21427. *-*-freebsd*) ARCH=freebsd ;;
  21428. *-*-dragonfly*) ARCH=freebsd ;;
  21429. *-*-netbsd*) ARCH=netbsd ;;
  21430. *-*-openbsd*) ARCH=openbsd ;;
  21431. *-*-sysv5*) ARCH=sysv5 ;;
  21432. *-*-solaris*) ARCH=solaris ;;
  21433. *-*-hpux*) ARCH=hpux ;;
  21434. *-*-aix*) ARCH=aix ;;
  21435. *-*-minix*) ARCH=minix ;;
  21436. *-*-nto*) ARCH=nto
  21437. CheckQNXVideo
  21438. ;;
  21439. esac
  21440. CheckVisibilityHidden
  21441. CheckDeclarationAfterStatement
  21442. CheckDummyVideo
  21443. CheckDiskAudio
  21444. CheckDummyAudio
  21445. CheckDLOPEN
  21446. CheckARM
  21447. CheckNEON
  21448. CheckOSS
  21449. CheckALSA
  21450. CheckPipewire
  21451. CheckPulseAudio
  21452. CheckJACK
  21453. CheckARTSC
  21454. CheckESD
  21455. CheckNAS
  21456. CheckSNDIO
  21457. CheckFusionSound
  21458. CheckLibSampleRate
  21459. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21460. CheckRPI
  21461. CheckX11
  21462. CheckDirectFB
  21463. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  21464. CheckEGL
  21465. CheckKMSDRM
  21466. CheckGLX
  21467. CheckOpenGL
  21468. CheckOpenGLES
  21469. CheckVulkan
  21470. CheckWayland
  21471. CheckInputEvents
  21472. CheckLibUDev
  21473. CheckDBus
  21474. CheckIME
  21475. CheckInotify
  21476. CheckIBus
  21477. CheckFcitx
  21478. case $ARCH in
  21479. linux)
  21480. CheckInputKD
  21481. ;;
  21482. freebsd)
  21483. CheckInputKBIO
  21484. ;;
  21485. openbsd|netbsd)
  21486. CheckInputWSCONS
  21487. ;;
  21488. esac
  21489. CheckUSBHID
  21490. CheckHIDAPI
  21491. CheckPTHREAD
  21492. CheckClockGettime
  21493. CheckLinuxVersion
  21494. CheckRPATH
  21495. CheckVivanteVideo
  21496. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21497. have_misc=yes
  21498. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21499. have_locale=yes
  21500. # Set up files for the audio library
  21501. if test x$enable_audio = xyes; then
  21502. case $ARCH in
  21503. sysv5|solaris|hpux)
  21504. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21505. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21506. SUMMARY_audio="${SUMMARY_audio} sun"
  21507. have_audio=yes
  21508. ;;
  21509. netbsd) # Don't use this on OpenBSD, it's busted.
  21510. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21511. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21512. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21513. have_audio=yes
  21514. ;;
  21515. aix)
  21516. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21517. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21518. SUMMARY_audio="${SUMMARY_audio} paudio"
  21519. have_audio=yes
  21520. ;;
  21521. android)
  21522. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21523. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21524. SUMMARY_audio="${SUMMARY_audio} android"
  21525. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  21526. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  21527. SUMMARY_audio="${SUMMARY_audio} openslES"
  21528. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  21529. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  21530. SUMMARY_audio="${SUMMARY_audio} aaudio"
  21531. have_audio=yes
  21532. ;;
  21533. nto)
  21534. CheckQNXAudio
  21535. ;;
  21536. esac
  21537. fi
  21538. # Set up files for the joystick library
  21539. if test x$enable_joystick = xyes; then
  21540. case $ARCH in
  21541. linux)
  21542. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21543. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21544. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21545. have_joystick=yes
  21546. ;;
  21547. freebsd)
  21548. if test x$use_input_events = xyes; then
  21549. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21550. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21551. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21552. have_joystick=yes
  21553. fi
  21554. ;;
  21555. android)
  21556. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21557. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21558. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21559. have_joystick=yes
  21560. ;;
  21561. esac
  21562. fi
  21563. # Set up files for the haptic library
  21564. if test x$enable_haptic = xyes; then
  21565. case $ARCH in
  21566. linux|freebsd)
  21567. if test x$use_input_events = xyes; then
  21568. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21569. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21570. have_haptic=yes
  21571. fi
  21572. ;;
  21573. android)
  21574. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21575. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21576. have_haptic=yes
  21577. ;;
  21578. esac
  21579. fi
  21580. # Set up files for the sensor library
  21581. if test x$enable_sensor = xyes; then
  21582. case $ARCH in
  21583. android)
  21584. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21585. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21586. have_sensor=yes
  21587. ;;
  21588. esac
  21589. fi
  21590. # Set up files for the power library
  21591. if test x$enable_power = xyes; then
  21592. case $ARCH in
  21593. linux)
  21594. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21595. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21596. have_power=yes
  21597. ;;
  21598. android)
  21599. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21600. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21601. have_power=yes
  21602. ;;
  21603. esac
  21604. fi
  21605. # Set up files for the filesystem library
  21606. if test x$enable_filesystem = xyes; then
  21607. case $ARCH in
  21608. android)
  21609. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21610. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21611. have_filesystem=yes
  21612. ;;
  21613. *)
  21614. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21615. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21616. have_filesystem=yes
  21617. ;;
  21618. esac
  21619. fi
  21620. # Set up files for the timer library
  21621. if test x$enable_timers = xyes; then
  21622. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21623. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21624. have_timers=yes
  21625. fi
  21626. # Set up files for udev hotplugging support
  21627. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21628. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21629. fi
  21630. # Set up files for evdev input
  21631. if test x$use_input_events = xyes; then
  21632. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21633. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21634. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21635. fi
  21636. # Set up files for wscons input
  21637. if test x$use_input_wscons = xyes; then
  21638. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21639. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21640. fi
  21641. # Set up other core UNIX files
  21642. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21643. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21644. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21645. ;;
  21646. *-*-cygwin* | *-*-mingw*)
  21647. ARCH=win32
  21648. if test "$build" != "$host"; then # cross-compiling
  21649. # Default cross-compile location
  21650. ac_default_prefix=/usr/local/cross-tools/$host
  21651. else
  21652. # Look for the location of the tools and install there
  21653. if test "$BUILD_PREFIX" != ""; then
  21654. ac_default_prefix=$BUILD_PREFIX
  21655. fi
  21656. fi
  21657. if test x$enable_loadso = xyes; then
  21658. have_loadso=yes
  21659. fi
  21660. CheckDeclarationAfterStatement
  21661. CheckDummyVideo
  21662. CheckDiskAudio
  21663. CheckDummyAudio
  21664. CheckWINDOWS
  21665. CheckWINDOWSGL
  21666. CheckWINDOWSGLES
  21667. CheckVulkan
  21668. CheckDIRECTX
  21669. CheckHIDAPI
  21670. # Set up the core platform files
  21671. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21672. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21673. have_misc=yes
  21674. # Use the Windows locale APIs.
  21675. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21676. have_locale=yes
  21677. # Set up files for the video library
  21678. if test x$enable_video = xyes; then
  21679. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21680. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21681. have_video=yes
  21682. # Check whether --enable-render-d3d was given.
  21683. if test "${enable_render_d3d+set}" = set; then :
  21684. enableval=$enable_render_d3d;
  21685. else
  21686. enable_render_d3d=yes
  21687. fi
  21688. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21689. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21690. SUMMARY_video="${SUMMARY_video} d3d9"
  21691. fi
  21692. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21693. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21694. SUMMARY_video="${SUMMARY_video} d3d11"
  21695. fi
  21696. fi
  21697. # Set up files for the audio library
  21698. if test x$enable_audio = xyes; then
  21699. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21700. SUMMARY_audio="${SUMMARY_audio} winmm"
  21701. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21702. if test x$have_dsound = xyes; then
  21703. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21704. SUMMARY_audio="${SUMMARY_audio} directsound"
  21705. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21706. fi
  21707. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21708. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21709. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21710. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21711. fi
  21712. have_audio=yes
  21713. fi
  21714. # Set up files for the joystick library
  21715. if test x$enable_joystick = xyes; then
  21716. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21717. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  21718. if test x$have_xinput = xyes; then
  21719. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21720. fi
  21721. if test x$have_wgi = xyes; then
  21722. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  21723. fi
  21724. if test x$have_dinput = xyes; then
  21725. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21727. fi
  21728. else
  21729. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21730. fi
  21731. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21732. have_joystick=yes
  21733. fi
  21734. if test x$enable_haptic = xyes; then
  21735. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21736. if test x$have_xinput = xyes; then
  21737. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21738. fi
  21739. if test x$have_dinput = xyes; then
  21740. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21741. fi
  21742. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21743. have_haptic=yes
  21744. fi
  21745. fi
  21746. # Set up files for the sensor library
  21747. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21748. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21749. have_winsensors=yes
  21750. else
  21751. have_winsensors=no
  21752. fi
  21753. if test x$have_winsensors = xyes; then
  21754. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21755. fi
  21756. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21757. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21758. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21759. have_sensor=yes
  21760. fi
  21761. # Set up files for the power library
  21762. if test x$enable_power = xyes; then
  21763. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21764. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21765. have_power=yes
  21766. fi
  21767. # Set up files for the filesystem library
  21768. if test x$enable_filesystem = xyes; then
  21769. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21770. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21771. have_filesystem=yes
  21772. fi
  21773. # Set up files for the thread library
  21774. if test x$enable_threads = xyes; then
  21775. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21776. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21777. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21778. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21779. have_threads=yes
  21780. fi
  21781. # Set up files for the timer library
  21782. if test x$enable_timers = xyes; then
  21783. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21784. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21785. have_timers=yes
  21786. fi
  21787. # Set up files for the shared object loading library
  21788. if test x$enable_loadso = xyes; then
  21789. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21790. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21791. fi
  21792. # Set up the system libraries we need
  21793. if test -f /lib/w32api/libuuid.a; then
  21794. LIBUUID=/lib/w32api/libuuid.a
  21795. else
  21796. LIBUUID=-luuid
  21797. fi
  21798. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  21799. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  21800. # The Windows platform requires special setup
  21801. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21802. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21803. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21804. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21805. # Check to see if this is a mingw or cygwin build
  21806. have_mingw32=
  21807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21808. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21809. if ${ac_cv_lib_mingw32_main+:} false; then :
  21810. $as_echo_n "(cached) " >&6
  21811. else
  21812. ac_check_lib_save_LIBS=$LIBS
  21813. LIBS="-lmingw32 $LIBS"
  21814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21815. /* end confdefs.h. */
  21816. int
  21817. main ()
  21818. {
  21819. return main ();
  21820. ;
  21821. return 0;
  21822. }
  21823. _ACEOF
  21824. if ac_fn_c_try_link "$LINENO"; then :
  21825. ac_cv_lib_mingw32_main=yes
  21826. else
  21827. ac_cv_lib_mingw32_main=no
  21828. fi
  21829. rm -f core conftest.err conftest.$ac_objext \
  21830. conftest$ac_exeext conftest.$ac_ext
  21831. LIBS=$ac_check_lib_save_LIBS
  21832. fi
  21833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21834. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21835. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21836. have_mingw32=yes
  21837. fi
  21838. if test x$have_mingw32 = xyes; then
  21839. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21840. else
  21841. SDL_LIBS="-lcygwin $SDL_LIBS"
  21842. fi
  21843. ;;
  21844. *-*-beos*)
  21845. as_fn_error $? "
  21846. *** BeOS support has been removed as of SDL 2.0.2.
  21847. " "$LINENO" 5
  21848. ;;
  21849. *-*-haiku*)
  21850. ARCH=haiku
  21851. ac_default_prefix=/boot/system
  21852. CheckDummyVideo
  21853. CheckDiskAudio
  21854. CheckDummyAudio
  21855. CheckDLOPEN
  21856. CheckHaikuVideo
  21857. CheckHaikuGL
  21858. CheckPTHREAD
  21859. # Set up files for the audio library
  21860. if test x$enable_audio = xyes; then
  21861. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21862. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21863. SUMMARY_audio="${SUMMARY_audio} haiku"
  21864. have_audio=yes
  21865. fi
  21866. # Set up files for the joystick library
  21867. if test x$enable_joystick = xyes; then
  21868. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21869. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21870. have_joystick=yes
  21871. fi
  21872. # Set up files for the timer library
  21873. if test x$enable_timers = xyes; then
  21874. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21875. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21876. have_timers=yes
  21877. fi
  21878. # Set up files for the system power library
  21879. if test x$enable_power = xyes; then
  21880. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21881. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21882. have_power=yes
  21883. fi
  21884. # Set up files for the system filesystem library
  21885. if test x$enable_filesystem = xyes; then
  21886. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21887. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21888. have_filesystem=yes
  21889. fi
  21890. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21891. have_misc=yes
  21892. # Set up files for the locale library
  21893. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21894. have_locale=yes
  21895. # The Haiku platform requires special setup.
  21896. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21898. ;;
  21899. *-ios-*)
  21900. ARCH=ios
  21901. CheckVisibilityHidden
  21902. CheckDeclarationAfterStatement
  21903. CheckDummyVideo
  21904. CheckDiskAudio
  21905. CheckDummyAudio
  21906. CheckDLOPEN
  21907. CheckMETAL
  21908. CheckVulkan
  21909. CheckPTHREAD
  21910. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21911. have_misc=yes
  21912. # Set up files for the locale library
  21913. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21914. have_locale=yes
  21915. # Set up files for the audio library
  21916. if test x$enable_audio = xyes; then
  21917. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21918. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21919. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21920. have_audio=yes
  21921. fi
  21922. # Set up files for the joystick library
  21923. if test x$enable_joystick = xyes; then
  21924. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21925. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21926. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21927. have_joystick=yes
  21928. else
  21929. # Need this code for accelerometer as joystick support
  21930. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21931. fi
  21932. # Set up files for the haptic library
  21933. #if test x$enable_haptic = xyes; then
  21934. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21935. # have_haptic=yes
  21936. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21937. #fi
  21938. # Set up files for the sensor library
  21939. if test x$enable_sensor = xyes; then
  21940. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21941. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21942. have_sensor=yes
  21943. fi
  21944. # Set up files for the power library
  21945. if test x$enable_power = xyes; then
  21946. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21947. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21948. have_power=yes
  21949. fi
  21950. # Set up files for the filesystem library
  21951. if test x$enable_filesystem = xyes; then
  21952. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21953. have_filesystem=yes
  21954. fi
  21955. # Set up additional files for the file library
  21956. if test x$enable_file = xyes; then
  21957. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21958. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21959. fi
  21960. # Set up files for the timer library
  21961. if test x$enable_timers = xyes; then
  21962. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21963. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21964. have_timers=yes
  21965. fi
  21966. # Set up other core UNIX files
  21967. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21968. # The iOS platform requires special setup.
  21969. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21970. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21971. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21972. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21973. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21974. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21975. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21978. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21981. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21984. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21986. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21988. fi
  21989. ;;
  21990. *-*-darwin* )
  21991. # This could be either full "Mac OS X", or plain "Darwin" which is
  21992. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21993. # Next line is broken, and a few files below require Mac OS X (full)
  21994. ARCH=macosx
  21995. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21996. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21997. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21998. CheckVisibilityHidden
  21999. CheckDeclarationAfterStatement
  22000. CheckDummyVideo
  22001. CheckDiskAudio
  22002. CheckDummyAudio
  22003. CheckDLOPEN
  22004. CheckCOCOA
  22005. CheckMETAL
  22006. CheckX11
  22007. CheckMacGL
  22008. CheckMacGLES
  22009. CheckGLX
  22010. CheckOpenGL
  22011. CheckVulkan
  22012. CheckPTHREAD
  22013. CheckHIDAPI
  22014. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22015. have_misc=yes
  22016. # Set up files for the locale library
  22017. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22018. have_locale=yes
  22019. # Set up files for the audio library
  22020. if test x$enable_audio = xyes; then
  22021. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22022. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22023. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22024. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22025. have_audio=yes
  22026. fi
  22027. # Set up files for the joystick library
  22028. if test x$enable_joystick = xyes; then
  22029. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22030. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22031. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22032. CheckJoystickMFI
  22033. have_joystick=yes
  22034. fi
  22035. # Set up files for the haptic library
  22036. if test x$enable_haptic = xyes; then
  22037. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22038. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22039. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22040. have_haptic=yes
  22041. fi
  22042. # Set up files for the power library
  22043. if test x$enable_power = xyes; then
  22044. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22045. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22046. have_power=yes
  22047. fi
  22048. # Set up files for the filesystem library
  22049. if test x$enable_filesystem = xyes; then
  22050. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22051. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22052. have_filesystem=yes
  22053. fi
  22054. # Set up files for the timer library
  22055. if test x$enable_timers = xyes; then
  22056. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22057. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22058. have_timers=yes
  22059. fi
  22060. # Set up additional files for the file library
  22061. if test x$enable_file = xyes; then
  22062. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22063. fi
  22064. # Set up other core UNIX files
  22065. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22066. # The Mac OS X platform requires special setup.
  22067. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22069. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22071. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22072. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22074. fi
  22075. ;;
  22076. *-nacl|*-pnacl)
  22077. ARCH=nacl
  22078. CheckNativeClient
  22079. CheckDummyAudio
  22080. CheckDummyVideo
  22081. CheckInputEvents
  22082. CheckPTHREAD
  22083. # Set up files for the timer library
  22084. if test x$enable_timers = xyes; then
  22085. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22086. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22087. have_timers=yes
  22088. fi
  22089. if test x$enable_filesystem = xyes; then
  22090. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22091. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22092. have_filesystem=yes
  22093. fi
  22094. ;;
  22095. *-*-emscripten* )
  22096. if test x$enable_video = xyes; then
  22097. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22098. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22099. have_video=yes
  22100. SUMMARY_video="${SUMMARY_video} emscripten"
  22101. fi
  22102. if test x$enable_audio = xyes; then
  22103. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22104. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22105. have_audio=yes
  22106. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22107. fi
  22108. CheckVisibilityHidden
  22109. CheckDeclarationAfterStatement
  22110. CheckDummyVideo
  22111. CheckDiskAudio
  22112. CheckDummyAudio
  22113. CheckPTHREAD
  22114. CheckDLOPEN
  22115. CheckClockGettime
  22116. CheckEmscriptenGLES
  22117. # Set up files for the power library
  22118. if test x$enable_power = xyes; then
  22119. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22120. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22121. have_power=yes
  22122. fi
  22123. # Set up files for the power library
  22124. if test x$enable_joystick = xyes; then
  22125. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22126. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22127. have_joystick=yes
  22128. fi
  22129. # Set up files for the filesystem library
  22130. if test x$enable_filesystem = xyes; then
  22131. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22132. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22133. have_filesystem=yes
  22134. fi
  22135. # Set up files for the timer library
  22136. if test x$enable_timers = xyes; then
  22137. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22138. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22139. have_timers=yes
  22140. fi
  22141. # Set up files for the locale library
  22142. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22143. have_locale=yes
  22144. ;;
  22145. *-*-riscos*)
  22146. ARCH=riscos
  22147. CheckVisibilityHidden
  22148. CheckDeclarationAfterStatement
  22149. CheckDummyVideo
  22150. CheckDiskAudio
  22151. CheckDummyAudio
  22152. CheckDLOPEN
  22153. CheckOSS
  22154. CheckPTHREAD
  22155. CheckClockGettime
  22156. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22157. have_misc=yes
  22158. # Set up files for the video library
  22159. if test x$enable_video = xyes; then
  22160. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  22161. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  22162. have_video=yes
  22163. SUMMARY_video="${SUMMARY_video} riscos"
  22164. fi
  22165. # Set up files for the filesystem library
  22166. if test x$enable_filesystem = xyes; then
  22167. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  22168. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  22169. have_filesystem=yes
  22170. fi
  22171. # Set up files for the timer library
  22172. if test x$enable_timers = xyes; then
  22173. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22174. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22175. have_timers=yes
  22176. fi
  22177. ;;
  22178. *)
  22179. as_fn_error $? "
  22180. *** Unsupported host: Please add to configure.ac
  22181. " "$LINENO" 5
  22182. ;;
  22183. esac
  22184. CheckVirtualJoystick
  22185. # Check whether to install sdl2-config
  22186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22187. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22188. # Check whether --enable-sdl2-config was given.
  22189. if test "${enable_sdl2_config+set}" = set; then :
  22190. enableval=$enable_sdl2_config; case "${enableval}" in
  22191. yes) enable_sdl2_config="TRUE" ;;
  22192. no) enable_sdl2_config="FALSE" ;;
  22193. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22194. esac
  22195. else
  22196. enable_sdl2_config="TRUE"
  22197. fi
  22198. if test "$enable_sdl2_config" = "TRUE"; then
  22199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22200. $as_echo "yes" >&6; }
  22201. else
  22202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22203. $as_echo "no" >&6; }
  22204. fi
  22205. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22206. # Verify that we have all the platform specific files we need
  22207. if test x$have_misc != xyes; then
  22208. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22209. fi
  22210. if test x$have_locale != xyes; then
  22211. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22212. fi
  22213. if test x$have_joystick != xyes; then
  22214. if test x$enable_joystick = xyes; then
  22215. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22216. fi
  22217. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22218. fi
  22219. if test x$have_haptic != xyes; then
  22220. if test x$enable_haptic = xyes; then
  22221. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22222. fi
  22223. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22224. fi
  22225. if test x$have_sensor != xyes; then
  22226. if test x$enable_sensor = xyes; then
  22227. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22228. fi
  22229. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22230. fi
  22231. if test x$have_threads != xyes; then
  22232. if test x$enable_threads = xyes; then
  22233. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22234. fi
  22235. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22236. fi
  22237. if test x$have_timers != xyes; then
  22238. if test x$enable_timers = xyes; then
  22239. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22240. fi
  22241. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22242. fi
  22243. if test x$have_filesystem != xyes; then
  22244. if test x$enable_filesystem = xyes; then
  22245. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22246. fi
  22247. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22248. fi
  22249. if test x$have_loadso != xyes; then
  22250. if test x$enable_loadso = xyes; then
  22251. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22252. fi
  22253. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22254. fi
  22255. if test x$SDLMAIN_SOURCES = x; then
  22256. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22257. fi
  22258. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22259. if test x$video_wayland = xyes; then
  22260. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22261. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22262. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22263. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22264. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22265. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22266. echo ;\
  22267. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22268. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22269. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22270. echo ;\
  22271. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22272. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22273. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22274. echo ;\
  22275. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22276. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  22277. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22278. done ;\
  22279. echo ;\
  22280. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22281. fi
  22282. OBJECTS=`echo $SOURCES`
  22283. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22284. for EXT in asm cc m c S; do
  22285. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22286. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22287. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22288. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22289. done
  22290. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22291. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22292. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22293. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22294. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22295. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22296. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22297. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22298. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22299. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22300. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22301. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22302. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22303. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22304. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22305. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22306. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22307. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22308. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22309. # Set runtime shared library paths as needed
  22310. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22311. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22312. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22314. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22315. have_enable_new_dtags=no
  22316. save_LDFLAGS="$LDFLAGS"
  22317. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22319. /* end confdefs.h. */
  22320. int
  22321. main ()
  22322. {
  22323. ;
  22324. return 0;
  22325. }
  22326. _ACEOF
  22327. if ac_fn_c_try_link "$LINENO"; then :
  22328. have_enable_new_dtags=yes
  22329. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22330. fi
  22331. rm -f core conftest.err conftest.$ac_objext \
  22332. conftest$ac_exeext conftest.$ac_ext
  22333. LDFLAGS="$save_LDFLAGS"
  22334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22335. $as_echo "$have_enable_new_dtags" >&6; }
  22336. fi
  22337. if test $ARCH = solaris; then
  22338. SDL_RLD_FLAGS="-R\${libdir}"
  22339. fi
  22340. else
  22341. SDL_RLD_FLAGS=""
  22342. fi
  22343. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22344. if test x$enable_shared = xyes; then
  22345. PKGCONFIG_LIBS_PRIV="
  22346. Libs.private:"
  22347. ENABLE_SHARED_TRUE=
  22348. ENABLE_SHARED_FALSE="#"
  22349. else
  22350. PKGCONFIG_LIBS_PRIV=
  22351. ENABLE_SHARED_TRUE="#"
  22352. ENABLE_SHARED_FALSE=
  22353. fi
  22354. if test x$enable_static = xyes; then
  22355. ENABLE_STATIC_TRUE=
  22356. ENABLE_STATIC_FALSE="#"
  22357. else
  22358. ENABLE_STATIC_TRUE="#"
  22359. ENABLE_STATIC_FALSE=
  22360. fi
  22361. cat >Makefile.rules <<__EOF__
  22362. # Build rules for objects
  22363. -include \$(OBJECTS:.lo=.d)
  22364. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22365. $srcdir/src/SDL.c: update-revision
  22366. $DEPENDS
  22367. $VERSION_DEPENDS
  22368. $SDLMAIN_DEPENDS
  22369. $SDLTEST_DEPENDS
  22370. $WAYLAND_PROTOCOLS_DEPENDS
  22371. __EOF__
  22372. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22373. ac_config_commands="$ac_config_commands sdl2_config"
  22374. SUMMARY="SDL2 Configure Summary:\n"
  22375. if test x$enable_shared = xyes; then
  22376. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22377. fi
  22378. if test x$enable_static = xyes; then
  22379. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22380. fi
  22381. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22382. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22383. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22384. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22385. if test x$have_x = xyes; then
  22386. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22387. fi
  22388. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22389. if test x$have_joystick_virtual = xyes; then
  22390. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22391. else
  22392. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22393. fi
  22394. if test x$have_samplerate_h_hdr = xyes; then
  22395. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22396. else
  22397. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22398. fi
  22399. if test x$have_libudev_h_hdr = xyes; then
  22400. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22401. else
  22402. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22403. fi
  22404. if test x$have_dbus_dbus_h_hdr = xyes; then
  22405. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22406. else
  22407. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22408. fi
  22409. if test x$enable_ime = xyes; then
  22410. SUMMARY="${SUMMARY}Using ime : YES\n"
  22411. else
  22412. SUMMARY="${SUMMARY}Using ime : NO\n"
  22413. fi
  22414. if test x$have_ibus_ibus_h_hdr = xyes; then
  22415. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22416. else
  22417. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22418. fi
  22419. if test x$have_fcitx = xyes; then
  22420. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22421. else
  22422. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22423. fi
  22424. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22425. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22426. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22427. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22428. SUMMARY="${SUMMARY}configure script with:\n"
  22429. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22430. fi
  22431. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22432. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22433. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22434. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22435. SUMMARY="${SUMMARY}configure script with:\n"
  22436. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22437. fi
  22438. ac_config_commands="$ac_config_commands summary"
  22439. cat >confcache <<\_ACEOF
  22440. # This file is a shell script that caches the results of configure
  22441. # tests run on this system so they can be shared between configure
  22442. # scripts and configure runs, see configure's option --config-cache.
  22443. # It is not useful on other systems. If it contains results you don't
  22444. # want to keep, you may remove or edit it.
  22445. #
  22446. # config.status only pays attention to the cache file if you give it
  22447. # the --recheck option to rerun configure.
  22448. #
  22449. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22450. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22451. # following values.
  22452. _ACEOF
  22453. # The following way of writing the cache mishandles newlines in values,
  22454. # but we know of no workaround that is simple, portable, and efficient.
  22455. # So, we kill variables containing newlines.
  22456. # Ultrix sh set writes to stderr and can't be redirected directly,
  22457. # and sets the high bit in the cache file unless we assign to the vars.
  22458. (
  22459. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22460. eval ac_val=\$$ac_var
  22461. case $ac_val in #(
  22462. *${as_nl}*)
  22463. case $ac_var in #(
  22464. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22465. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22466. esac
  22467. case $ac_var in #(
  22468. _ | IFS | as_nl) ;; #(
  22469. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22470. *) { eval $ac_var=; unset $ac_var;} ;;
  22471. esac ;;
  22472. esac
  22473. done
  22474. (set) 2>&1 |
  22475. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22476. *${as_nl}ac_space=\ *)
  22477. # `set' does not quote correctly, so add quotes: double-quote
  22478. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22479. sed -n \
  22480. "s/'/'\\\\''/g;
  22481. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22482. ;; #(
  22483. *)
  22484. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22485. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22486. ;;
  22487. esac |
  22488. sort
  22489. ) |
  22490. sed '
  22491. /^ac_cv_env_/b end
  22492. t clear
  22493. :clear
  22494. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22495. t end
  22496. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22497. :end' >>confcache
  22498. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22499. if test -w "$cache_file"; then
  22500. if test "x$cache_file" != "x/dev/null"; then
  22501. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22502. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22503. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22504. cat confcache >"$cache_file"
  22505. else
  22506. case $cache_file in #(
  22507. */* | ?:*)
  22508. mv -f confcache "$cache_file"$$ &&
  22509. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22510. *)
  22511. mv -f confcache "$cache_file" ;;
  22512. esac
  22513. fi
  22514. fi
  22515. else
  22516. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22517. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22518. fi
  22519. fi
  22520. rm -f confcache
  22521. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22522. # Let make expand exec_prefix.
  22523. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22524. DEFS=-DHAVE_CONFIG_H
  22525. ac_libobjs=
  22526. ac_ltlibobjs=
  22527. U=
  22528. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22529. # 1. Remove the extension, and $U if already installed.
  22530. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22531. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22532. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22533. # will be set to the directory where LIBOBJS objects are built.
  22534. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22535. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22536. done
  22537. LIBOBJS=$ac_libobjs
  22538. LTLIBOBJS=$ac_ltlibobjs
  22539. : "${CONFIG_STATUS=./config.status}"
  22540. ac_write_fail=0
  22541. ac_clean_files_save=$ac_clean_files
  22542. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22543. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22544. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22545. as_write_fail=0
  22546. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22547. #! $SHELL
  22548. # Generated by $as_me.
  22549. # Run this file to recreate the current configuration.
  22550. # Compiler output produced by configure, useful for debugging
  22551. # configure, is in config.log if it exists.
  22552. debug=false
  22553. ac_cs_recheck=false
  22554. ac_cs_silent=false
  22555. SHELL=\${CONFIG_SHELL-$SHELL}
  22556. export SHELL
  22557. _ASEOF
  22558. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22559. ## -------------------- ##
  22560. ## M4sh Initialization. ##
  22561. ## -------------------- ##
  22562. # Be more Bourne compatible
  22563. DUALCASE=1; export DUALCASE # for MKS sh
  22564. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22565. emulate sh
  22566. NULLCMD=:
  22567. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22568. # is contrary to our usage. Disable this feature.
  22569. alias -g '${1+"$@"}'='"$@"'
  22570. setopt NO_GLOB_SUBST
  22571. else
  22572. case `(set -o) 2>/dev/null` in #(
  22573. *posix*) :
  22574. set -o posix ;; #(
  22575. *) :
  22576. ;;
  22577. esac
  22578. fi
  22579. as_nl='
  22580. '
  22581. export as_nl
  22582. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22583. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22584. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22585. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22586. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22587. # but without wasting forks for bash or zsh.
  22588. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22589. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22590. as_echo='print -r --'
  22591. as_echo_n='print -rn --'
  22592. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22593. as_echo='printf %s\n'
  22594. as_echo_n='printf %s'
  22595. else
  22596. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22597. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22598. as_echo_n='/usr/ucb/echo -n'
  22599. else
  22600. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22601. as_echo_n_body='eval
  22602. arg=$1;
  22603. case $arg in #(
  22604. *"$as_nl"*)
  22605. expr "X$arg" : "X\\(.*\\)$as_nl";
  22606. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22607. esac;
  22608. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22609. '
  22610. export as_echo_n_body
  22611. as_echo_n='sh -c $as_echo_n_body as_echo'
  22612. fi
  22613. export as_echo_body
  22614. as_echo='sh -c $as_echo_body as_echo'
  22615. fi
  22616. # The user is always right.
  22617. if test "${PATH_SEPARATOR+set}" != set; then
  22618. PATH_SEPARATOR=:
  22619. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22620. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22621. PATH_SEPARATOR=';'
  22622. }
  22623. fi
  22624. # IFS
  22625. # We need space, tab and new line, in precisely that order. Quoting is
  22626. # there to prevent editors from complaining about space-tab.
  22627. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22628. # splitting by setting IFS to empty value.)
  22629. IFS=" "" $as_nl"
  22630. # Find who we are. Look in the path if we contain no directory separator.
  22631. as_myself=
  22632. case $0 in #((
  22633. *[\\/]* ) as_myself=$0 ;;
  22634. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22635. for as_dir in $PATH
  22636. do
  22637. IFS=$as_save_IFS
  22638. test -z "$as_dir" && as_dir=.
  22639. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22640. done
  22641. IFS=$as_save_IFS
  22642. ;;
  22643. esac
  22644. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22645. # in which case we are not to be found in the path.
  22646. if test "x$as_myself" = x; then
  22647. as_myself=$0
  22648. fi
  22649. if test ! -f "$as_myself"; then
  22650. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22651. exit 1
  22652. fi
  22653. # Unset variables that we do not need and which cause bugs (e.g. in
  22654. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22655. # suppresses any "Segmentation fault" message there. '((' could
  22656. # trigger a bug in pdksh 5.2.14.
  22657. for as_var in BASH_ENV ENV MAIL MAILPATH
  22658. do eval test x\${$as_var+set} = xset \
  22659. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22660. done
  22661. PS1='$ '
  22662. PS2='> '
  22663. PS4='+ '
  22664. # NLS nuisances.
  22665. LC_ALL=C
  22666. export LC_ALL
  22667. LANGUAGE=C
  22668. export LANGUAGE
  22669. # CDPATH.
  22670. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22671. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22672. # ----------------------------------------
  22673. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22674. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22675. # script with STATUS, using 1 if that was 0.
  22676. as_fn_error ()
  22677. {
  22678. as_status=$1; test $as_status -eq 0 && as_status=1
  22679. if test "$4"; then
  22680. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22681. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22682. fi
  22683. $as_echo "$as_me: error: $2" >&2
  22684. as_fn_exit $as_status
  22685. } # as_fn_error
  22686. # as_fn_set_status STATUS
  22687. # -----------------------
  22688. # Set $? to STATUS, without forking.
  22689. as_fn_set_status ()
  22690. {
  22691. return $1
  22692. } # as_fn_set_status
  22693. # as_fn_exit STATUS
  22694. # -----------------
  22695. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22696. as_fn_exit ()
  22697. {
  22698. set +e
  22699. as_fn_set_status $1
  22700. exit $1
  22701. } # as_fn_exit
  22702. # as_fn_unset VAR
  22703. # ---------------
  22704. # Portably unset VAR.
  22705. as_fn_unset ()
  22706. {
  22707. { eval $1=; unset $1;}
  22708. }
  22709. as_unset=as_fn_unset
  22710. # as_fn_append VAR VALUE
  22711. # ----------------------
  22712. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22713. # advantage of any shell optimizations that allow amortized linear growth over
  22714. # repeated appends, instead of the typical quadratic growth present in naive
  22715. # implementations.
  22716. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22717. eval 'as_fn_append ()
  22718. {
  22719. eval $1+=\$2
  22720. }'
  22721. else
  22722. as_fn_append ()
  22723. {
  22724. eval $1=\$$1\$2
  22725. }
  22726. fi # as_fn_append
  22727. # as_fn_arith ARG...
  22728. # ------------------
  22729. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22730. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22731. # must be portable across $(()) and expr.
  22732. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22733. eval 'as_fn_arith ()
  22734. {
  22735. as_val=$(( $* ))
  22736. }'
  22737. else
  22738. as_fn_arith ()
  22739. {
  22740. as_val=`expr "$@" || test $? -eq 1`
  22741. }
  22742. fi # as_fn_arith
  22743. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22744. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22745. as_expr=expr
  22746. else
  22747. as_expr=false
  22748. fi
  22749. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22750. as_basename=basename
  22751. else
  22752. as_basename=false
  22753. fi
  22754. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22755. as_dirname=dirname
  22756. else
  22757. as_dirname=false
  22758. fi
  22759. as_me=`$as_basename -- "$0" ||
  22760. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22761. X"$0" : 'X\(//\)$' \| \
  22762. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22763. $as_echo X/"$0" |
  22764. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22765. s//\1/
  22766. q
  22767. }
  22768. /^X\/\(\/\/\)$/{
  22769. s//\1/
  22770. q
  22771. }
  22772. /^X\/\(\/\).*/{
  22773. s//\1/
  22774. q
  22775. }
  22776. s/.*/./; q'`
  22777. # Avoid depending upon Character Ranges.
  22778. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22779. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22780. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22781. as_cr_digits='0123456789'
  22782. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22783. ECHO_C= ECHO_N= ECHO_T=
  22784. case `echo -n x` in #(((((
  22785. -n*)
  22786. case `echo 'xy\c'` in
  22787. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22788. xy) ECHO_C='\c';;
  22789. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22790. ECHO_T=' ';;
  22791. esac;;
  22792. *)
  22793. ECHO_N='-n';;
  22794. esac
  22795. rm -f conf$$ conf$$.exe conf$$.file
  22796. if test -d conf$$.dir; then
  22797. rm -f conf$$.dir/conf$$.file
  22798. else
  22799. rm -f conf$$.dir
  22800. mkdir conf$$.dir 2>/dev/null
  22801. fi
  22802. if (echo >conf$$.file) 2>/dev/null; then
  22803. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22804. as_ln_s='ln -s'
  22805. # ... but there are two gotchas:
  22806. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22807. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22808. # In both cases, we have to default to `cp -pR'.
  22809. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22810. as_ln_s='cp -pR'
  22811. elif ln conf$$.file conf$$ 2>/dev/null; then
  22812. as_ln_s=ln
  22813. else
  22814. as_ln_s='cp -pR'
  22815. fi
  22816. else
  22817. as_ln_s='cp -pR'
  22818. fi
  22819. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22820. rmdir conf$$.dir 2>/dev/null
  22821. # as_fn_mkdir_p
  22822. # -------------
  22823. # Create "$as_dir" as a directory, including parents if necessary.
  22824. as_fn_mkdir_p ()
  22825. {
  22826. case $as_dir in #(
  22827. -*) as_dir=./$as_dir;;
  22828. esac
  22829. test -d "$as_dir" || eval $as_mkdir_p || {
  22830. as_dirs=
  22831. while :; do
  22832. case $as_dir in #(
  22833. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22834. *) as_qdir=$as_dir;;
  22835. esac
  22836. as_dirs="'$as_qdir' $as_dirs"
  22837. as_dir=`$as_dirname -- "$as_dir" ||
  22838. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22839. X"$as_dir" : 'X\(//\)[^/]' \| \
  22840. X"$as_dir" : 'X\(//\)$' \| \
  22841. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22842. $as_echo X"$as_dir" |
  22843. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22844. s//\1/
  22845. q
  22846. }
  22847. /^X\(\/\/\)[^/].*/{
  22848. s//\1/
  22849. q
  22850. }
  22851. /^X\(\/\/\)$/{
  22852. s//\1/
  22853. q
  22854. }
  22855. /^X\(\/\).*/{
  22856. s//\1/
  22857. q
  22858. }
  22859. s/.*/./; q'`
  22860. test -d "$as_dir" && break
  22861. done
  22862. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22863. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22864. } # as_fn_mkdir_p
  22865. if mkdir -p . 2>/dev/null; then
  22866. as_mkdir_p='mkdir -p "$as_dir"'
  22867. else
  22868. test -d ./-p && rmdir ./-p
  22869. as_mkdir_p=false
  22870. fi
  22871. # as_fn_executable_p FILE
  22872. # -----------------------
  22873. # Test if FILE is an executable regular file.
  22874. as_fn_executable_p ()
  22875. {
  22876. test -f "$1" && test -x "$1"
  22877. } # as_fn_executable_p
  22878. as_test_x='test -x'
  22879. as_executable_p=as_fn_executable_p
  22880. # Sed expression to map a string onto a valid CPP name.
  22881. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22882. # Sed expression to map a string onto a valid variable name.
  22883. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22884. exec 6>&1
  22885. ## ----------------------------------- ##
  22886. ## Main body of $CONFIG_STATUS script. ##
  22887. ## ----------------------------------- ##
  22888. _ASEOF
  22889. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22890. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22891. # Save the log message, to keep $0 and so on meaningful, and to
  22892. # report actual input values of CONFIG_FILES etc. instead of their
  22893. # values after options handling.
  22894. ac_log="
  22895. This file was extended by $as_me, which was
  22896. generated by GNU Autoconf 2.69. Invocation command line was
  22897. CONFIG_FILES = $CONFIG_FILES
  22898. CONFIG_HEADERS = $CONFIG_HEADERS
  22899. CONFIG_LINKS = $CONFIG_LINKS
  22900. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22901. $ $0 $@
  22902. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22903. "
  22904. _ACEOF
  22905. case $ac_config_files in *"
  22906. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22907. esac
  22908. case $ac_config_headers in *"
  22909. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22910. esac
  22911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22912. # Files that config.status was made for.
  22913. config_files="$ac_config_files"
  22914. config_headers="$ac_config_headers"
  22915. config_commands="$ac_config_commands"
  22916. _ACEOF
  22917. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22918. ac_cs_usage="\
  22919. \`$as_me' instantiates files and other configuration actions
  22920. from templates according to the current configuration. Unless the files
  22921. and actions are specified as TAGs, all are instantiated by default.
  22922. Usage: $0 [OPTION]... [TAG]...
  22923. -h, --help print this help, then exit
  22924. -V, --version print version number and configuration settings, then exit
  22925. --config print configuration, then exit
  22926. -q, --quiet, --silent
  22927. do not print progress messages
  22928. -d, --debug don't remove temporary files
  22929. --recheck update $as_me by reconfiguring in the same conditions
  22930. --file=FILE[:TEMPLATE]
  22931. instantiate the configuration file FILE
  22932. --header=FILE[:TEMPLATE]
  22933. instantiate the configuration header FILE
  22934. Configuration files:
  22935. $config_files
  22936. Configuration headers:
  22937. $config_headers
  22938. Configuration commands:
  22939. $config_commands
  22940. Report bugs to the package provider."
  22941. _ACEOF
  22942. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22943. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22944. ac_cs_version="\\
  22945. config.status
  22946. configured by $0, generated by GNU Autoconf 2.69,
  22947. with options \\"\$ac_cs_config\\"
  22948. Copyright (C) 2012 Free Software Foundation, Inc.
  22949. This config.status script is free software; the Free Software Foundation
  22950. gives unlimited permission to copy, distribute and modify it."
  22951. ac_pwd='$ac_pwd'
  22952. srcdir='$srcdir'
  22953. INSTALL='$INSTALL'
  22954. AWK='$AWK'
  22955. test -n "\$AWK" || AWK=awk
  22956. _ACEOF
  22957. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22958. # The default lists apply if the user does not specify any file.
  22959. ac_need_defaults=:
  22960. while test $# != 0
  22961. do
  22962. case $1 in
  22963. --*=?*)
  22964. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22965. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22966. ac_shift=:
  22967. ;;
  22968. --*=)
  22969. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22970. ac_optarg=
  22971. ac_shift=:
  22972. ;;
  22973. *)
  22974. ac_option=$1
  22975. ac_optarg=$2
  22976. ac_shift=shift
  22977. ;;
  22978. esac
  22979. case $ac_option in
  22980. # Handling of the options.
  22981. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22982. ac_cs_recheck=: ;;
  22983. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22984. $as_echo "$ac_cs_version"; exit ;;
  22985. --config | --confi | --conf | --con | --co | --c )
  22986. $as_echo "$ac_cs_config"; exit ;;
  22987. --debug | --debu | --deb | --de | --d | -d )
  22988. debug=: ;;
  22989. --file | --fil | --fi | --f )
  22990. $ac_shift
  22991. case $ac_optarg in
  22992. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22993. '') as_fn_error $? "missing file argument" ;;
  22994. esac
  22995. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22996. ac_need_defaults=false;;
  22997. --header | --heade | --head | --hea )
  22998. $ac_shift
  22999. case $ac_optarg in
  23000. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23001. esac
  23002. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23003. ac_need_defaults=false;;
  23004. --he | --h)
  23005. # Conflict between --help and --header
  23006. as_fn_error $? "ambiguous option: \`$1'
  23007. Try \`$0 --help' for more information.";;
  23008. --help | --hel | -h )
  23009. $as_echo "$ac_cs_usage"; exit ;;
  23010. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23011. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23012. ac_cs_silent=: ;;
  23013. # This is an error.
  23014. -*) as_fn_error $? "unrecognized option: \`$1'
  23015. Try \`$0 --help' for more information." ;;
  23016. *) as_fn_append ac_config_targets " $1"
  23017. ac_need_defaults=false ;;
  23018. esac
  23019. shift
  23020. done
  23021. ac_configure_extra_args=
  23022. if $ac_cs_silent; then
  23023. exec 6>/dev/null
  23024. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23025. fi
  23026. _ACEOF
  23027. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23028. if \$ac_cs_recheck; then
  23029. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23030. shift
  23031. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23032. CONFIG_SHELL='$SHELL'
  23033. export CONFIG_SHELL
  23034. exec "\$@"
  23035. fi
  23036. _ACEOF
  23037. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23038. exec 5>>config.log
  23039. {
  23040. echo
  23041. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23042. ## Running $as_me. ##
  23043. _ASBOX
  23044. $as_echo "$ac_log"
  23045. } >&5
  23046. _ACEOF
  23047. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23048. #
  23049. # INIT-COMMANDS
  23050. #
  23051. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23052. # if CDPATH is set.
  23053. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23054. sed_quote_subst='$sed_quote_subst'
  23055. double_quote_subst='$double_quote_subst'
  23056. delay_variable_subst='$delay_variable_subst'
  23057. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23058. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23059. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23060. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23061. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23062. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23063. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23064. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  23065. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  23066. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  23067. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  23068. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  23069. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  23070. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  23071. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  23072. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  23073. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  23074. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  23075. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  23076. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  23077. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  23078. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  23079. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  23080. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  23081. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  23082. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  23083. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  23084. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  23085. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  23086. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  23087. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  23088. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  23089. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  23090. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  23091. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  23092. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  23093. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  23094. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  23095. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  23096. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  23097. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  23098. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  23099. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  23100. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  23101. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  23102. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  23103. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23104. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23105. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  23106. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  23107. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  23108. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  23109. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  23110. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  23111. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  23112. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  23113. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  23114. 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"`'
  23115. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  23116. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  23117. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23118. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23119. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23120. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23121. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23122. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23123. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23124. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23125. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23126. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23127. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23128. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23129. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23130. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23131. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23132. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23133. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23134. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23135. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23136. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23137. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23138. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23139. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23140. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23141. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23142. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23143. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23144. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23145. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23146. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23147. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23148. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23149. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23150. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23151. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23152. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23153. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23154. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23155. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23156. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23157. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23158. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23159. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23160. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23161. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23162. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23163. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23164. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23165. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23166. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23167. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23168. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23169. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23170. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23171. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23172. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23173. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23174. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23175. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23176. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23177. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23178. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23179. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23180. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23181. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23182. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23183. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23184. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23185. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23186. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23187. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23188. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23189. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23190. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23191. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23192. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23193. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23194. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23195. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23196. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23197. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23198. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23199. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23200. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23201. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23202. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23203. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23204. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23205. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23206. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23207. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23208. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23209. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23210. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23211. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23212. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23213. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23214. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23215. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23216. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23217. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23218. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23219. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23220. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23221. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23222. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23223. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23224. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23225. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23226. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23227. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23228. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23229. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23230. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23231. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23232. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23233. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23234. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23235. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23236. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23237. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23238. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23239. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23240. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23241. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23242. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23243. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23244. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23245. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23246. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23247. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23248. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23249. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23250. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23251. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23252. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23253. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23254. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23255. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23256. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23257. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23258. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23259. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23260. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23261. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23262. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23263. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23264. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23265. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23266. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23267. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23268. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23269. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23270. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23271. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23272. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23273. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23274. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23275. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23276. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23277. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23278. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23279. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23280. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23281. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23282. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23283. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23284. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23285. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23286. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23287. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23288. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23289. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23290. LTCC='$LTCC'
  23291. LTCFLAGS='$LTCFLAGS'
  23292. compiler='$compiler_DEFAULT'
  23293. # A function that is used when there is no print builtin or printf.
  23294. func_fallback_echo ()
  23295. {
  23296. eval 'cat <<_LTECHO_EOF
  23297. \$1
  23298. _LTECHO_EOF'
  23299. }
  23300. # Quote evaled strings.
  23301. for var in AS \
  23302. DLLTOOL \
  23303. OBJDUMP \
  23304. SHELL \
  23305. ECHO \
  23306. PATH_SEPARATOR \
  23307. SED \
  23308. GREP \
  23309. EGREP \
  23310. FGREP \
  23311. LD \
  23312. NM \
  23313. LN_S \
  23314. lt_SP2NL \
  23315. lt_NL2SP \
  23316. reload_flag \
  23317. deplibs_check_method \
  23318. file_magic_cmd \
  23319. file_magic_glob \
  23320. want_nocaseglob \
  23321. sharedlib_from_linklib_cmd \
  23322. AR \
  23323. AR_FLAGS \
  23324. archiver_list_spec \
  23325. STRIP \
  23326. RANLIB \
  23327. CC \
  23328. CFLAGS \
  23329. compiler \
  23330. lt_cv_sys_global_symbol_pipe \
  23331. lt_cv_sys_global_symbol_to_cdecl \
  23332. lt_cv_sys_global_symbol_to_c_name_address \
  23333. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23334. nm_file_list_spec \
  23335. lt_prog_compiler_no_builtin_flag \
  23336. lt_prog_compiler_pic \
  23337. lt_prog_compiler_wl \
  23338. lt_prog_compiler_static \
  23339. lt_cv_prog_compiler_c_o \
  23340. need_locks \
  23341. MANIFEST_TOOL \
  23342. DSYMUTIL \
  23343. NMEDIT \
  23344. LIPO \
  23345. OTOOL \
  23346. OTOOL64 \
  23347. shrext_cmds \
  23348. export_dynamic_flag_spec \
  23349. whole_archive_flag_spec \
  23350. compiler_needs_object \
  23351. with_gnu_ld \
  23352. allow_undefined_flag \
  23353. no_undefined_flag \
  23354. hardcode_libdir_flag_spec \
  23355. hardcode_libdir_separator \
  23356. exclude_expsyms \
  23357. include_expsyms \
  23358. file_list_spec \
  23359. variables_saved_for_relink \
  23360. libname_spec \
  23361. library_names_spec \
  23362. soname_spec \
  23363. install_override_mode \
  23364. finish_eval \
  23365. old_striplib \
  23366. striplib \
  23367. compiler_lib_search_dirs \
  23368. predep_objects \
  23369. postdep_objects \
  23370. predeps \
  23371. postdeps \
  23372. compiler_lib_search_path \
  23373. LD_RC \
  23374. LD_CXX \
  23375. reload_flag_RC \
  23376. reload_flag_CXX \
  23377. compiler_RC \
  23378. compiler_CXX \
  23379. lt_prog_compiler_no_builtin_flag_RC \
  23380. lt_prog_compiler_no_builtin_flag_CXX \
  23381. lt_prog_compiler_pic_RC \
  23382. lt_prog_compiler_pic_CXX \
  23383. lt_prog_compiler_wl_RC \
  23384. lt_prog_compiler_wl_CXX \
  23385. lt_prog_compiler_static_RC \
  23386. lt_prog_compiler_static_CXX \
  23387. lt_cv_prog_compiler_c_o_RC \
  23388. lt_cv_prog_compiler_c_o_CXX \
  23389. export_dynamic_flag_spec_RC \
  23390. export_dynamic_flag_spec_CXX \
  23391. whole_archive_flag_spec_RC \
  23392. whole_archive_flag_spec_CXX \
  23393. compiler_needs_object_RC \
  23394. compiler_needs_object_CXX \
  23395. with_gnu_ld_RC \
  23396. with_gnu_ld_CXX \
  23397. allow_undefined_flag_RC \
  23398. allow_undefined_flag_CXX \
  23399. no_undefined_flag_RC \
  23400. no_undefined_flag_CXX \
  23401. hardcode_libdir_flag_spec_RC \
  23402. hardcode_libdir_flag_spec_CXX \
  23403. hardcode_libdir_separator_RC \
  23404. hardcode_libdir_separator_CXX \
  23405. exclude_expsyms_RC \
  23406. exclude_expsyms_CXX \
  23407. include_expsyms_RC \
  23408. include_expsyms_CXX \
  23409. file_list_spec_RC \
  23410. file_list_spec_CXX \
  23411. compiler_lib_search_dirs_RC \
  23412. compiler_lib_search_dirs_CXX \
  23413. predep_objects_RC \
  23414. predep_objects_CXX \
  23415. postdep_objects_RC \
  23416. postdep_objects_CXX \
  23417. predeps_RC \
  23418. predeps_CXX \
  23419. postdeps_RC \
  23420. postdeps_CXX \
  23421. compiler_lib_search_path_RC \
  23422. compiler_lib_search_path_CXX; do
  23423. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23424. *[\\\\\\\`\\"\\\$]*)
  23425. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23426. ;;
  23427. *)
  23428. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23429. ;;
  23430. esac
  23431. done
  23432. # Double-quote double-evaled strings.
  23433. for var in reload_cmds \
  23434. old_postinstall_cmds \
  23435. old_postuninstall_cmds \
  23436. old_archive_cmds \
  23437. extract_expsyms_cmds \
  23438. old_archive_from_new_cmds \
  23439. old_archive_from_expsyms_cmds \
  23440. archive_cmds \
  23441. archive_expsym_cmds \
  23442. module_cmds \
  23443. module_expsym_cmds \
  23444. export_symbols_cmds \
  23445. prelink_cmds \
  23446. postlink_cmds \
  23447. postinstall_cmds \
  23448. postuninstall_cmds \
  23449. finish_cmds \
  23450. sys_lib_search_path_spec \
  23451. sys_lib_dlsearch_path_spec \
  23452. reload_cmds_RC \
  23453. reload_cmds_CXX \
  23454. old_archive_cmds_RC \
  23455. old_archive_cmds_CXX \
  23456. old_archive_from_new_cmds_RC \
  23457. old_archive_from_new_cmds_CXX \
  23458. old_archive_from_expsyms_cmds_RC \
  23459. old_archive_from_expsyms_cmds_CXX \
  23460. archive_cmds_RC \
  23461. archive_cmds_CXX \
  23462. archive_expsym_cmds_RC \
  23463. archive_expsym_cmds_CXX \
  23464. module_cmds_RC \
  23465. module_cmds_CXX \
  23466. module_expsym_cmds_RC \
  23467. module_expsym_cmds_CXX \
  23468. export_symbols_cmds_RC \
  23469. export_symbols_cmds_CXX \
  23470. prelink_cmds_RC \
  23471. prelink_cmds_CXX \
  23472. postlink_cmds_RC \
  23473. postlink_cmds_CXX; do
  23474. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23475. *[\\\\\\\`\\"\\\$]*)
  23476. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23477. ;;
  23478. *)
  23479. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23480. ;;
  23481. esac
  23482. done
  23483. ac_aux_dir='$ac_aux_dir'
  23484. xsi_shell='$xsi_shell'
  23485. lt_shell_append='$lt_shell_append'
  23486. # See if we are running on zsh, and set the options which allow our
  23487. # commands through without removal of \ escapes INIT.
  23488. if test -n "\${ZSH_VERSION+set}" ; then
  23489. setopt NO_GLOB_SUBST
  23490. fi
  23491. PACKAGE='$PACKAGE'
  23492. VERSION='$VERSION'
  23493. TIMESTAMP='$TIMESTAMP'
  23494. RM='$RM'
  23495. ofile='$ofile'
  23496. SUMMARY="$SUMMARY"
  23497. _ACEOF
  23498. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23499. # Handling of arguments.
  23500. for ac_config_target in $ac_config_targets
  23501. do
  23502. case $ac_config_target in
  23503. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23504. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23505. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23506. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23507. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23508. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23509. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23510. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23511. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23512. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23513. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23514. esac
  23515. done
  23516. # If the user did not use the arguments to specify the items to instantiate,
  23517. # then the envvar interface is used. Set only those that are not.
  23518. # We use the long form for the default assignment because of an extremely
  23519. # bizarre bug on SunOS 4.1.3.
  23520. if $ac_need_defaults; then
  23521. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23522. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23523. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23524. fi
  23525. # Have a temporary directory for convenience. Make it in the build tree
  23526. # simply because there is no reason against having it here, and in addition,
  23527. # creating and moving files from /tmp can sometimes cause problems.
  23528. # Hook for its removal unless debugging.
  23529. # Note that there is a small window in which the directory will not be cleaned:
  23530. # after its creation but before its name has been assigned to `$tmp'.
  23531. $debug ||
  23532. {
  23533. tmp= ac_tmp=
  23534. trap 'exit_status=$?
  23535. : "${ac_tmp:=$tmp}"
  23536. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23537. ' 0
  23538. trap 'as_fn_exit 1' 1 2 13 15
  23539. }
  23540. # Create a (secure) tmp directory for tmp files.
  23541. {
  23542. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23543. test -d "$tmp"
  23544. } ||
  23545. {
  23546. tmp=./conf$$-$RANDOM
  23547. (umask 077 && mkdir "$tmp")
  23548. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23549. ac_tmp=$tmp
  23550. # Set up the scripts for CONFIG_FILES section.
  23551. # No need to generate them if there are no CONFIG_FILES.
  23552. # This happens for instance with `./config.status config.h'.
  23553. if test -n "$CONFIG_FILES"; then
  23554. ac_cr=`echo X | tr X '\015'`
  23555. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23556. # But we know of no other shell where ac_cr would be empty at this
  23557. # point, so we can use a bashism as a fallback.
  23558. if test "x$ac_cr" = x; then
  23559. eval ac_cr=\$\'\\r\'
  23560. fi
  23561. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23562. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23563. ac_cs_awk_cr='\\r'
  23564. else
  23565. ac_cs_awk_cr=$ac_cr
  23566. fi
  23567. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23568. _ACEOF
  23569. {
  23570. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23571. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23572. echo "_ACEOF"
  23573. } >conf$$subs.sh ||
  23574. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23575. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23576. ac_delim='%!_!# '
  23577. for ac_last_try in false false false false false :; do
  23578. . ./conf$$subs.sh ||
  23579. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23580. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23581. if test $ac_delim_n = $ac_delim_num; then
  23582. break
  23583. elif $ac_last_try; then
  23584. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23585. else
  23586. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23587. fi
  23588. done
  23589. rm -f conf$$subs.sh
  23590. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23591. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23592. _ACEOF
  23593. sed -n '
  23594. h
  23595. s/^/S["/; s/!.*/"]=/
  23596. p
  23597. g
  23598. s/^[^!]*!//
  23599. :repl
  23600. t repl
  23601. s/'"$ac_delim"'$//
  23602. t delim
  23603. :nl
  23604. h
  23605. s/\(.\{148\}\)..*/\1/
  23606. t more1
  23607. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23608. p
  23609. n
  23610. b repl
  23611. :more1
  23612. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23613. p
  23614. g
  23615. s/.\{148\}//
  23616. t nl
  23617. :delim
  23618. h
  23619. s/\(.\{148\}\)..*/\1/
  23620. t more2
  23621. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23622. p
  23623. b
  23624. :more2
  23625. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23626. p
  23627. g
  23628. s/.\{148\}//
  23629. t delim
  23630. ' <conf$$subs.awk | sed '
  23631. /^[^""]/{
  23632. N
  23633. s/\n//
  23634. }
  23635. ' >>$CONFIG_STATUS || ac_write_fail=1
  23636. rm -f conf$$subs.awk
  23637. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23638. _ACAWK
  23639. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23640. for (key in S) S_is_set[key] = 1
  23641. FS = ""
  23642. }
  23643. {
  23644. line = $ 0
  23645. nfields = split(line, field, "@")
  23646. substed = 0
  23647. len = length(field[1])
  23648. for (i = 2; i < nfields; i++) {
  23649. key = field[i]
  23650. keylen = length(key)
  23651. if (S_is_set[key]) {
  23652. value = S[key]
  23653. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23654. len += length(value) + length(field[++i])
  23655. substed = 1
  23656. } else
  23657. len += 1 + keylen
  23658. }
  23659. print line
  23660. }
  23661. _ACAWK
  23662. _ACEOF
  23663. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23664. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23665. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23666. else
  23667. cat
  23668. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23669. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23670. _ACEOF
  23671. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23672. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23673. # trailing colons and then remove the whole line if VPATH becomes empty
  23674. # (actually we leave an empty line to preserve line numbers).
  23675. if test "x$srcdir" = x.; then
  23676. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23677. h
  23678. s///
  23679. s/^/:/
  23680. s/[ ]*$/:/
  23681. s/:\$(srcdir):/:/g
  23682. s/:\${srcdir}:/:/g
  23683. s/:@srcdir@:/:/g
  23684. s/^:*//
  23685. s/:*$//
  23686. x
  23687. s/\(=[ ]*\).*/\1/
  23688. G
  23689. s/\n//
  23690. s/^[^=]*=[ ]*$//
  23691. }'
  23692. fi
  23693. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23694. fi # test -n "$CONFIG_FILES"
  23695. # Set up the scripts for CONFIG_HEADERS section.
  23696. # No need to generate them if there are no CONFIG_HEADERS.
  23697. # This happens for instance with `./config.status Makefile'.
  23698. if test -n "$CONFIG_HEADERS"; then
  23699. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23700. BEGIN {
  23701. _ACEOF
  23702. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23703. # here-document in config.status, that substitutes the proper values into
  23704. # config.h.in to produce config.h.
  23705. # Create a delimiter string that does not exist in confdefs.h, to ease
  23706. # handling of long lines.
  23707. ac_delim='%!_!# '
  23708. for ac_last_try in false false :; do
  23709. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23710. if test -z "$ac_tt"; then
  23711. break
  23712. elif $ac_last_try; then
  23713. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23714. else
  23715. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23716. fi
  23717. done
  23718. # For the awk script, D is an array of macro values keyed by name,
  23719. # likewise P contains macro parameters if any. Preserve backslash
  23720. # newline sequences.
  23721. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23722. sed -n '
  23723. s/.\{148\}/&'"$ac_delim"'/g
  23724. t rset
  23725. :rset
  23726. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23727. t def
  23728. d
  23729. :def
  23730. s/\\$//
  23731. t bsnl
  23732. s/["\\]/\\&/g
  23733. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23734. D["\1"]=" \3"/p
  23735. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23736. d
  23737. :bsnl
  23738. s/["\\]/\\&/g
  23739. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23740. D["\1"]=" \3\\\\\\n"\\/p
  23741. t cont
  23742. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23743. t cont
  23744. d
  23745. :cont
  23746. n
  23747. s/.\{148\}/&'"$ac_delim"'/g
  23748. t clear
  23749. :clear
  23750. s/\\$//
  23751. t bsnlc
  23752. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23753. d
  23754. :bsnlc
  23755. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23756. b cont
  23757. ' <confdefs.h | sed '
  23758. s/'"$ac_delim"'/"\\\
  23759. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23760. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23761. for (key in D) D_is_set[key] = 1
  23762. FS = ""
  23763. }
  23764. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23765. line = \$ 0
  23766. split(line, arg, " ")
  23767. if (arg[1] == "#") {
  23768. defundef = arg[2]
  23769. mac1 = arg[3]
  23770. } else {
  23771. defundef = substr(arg[1], 2)
  23772. mac1 = arg[2]
  23773. }
  23774. split(mac1, mac2, "(") #)
  23775. macro = mac2[1]
  23776. prefix = substr(line, 1, index(line, defundef) - 1)
  23777. if (D_is_set[macro]) {
  23778. # Preserve the white space surrounding the "#".
  23779. print prefix "define", macro P[macro] D[macro]
  23780. next
  23781. } else {
  23782. # Replace #undef with comments. This is necessary, for example,
  23783. # in the case of _POSIX_SOURCE, which is predefined and required
  23784. # on some systems where configure will not decide to define it.
  23785. if (defundef == "undef") {
  23786. print "/*", prefix defundef, macro, "*/"
  23787. next
  23788. }
  23789. }
  23790. }
  23791. { print }
  23792. _ACAWK
  23793. _ACEOF
  23794. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23795. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23796. fi # test -n "$CONFIG_HEADERS"
  23797. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23798. shift
  23799. for ac_tag
  23800. do
  23801. case $ac_tag in
  23802. :[FHLC]) ac_mode=$ac_tag; continue;;
  23803. esac
  23804. case $ac_mode$ac_tag in
  23805. :[FHL]*:*);;
  23806. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23807. :[FH]-) ac_tag=-:-;;
  23808. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23809. esac
  23810. ac_save_IFS=$IFS
  23811. IFS=:
  23812. set x $ac_tag
  23813. IFS=$ac_save_IFS
  23814. shift
  23815. ac_file=$1
  23816. shift
  23817. case $ac_mode in
  23818. :L) ac_source=$1;;
  23819. :[FH])
  23820. ac_file_inputs=
  23821. for ac_f
  23822. do
  23823. case $ac_f in
  23824. -) ac_f="$ac_tmp/stdin";;
  23825. *) # Look for the file first in the build tree, then in the source tree
  23826. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23827. # because $ac_f cannot contain `:'.
  23828. test -f "$ac_f" ||
  23829. case $ac_f in
  23830. [\\/$]*) false;;
  23831. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23832. esac ||
  23833. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23834. esac
  23835. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23836. as_fn_append ac_file_inputs " '$ac_f'"
  23837. done
  23838. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23839. # use $as_me), people would be surprised to read:
  23840. # /* config.h. Generated by config.status. */
  23841. configure_input='Generated from '`
  23842. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23843. `' by configure.'
  23844. if test x"$ac_file" != x-; then
  23845. configure_input="$ac_file. $configure_input"
  23846. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23847. $as_echo "$as_me: creating $ac_file" >&6;}
  23848. fi
  23849. # Neutralize special characters interpreted by sed in replacement strings.
  23850. case $configure_input in #(
  23851. *\&* | *\|* | *\\* )
  23852. ac_sed_conf_input=`$as_echo "$configure_input" |
  23853. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23854. *) ac_sed_conf_input=$configure_input;;
  23855. esac
  23856. case $ac_tag in
  23857. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23858. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23859. esac
  23860. ;;
  23861. esac
  23862. ac_dir=`$as_dirname -- "$ac_file" ||
  23863. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23864. X"$ac_file" : 'X\(//\)[^/]' \| \
  23865. X"$ac_file" : 'X\(//\)$' \| \
  23866. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23867. $as_echo X"$ac_file" |
  23868. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23869. s//\1/
  23870. q
  23871. }
  23872. /^X\(\/\/\)[^/].*/{
  23873. s//\1/
  23874. q
  23875. }
  23876. /^X\(\/\/\)$/{
  23877. s//\1/
  23878. q
  23879. }
  23880. /^X\(\/\).*/{
  23881. s//\1/
  23882. q
  23883. }
  23884. s/.*/./; q'`
  23885. as_dir="$ac_dir"; as_fn_mkdir_p
  23886. ac_builddir=.
  23887. case "$ac_dir" in
  23888. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23889. *)
  23890. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23891. # A ".." for each directory in $ac_dir_suffix.
  23892. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23893. case $ac_top_builddir_sub in
  23894. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23895. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23896. esac ;;
  23897. esac
  23898. ac_abs_top_builddir=$ac_pwd
  23899. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23900. # for backward compatibility:
  23901. ac_top_builddir=$ac_top_build_prefix
  23902. case $srcdir in
  23903. .) # We are building in place.
  23904. ac_srcdir=.
  23905. ac_top_srcdir=$ac_top_builddir_sub
  23906. ac_abs_top_srcdir=$ac_pwd ;;
  23907. [\\/]* | ?:[\\/]* ) # Absolute name.
  23908. ac_srcdir=$srcdir$ac_dir_suffix;
  23909. ac_top_srcdir=$srcdir
  23910. ac_abs_top_srcdir=$srcdir ;;
  23911. *) # Relative name.
  23912. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23913. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23914. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23915. esac
  23916. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23917. case $ac_mode in
  23918. :F)
  23919. #
  23920. # CONFIG_FILE
  23921. #
  23922. case $INSTALL in
  23923. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23924. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23925. esac
  23926. _ACEOF
  23927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23928. # If the template does not know about datarootdir, expand it.
  23929. # FIXME: This hack should be removed a few years after 2.60.
  23930. ac_datarootdir_hack=; ac_datarootdir_seen=
  23931. ac_sed_dataroot='
  23932. /datarootdir/ {
  23933. p
  23934. q
  23935. }
  23936. /@datadir@/p
  23937. /@docdir@/p
  23938. /@infodir@/p
  23939. /@localedir@/p
  23940. /@mandir@/p'
  23941. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23942. *datarootdir*) ac_datarootdir_seen=yes;;
  23943. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23945. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23946. _ACEOF
  23947. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23948. ac_datarootdir_hack='
  23949. s&@datadir@&$datadir&g
  23950. s&@docdir@&$docdir&g
  23951. s&@infodir@&$infodir&g
  23952. s&@localedir@&$localedir&g
  23953. s&@mandir@&$mandir&g
  23954. s&\\\${datarootdir}&$datarootdir&g' ;;
  23955. esac
  23956. _ACEOF
  23957. # Neutralize VPATH when `$srcdir' = `.'.
  23958. # Shell code in configure.ac might set extrasub.
  23959. # FIXME: do we really want to maintain this feature?
  23960. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23961. ac_sed_extra="$ac_vpsub
  23962. $extrasub
  23963. _ACEOF
  23964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23965. :t
  23966. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23967. s|@configure_input@|$ac_sed_conf_input|;t t
  23968. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23969. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23970. s&@srcdir@&$ac_srcdir&;t t
  23971. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23972. s&@top_srcdir@&$ac_top_srcdir&;t t
  23973. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23974. s&@builddir@&$ac_builddir&;t t
  23975. s&@abs_builddir@&$ac_abs_builddir&;t t
  23976. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23977. s&@INSTALL@&$ac_INSTALL&;t t
  23978. $ac_datarootdir_hack
  23979. "
  23980. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23981. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23982. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23983. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23984. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23985. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23987. which seems to be undefined. Please make sure it is defined" >&5
  23988. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23989. which seems to be undefined. Please make sure it is defined" >&2;}
  23990. rm -f "$ac_tmp/stdin"
  23991. case $ac_file in
  23992. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23993. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23994. esac \
  23995. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23996. ;;
  23997. :H)
  23998. #
  23999. # CONFIG_HEADER
  24000. #
  24001. if test x"$ac_file" != x-; then
  24002. {
  24003. $as_echo "/* $configure_input */" \
  24004. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24005. } >"$ac_tmp/config.h" \
  24006. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24007. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24008. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24009. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24010. else
  24011. rm -f "$ac_file"
  24012. mv "$ac_tmp/config.h" "$ac_file" \
  24013. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24014. fi
  24015. else
  24016. $as_echo "/* $configure_input */" \
  24017. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24018. || as_fn_error $? "could not create -" "$LINENO" 5
  24019. fi
  24020. ;;
  24021. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24022. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24023. ;;
  24024. esac
  24025. case $ac_file$ac_mode in
  24026. "libtool":C)
  24027. # See if we are running on zsh, and set the options which allow our
  24028. # commands through without removal of \ escapes.
  24029. if test -n "${ZSH_VERSION+set}" ; then
  24030. setopt NO_GLOB_SUBST
  24031. fi
  24032. cfgfile="${ofile}T"
  24033. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24034. $RM "$cfgfile"
  24035. cat <<_LT_EOF >> "$cfgfile"
  24036. #! $SHELL
  24037. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  24038. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  24039. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24040. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24041. #
  24042. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  24043. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  24044. # Foundation, Inc.
  24045. # Written by Gordon Matzigkeit, 1996
  24046. #
  24047. # This file is part of GNU Libtool.
  24048. #
  24049. # GNU Libtool is free software; you can redistribute it and/or
  24050. # modify it under the terms of the GNU General Public License as
  24051. # published by the Free Software Foundation; either version 2 of
  24052. # the License, or (at your option) any later version.
  24053. #
  24054. # As a special exception to the GNU General Public License,
  24055. # if you distribute this file as part of a program or library that
  24056. # is built using GNU Libtool, you may include this file under the
  24057. # same distribution terms that you use for the rest of that program.
  24058. #
  24059. # GNU Libtool is distributed in the hope that it will be useful,
  24060. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24061. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24062. # GNU General Public License for more details.
  24063. #
  24064. # You should have received a copy of the GNU General Public License
  24065. # along with GNU Libtool; see the file COPYING. If not, a copy
  24066. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  24067. # obtained by writing to the Free Software Foundation, Inc.,
  24068. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24069. # The names of the tagged configurations supported by this script.
  24070. available_tags="RC CXX "
  24071. # ### BEGIN LIBTOOL CONFIG
  24072. # Which release of libtool.m4 was used?
  24073. macro_version=$macro_version
  24074. macro_revision=$macro_revision
  24075. # Assembler program.
  24076. AS=$lt_AS
  24077. # DLL creation program.
  24078. DLLTOOL=$lt_DLLTOOL
  24079. # Object dumper program.
  24080. OBJDUMP=$lt_OBJDUMP
  24081. # Whether or not to build shared libraries.
  24082. build_libtool_libs=$enable_shared
  24083. # Whether or not to build static libraries.
  24084. build_old_libs=$enable_static
  24085. # What type of objects to build.
  24086. pic_mode=$pic_mode
  24087. # Whether or not to optimize for fast installation.
  24088. fast_install=$enable_fast_install
  24089. # Shell to use when invoking shell scripts.
  24090. SHELL=$lt_SHELL
  24091. # An echo program that protects backslashes.
  24092. ECHO=$lt_ECHO
  24093. # The PATH separator for the build system.
  24094. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  24095. # The host system.
  24096. host_alias=$host_alias
  24097. host=$host
  24098. host_os=$host_os
  24099. # The build system.
  24100. build_alias=$build_alias
  24101. build=$build
  24102. build_os=$build_os
  24103. # A sed program that does not truncate output.
  24104. SED=$lt_SED
  24105. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24106. Xsed="\$SED -e 1s/^X//"
  24107. # A grep program that handles long lines.
  24108. GREP=$lt_GREP
  24109. # An ERE matcher.
  24110. EGREP=$lt_EGREP
  24111. # A literal string matcher.
  24112. FGREP=$lt_FGREP
  24113. # A BSD- or MS-compatible name lister.
  24114. NM=$lt_NM
  24115. # Whether we need soft or hard links.
  24116. LN_S=$lt_LN_S
  24117. # What is the maximum length of a command?
  24118. max_cmd_len=$max_cmd_len
  24119. # Object file suffix (normally "o").
  24120. objext=$ac_objext
  24121. # Executable file suffix (normally "").
  24122. exeext=$exeext
  24123. # whether the shell understands "unset".
  24124. lt_unset=$lt_unset
  24125. # turn spaces into newlines.
  24126. SP2NL=$lt_lt_SP2NL
  24127. # turn newlines into spaces.
  24128. NL2SP=$lt_lt_NL2SP
  24129. # convert \$build file names to \$host format.
  24130. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24131. # convert \$build files to toolchain format.
  24132. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24133. # Method to check whether dependent libraries are shared objects.
  24134. deplibs_check_method=$lt_deplibs_check_method
  24135. # Command to use when deplibs_check_method = "file_magic".
  24136. file_magic_cmd=$lt_file_magic_cmd
  24137. # How to find potential files when deplibs_check_method = "file_magic".
  24138. file_magic_glob=$lt_file_magic_glob
  24139. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24140. want_nocaseglob=$lt_want_nocaseglob
  24141. # Command to associate shared and link libraries.
  24142. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24143. # The archiver.
  24144. AR=$lt_AR
  24145. # Flags to create an archive.
  24146. AR_FLAGS=$lt_AR_FLAGS
  24147. # How to feed a file listing to the archiver.
  24148. archiver_list_spec=$lt_archiver_list_spec
  24149. # A symbol stripping program.
  24150. STRIP=$lt_STRIP
  24151. # Commands used to install an old-style archive.
  24152. RANLIB=$lt_RANLIB
  24153. old_postinstall_cmds=$lt_old_postinstall_cmds
  24154. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24155. # Whether to use a lock for old archive extraction.
  24156. lock_old_archive_extraction=$lock_old_archive_extraction
  24157. # A C compiler.
  24158. LTCC=$lt_CC
  24159. # LTCC compiler flags.
  24160. LTCFLAGS=$lt_CFLAGS
  24161. # Take the output of nm and produce a listing of raw symbols and C names.
  24162. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24163. # Transform the output of nm in a proper C declaration.
  24164. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24165. # Transform the output of nm in a C name address pair.
  24166. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24167. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24168. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24169. # Specify filename containing input files for \$NM.
  24170. nm_file_list_spec=$lt_nm_file_list_spec
  24171. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24172. lt_sysroot=$lt_sysroot
  24173. # The name of the directory that contains temporary libtool files.
  24174. objdir=$objdir
  24175. # Used to examine libraries when file_magic_cmd begins with "file".
  24176. MAGIC_CMD=$MAGIC_CMD
  24177. # Must we lock files when doing compilation?
  24178. need_locks=$lt_need_locks
  24179. # Manifest tool.
  24180. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24181. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24182. DSYMUTIL=$lt_DSYMUTIL
  24183. # Tool to change global to local symbols on Mac OS X.
  24184. NMEDIT=$lt_NMEDIT
  24185. # Tool to manipulate fat objects and archives on Mac OS X.
  24186. LIPO=$lt_LIPO
  24187. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24188. OTOOL=$lt_OTOOL
  24189. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24190. OTOOL64=$lt_OTOOL64
  24191. # Old archive suffix (normally "a").
  24192. libext=$libext
  24193. # Shared library suffix (normally ".so").
  24194. shrext_cmds=$lt_shrext_cmds
  24195. # The commands to extract the exported symbol list from a shared archive.
  24196. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24197. # Variables whose values should be saved in libtool wrapper scripts and
  24198. # restored at link time.
  24199. variables_saved_for_relink=$lt_variables_saved_for_relink
  24200. # Do we need the "lib" prefix for modules?
  24201. need_lib_prefix=$need_lib_prefix
  24202. # Do we need a version for libraries?
  24203. need_version=$need_version
  24204. # Library versioning type.
  24205. version_type=$version_type
  24206. # Shared library runtime path variable.
  24207. runpath_var=$runpath_var
  24208. # Shared library path variable.
  24209. shlibpath_var=$shlibpath_var
  24210. # Is shlibpath searched before the hard-coded library search path?
  24211. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24212. # Format of library name prefix.
  24213. libname_spec=$lt_libname_spec
  24214. # List of archive names. First name is the real one, the rest are links.
  24215. # The last name is the one that the linker finds with -lNAME
  24216. library_names_spec=$lt_library_names_spec
  24217. # The coded name of the library, if different from the real name.
  24218. soname_spec=$lt_soname_spec
  24219. # Permission mode override for installation of shared libraries.
  24220. install_override_mode=$lt_install_override_mode
  24221. # Command to use after installation of a shared archive.
  24222. postinstall_cmds=$lt_postinstall_cmds
  24223. # Command to use after uninstallation of a shared archive.
  24224. postuninstall_cmds=$lt_postuninstall_cmds
  24225. # Commands used to finish a libtool library installation in a directory.
  24226. finish_cmds=$lt_finish_cmds
  24227. # As "finish_cmds", except a single script fragment to be evaled but
  24228. # not shown.
  24229. finish_eval=$lt_finish_eval
  24230. # Whether we should hardcode library paths into libraries.
  24231. hardcode_into_libs=$hardcode_into_libs
  24232. # Compile-time system search path for libraries.
  24233. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24234. # Run-time system search path for libraries.
  24235. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24236. # Whether dlopen is supported.
  24237. dlopen_support=$enable_dlopen
  24238. # Whether dlopen of programs is supported.
  24239. dlopen_self=$enable_dlopen_self
  24240. # Whether dlopen of statically linked programs is supported.
  24241. dlopen_self_static=$enable_dlopen_self_static
  24242. # Commands to strip libraries.
  24243. old_striplib=$lt_old_striplib
  24244. striplib=$lt_striplib
  24245. # The linker used to build libraries.
  24246. LD=$lt_LD
  24247. # How to create reloadable object files.
  24248. reload_flag=$lt_reload_flag
  24249. reload_cmds=$lt_reload_cmds
  24250. # Commands used to build an old-style archive.
  24251. old_archive_cmds=$lt_old_archive_cmds
  24252. # A language specific compiler.
  24253. CC=$lt_compiler
  24254. # Is the compiler the GNU compiler?
  24255. with_gcc=$GCC
  24256. # Compiler flag to turn off builtin functions.
  24257. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24258. # Additional compiler flags for building library objects.
  24259. pic_flag=$lt_lt_prog_compiler_pic
  24260. # How to pass a linker flag through the compiler.
  24261. wl=$lt_lt_prog_compiler_wl
  24262. # Compiler flag to prevent dynamic linking.
  24263. link_static_flag=$lt_lt_prog_compiler_static
  24264. # Does compiler simultaneously support -c and -o options?
  24265. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24266. # Whether or not to add -lc for building shared libraries.
  24267. build_libtool_need_lc=$archive_cmds_need_lc
  24268. # Whether or not to disallow shared libs when runtime libs are static.
  24269. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24270. # Compiler flag to allow reflexive dlopens.
  24271. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24272. # Compiler flag to generate shared objects directly from archives.
  24273. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24274. # Whether the compiler copes with passing no objects directly.
  24275. compiler_needs_object=$lt_compiler_needs_object
  24276. # Create an old-style archive from a shared archive.
  24277. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24278. # Create a temporary old-style archive to link instead of a shared archive.
  24279. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24280. # Commands used to build a shared archive.
  24281. archive_cmds=$lt_archive_cmds
  24282. archive_expsym_cmds=$lt_archive_expsym_cmds
  24283. # Commands used to build a loadable module if different from building
  24284. # a shared archive.
  24285. module_cmds=$lt_module_cmds
  24286. module_expsym_cmds=$lt_module_expsym_cmds
  24287. # Whether we are building with GNU ld or not.
  24288. with_gnu_ld=$lt_with_gnu_ld
  24289. # Flag that allows shared libraries with undefined symbols to be built.
  24290. allow_undefined_flag=$lt_allow_undefined_flag
  24291. # Flag that enforces no undefined symbols.
  24292. no_undefined_flag=$lt_no_undefined_flag
  24293. # Flag to hardcode \$libdir into a binary during linking.
  24294. # This must work even if \$libdir does not exist
  24295. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24296. # Whether we need a single "-rpath" flag with a separated argument.
  24297. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24298. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24299. # DIR into the resulting binary.
  24300. hardcode_direct=$hardcode_direct
  24301. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24302. # DIR into the resulting binary and the resulting library dependency is
  24303. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24304. # library is relocated.
  24305. hardcode_direct_absolute=$hardcode_direct_absolute
  24306. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24307. # into the resulting binary.
  24308. hardcode_minus_L=$hardcode_minus_L
  24309. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24310. # into the resulting binary.
  24311. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24312. # Set to "yes" if building a shared library automatically hardcodes DIR
  24313. # into the library and all subsequent libraries and executables linked
  24314. # against it.
  24315. hardcode_automatic=$hardcode_automatic
  24316. # Set to yes if linker adds runtime paths of dependent libraries
  24317. # to runtime path list.
  24318. inherit_rpath=$inherit_rpath
  24319. # Whether libtool must link a program against all its dependency libraries.
  24320. link_all_deplibs=$link_all_deplibs
  24321. # Set to "yes" if exported symbols are required.
  24322. always_export_symbols=$always_export_symbols
  24323. # The commands to list exported symbols.
  24324. export_symbols_cmds=$lt_export_symbols_cmds
  24325. # Symbols that should not be listed in the preloaded symbols.
  24326. exclude_expsyms=$lt_exclude_expsyms
  24327. # Symbols that must always be exported.
  24328. include_expsyms=$lt_include_expsyms
  24329. # Commands necessary for linking programs (against libraries) with templates.
  24330. prelink_cmds=$lt_prelink_cmds
  24331. # Commands necessary for finishing linking programs.
  24332. postlink_cmds=$lt_postlink_cmds
  24333. # Specify filename containing input files.
  24334. file_list_spec=$lt_file_list_spec
  24335. # How to hardcode a shared library path into an executable.
  24336. hardcode_action=$hardcode_action
  24337. # The directories searched by this compiler when creating a shared library.
  24338. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24339. # Dependencies to place before and after the objects being linked to
  24340. # create a shared library.
  24341. predep_objects=$lt_predep_objects
  24342. postdep_objects=$lt_postdep_objects
  24343. predeps=$lt_predeps
  24344. postdeps=$lt_postdeps
  24345. # The library search path used internally by the compiler when linking
  24346. # a shared library.
  24347. compiler_lib_search_path=$lt_compiler_lib_search_path
  24348. # ### END LIBTOOL CONFIG
  24349. _LT_EOF
  24350. case $host_os in
  24351. aix3*)
  24352. cat <<\_LT_EOF >> "$cfgfile"
  24353. # AIX sometimes has problems with the GCC collect2 program. For some
  24354. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24355. # vanish in a puff of smoke.
  24356. if test "X${COLLECT_NAMES+set}" != Xset; then
  24357. COLLECT_NAMES=
  24358. export COLLECT_NAMES
  24359. fi
  24360. _LT_EOF
  24361. ;;
  24362. esac
  24363. ltmain="$ac_aux_dir/ltmain.sh"
  24364. # We use sed instead of cat because bash on DJGPP gets confused if
  24365. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24366. # text mode, it properly converts lines to CR/LF. This bash problem
  24367. # is reportedly fixed, but why not run on old versions too?
  24368. sed '$q' "$ltmain" >> "$cfgfile" \
  24369. || (rm -f "$cfgfile"; exit 1)
  24370. if test x"$xsi_shell" = xyes; then
  24371. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24372. func_dirname ()\
  24373. {\
  24374. \ case ${1} in\
  24375. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24376. \ * ) func_dirname_result="${3}" ;;\
  24377. \ esac\
  24378. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24379. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24380. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24381. test 0 -eq $? || _lt_function_replace_fail=:
  24382. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24383. func_basename ()\
  24384. {\
  24385. \ func_basename_result="${1##*/}"\
  24386. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24387. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24388. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24389. test 0 -eq $? || _lt_function_replace_fail=:
  24390. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24391. func_dirname_and_basename ()\
  24392. {\
  24393. \ case ${1} in\
  24394. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24395. \ * ) func_dirname_result="${3}" ;;\
  24396. \ esac\
  24397. \ func_basename_result="${1##*/}"\
  24398. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24399. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24400. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24401. test 0 -eq $? || _lt_function_replace_fail=:
  24402. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24403. func_stripname ()\
  24404. {\
  24405. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24406. \ # positional parameters, so assign one to ordinary parameter first.\
  24407. \ func_stripname_result=${3}\
  24408. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24409. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24410. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24411. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24412. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24413. test 0 -eq $? || _lt_function_replace_fail=:
  24414. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24415. func_split_long_opt ()\
  24416. {\
  24417. \ func_split_long_opt_name=${1%%=*}\
  24418. \ func_split_long_opt_arg=${1#*=}\
  24419. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24420. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24421. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24422. test 0 -eq $? || _lt_function_replace_fail=:
  24423. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24424. func_split_short_opt ()\
  24425. {\
  24426. \ func_split_short_opt_arg=${1#??}\
  24427. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24428. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24429. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24430. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24431. test 0 -eq $? || _lt_function_replace_fail=:
  24432. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24433. func_lo2o ()\
  24434. {\
  24435. \ case ${1} in\
  24436. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24437. \ *) func_lo2o_result=${1} ;;\
  24438. \ esac\
  24439. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24440. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24441. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24442. test 0 -eq $? || _lt_function_replace_fail=:
  24443. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24444. func_xform ()\
  24445. {\
  24446. func_xform_result=${1%.*}.lo\
  24447. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24448. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24449. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24450. test 0 -eq $? || _lt_function_replace_fail=:
  24451. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24452. func_arith ()\
  24453. {\
  24454. func_arith_result=$(( $* ))\
  24455. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24456. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24457. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24458. test 0 -eq $? || _lt_function_replace_fail=:
  24459. sed -e '/^func_len ()$/,/^} # func_len /c\
  24460. func_len ()\
  24461. {\
  24462. func_len_result=${#1}\
  24463. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24464. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24465. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24466. test 0 -eq $? || _lt_function_replace_fail=:
  24467. fi
  24468. if test x"$lt_shell_append" = xyes; then
  24469. sed -e '/^func_append ()$/,/^} # func_append /c\
  24470. func_append ()\
  24471. {\
  24472. eval "${1}+=\\${2}"\
  24473. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24474. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24475. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24476. test 0 -eq $? || _lt_function_replace_fail=:
  24477. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24478. func_append_quoted ()\
  24479. {\
  24480. \ func_quote_for_eval "${2}"\
  24481. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24482. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24483. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24484. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24485. test 0 -eq $? || _lt_function_replace_fail=:
  24486. # Save a `func_append' function call where possible by direct use of '+='
  24487. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24488. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24489. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24490. test 0 -eq $? || _lt_function_replace_fail=:
  24491. else
  24492. # Save a `func_append' function call even when '+=' is not available
  24493. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24494. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24495. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24496. test 0 -eq $? || _lt_function_replace_fail=:
  24497. fi
  24498. if test x"$_lt_function_replace_fail" = x":"; then
  24499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24500. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24501. fi
  24502. mv -f "$cfgfile" "$ofile" ||
  24503. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24504. chmod +x "$ofile"
  24505. cat <<_LT_EOF >> "$ofile"
  24506. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24507. # The linker used to build libraries.
  24508. LD=$lt_LD_RC
  24509. # How to create reloadable object files.
  24510. reload_flag=$lt_reload_flag_RC
  24511. reload_cmds=$lt_reload_cmds_RC
  24512. # Commands used to build an old-style archive.
  24513. old_archive_cmds=$lt_old_archive_cmds_RC
  24514. # A language specific compiler.
  24515. CC=$lt_compiler_RC
  24516. # Is the compiler the GNU compiler?
  24517. with_gcc=$GCC_RC
  24518. # Compiler flag to turn off builtin functions.
  24519. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24520. # Additional compiler flags for building library objects.
  24521. pic_flag=$lt_lt_prog_compiler_pic_RC
  24522. # How to pass a linker flag through the compiler.
  24523. wl=$lt_lt_prog_compiler_wl_RC
  24524. # Compiler flag to prevent dynamic linking.
  24525. link_static_flag=$lt_lt_prog_compiler_static_RC
  24526. # Does compiler simultaneously support -c and -o options?
  24527. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24528. # Whether or not to add -lc for building shared libraries.
  24529. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24530. # Whether or not to disallow shared libs when runtime libs are static.
  24531. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24532. # Compiler flag to allow reflexive dlopens.
  24533. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24534. # Compiler flag to generate shared objects directly from archives.
  24535. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24536. # Whether the compiler copes with passing no objects directly.
  24537. compiler_needs_object=$lt_compiler_needs_object_RC
  24538. # Create an old-style archive from a shared archive.
  24539. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24540. # Create a temporary old-style archive to link instead of a shared archive.
  24541. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24542. # Commands used to build a shared archive.
  24543. archive_cmds=$lt_archive_cmds_RC
  24544. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24545. # Commands used to build a loadable module if different from building
  24546. # a shared archive.
  24547. module_cmds=$lt_module_cmds_RC
  24548. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24549. # Whether we are building with GNU ld or not.
  24550. with_gnu_ld=$lt_with_gnu_ld_RC
  24551. # Flag that allows shared libraries with undefined symbols to be built.
  24552. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24553. # Flag that enforces no undefined symbols.
  24554. no_undefined_flag=$lt_no_undefined_flag_RC
  24555. # Flag to hardcode \$libdir into a binary during linking.
  24556. # This must work even if \$libdir does not exist
  24557. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24558. # Whether we need a single "-rpath" flag with a separated argument.
  24559. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24560. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24561. # DIR into the resulting binary.
  24562. hardcode_direct=$hardcode_direct_RC
  24563. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24564. # DIR into the resulting binary and the resulting library dependency is
  24565. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24566. # library is relocated.
  24567. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24568. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24569. # into the resulting binary.
  24570. hardcode_minus_L=$hardcode_minus_L_RC
  24571. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24572. # into the resulting binary.
  24573. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24574. # Set to "yes" if building a shared library automatically hardcodes DIR
  24575. # into the library and all subsequent libraries and executables linked
  24576. # against it.
  24577. hardcode_automatic=$hardcode_automatic_RC
  24578. # Set to yes if linker adds runtime paths of dependent libraries
  24579. # to runtime path list.
  24580. inherit_rpath=$inherit_rpath_RC
  24581. # Whether libtool must link a program against all its dependency libraries.
  24582. link_all_deplibs=$link_all_deplibs_RC
  24583. # Set to "yes" if exported symbols are required.
  24584. always_export_symbols=$always_export_symbols_RC
  24585. # The commands to list exported symbols.
  24586. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24587. # Symbols that should not be listed in the preloaded symbols.
  24588. exclude_expsyms=$lt_exclude_expsyms_RC
  24589. # Symbols that must always be exported.
  24590. include_expsyms=$lt_include_expsyms_RC
  24591. # Commands necessary for linking programs (against libraries) with templates.
  24592. prelink_cmds=$lt_prelink_cmds_RC
  24593. # Commands necessary for finishing linking programs.
  24594. postlink_cmds=$lt_postlink_cmds_RC
  24595. # Specify filename containing input files.
  24596. file_list_spec=$lt_file_list_spec_RC
  24597. # How to hardcode a shared library path into an executable.
  24598. hardcode_action=$hardcode_action_RC
  24599. # The directories searched by this compiler when creating a shared library.
  24600. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24601. # Dependencies to place before and after the objects being linked to
  24602. # create a shared library.
  24603. predep_objects=$lt_predep_objects_RC
  24604. postdep_objects=$lt_postdep_objects_RC
  24605. predeps=$lt_predeps_RC
  24606. postdeps=$lt_postdeps_RC
  24607. # The library search path used internally by the compiler when linking
  24608. # a shared library.
  24609. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24610. # ### END LIBTOOL TAG CONFIG: RC
  24611. _LT_EOF
  24612. cat <<_LT_EOF >> "$ofile"
  24613. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24614. # The linker used to build libraries.
  24615. LD=$lt_LD_CXX
  24616. # How to create reloadable object files.
  24617. reload_flag=$lt_reload_flag_CXX
  24618. reload_cmds=$lt_reload_cmds_CXX
  24619. # Commands used to build an old-style archive.
  24620. old_archive_cmds=$lt_old_archive_cmds_CXX
  24621. # A language specific compiler.
  24622. CC=$lt_compiler_CXX
  24623. # Is the compiler the GNU compiler?
  24624. with_gcc=$GCC_CXX
  24625. # Compiler flag to turn off builtin functions.
  24626. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24627. # Additional compiler flags for building library objects.
  24628. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24629. # How to pass a linker flag through the compiler.
  24630. wl=$lt_lt_prog_compiler_wl_CXX
  24631. # Compiler flag to prevent dynamic linking.
  24632. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24633. # Does compiler simultaneously support -c and -o options?
  24634. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24635. # Whether or not to add -lc for building shared libraries.
  24636. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24637. # Whether or not to disallow shared libs when runtime libs are static.
  24638. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24639. # Compiler flag to allow reflexive dlopens.
  24640. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24641. # Compiler flag to generate shared objects directly from archives.
  24642. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24643. # Whether the compiler copes with passing no objects directly.
  24644. compiler_needs_object=$lt_compiler_needs_object_CXX
  24645. # Create an old-style archive from a shared archive.
  24646. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24647. # Create a temporary old-style archive to link instead of a shared archive.
  24648. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24649. # Commands used to build a shared archive.
  24650. archive_cmds=$lt_archive_cmds_CXX
  24651. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24652. # Commands used to build a loadable module if different from building
  24653. # a shared archive.
  24654. module_cmds=$lt_module_cmds_CXX
  24655. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24656. # Whether we are building with GNU ld or not.
  24657. with_gnu_ld=$lt_with_gnu_ld_CXX
  24658. # Flag that allows shared libraries with undefined symbols to be built.
  24659. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24660. # Flag that enforces no undefined symbols.
  24661. no_undefined_flag=$lt_no_undefined_flag_CXX
  24662. # Flag to hardcode \$libdir into a binary during linking.
  24663. # This must work even if \$libdir does not exist
  24664. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24665. # Whether we need a single "-rpath" flag with a separated argument.
  24666. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24667. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24668. # DIR into the resulting binary.
  24669. hardcode_direct=$hardcode_direct_CXX
  24670. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24671. # DIR into the resulting binary and the resulting library dependency is
  24672. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24673. # library is relocated.
  24674. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24675. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24676. # into the resulting binary.
  24677. hardcode_minus_L=$hardcode_minus_L_CXX
  24678. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24679. # into the resulting binary.
  24680. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24681. # Set to "yes" if building a shared library automatically hardcodes DIR
  24682. # into the library and all subsequent libraries and executables linked
  24683. # against it.
  24684. hardcode_automatic=$hardcode_automatic_CXX
  24685. # Set to yes if linker adds runtime paths of dependent libraries
  24686. # to runtime path list.
  24687. inherit_rpath=$inherit_rpath_CXX
  24688. # Whether libtool must link a program against all its dependency libraries.
  24689. link_all_deplibs=$link_all_deplibs_CXX
  24690. # Set to "yes" if exported symbols are required.
  24691. always_export_symbols=$always_export_symbols_CXX
  24692. # The commands to list exported symbols.
  24693. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24694. # Symbols that should not be listed in the preloaded symbols.
  24695. exclude_expsyms=$lt_exclude_expsyms_CXX
  24696. # Symbols that must always be exported.
  24697. include_expsyms=$lt_include_expsyms_CXX
  24698. # Commands necessary for linking programs (against libraries) with templates.
  24699. prelink_cmds=$lt_prelink_cmds_CXX
  24700. # Commands necessary for finishing linking programs.
  24701. postlink_cmds=$lt_postlink_cmds_CXX
  24702. # Specify filename containing input files.
  24703. file_list_spec=$lt_file_list_spec_CXX
  24704. # How to hardcode a shared library path into an executable.
  24705. hardcode_action=$hardcode_action_CXX
  24706. # The directories searched by this compiler when creating a shared library.
  24707. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24708. # Dependencies to place before and after the objects being linked to
  24709. # create a shared library.
  24710. predep_objects=$lt_predep_objects_CXX
  24711. postdep_objects=$lt_postdep_objects_CXX
  24712. predeps=$lt_predeps_CXX
  24713. postdeps=$lt_postdeps_CXX
  24714. # The library search path used internally by the compiler when linking
  24715. # a shared library.
  24716. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24717. # ### END LIBTOOL TAG CONFIG: CXX
  24718. _LT_EOF
  24719. ;;
  24720. "sdl2_config":C) chmod a+x sdl2-config ;;
  24721. "summary":C) printf "$SUMMARY" ;;
  24722. esac
  24723. done # for ac_tag
  24724. as_fn_exit 0
  24725. _ACEOF
  24726. ac_clean_files=$ac_clean_files_save
  24727. test $ac_write_fail = 0 ||
  24728. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24729. # configure is writing to config.log, and then calls config.status.
  24730. # config.status does its own redirection, appending to config.log.
  24731. # Unfortunately, on DOS this fails, as config.log is still kept open
  24732. # by configure, so config.status won't be able to write to it; its
  24733. # output is simply discarded. So we exec the FD to /dev/null,
  24734. # effectively closing config.log, so it can be properly (re)opened and
  24735. # appended to by config.status. When coming back to configure, we
  24736. # need to make the FD available again.
  24737. if test "$no_create" != yes; then
  24738. ac_cs_success=:
  24739. ac_config_status_args=
  24740. test "$silent" = yes &&
  24741. ac_config_status_args="$ac_config_status_args --quiet"
  24742. exec 5>/dev/null
  24743. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24744. exec 5>>config.log
  24745. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24746. # would make configure fail if this is the last instruction.
  24747. $ac_cs_success || as_fn_exit 1
  24748. fi
  24749. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24751. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24752. fi